@charset "UTF-8";
/* The Sand Club — Les aventures de Mibou
   Charte « Riviera Vitaminé » v1.0, source docs/design-tokens.css */

:root {
  color-scheme: light;

  --cream: #F7F0E3;
  --cream-2: #F1E8D6;
  --card: #FDFBF6;
  --sand-line: #E7DCC6;
  --ink: #35454A;
  --ink-soft: #6B7A7C;
  --ink-faint: #96A29F;

  --teal-900: #124F54;
  --teal-700: #1E6B6E;
  --teal-500: #35A79C;
  --teal-pale: #D8ECE8;
  --orange-500: #E5793F;
  --gold-400: #F0B54A;
  --gold-eyebrow: #B98A3C;

  --font-display: "Quicksand", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Avenir Next", "Segoe UI", sans-serif;

  --radius-card: 16px;
  --radius-img: 20px;
  --radius-btn: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(18,79,84,.05), 0 10px 30px -18px rgba(18,79,84,.25);
  --shadow-haut: 0 2px 4px rgba(18,79,84,.06), 0 18px 40px -20px rgba(18,79,84,.38);

  --gouttiere: 16px;
  --large: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, .case__num, .etapes__num {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--teal-900);
}

a { color: var(--teal-700); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 4px;
}

img, video { max-width: 100%; height: auto; display: block; }

.saut {
  position: absolute; left: -9999px;
  background: var(--teal-900); color: #fff; padding: 12px 18px; z-index: 50;
  border-radius: 0 0 var(--radius-btn) 0;
}
.saut:focus { left: 0; top: 0; }

/* ── Bandeau ───────────────────────────────────────────────────────── */

.bandeau {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  max-width: var(--large); margin: 0 auto;
  padding: 18px var(--gouttiere) 10px;
}
.bandeau__logo img { width: 112px; height: auto; }
.bandeau__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.bandeau__nav a {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--teal-700); text-decoration: none;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.bandeau__nav a:hover { border-bottom-color: var(--orange-500); }

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
  max-width: var(--large); margin: 0 auto;
  padding: 24px var(--gouttiere) 8px;
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.08fr .92fr; gap: 48px; padding-top: 40px; }
}

.surtitre {
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .72rem; color: var(--gold-eyebrow);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(1.95rem, 5.6vw, 3.05rem);
  margin: 0 0 10px;
  text-wrap: balance;
}
.accent { color: var(--orange-500); }

/* Le nom de la série passe sous le titre : le H1 porte la requête,
   la ligne du dessous porte l'histoire. */
.sous-titre {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
  color: var(--teal-700);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 12px;
}
.sous-titre::after {
  content: ""; flex: 1; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-400), transparent);
}

.chapo { font-size: 1.12rem; margin: 0 0 14px; color: var(--ink); }
.promesse {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.15rem; color: var(--teal-700); margin: 0 0 18px;
}

.atouts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 24px; padding: 0;
}
.atouts li {
  background: var(--card); border: 1px solid var(--sand-line);
  border-radius: var(--radius-pill);
  padding: 6px 15px; font-size: .92rem; font-weight: 600;
  color: var(--teal-700);
}

.bouton {
  display: inline-block;
  background: var(--orange-500); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  text-decoration: none;
  padding: 14px 28px; border: 0; border-radius: var(--radius-btn);
  box-shadow: 0 10px 22px -12px rgba(229,121,63,.9);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(229,121,63,.95); }
.bouton--large { width: 100%; padding: 16px 28px; font-size: 1.08rem; }

.hero__image img {
  border-radius: var(--radius-img);
  box-shadow: var(--shadow-haut);
  width: 100%;
}
.hero__image { margin: 0; }

/* ── Bandeau d’info ────────────────────────────────────────────────── */

.bandeau-info {
  max-width: var(--large);
  margin: 24px auto 0;
  padding: 14px 20px;
  background: var(--teal-pale);
  border: 1px solid #BEDDD7;
  border-radius: var(--radius-card);
  text-align: center;
  font-weight: 600; color: var(--teal-900);
}
@media (max-width: 1152px) { .bandeau-info { margin-left: var(--gouttiere); margin-right: var(--gouttiere); } }
.bandeau-info--ouvert { background: #FDF2DC; border-color: #F0DCAE; }

/* ── Le calendrier ─────────────────────────────────────────────────── */

.calendrier {
  max-width: var(--large); margin: 0 auto;
  padding: 44px var(--gouttiere) 8px;
}
.calendrier > h2, .comment h2, .faq h2, .texte-long h2 {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  margin: 0 0 10px;
}
.calendrier > h2::after, .comment h2::after, .faq h2::after, .texte-long h2::after {
  content: ""; display: block; height: 3px; width: 120px; margin-top: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--orange-500), transparent);
}
.section__chapo { max-width: 60ch; color: var(--ink-soft); margin: 14px 0 28px; }

