/* L’Archipel des maths — page d’accueil.
   Mise en page : un voyage vers le bas de la page. Le ciel et une fenêtre ouverte sur l’archipel en 3D, puis des bandes
   qui alternent le sable, le papier, le ciel et la mer profonde, comme les écrans du jeu. Le contenu tient dans une
   colonne de 1160 px ; les couleurs et les polices sont celles du jeu. */
:root {
  --ink: #17324d;          /* encre du jeu : titres et texte */
  --ink-soft: #46617a;     /* texte secondaire */
  --sea: #1f86c8;          /* mer */
  --sea-deep: #0f4a73;     /* bande « mer profonde » */
  --sky: #e5f4fd;          /* ciel */
  --sand: #fff6e6;         /* sable */
  --paper: #fffdf8;        /* papier des panneaux du jeu */
  --coral: #cc4b2b;        /* bouton principal (le corail du jeu, foncé pour un texte blanc lisible) */
  --coral-edge: #8f3017;
  --gold: #ffc23a;
  --green: #137a49;
  --line: #d6e5f0;
  --on-deep: #ffffff;
  --on-deep-soft: #cfe6f6;
  --shadow: 0 10px 30px rgba(16, 45, 70, .14);
  --shadow-soft: 0 4px 14px rgba(16, 45, 70, .10);
  --radius: 22px;
  --font-display: "Fredoka", "Nunito", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: .9375rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  --step-3: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  color-scheme: light;
}

@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/nunito-latin-800-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--step-3); letter-spacing: -.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
a { color: var(--sea); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1224px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.kicker {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sea);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  text-decoration: none; text-align: center;
  font-family: var(--font-display); font-weight: 700;
  color: #fff; background: var(--coral);
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--coral-edge), 0 10px 22px rgba(16, 45, 70, .18);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { background: #b9401f; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--coral-edge), 0 4px 10px rgba(16, 45, 70, .18); }
.btn--big { min-height: 58px; padding: 10px 30px; line-height: 1.2; font-size: 1.1875rem; letter-spacing: .04em; text-transform: uppercase; }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 1rem; border-radius: 14px; box-shadow: 0 4px 0 var(--coral-edge); white-space: nowrap; }
.btn--small:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--coral-edge); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.cta__note { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }

/* ---------- Bandeau du haut ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255, 253, 248, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand__avatar { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(16, 45, 70, .2); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__lab { font-family: var(--font-display); font-weight: 700; font-size: .8125rem; color: var(--ink-soft); }
.brand__lab span { color: var(--coral); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; white-space: nowrap; }

.nav { position: relative; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px; border-radius: 14px;
  border: 2px solid var(--line); background: #fff; color: var(--ink);
  font: 700 1rem var(--font-body); cursor: pointer;
}
.nav__toggle svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.nav__links { list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; text-decoration: none; color: var(--ink); font-weight: 700; border-radius: 12px; }
.nav__links a:hover { color: var(--sea); }

/* Téléphone et tablette : menu repliable */
@media (max-width: 1099.98px) {
  .topbar__in { gap: 8px; }
  .nav { order: 3; }
  .nav__links {
    position: absolute; right: 0; top: calc(100% + 10px);
    width: min(300px, calc(100vw - 32px));
    padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  }
  .js .nav__links:not(.is-open) { display: none; }
  .nav__links a { padding: 12px 14px; }
  .nav__links a:hover { background: var(--sky); }
  html:not(.js) .nav__toggle { display: none; }
  html:not(.js) .nav__links { position: static; width: auto; box-shadow: none; border: 0; padding: 0; display: flex; flex-wrap: wrap; }
}
@media (max-width: 599.98px) {
  .brand__text { display: none; }
}
@media (max-width: 479.98px) {
  .btn--small { padding: 0 12px; font-size: .9375rem; }
  .nav__toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav__toggle { padding: 0 10px; }
}
@media (min-width: 1100px) {
  .nav__toggle { display: none; }
  .nav__links { display: flex; gap: 4px; }
  .nav__links a { padding: 10px 12px; font-size: 1rem; }
  .topbar__in { gap: 20px; }
}

