/* ============================================================
   Midgard Of Devil — Palette de la bannière officielle
   Ciel bleu, herbe verte, soleil, rose et rouge — vif et joyeux
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;800&family=Nunito:ital,wght@0,400;0,700;1,400&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ciel: #4da3e8;
  --ciel-fonce: #2f7fc2;
  --herbe: #6ecb63;
  --herbe-fonce: #4aa848;
  --soleil: #ffd94d;
  --rose: #ff8fb5;
  --rouge: #e8504f;
  --violet: #8a6cd8;
  --encre: #274156;
  --blanc: #ffffff;
}

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: 1.03rem;
  color: var(--encre);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 80% 0%, #fff7d1cc, transparent 45%),
    linear-gradient(180deg, #bfe3ff 0%, #e6f4ff 40%, #eaf9e4 100%);
  background-attachment: fixed;
}

/* ------------------------------ Header ------------------------------ */
header {
  background: linear-gradient(90deg, var(--ciel-fonce), var(--ciel) 55%, #7cc9f2);
  border-bottom: 4px solid var(--soleil);
  box-shadow: 0 4px 18px rgba(47, 127, 194, .35);
  padding: 12px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.mascot { width: 44px; height: 44px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
header h1 {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: .5px;
  color: #fff;
  text-shadow: 0 2px 0 var(--ciel-fonce), 0 4px 10px rgba(0,0,0,.25);
}
nav a {
  font-family: 'Baloo 2', cursive;
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  margin-left: 4px;
  padding: 8px 15px;
  border-radius: 20px;
  transition: all .15s;
}
nav a:hover { background: rgba(255,255,255,.25); transform: translateY(-1px); }
nav .admin-link { background: var(--rouge); box-shadow: 0 2px 8px rgba(232,80,79,.45); }
nav .admin-link:hover { background: #ff6a68; }

/* ------------------------------ Bannière ----------------------------- */
/* L'image s'affiche entiere, adaptee a la largeur du site, sans etre coupee */
.banner { max-width: 1150px; margin: 20px auto 0; padding: 0 18px; }
.banner img {
  display: block; width: 100%; height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(47,127,194,.35);
  border: 4px solid #fff;
}

/* ------------------------------- Main ------------------------------- */
main { flex: 1; max-width: 1150px; width: 100%; margin: 28px auto; padding: 0 18px; }

.hero { text-align: center; margin-bottom: 32px; }
.hero h2 {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 2.1rem;
  color: var(--ciel-fonce);
  text-shadow: 0 2px 0 #fff;
  margin-bottom: 6px;
}
.hero p { color: var(--herbe-fonce); font-size: 1.15rem; font-weight: 700; }
.hero .divider {
  width: 340px; max-width: 80%; height: 5px; margin: 14px auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--ciel), var(--herbe), var(--soleil), var(--rose), var(--rouge));
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }

/* --------------------- Cartes colorées ---------------------- */
.card {
  background: var(--blanc);
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(47, 127, 194, .18);
  padding: 0 0 18px;
  margin-bottom: 22px;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(47, 127, 194, .28); }
.card h2, .card h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, var(--ciel-fonce), var(--ciel));
  padding: 12px 20px;
  margin-bottom: 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
  border-bottom: 4px solid var(--soleil);
}
/* alternance de couleurs des en-têtes */
.cards > .card:nth-child(3n+2) h3 { background: linear-gradient(90deg, var(--herbe-fonce), var(--herbe)); }
.cards > .card:nth-child(3n) h3 { background: linear-gradient(90deg, #d84f8a, var(--rose)); }
.card > p, .card > ul, .card > form, .card > div { margin: 0 20px 12px; }
.card ul { padding-left: 20px; line-height: 2; }

/* -------------------------------- News ------------------------------- */
.news {
  border-left: 6px solid var(--herbe);
  background: linear-gradient(180deg, #fff, #f2fbef);
  border-radius: 12px;
  padding: 14px 18px; margin: 0 20px 16px;
  box-shadow: 0 3px 10px rgba(47,127,194,.12);
}
.news:nth-child(even) { border-left-color: var(--rose); background: linear-gradient(180deg, #fff, #fff3f7); }
.news h4 { font-family: 'Baloo 2', cursive; color: var(--ciel-fonce); font-size: 1.2rem; margin-bottom: 2px; }
.news .meta { font-size: .85rem; color: var(--violet); margin-bottom: 8px; font-style: italic; }
.news p { line-height: 1.55; }
.news img { max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.news h2, .news h3 { color: var(--rouge); margin: 8px 0 4px; background: none; padding: 0; border: none; }
.news blockquote { border-left: 4px solid var(--soleil); padding-left: 12px; color: var(--violet); font-style: italic; margin: 8px 0; }

/* ------------------------------ Statuts ------------------------------ */
.status { list-style: none; padding-left: 0 !important; }
.status li { display: flex; justify-content: space-between; padding: 7px 4px; border-bottom: 2px dashed #dceefb; }
.on  { color: var(--herbe-fonce); font-weight: 800; }
.off { color: var(--rouge); font-weight: 800; }
.bigcount { text-align: center; font-family: 'Baloo 2', cursive; color: var(--ciel-fonce); }
.bigcount strong { color: var(--rouge); font-size: 1.5rem; }

/* ------------------------------ Tables ------------------------------- */
table { width: calc(100% - 40px); margin: 0 20px 12px; border-collapse: collapse; }
.specs td, .list td, .list th { padding: 8px 10px; border-bottom: 1px solid #e3f0fa; text-align: left; }
.specs tr:hover td, .list tbody tr:hover td { background: #eef7ff; }
.list th { font-family: 'Baloo 2', cursive; font-size: .82rem;
  color: var(--ciel-fonce); border-bottom: 3px solid var(--soleil); }
.specs td:first-child { color: var(--ciel-fonce); font-weight: 700; }
.specs td:last-child { text-align: right; color: var(--rouge); font-weight: 800; }
.rank1 td { color: var(--rouge); font-weight: 800; background: #fff6d6 !important; }

/* ------------------------------- Forms ------------------------------- */
.form { max-width: 540px; margin-left: auto; margin-right: auto; }
.form label { display: block; margin: 0 20px 14px; color: var(--ciel-fonce); font-weight: 700; }
.form input, .form select, .form textarea {
  width: 100%; padding: 10px 12px; margin-top: 5px;
  background: #fff; border: 2px solid #cfe7f8; border-radius: 12px;
  color: var(--encre); font-family: inherit; font-size: 1rem;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ciel); box-shadow: 0 0 10px rgba(77,163,232,.35); }
.form button, .btn {
  display: inline-block; margin: 6px 20px 0; padding: 11px 30px;
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: .95rem;
  color: #fff; background: linear-gradient(90deg, var(--herbe-fonce), var(--herbe));
  b