.chapitre {
  border-radius: var(--radius-img);
  padding: 22px 18px 26px;
  margin-bottom: 20px;
  border: 1px solid var(--sand-line);
}
.chapitre--mer      { background: linear-gradient(170deg, #FBF5EA, #E9F3F0); }
.chapitre--montee   { background: linear-gradient(170deg, #E9F3F0, #D8ECE8); }
.chapitre--montagne { background: linear-gradient(170deg, #E4F0F3, #F4FAFB); }
.chapitre--sommet   { background: linear-gradient(170deg, #1C5F64, #103F45); border-color: #0C3238; }

.chapitre__titre {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin: 0 0 2px; font-size: 1.3rem;
}
.chapitre__jours {
  font-family: var(--font-body); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--gold-eyebrow);
}
.chapitre__sous { margin: 0 0 20px; color: var(--ink-soft); font-size: .95rem; }

.chapitre--sommet .chapitre__titre,
.chapitre--sommet .chapitre__nom { color: #FDFBF6; }
.chapitre--sommet .chapitre__jours { color: var(--gold-400); }
.chapitre--sommet .chapitre__sous { color: #AFCBCB; }

.cases {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 520px) { .cases { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .cases { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 980px) { .cases { grid-template-columns: repeat(6, 1fr); } }

.case {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1.18;
  border-radius: var(--radius-card);
  text-decoration: none; overflow: hidden;
  padding: 10px;
  transition: transform .18s ease, box-shadow .18s ease;
}

/* fermée : on ne voit que le chiffre, comme une porte de calendrier */
.case--fermee {
  background:
    radial-gradient(120% 90% at 50% 0%, #FFFDF8 0%, #F3E9D6 70%, #EADDC4 100%);
  border: 1px solid var(--sand-line);
  box-shadow: inset 0 -3px 0 rgba(18,79,84,.05), var(--shadow-card);
  cursor: default;
}
.case--fermee::before {
  content: ""; position: absolute; inset: 7px;
  border: 1.5px dashed rgba(18,79,84,.16); border-radius: 11px;
  pointer-events: none;
}
.case--fermee .case__num { color: var(--teal-900); opacity: .42; }
.case__cadenas { color: var(--teal-900); opacity: .42; margin-top: 2px; }

.chapitre--sommet .case--fermee {
  background: radial-gradient(120% 90% at 50% 0%, #27737A 0%, #175A61 70%, #11454B 100%);
  border-color: #0C3238;
}
.chapitre--sommet .case--fermee::before { border-color: rgba(240,181,74,.3); }
.chapitre--sommet .case--fermee .case__num,
.chapitre--sommet .case__cadenas { color: var(--gold-400); opacity: .62; }
.chapitre--sommet .case__dessous--fermee { color: #9FC0C2; }

.case__num {
  font-size: clamp(2rem, 7vw, 2.9rem);
  font-weight: 700; line-height: 1;
}

.case__dessous {
  margin-top: 8px; text-align: center;
  font-size: .76rem; line-height: 1.35;
}
.case__dessous--fermee {
  color: var(--ink-faint); font-weight: 600;
  text-transform: lowercase;
}

/* ouverte : la vignette prend la case, le chiffre passe en pastille */
.case--ouverte {
  background: var(--card);
  border: 1px solid var(--sand-line);
  box-shadow: var(--shadow-card);
  justify-content: flex-start;
  padding: 0;
}
.case--ouverte:hover { transform: translateY(-4px); box-shadow: var(--shadow-haut); }
.case--ouverte .case__num {
  position: absolute; top: 7px; left: 7px; z-index: 2;
  font-size: 1.02rem; line-height: 1;
  background: var(--teal-900); color: #fff;
  min-width: 29px; height: 29px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  padding: 0 8px;
  box-shadow: 0 2px 8px rgba(18,79,84,.35);
}
.case__vignette {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--teal-pale);
}
.case--ouverte .case__dessous {
  padding: 8px 9px 10px; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.case__lieu { font-weight: 700; color: var(--teal-900); font-size: .8rem; }
.case__activite { color: var(--ink-soft); font-size: .72rem; }

.case--ouverte:not(:has(.case__vignette)) {
  justify-content: center; padding: 14px 10px;
}
.case--ouverte:not(:has(.case__vignette)) .case__num {
  position: static; font-size: clamp(2rem, 7vw, 2.7rem);
  background: none; color: var(--teal-900); box-shadow: none;
  min-width: 0; height: auto; padding: 0; display: block;
}

.case--aujourdhui { box-shadow: 0 0 0 3px var(--gold-400), var(--shadow-haut); }
.case__badge {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  background: var(--gold-400); color: #4A3410;
  font-family: var(--font-display); font-weight: 700;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  text-align: center; padding: 3px;
}

/* ── Blocs de texte ────────────────────────────────────────────────── */

.texte-long, .comment, .faq {
  max-width: var(--large); margin: 0 auto;
  padding: 44px var(--gouttiere);
}
.texte-long p { max-width: 68ch; }

.etapes {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .etapes { grid-template-columns: repeat(3, 1fr); } }
.etapes li {
  background: var(--card); border: 1px solid var(--sand-line);
  border-radius: var(--radius-card); padding: 24px 22px;
  box-shadow: var(--shadow-card);
}
.etapes__num {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: var(--radius-pill);
  background: var(--teal-pale); color: var(--teal-900);
  font-size: 1.25rem; margin-bottom: 12px;
}
.etapes h3 { font-size: 1.08rem; margin: 0 0 6px; }
.etapes p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ── Le projet ─────────────────────────────────────────────────────── */

.projet { background: var(--cream-2); border-top: 1px solid var(--sand-line); border-bottom: 1px solid var(--sand-line); }
.projet__dedans { max-width: 72ch; margin: 0 auto; padding: 48px var(--gouttiere); text-align: center; }
.projet__logo { margin: 0 auto 18px; width: 108px; height: auto; }
.projet h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin: 0 0 16px; }
.projet__prevenir {
  background: var(--card); border: 1px solid var(--sand-line);
  border-radius: var(--radius-card); padding: 16px 20px; margin-top: 24px;
}
.projet__insta { margin-bottom: 0; color: var(--ink-soft); }

/* ── FAQ ───────────────────────────────────────────────────────────── */

.faq details {
  background: var(--card); border: 1px solid var(--sand-line);
  border-radius: var(--radius-card); margin-bottom: 10px;
  padding: 2px 20px;
}
.faq summary {
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem;
  color: var(--teal-900); cursor: pointer; padding: 16px 0; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--orange-500); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

/* ── Page d’un jour ────────────────────────────────────────────────── */

.fil, .retour {
  max-width: 760px; margin: 18px auto 0; padding: 0 var(--gouttiere);
  font-size: .9rem; color: var(--ink-soft);
}
.retour { margin: 8px auto 48px; }
.fil a { color: var(--teal-700); }

.episode { max-width: 760px; margin: 0 auto; padding: 18px var(--gouttiere) 0; }
.episode__tete h1 { font-size: clamp(1.9rem, 6.5vw, 2.8rem); margin: 0 0 14px; }
.episode__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 24px; }
.etiquette {
  background: var(--teal-pale); color: var(--teal-900);
  border-radius: var(--radius-pill); padding: 5px 14px;
  font-size: .85rem; font-weight: 700;
}
.etiquette--dehors { background: #FDE8D8; color: #8A3F12; }
.niveau { color: var(--gold-eyebrow); letter-spacing: 2px; font-size: .8rem; }

.lecteur {
  position: relative;
  border-radius: var(--radius-img); overflow: hidden;
  box-shadow: var(--shadow-haut); background: #0E3B40;
  margin-bottom: 28px;
  display: flex; justify-content: center;
}
/* l'épisode est vertical : on le borne en hauteur, sinon il mange l'écran */
.lecteur video, .lecteur > img {
  display: block; max-width: 100%; height: auto;
  max-height: min(74vh, 720px); width: auto;
}
.lecteur--image { background: none; }
@media (max-width: 560px) { .lecteur video, .lecteur > img { width: 100%; max-height: none; } }

/* ── La couverture : la photo, un bouton play, et la vidéo ne se charge
      qu'au clic. C'est aussi ce qui garde la page légère. ───────────── */

.couverture {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  border: 0; padding: 0; margin: 0;
  background: #0E3B40; cursor: pointer;
  font: inherit; color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.couverture[hidden] { display: none; }
.couverture > img {
  position: absolute; inset: 0; margin: auto;
  width: auto; height: 100%; max-width: 100%;
  object-fit: contain;
}
.couverture__voile {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 50% 50%, rgba(5,30,34,.42), transparent 70%),
    linear-gradient(to top, rgba(5,30,34,.55), transparent 42%);
  transition: opacity .2s ease;
}
.couverture__play {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 78px; height: 78px; border-radius: var(--radius-pill);
  background: var(--orange-500); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(5,30,34,.75);
  padding-left: 5px;
  transition: transform .18s ease, background .18s ease;
}
.couverture__texte {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 18px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  text-shadow: 0 2px 10px rgba(5,30,34,.7);
}
.couverture:hover .couverture__play,
.couverture:focus-visible .couverture__play { transform: scale(1.08); }
.couverture:hover .couverture__voile { opacity: .72; }
.couverture:focus-visible { outline: 3px solid var(--gold-400); outline-offset: -3px; }

/* ── L'aperçu de la fiche : on montre, on ne donne pas ──────────────── */

.apercu-fiche { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.apercu-fiche .telecharger__quoi { margin: 0; }
.apercu-fiche__note { display: block; color: #8FB3B1; font-size: .88rem; }
.apercu-fiche__image {
  flex: none; width: 124px; height: 124px;
  border-radius: 10px; overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.55);
  /* ni clic, ni menu contextuel, ni appui long sur iPhone, ni glisser-déposer */
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none; user-select: none;
}
.apercu-fiche__image img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 420px) { .apercu-fiche__image { width: 96px; height: 96px; } }

.recit {
  background: var(--card); border: 1px solid var(--sand-line);
  border-left: 4px solid var(--gold-400);
  border-radius: var(--radius-card);
  padding: 22px 24px; margin-bottom: 32px;
}
.recit p { margin: 0; font-size: 1.1rem; }
.recit__question { margin-top: 14px !important; color: var(--teal-700); font-weight: 600; }

/* ── Le formulaire ─────────────────────────────────────────────────── */

.telecharger {
  background: var(--teal-900); color: #EAF4F3;
  border-radius: var(--radius-img); padding: 30px 26px; margin-bottom: 36px;
}
.telecharger h2 { color: #fff; font-size: 1.5rem; margin: 0 0 8px; }
.telecharger__quoi, .telecharger__attente { color: #BBD9D7; margin: 0 0 22px; }

.formulaire { display: block; }
.champ { display: block; margin-bottom: 14px; }
.champ__label {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: .95rem; margin-bottom: 7px; color: #fff;
}
.oblig {
  font-family: var(--font-body); font-weight: 700; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold-400); margin-left: 6px;
}
.champ input[type="email"] {
  width: 100%; font: inherit; font-size: 1.05rem;
  padding: 14px 16px; border-radius: var(--radius-btn);
  border: 2px solid transparent; background: #fff; color: var(--ink);
}
.champ input[type="email"]::placeholder { color: var(--ink-faint); }

.case-a-cocher {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: .92rem; line-height: 1.5; color: #CFE4E2;
  margin-bottom: 12px; cursor: pointer;
}
.case-a-cocher input { margin: 3px 0 0; width: 19px; height: 19px; flex: none; accent-color: var(--orange-500); }
.case-a-cocher--consentement {
  background: rgba(255,255,255,.07); border-radius: var(--radius-btn);
  padding: 12px 14px; margin-bottom: 20px;
}
.case-a-cocher em { color: #A9CBC9; font-style: normal; display: block; font-size: .85rem; }

.mention { font-size: .82rem; line-height: 1.55; color: #9FC0BE; margin: 16px 0 0; }
.mention a { color: var(--gold-400); }

.erreur {
  background: #FFE9E4; color: #8C2A14; border: 1px solid #F2BCAE;
  border-radius: var(--radius-btn); padding: 12px 16px; margin: 0 0 18px;
  font-weight: 600;
}

.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Voisins ───────────────────────────────────────────────────────── */

.voisins { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.voisins a, .voisins__suiv--verrou {
  flex: 1; max-width: 48%;
  background: var(--card); border: 1px solid var(--sand-line);
  border-radius: var(--radius-card); padding: 13px 16px;
  text-decoration: none; color: var(--teal-900); font-weight: 600; font-size: .93rem;
}
.voisins__suiv { text-align: right; }
.voisins a span, .voisins__suiv--verrou span {
  display: block; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gold-eyebrow); font-weight: 700;
}
.voisins__suiv--verrou { color: var(--ink-faint); background: transparent; border-style: dashed; }

.verrou { text-align: center; }

/* ── Pied ──────────────────────────────────────────────────────────── */

.pied { background: var(--teal-900); color: #BBD9D7; margin-top: 10px; }
.pied__dedans { max-width: var(--large); margin: 0 auto; padding: 40px var(--gouttiere); text-align: center; }
.pied__marque { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.1rem; margin: 0 0 10px; }
.pied__liens { margin: 0 0 14px; }
.pied__liens a { color: #BBD9D7; }
.pied__fin { font-size: .86rem; color: #8FB3B1; margin: 0; }

/* ── Pages légales ─────────────────────────────────────────────────── */

.legal { max-width: 720px; margin: 0 auto; padding: 24px var(--gouttiere) 60px; }
.legal h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); margin-bottom: 18px; }
.legal h2 { font-size: 1.22rem; margin-top: 34px; }
.legal ul { padding-left: 1.2em; }
.legal .maj { color: var(--ink-faint); font-size: .9rem; }