/* ---------- Accroche ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #d9f0fd 0%, var(--sky) 55%, #d4effc 100%);
  padding-block: clamp(36px, 6vw, 80px) clamp(64px, 8vw, 112px);
  overflow: hidden;
}
.hero::after { /* vague vers le sable */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: var(--sand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26'%3E%3Cpath d='M0 13c15 0 15-10 30-10s15 10 30 10 15-10 30-10 15 10 30 10v13H0z'/%3E%3C/svg%3E") repeat-x left bottom / 120px 26px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26'%3E%3Cpath d='M0 13c15 0 15-10 30-10s15 10 30 10 15-10 30-10 15 10 30 10v13H0z'/%3E%3C/svg%3E") repeat-x left bottom / 120px 26px;
}
.hero__grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero__text { display: grid; gap: 18px; min-width: 0; max-width: 36rem; }
.hero__text .kicker { color: var(--sea-deep); }
.hero__text .lead { font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.3125rem); font-weight: 600; }
.hero__text .cta { margin-top: 10px; }
.hero__visual { position: relative; margin: 0; min-width: 0; }
.window {
  position: relative;
  border-radius: 28px;
  border: 6px solid #fff;
  box-shadow: 0 24px 60px rgba(16, 60, 100, .28);
  overflow: hidden;
  background: #8fd3f5;
}
.window img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tag {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -100%);
  padding: 5px 11px 6px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: .9375rem; line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(23, 50, 77, .18), 0 6px 14px rgba(16, 45, 70, .18);
}
.tag::after { /* petite pointe vers l’île */
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px;
  background: var(--paper); transform: rotate(45deg); border-radius: 2px;
}
.tag--l { transform: translate(-14px, -100%); }
.tag--l::after { left: 20px; }
.tag--r { transform: translate(calc(-100% + 14px), -100%); }
.tag--r::after { left: auto; right: 14px; margin-left: 0; }
.hero__coco {
  position: absolute; right: -3%; bottom: -12%;
  width: 26%;
  filter: drop-shadow(0 12px 18px rgba(16, 45, 70, .28));
}
.tag--coco {
  left: auto; top: auto; right: 22%; bottom: 47%;
  transform: none;
  background: var(--gold); color: var(--ink);
}
.tag--coco::after { left: auto; right: 12px; margin-left: 0; bottom: -6px; background: var(--gold); }
@media (max-width: 559.98px) {
  .tag { font-size: .75rem; padding: 4px 8px 5px; border-radius: 9px; }
  .tag::after { width: 9px; height: 9px; margin-left: -4.5px; bottom: -4px; }
  .window { border-width: 4px; border-radius: 20px; }
  .tag--coco { font-size: .8125rem; }
  .tag--r::after, .tag--coco::after { margin-left: 0; }
  .tag--r::after { right: 10px; }
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 9fr) minmax(0, 13fr); }
  /* l’archipel déborde un peu à droite, sans jamais couper Coco au bord de l’écran */
  .hero__visual { margin-right: min(0px, max(-64px, -3vw, calc((1224px - 100vw) / 2 - 4px))); }
}

/* ---------- Bandes ---------- */
.band { position: relative; padding-block: clamp(60px, 8vw, 104px); }
.band--sand { background: var(--sand); }
.band--paper { background: var(--paper); }
.band--sky { background: var(--sky); }
.band--deep { background: var(--sea-deep); color: var(--on-deep); }
.band--deep h2 { color: var(--on-deep); }
.head { display: grid; gap: 10px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }

.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split__text { display: grid; gap: 16px; min-width: 0; max-width: 38rem; }
.split__text h2 { margin-bottom: 6px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.goal { padding: 14px 18px; border-radius: 16px; background: #fff; border: 2px dashed #f2cf8a; font-weight: 600; }
.goal strong { font-weight: 800; color: var(--coral); }

/* Captures du jeu */
.shot { margin: 0; display: grid; gap: 10px; min-width: 0; }
.shot img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 18px; border: 5px solid #fff;
  box-shadow: var(--shadow);
  background: #bfe6f8;
}
.shot figcaption { font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; padding-inline: 6px; }

/* ---------- Trois étapes ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.step { display: grid; gap: 10px; align-content: start; min-width: 0; }
.step .shot { margin-bottom: 6px; }
.step__num {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sea);
}
.step__num span {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sea); color: #fff; font-family: var(--font-display); font-size: 1rem; letter-spacing: 0;
}
.step p:last-child { color: var(--ink-soft); }
.voyage {
  display: flex; align-items: center; gap: 14px;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 16px 20px; border-radius: 18px;
  background: var(--sky);
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.25;
}
.voyage svg { width: 44px; height: 44px; flex: none; }

/* ---------- Coco ---------- */
.coco { overflow: hidden; }
.coco::before { /* vague de la mer profonde */
  content: ""; position: absolute; left: 0; right: 0; top: -25px; height: 26px; background: var(--sea-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26'%3E%3Cpath d='M0 13c15 0 15-10 30-10s15 10 30 10 15-10 30-10 15 10 30 10v13H0z'/%3E%3C/svg%3E") repeat-x left bottom / 120px 26px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26'%3E%3Cpath d='M0 13c15 0 15-10 30-10s15 10 30 10 15-10 30-10 15 10 30 10v13H0z'/%3E%3C/svg%3E") repeat-x left bottom / 120px 26px;
}
.coco .split__text p { color: var(--on-deep-soft); font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); }
.coco .coco__last { color: var(--on-deep); font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.3; }
.coco__stage { position: relative; margin: 0; min-width: 0; }
.coco__ile {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 62%;
  border-radius: 28px; border: 6px solid rgba(255, 255, 255, .9);
}
.coco__perso {
  position: absolute; left: 50%; bottom: -8%;
  width: 84%; transform: translateX(-50%);
  filter: drop-shadow(0 18px 24px rgba(0, 20, 40, .45));
}
@media (min-width: 900px) { .split--coco { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); } }

