/* =========================================================
   MÉMWA D'ANTAN — Feuille de style
   ========================================================= */
:root {
  --green: #1f6f4a;
  --green-dark: #0e3b28;
  --green-night: #0a2a1f;
  --gold: #f9b517;          /* jaune du logo */
  --gold-soft: #ffec97;     /* jaune clair du logo */
  --navy: #093147;          /* bleu marine du logo */
  --navy-dark: #061f2e;
  --orange: #e2672a;
  --orange-soft: #f39a5b;
  --wood: #6b4226;
  --wood-dark: #3e2615;
  --turquoise: #1a9fa0;
  --turquoise-soft: #8fd7d3;
  --cream: #fdf6e8;
  --sand: #f5e8cf;
  --ink: #2a1d14;
  --muted: #6e5a48;
  --white: #fff;
  --line: rgba(107, 66, 38, .16);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(62, 38, 21, .28);
  --shadow-lg: 0 24px 50px -18px rgba(62, 38, 21, .4);
  --container: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img, iframe, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--green); }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--gold); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; z-index: 1000; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section--sand { background: var(--sand); }
.section--night { background: radial-gradient(ellipse at 80% 0%, #17533b 0%, var(--green-night) 60%); color: #eef3e8; }
.section--night h2, .section--night h3 { color: var(--gold-soft); }
.section--wood { background: linear-gradient(160deg, var(--wood) 0%, var(--wood-dark) 100%); color: #f7ecdc; }
.section--wood h2, .section--wood h3 { color: var(--gold-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: .8rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.section--night .eyebrow, .section--wood .eyebrow { color: var(--gold); }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow::after { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.lead { font-size: 1.2rem; color: var(--muted); }
.section--night .lead, .section--wood .lead { color: #d8e2d2; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--wood-dark); box-shadow: 0 8px 20px -8px rgba(232, 185, 49, .8); }
.btn--gold:hover { background: #f2c64a; color: var(--wood-dark); }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(226, 103, 42, .8); }
.btn--orange:hover { background: #ec7638; color: #fff; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: inherit; }
.btn--sm { padding: .5rem 1rem; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid var(--line);
}
/* Le flou est sur un pseudo-élément : un backdrop-filter sur l'en-tête
   piégerait le menu mobile (position: fixed) à l'intérieur. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(253, 246, 232, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; flex: none; }
.logo img { height: 54px; width: auto; }
.logo .logo__mascot { height: 46px; }
@media (max-width: 380px) { .logo .logo__mascot { display: none; } }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; align-items: center; }
.main-nav a {
  display: block; padding: .5rem .7rem; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.main-nav a:hover { background: var(--sand); color: var(--green); }
.main-nav a[aria-current="page"] { background: var(--green); color: #fff; }
.main-nav .nav-cta a { background: var(--orange); color: #fff; margin-left: .3rem; }
.main-nav .nav-cta a:hover { background: var(--wood); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--wood-dark); }
.nav-toggle span { display: block; width: 26px; height: 3px; background: currentColor; border-radius: 3px; margin: 5px 0; transition: .3s; }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--cream);
    padding: 1.5rem 16px 3rem; overflow-y: auto; transform: translateX(100%); visibility: hidden;
    transition: transform .35s ease, visibility 0s linear .35s;
  }
  .main-nav.open { transform: none; visibility: visible; transition: transform .35s ease; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .3rem; }
  .main-nav a { font-size: 1.15rem; padding: .85rem 1rem; }
  .main-nav .nav-cta a { margin: .6rem 0 0; text-align: center; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Héros ---------- */
.hero {
  position: relative; min-height: min(92vh, 860px); display: grid; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #0b2a3a 0%, #134a4c 35%, #c25a2a 78%, #e8a33a 100%);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scene { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 30, 25, .78) 0%, rgba(10, 30, 25, .35) 55%, rgba(10, 30, 25, 0) 100%);
}
.hero__content { padding: 5rem 0 7rem; max-width: 720px; }
.hero h1 { color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__slogan { font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: #fbeed3; margin-bottom: 2rem; max-width: 560px; }
.hero__tag {
  display: inline-flex; gap: .5rem; align-items: center; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25); padding: .35rem .9rem; border-radius: 999px;
  font-size: .85rem; font-weight: 700; margin-bottom: 1.2rem; backdrop-filter: blur(6px);
}
.hero .btn--ghost { color: #fff; }

.page-hero {
  position: relative; padding: clamp(70px, 10vw, 120px) 0 clamp(60px, 8vw, 90px); color: #fff; overflow: hidden;
  background: radial-gradient(ellipse at 85% 10%, rgba(232, 185, 49, .35), transparent 45%),
              linear-gradient(135deg, var(--green-dark) 0%, var(--green) 55%, var(--turquoise) 100%);
}
.page-hero--sunset { background: radial-gradient(ellipse at 85% 10%, rgba(253, 220, 140, .45), transparent 45%), linear-gradient(135deg, var(--wood-dark) 0%, var(--orange) 70%, var(--gold) 100%); }
.page-hero--night { background: radial-gradient(circle at 82% 22%, rgba(255, 244, 200, .5) 0, rgba(255, 244, 200, .1) 70px, transparent 140px), linear-gradient(180deg, #071b22 0%, var(--green-night) 100%); }
.page-hero--wood { background: radial-gradient(ellipse at 85% 10%, rgba(232, 185, 49, .3), transparent 45%), linear-gradient(135deg, var(--wood-dark), var(--wood)); }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero p { font-size: 1.2rem; max-width: 640px; color: #f3ecdf; margin: 0; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px;
  background: var(--cream);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V20C150 0 300 0 450 18s300 22 450 4 300-14 300-14v32z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V20C150 0 300 0 450 18s300 22 450 4 300-14 300-14v32z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

/* ---------- Motif madras ---------- */
.madras-band {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(226, 103, 42, .9) 0 18px, transparent 18px 36px),
    repeating-linear-gradient(90deg, var(--gold) 0 9px, var(--green) 9px 14px, var(--turquoise) 14px 22px, var(--gold) 22px 36px);
}

/* ---------- Présentation ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--rev > :first-child { order: 2; }
.split--form { grid-template-columns: 1fr 1.5fr; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.pillar { background: var(--white); border-radius: var(--radius-sm); padding: 1.1rem; border: 1px solid var(--line); }
.pillar h3 { font-size: 1.05rem; margin-bottom: .3rem; display: flex; gap: .5rem; align-items: center; }
.pillar p { margin: 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }
.illus-card {
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #0b2a3a 0%, #134a4c 50%, #1f6f4a 100%); position: relative;
}
.illus-card svg { width: 100%; height: 100%; }
.quote-badge {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; background: rgba(253, 246, 232, .95);
  border-radius: 14px; padding: 1rem 1.2rem; font-family: var(--font-display); font-style: italic; color: var(--wood-dark);
}
.quote-badge small { display: block; font-family: var(--font-body); font-style: normal; font-weight: 800; color: var(--orange); margin-top: .3rem; font-size: .8rem; }

/* ---------- Statistiques ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.stat__icon { font-size: 1.8rem; margin-bottom: .3rem; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 700; color: var(--gold); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__label { font-weight: 700; color: #dfe8d9; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; border: 1px solid var(--line);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--green-dark); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--portrait { aspect-ratio: 1 / 1; }
.card__media--tall { aspect-ratio: 9 / 14; }
.card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.18rem; }
.card__body p { margin: 0; color: var(--muted); font-size: .97rem; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); font-weight: 700; }
.card__foot { margin-top: auto; padding-top: .8rem; display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.tag { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .03em; background: var(--sand); color: var(--wood); }
.tag--green { background: #dcefe2; color: var(--green-dark); }
.tag--orange { background: #fde3d2; color: #9a3d10; }
.tag--turq { background: #d5f1ef; color: #0d6466; }
.tag--gold { background: #fbefc4; color: #7a5a00; }

.play-btn {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%;
  background: rgba(232, 185, 49, .95); border: 0; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .35); transition: transform .2s; color: var(--wood-dark);
}
.play-btn svg { width: 26px; height: 26px; margin-left: 4px; }
.card:hover .play-btn, .play-btn:hover { transform: scale(1.08); }
.media-cover { position: absolute; inset: 0; cursor: pointer; }
.soon { position: absolute; left: .8rem; top: .8rem; background: rgba(0, 0, 0, .55); color: #fff; font-size: .75rem; font-weight: 800; padding: .25rem .6rem; border-radius: 999px; }

/* Personnes */
.person { text-align: center; }
.person .card__body { align-items: center; }
.avatar { width: 100%; height: 100%; object-fit: cover; }
.person__role { color: var(--orange); font-weight: 800; font-size: .9rem; }
.person--row { flex-direction: row; text-align: left; }
.person--row .card__media { width: 40%; aspect-ratio: auto; min-height: 240px; flex: none; }
.person--row .card__body { align-items: flex-start; padding: 1.6rem; }
@media (max-width: 640px) { .person--row { flex-direction: column; } .person--row .card__media { width: 100%; aspect-ratio: 1; } }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter {
  padding: .5rem 1.05rem; border-radius: 999px; border: 2px solid var(--line); background: var(--white);
  font: inherit; font-weight: 800; font-size: .92rem; cursor: pointer; color: var(--wood);
}
.filter:hover { border-color: var(--green); color: var(--green); }
.filter[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.search { flex: 0 1 300px; position: relative; }
.search input { width: 100%; padding: .65rem 1rem .65rem 2.6rem; border-radius: 999px; border: 2px solid var(--line); font: inherit; background: var(--white); }
.search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); grid-column: 1 / -1; }

/* ---------- Dernières publications ---------- */
.tabs { display: flex; gap: .5rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.tab { padding: .55rem 1.1rem; border-radius: 999px; border: 0; background: var(--white); font: inherit; font-weight: 800; cursor: pointer; color: var(--wood); box-shadow: var(--shadow); }
.tab[aria-selected="true"] { background: var(--orange); color: #fff; }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 1.2rem; }

/* ---------- Modale vidéo ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: none; place-items: center; padding: 16px; background: rgba(6, 20, 15, .88); }
.modal.open { display: grid; }
.modal__box { width: min(1000px, 100%); position: relative; }
.modal__box--short { width: min(420px, 100%); }
.modal__frame { aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.modal__box--short .modal__frame { aspect-ratio: 9 / 16; max-height: 82vh; margin-inline: auto; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; }
.modal__title { color: #fff; margin-top: .8rem; font-family: var(--font-display); font-size: 1.2rem; }
.modal__close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--gold); color: var(--wood-dark); font-size: 1.5rem; cursor: pointer; line-height: 1;
}

/* ---------- YouTube ---------- */
.yt-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.yt-player { aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.yt-player iframe { width: 100%; height: 100%; border: 0; }
.notice {
  background: #fff8e0; border: 2px dashed var(--gold); border-radius: var(--radius); padding: 1.4rem 1.6rem; color: var(--wood-dark);
}
.notice code { background: var(--sand); padding: .1rem .4rem; border-radius: 5px; font-size: .9em; }
.yt-banner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background: var(--white); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.yt-banner__id { display: flex; align-items: center; gap: 1rem; }
.yt-banner__logo { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #ff0033; color: #fff; flex: none; }
.yt-banner__logo svg { width: 30px; }

/* ---------- Jeux ---------- */
.game { background: var(--white); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.game__head { padding: 1.6rem 1.8rem; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.game__head h3 { color: #fff; margin: 0; font-size: 1.6rem; }
.game__head p { margin: 0; opacity: .9; }
.game--ola .game__head { background: linear-gradient(120deg, var(--turquoise), var(--green)); }
.game--parol .game__head { background: linear-gradient(120deg, var(--orange), var(--gold)); }
.game__score { background: rgba(255, 255, 255, .2); border-radius: 999px; padding: .35rem .9rem; font-weight: 800; white-space: nowrap; }
.game__body { padding: 1.6rem 1.8rem 2rem; }
.game__visual {
  aspect-ratio: 16 / 8; border-radius: 16px; overflow: hidden; margin-bottom: 1.2rem; position: relative;
  background: linear-gradient(180deg, #8fd7d3 0%, #1a9fa0 55%, #1f6f4a 100%); display: grid; place-items: center;
}
.game__visual img { width: 100%; height: 100%; object-fit: cover; }
.game__clue { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; background: rgba(253, 246, 232, .95); padding: .9rem 1.1rem; border-radius: 12px; font-weight: 700; color: var(--wood-dark); }
.game__word { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); text-align: center; color: var(--orange); margin: .5rem 0 1.4rem; font-style: italic; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.choice {
  padding: .9rem 1rem; border-radius: 12px; border: 2px solid var(--line); background: var(--cream);
  font: inherit; font-weight: 700; cursor: pointer; text-align: left; color: var(--ink); transition: .2s;
}
.choice:hover:not([disabled]) { border-color: var(--green); background: #eef7f0; }
.choice.correct { background: #d6f0dc; border-color: var(--green); color: var(--green-dark); }
.choice.wrong { background: #fde0d4; border-color: var(--orange); color: #8a2f08; }
.choice[disabled] { cursor: default; }
.game__feedback { min-height: 1.6em; margin: 1rem 0 0; font-weight: 800; }
.game__actions { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; gap: 1rem; flex-wrap: wrap; }
.leaderboard { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.leaderboard li { counter-increment: rank; display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .07); margin-bottom: .5rem; }
.leaderboard li::before { content: counter(rank); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(255, 255, 255, .15); flex: none; }
.leaderboard li:nth-child(1)::before { background: var(--gold); color: var(--wood-dark); }
.leaderboard li:nth-child(2)::before { background: #d9d9d9; color: var(--wood-dark); }
.leaderboard li:nth-child(3)::before { background: #d08b4e; color: #fff; }
.leaderboard strong { margin-left: auto; color: var(--gold); }
.challenge { display: flex; gap: 1rem; align-items: center; padding: 1rem; border-radius: 12px; background: rgba(255, 255, 255, .07); margin-bottom: .6rem; }
.challenge time { font-weight: 800; color: var(--gold); white-space: nowrap; font-size: .9rem; }

/* ---------- Formulaires ---------- */
.form-card { background: var(--white); border-radius: 24px; padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 800; margin-bottom: .35rem; font-size: .95rem; color: var(--wood-dark); }
.field .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 2px solid var(--line); background: var(--cream);
  font: inherit; color: var(--ink); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); background: #fff; outline: none; }
.field textarea { min-height: 140px; resize: vertical; }
.field small { color: var(--muted); font-size: .85rem; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: .6rem; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--cream); font-weight: 700; cursor: pointer; transition: .2s; }
.check input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.check input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.form-status { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 12px; font-weight: 700; display: none; }
.form-status.ok { display: block; background: #d6f0dc; color: var(--green-dark); }
.form-status.err { display: block; background: #fde0d4; color: #8a2f08; }

/* ---------- Réservation ---------- */
.steps { display: flex; gap: .6rem; margin-bottom: 2rem; flex-wrap: wrap; counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--muted); padding: .45rem .9rem .45rem .45rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .9rem; }
.steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--wood); }
.steps li.active { color: var(--green-dark); border-color: var(--green); }
.steps li.active::before { background: var(--green); color: #fff; }
.steps li.done::before { content: "✓"; background: var(--gold); color: var(--wood-dark); }
.booking { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } }
.cal { background: var(--white); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal__head h3 { margin: 0; text-transform: capitalize; }
.cal__nav { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--cream); cursor: pointer; font-size: 1.2rem; color: var(--wood); }
.cal__nav:hover:not([disabled]) { border-color: var(--green); color: var(--green); }
.cal__nav[disabled] { opacity: .35; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__dow { font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; padding: .3rem 0; }
.cal__day { aspect-ratio: 1; border-radius: 10px; border: 0; background: transparent; font: inherit; font-weight: 700; color: #b9aa98; position: relative; }
.cal__day.has { background: #e5f4ea; color: var(--green-dark); cursor: pointer; }
.cal__day.has::after { content: ""; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.cal__day.has:hover { background: #cde9d6; }
.cal__day.selected { background: var(--green); color: #fff; }
.cal__day.selected::after { background: var(--gold); }
.cal__day.today { box-shadow: inset 0 0 0 2px var(--gold); }
.cal__legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.cal__legend span { display: inline-flex; align-items: center; gap: .35rem; }
.cal__legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.slots { display: grid; gap: .6rem; }
.slot {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 14px; border: 2px solid var(--line);
  background: var(--white); cursor: pointer; font: inherit; text-align: left; width: 100%; color: var(--ink); transition: .2s;
}
.slot:hover:not([disabled]) { border-color: var(--green); }
.slot.selected { border-color: var(--green); background: #eef7f0; box-shadow: 0 0 0 3px rgba(31, 111, 74, .15); }
.slot[disabled] { opacity: .55; cursor: not-allowed; }
.slot__time { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--green-dark); min-width: 70px; }
.slot__info { display: flex; flex-direction: column; gap: .2rem; }
.slot__status { margin-left: auto; font-size: .8rem; font-weight: 800; }
.recap { background: var(--sand); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.recap strong { font-family: var(--font-display); font-size: 1.15rem; }
.calcom-embed { width: 100%; min-height: 680px; border: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }

/* ---------- Bloc social ---------- */
.social-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.social-links a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: inherit; transition: .2s; border: 1px solid rgba(255, 255, 255, .18);
}
.social-links a:hover { background: var(--gold); color: var(--wood-dark); transform: translateY(-2px); }
.social-links svg { width: 20px; height: 20px; }
.social-links--big a { width: auto; height: auto; padding: .8rem 1.2rem; border-radius: 999px; display: inline-flex; gap: .55rem; font-weight: 800; text-decoration: none; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .3rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #d3dde5; padding: 64px 0 28px; }
.site-footer a { color: #e9efe4; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--gold); font-family: var(--font-body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer .logo { margin-bottom: 1.2rem; }
.logo--footer img { height: auto; width: 210px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; }
.creole { font-family: var(--font-display); font-style: italic; color: var(--gold-soft); }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.twinkle { animation: twinkle 3s ease-in-out infinite; }
.sway { transform-origin: bottom center; animation: sway 6s ease-in-out infinite; }
.float { animation: float 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 14px; overflow: hidden; font-size: .95rem; }
.admin-table th, .admin-table td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { background: var(--sand); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.table-wrap { overflow-x: auto; border-radius: 14px; box-shadow: var(--shadow); }
.admin-panel { margin-bottom: 3rem; }

/* ---------- Identité visuelle (logo & mascotte) ---------- */
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; }
.hero__mascot { width: clamp(220px, 24vw, 340px); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); margin-bottom: 4rem; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .hero__mascot { display: none; } }

.hosts { display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem; padding: 1rem 1.2rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .2s; }
.hosts:hover { transform: translateY(-2px); color: inherit; }
.hosts__faces { display: flex; flex: none; }
.hosts__faces img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 3px solid var(--gold); }
.hosts__faces img + img { margin-left: -16px; }
.hosts strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
.hosts span { color: var(--muted); font-size: .95rem; }

.mascot-cta { width: 120px; flex: none; }
@media (max-width: 640px) { .mascot-cta { width: 90px; } }

/* ---------- Disponibilités (formulaire de participation) ---------- */
.form-section { border-top: 2px dashed var(--line); padding-top: 1.4rem; margin-top: .6rem; }
.form-section h3 { margin-bottom: .3rem; }
.form-section p { margin: 0; color: var(--muted); font-size: .95rem; }
.dates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-bottom: .35rem; }
.dates-grid input { width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 2px solid var(--line); background: var(--cream); font: inherit; color: var(--ink); }
.dates-grid input:focus { border-color: var(--green); background: #fff; outline: none; }
@media (max-width: 640px) { .dates-grid { grid-template-columns: 1fr; } }

/* ---------- Page réservation protégée ---------- */
.locked { max-width: 640px; margin: 0 auto; text-align: center; }
.locked img { width: 140px; margin: 0 auto 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