/* ---------- Notions ---------- */
.intro { display: grid; gap: 10px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 40px); }
.islands { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
@media (max-width: 559.98px) { .islands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .island-tab { padding: 9px 10px 10px 30px; } .island-tab::before { left: 11px; top: 14px; width: 11px; height: 11px; } .island-tab__name { font-size: 1rem; } }
.island-tab {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 16px 11px 34px; position: relative;
  border-radius: 16px; border: 2px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 3px 0 var(--line);
}
.island-tab::before { content: ""; position: absolute; left: 13px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.island-tab__name { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.2; }
.island-tab__count { font-size: .8125rem; font-weight: 700; color: var(--ink-soft); }
.island-tab:hover { border-color: #b9d6ea; }
.island-tab[aria-selected="true"] { border-color: var(--c); background: var(--c); color: #fff; box-shadow: 0 3px 0 rgba(23, 50, 77, .25); }
.island-tab[aria-selected="true"]::before { background: #fff; }
.island-tab[aria-selected="true"] .island-tab__count { color: rgba(255, 255, 255, .9); }
.free-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); margin-bottom: 22px; }
.island-panel + .island-panel { margin-top: 40px; }
.js .island-panel + .island-panel { margin-top: 0; }
.island-panel__title { margin-bottom: 16px; }
.js .island-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 20px; } }
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #cdebfa; }
.card__body { display: grid; gap: 6px; padding: 14px 16px 18px; align-content: start; }
.card__place { font-size: .8125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sea); }
.card h4 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.2; text-wrap: balance; }
.card__body p:last-child { font-size: var(--step--1); line-height: 1.5; color: var(--ink-soft); }
.badge {
  display: inline-block; padding: 3px 10px 4px; border-radius: 999px;
  background: #dff6e9; color: var(--green); border: 1.5px solid #9fdcbc;
  font-family: var(--font-body); font-weight: 800; font-size: .8125rem; letter-spacing: .02em; line-height: 1.2;
}
.card .badge { position: absolute; top: 10px; left: 10px; background: #fff; box-shadow: 0 2px 6px rgba(16, 45, 70, .18); }
@media (max-width: 559.98px) {
  .cards { gap: 12px; }
  .card { flex-direction: row; align-items: stretch; }
  .card img { width: 38%; aspect-ratio: auto; min-height: 100%; flex: none; }
  .card__body { padding: 12px 14px 14px; gap: 4px; }
  .card h4 { font-size: 1.0625rem; }
  .card__place { font-size: .75rem; }
  .card .badge { top: 8px; left: 8px; font-size: .75rem; padding: 2px 8px 3px; }
}

/* ---------- Avantages ---------- */
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.perk { display: grid; gap: 10px; align-content: start; padding: 24px 22px 26px; border-radius: 22px; background: #fff; border: 2px solid #f3e3c4; min-width: 0; }
.perk__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--c); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12); margin-bottom: 4px; }
.perk__icon svg { width: 34px; height: 34px; }
.perk p { color: var(--ink-soft); font-size: 1.0625rem; }

/* l’enseignante qui a créé le jeu */
.maker {
  justify-self: start; display: flex; align-items: center; gap: 12px;
  margin-top: 6px; padding: 8px 20px 8px 8px;
  border-radius: 30px; background: #fff; border: 2px solid #f3e3c4;
  font-weight: 700; line-height: 1.35;
}
.maker__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--coral); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); }
.maker__icon svg { width: 22px; height: 22px; }

/* les trois bouteilles à la mer : le texte, puis le calendrier (les écarts sont à l’échelle : 3, 10 et 21 jours) */
.bottles {
  display: grid; gap: clamp(22px, 3.5vw, 44px); align-items: center;
  margin-top: 18px; padding: clamp(22px, 3.5vw, 40px);
  border-radius: 22px; background: #fff; border: 2px solid #f3e3c4;
}
.bottles__text { display: grid; gap: 12px; min-width: 0; max-width: 46rem; }
.bottles__text h3 { margin-bottom: 2px; }
.bottles__text p { color: var(--ink-soft); font-size: 1.0625rem; }
.bottles__sea { min-width: 0; border-radius: 18px; background: var(--sky); padding: 28px 20px 50px 40px; }
.bottles__line {
  list-style: none; margin: 0; padding: 0; position: relative;
  width: 4px; height: 300px; border-radius: 2px;
  background: repeating-linear-gradient(180deg, var(--sea) 0 10px, transparent 10px 17px);
}
.bl { position: absolute; left: 50%; top: var(--p); width: 0; height: 0; }
.bl__dot {
  position: absolute; left: -19px; top: -19px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%;
  background: #fff; border: 3px solid var(--sea); box-shadow: var(--shadow-soft);
}
.bl__dot svg { width: 24px; height: 24px; }
.bl--start .bl__dot { border-color: var(--gold); }
.bl--end .bl__dot { border-color: #22b573; }
.bl__label { position: absolute; left: 32px; top: -.8em; white-space: nowrap; font-weight: 800; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.bl__done {
  display: flex; align-items: center; gap: 5px; width: max-content; margin-top: 4px; padding: 1px 10px 1px 6px;
  border-radius: 999px; background: #dff5e9; color: var(--green); font-size: .875rem; font-weight: 800;
}
.bl__done svg { width: 15px; height: 15px; }
@media (min-width: 600px) {
  .bottles__sea { padding: 70px 96px 96px 64px; }
  .bottles__line { width: auto; height: 4px; background: repeating-linear-gradient(90deg, var(--sea) 0 10px, transparent 10px 17px); }
  .bl { left: var(--p); top: 50%; }
  .bl__dot { left: -22px; top: -22px; width: 44px; height: 44px; }
  .bl__dot svg { width: 28px; height: 28px; }
  .bl__label { left: 0; top: 30px; transform: translateX(-50%); text-align: center; }
  .bl--start .bl__label { top: auto; bottom: 30px; }
  .bl__done { margin: 4px auto 0; }
}
@media (min-width: 1200px) { .bottles { grid-template-columns: minmax(0, 10fr) minmax(0, 11fr); } }

/* ---------- Parents ---------- */
.shot--parents img { aspect-ratio: 11 / 9; object-position: 50% 0; }
@media (min-width: 900px) { .split--parents { grid-template-columns: minmax(0, 10fr) minmax(0, 11fr); } }

/* ---------- Prêt à embarquer ---------- */
.embark { position: relative; overflow: hidden; background: #3aa8dc; isolation: isolate; }
.embark__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -1; }
.embark__in { position: relative; display: grid; align-items: end; min-height: clamp(520px, 52vw, 680px); padding-block: clamp(40px, 6vw, 72px); }
.embark__card {
  display: grid; gap: 14px; max-width: 30rem; min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 26px; background: rgba(255, 253, 248, .96);
  box-shadow: 0 20px 50px rgba(10, 40, 70, .3);
}
.embark__card h2 { font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3.25rem); }
.embark__card .cta { margin-top: 6px; }
.embark__coco {
  position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 0;
  width: clamp(150px, 22vw, 290px);
  filter: drop-shadow(0 14px 20px rgba(0, 20, 40, .35));
}
@media (max-width: 759.98px) {
  .embark { background: var(--sand); }
  .embark__bg { height: 64vw; object-position: 50% 50%; inset: 0 0 auto 0; }
  .embark__in { min-height: 0; padding-top: 56vw; padding-bottom: 32px; }
  .embark__coco { top: 13vw; bottom: auto; right: auto; left: max(12px, env(safe-area-inset-left, 0px)); width: 30vw; transform: scaleX(-1); }
}

/* ---------- FAQ ---------- */
.faq { margin: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } .faq__item:last-child { grid-column: 1 / -1; } }
.faq__item { padding: 20px 22px; border-radius: 20px; background: #fff; border: 2px solid #f3e3c4; min-width: 0; }
.faq dt { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.25; margin-bottom: 8px; }
.faq dd { margin: 0; color: var(--ink-soft); }

/* ---------- Pied de page ---------- */
.footer { position: relative; background: var(--sea-deep); color: var(--on-deep-soft); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 1rem; }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -25px; height: 26px; background: var(--sea-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26'%3E%3Cpath d='M0 13c15 0 15-10 30-10s15 10 30 10 15-10 30-10 15 10 30 10v13H0z'/%3E%3C/svg%3E") repeat-x left bottom / 120px 26px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26'%3E%3Cpath d='M0 13c15 0 15-10 30-10s15 10 30 10 15-10 30-10 15 10 30 10v13H0z'/%3E%3C/svg%3E") repeat-x left bottom / 120px 26px;
}
.footer__in { display: grid; gap: 28px; }
.footer__about { display: grid; gap: 8px; max-width: 34rem; }
.footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; color: var(--on-deep); }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__nav a { color: var(--on-deep); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; display: inline-block; padding-block: 6px; }
.footer__nav a:hover { text-decoration-color: currentColor; }
.footer__copy { font-size: .9375rem; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 18px; }
@media (min-width: 900px) {
  .footer__in { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .footer__copy { grid-column: 1 / -1; }
}

/* ---------- Pages d’informations (mentions légales…) ---------- */
.doc { background: var(--paper); padding-block: clamp(40px, 6vw, 72px); }
.doc .wrap { max-width: 860px; }
.doc__in { display: grid; gap: 16px; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.5rem; margin-top: 18px; }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.doc .todo { background: #fff1b8; border-radius: 6px; padding: 0 4px; font-weight: 700; }
.doc .note { padding: 14px 18px; border-radius: 16px; background: var(--sky); font-size: 1rem; }
.back { font-weight: 700; }

/* ---------- Abonnement ---------- */
.head--center { margin-inline: auto; text-align: center; justify-items: center; }
.abo__lead { max-width: 40rem; font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); font-weight: 600; color: var(--ink-soft); }
.plans { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 34px; max-width: 920px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: 28px 24px 26px; border-radius: 24px; background: #fff;
  border: 2px solid var(--line); box-shadow: var(--shadow-soft);
}
.plan--best { border: 3px solid var(--coral); box-shadow: var(--shadow); padding-top: 34px; }
.plan__badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  padding: 6px 16px 7px; border-radius: 999px; background: var(--gold); color: var(--ink);
  font-weight: 800; font-size: .9375rem; letter-spacing: .02em; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 3px 0 #c98f12;
}
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; color: var(--ink); }
.plan__amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 2.1rem + 1.4vw, 3.125rem); line-height: 1; white-space: nowrap; }
.plan__per { font-weight: 700; font-size: 1.125rem; color: var(--ink-soft); white-space: nowrap; }
.plan__offer { padding: 10px 14px; border-radius: 14px; background: var(--sand); border: 2px dashed #f2cf8a; font-weight: 600; font-size: 1rem; line-height: 1.45; }
.plan__offer strong { color: var(--coral); font-weight: 800; }
.plan__list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.plan__list li { position: relative; padding-left: 34px; line-height: 1.4; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: #dff6e9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23137a49' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.plan__btn { margin-top: auto; width: 100%; min-height: 56px; padding: 10px 18px; font-size: 1.125rem; line-height: 1.2; }
.btn--alt { background: #fff; color: var(--coral-edge); box-shadow: inset 0 0 0 2px var(--coral), 0 5px 0 var(--coral-edge), 0 10px 22px rgba(16, 45, 70, .12); }
.btn--alt:hover { background: #fff1ec; }
.btn--alt:active { box-shadow: inset 0 0 0 2px var(--coral), 0 1px 0 var(--coral-edge), 0 4px 10px rgba(16, 45, 70, .12); }
.plans__note { max-width: 40rem; margin: 26px auto 0; text-align: center; font-weight: 600; color: var(--ink-soft); }
.plans__apercu { max-width: 40rem; margin: 14px auto 0; padding: 10px 16px; border-radius: 14px; background: #fff; border: 2px dashed #9cc9e6; text-align: center; font-size: .9375rem; font-weight: 700; color: var(--sea-deep); }
.abo__faq { margin-top: clamp(48px, 6vw, 72px); }
.abo__faq h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); font-weight: 700; margin-bottom: 18px; }
.faq--abo .faq__item { border-color: var(--line); }
@media (max-width: 479.98px) { .plan { padding: 26px 18px 22px; } .plan--best { padding-top: 32px; } }
/* Avec le lien « Abonnement », le menu a quatre liens : un peu plus serré entre 1100 et 1200 px. */
@media (min-width: 1100px) and (max-width: 1199.98px) {
  .nav__links:has(> li:nth-child(4)) a { padding: 10px 7px; font-size: .9375rem; white-space: nowrap; }
}
