/* ZéVé Plongée · feuille de styles
   Couleurs et polices : tout est réglé dans :root. Pour un autre client, on change ces lignes. */

:root {
  --abysse: #0B2638;
  --ocean: #0E5A78;
  --surface: #147A92;
  --lagon: #22B5B0;
  --lagon-clair: #D6F5F2;
  --ecume: #E8F7F6;
  --sable: #F6EFE2;
  --orange: #FF6B35;
  --orange-hover: #FF8A5C;
  --blanc: #FFFFFF;
  --texte: #0B2638;
  --texte-doux: #33505F;
  --focus: #0B2638;

  /* Polices du système : rien à charger, donc rapide et sans service extérieur. */
  --font-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --gutter: 16px;
  --radius: 22px;
  --header-h: 64px;
  --shadow: 0 18px 40px -22px rgba(3, 18, 28, .55);
}

@media (min-width: 768px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  background: var(--abysse);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.motion { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--texte);
  font: 1.0625rem/1.6 var(--font-text);
  /* Fond de secours si le script ne se charge pas : la même descente, en dégradé fixe. */
  background: linear-gradient(180deg, #147A92 0, #0E5A78 22%, #0A3550 60%, #061826 100%);
  background-color: var(--abysse);
}
.js body { background: transparent; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1.12; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.on-water, .hero, .page-hero, .site-header, .site-footer, .descent, .contact-card, .cta-final { --focus: #FFD166; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--abysse); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }

mark.todo {
  background: #FFE45C; color: var(--abysse); padding: .05em .3em; border-radius: 4px;
  font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ------------------------------------------------------------ fond animé */
.ocean {
  position: fixed; inset: 0; z-index: -1;
  width: 100vw; height: 100vh; height: 100lvh;
  pointer-events: none;
}

/* ------------------------------------------------------------ boutons et liens */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 700 1rem/1.2 var(--font-text); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-orange { background: var(--orange); color: var(--abysse); }
.btn-orange:hover { background: var(--orange-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, .75); color: var(--blanc); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-ghost-dark { border-color: var(--abysse); color: var(--abysse); }
.btn-ghost-dark:hover { background: rgba(11, 38, 56, .08); }
.motion .btn:active { transform: translateY(1px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.actions--center { justify-content: center; }

.text-link {
  position: relative; font-weight: 700; color: var(--ocean);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.text-link::after { content: " →"; }
.text-link::before { content: ""; position: absolute; inset: -12px -6px; }
button.text-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }

.kicker {
  margin: 0 0 10px; font: 700 .8125rem/1.3 var(--font-text);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ocean);
}
.lead { font-size: 1.15rem; line-height: 1.55; color: var(--texte-doux); max-width: 62ch; }

/* Texte posé sur l'eau */
.on-water, .hero, .page-hero { color: var(--blanc); }
.on-water .kicker, .hero .kicker, .page-hero .kicker { color: var(--lagon-clair); }
.on-water .lead, .hero .lead, .page-hero .lead { color: #F2FBFA; }
.hero h1, .page-hero h1, .on-water h2 { text-shadow: 0 2px 18px rgba(3, 18, 28, .35); }

/* ------------------------------------------------------------ en-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 30, 45, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(214, 245, 242, .12);
  color: var(--sable);
}
.nav-wrap { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 128px; height: auto; }

.depth-pill {
  margin: 0 0 0 auto; padding: 4px 12px; border-radius: 999px;
  border: 1.5px solid rgba(34, 181, 176, .7); color: var(--lagon-clair);
  font: 700 .875rem/1.4 var(--font-text); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.depth-pill span { display: inline-block; min-width: 2ch; text-align: right; }

.nav-toggle {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  background: none; border: 0; color: var(--sable); cursor: pointer; border-radius: 12px;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .25s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul { list-style: none; }
.site-nav a { text-decoration: none; font-weight: 600; }
.site-nav a[aria-current="page"]:not(.nav-cta) { color: var(--lagon-clair); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-cta { background: var(--orange); color: var(--abysse) !important; border-radius: 999px; padding: 10px 20px; font-weight: 700 !important; }

@media (max-width: 899px) {
  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h));
    background: #081E2D; border-bottom: 1px solid rgba(214, 245, 242, .15);
    opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0);
    transition: opacity .25s, clip-path .3s, visibility 0s .3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); transition: opacity .25s, clip-path .3s; }
  .site-nav ul { display: grid; gap: 4px; padding: 12px var(--gutter) 22px; }
  .site-nav li a { display: flex; align-items: center; min-height: 52px; padding: 0 8px; font-size: 1.15rem; }
  .site-nav .nav-cta { justify-content: center; margin-top: 10px; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .depth-pill { margin-left: 24px; }
  .site-nav { margin-left: auto; }
  .site-nav ul { display: flex; align-items: center; gap: 26px; }
  .site-nav a:not(.nav-cta) { position: relative; padding: 8px 0; }
}
@media (min-width: 1200px) { .depth-pill { display: none; } }

/* ------------------------------------------------------------ profondimètre (écrans de 1200 px et plus)
   Il a son propre fond foncé : il reste lisible sur l'eau comme sur les sections claires. */
.gauge { display: none; }
@media (min-width: 1200px) and (max-width: 1365px) { :root { --container: 1060px; } }
@media (min-width: 1200px) {
  .gauge {
    display: block; position: fixed; z-index: 40; right: 12px; top: calc(50% + var(--header-h) / 2);
    width: 52px; height: min(58vh, 480px); transform: translateY(-50%); pointer-events: none;
    padding: 30px 0 18px; border-radius: 18px;
    background: rgba(6, 24, 36, .78); border: 1px solid rgba(214, 245, 242, .2);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .6);
    color: var(--lagon-clair); font: 700 .75rem/1 var(--font-text); font-variant-numeric: tabular-nums;
  }
  .gauge-title { position: absolute; top: 10px; left: 0; right: 0; margin: 0; text-align: center; font-size: .6875rem; opacity: .75; }
  .gauge-track { position: relative; height: 100%; }
  .gauge-scale { list-style: none; position: absolute; top: 0; bottom: 0; right: 14px; width: 0; border-right: 2px solid rgba(214, 245, 242, .45); }
  .gauge-scale li { position: absolute; right: 8px; top: calc(var(--d) / 40 * 100%); transform: translateY(-50%); }
  .gauge-scale li::after { content: ""; position: absolute; right: -10px; top: 50%; width: 8px; height: 2px; margin-top: -1px; background: currentColor; }
  .gauge-cursor {
    position: absolute; right: 9px; top: calc(var(--depth, 0) / 40 * 100%); transform: translateY(-50%);
    display: flex; align-items: center; gap: 4px; transition: top .12s linear;
  }
  .gauge-cursor i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 107, 53, .3); }
  .gauge-cursor b {
    position: absolute; right: 22px; white-space: nowrap; background: var(--orange); color: var(--abysse);
    padding: 4px 8px; border-radius: 999px; font-size: .8125rem; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
  }
}

/* ------------------------------------------------------------ accueil : premier écran */
.hero { position: relative; padding: 48px 0 84px; }
.hero-grid { display: grid; gap: 8px; align-items: center; }
.hero h1 .kicker { display: block; }
.display { display: block; font-size: clamp(2.35rem, 6.2vw, 4.3rem); letter-spacing: -.01em; }
.hero .lead { margin-top: 20px; }
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-proof li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(8, 30, 45, .42); border: 1px solid rgba(214, 245, 242, .25); font-size: .9375rem; font-weight: 600;
}
.hero-proof li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--lagon); }
.hero-visual { position: relative; height: 230px; }
/* Le canvas du plongeur couvre tout le premier écran : la lampe et les bulles peuvent déborder de sa zone. */
.hero, .page-hero { position: relative; overflow: hidden; }
.diver { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero > .container, .page-hero > .container, .scroll-cue { position: relative; z-index: 1; }
.scroll-cue { position: absolute; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--lagon-clair); text-decoration: none; font-weight: 700; font-size: .9375rem; padding: 6px 12px;
}
.scroll-cue svg { width: 22px; height: 22px; }
@media (max-width: 899px) { .scroll-cue { display: none; } .hero { padding-bottom: 40px; } }
.motion .scroll-cue svg { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

@media (min-width: 900px) {
  .hero { min-height: min(calc(100svh - var(--header-h)), 860px); display: flex; align-items: center; padding: 56px 0 96px; }
  .hero > .container { width: min(100% - 2 * var(--gutter), var(--container)); }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 32px; }
  .hero-visual { height: 440px; }
}

/* ------------------------------------------------------------ titres de section */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.section-head h2 { font-size: clamp(1.8rem, 3.8vw, 2.75rem); }
.section-head .lead { margin: 14px 0 0; }
.section-sable { background: var(--sable); }
.section-ecume { background: var(--ecume); }

/* ------------------------------------------------------------ la descente (formations par profondeur) */
.descent { padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 110px); color: var(--blanc); }
/* La ligne de descente : pointillée, puis pleine derrière le plongeur (--fait, réglé par ocean.js). */
.descent-track { position: relative; --ligne: 12px; }
.descent-list { list-style: none; position: relative; display: grid; gap: clamp(40px, 7vw, 80px); }
.descent-list::before, .descent-list::after {
  content: ""; position: absolute; left: calc(var(--ligne) - 1px); top: 8px; width: 2px;
}
.descent-list::before { bottom: 8px; background: repeating-linear-gradient(180deg, rgba(214, 245, 242, .6) 0 8px, transparent 8px 16px); }
.descent-list::after { height: var(--fait, 0px); max-height: calc(100% - 16px); background: linear-gradient(180deg, var(--lagon), var(--orange)); border-radius: 2px; }
.line-diver {
  position: absolute; z-index: 2; top: 0; left: calc(var(--ligne) - 24px);
  width: 48px; height: 220px; pointer-events: none; will-change: transform;
}
html:not(.js) .line-diver { display: none; }
.level { position: relative; display: grid; gap: 14px; padding-left: 40px; }
.level-depth { margin: 0; }
.level-depth span {
  position: relative; display: inline-block; font: 800 clamp(1.6rem, 3.4vw, 2.4rem)/1 var(--font-display); color: var(--blanc);
  text-shadow: 0 2px 16px rgba(3, 18, 28, .4);
}
.level-depth span::before {
  content: ""; position: absolute; left: -36px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(255, 107, 53, .25);
}
.level-card {
  display: grid; overflow: hidden; border-radius: var(--radius);
  background: var(--sable); color: var(--texte); box-shadow: var(--shadow);
}
.level-body { padding: 24px 22px 26px; }
.level-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.level-photo { border-radius: 0; border: 0; border-bottom: 2px dashed rgba(14, 90, 120, .3); aspect-ratio: 2 / 1; }

@media (min-width: 900px) {
  /* Colonne des profondeurs 150 px, couloir de la ligne 74 px (centre à 187 px), puis la carte. */
  .descent-track { --ligne: 187px; }
  .line-diver { left: calc(var(--ligne) - 60px); width: 120px; height: 300px; }
  .level { grid-template-columns: 150px 1fr; padding-left: 0; align-items: start; gap: 74px; }
  .level-depth { padding-top: 26px; text-align: right; }
  .level-depth span::before { left: auto; right: -45px; }
  .level-card { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .level-card--wide { grid-template-columns: 1fr; }
  .level-photo { border-bottom: 0; border-right: 2px dashed rgba(14, 90, 120, .3); aspect-ratio: auto; min-height: 100%; }
  .level-body { padding: 30px 32px 32px; }
}

.meta { display: grid; gap: 6px; margin: 16px 0 0; font-size: .96875rem; }
.meta div { display: grid; grid-template-columns: 4.2em 1fr; gap: 10px; }
.meta dt { font-weight: 700; color: var(--ocean); }
.meta dd { margin: 0; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags li { padding: 6px 12px; border-radius: 999px; border: 1.5px solid rgba(14, 90, 120, .35); font-size: .9375rem; font-weight: 600; }

/* ------------------------------------------------------------ photos (provisoires pour l'instant) */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--ocean); aspect-ratio: 4 / 3; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .credit { z-index: 1; }
@media (min-width: 900px) {
  /* Dans les cartes de la descente, la photo prend la hauteur de la carte, sans déborder de sa colonne. */
  .level-card .photo { aspect-ratio: auto; min-height: 280px; height: 100%; }
}
.photo .credit {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 6px; text-align: right;
  background: linear-gradient(180deg, transparent, rgba(3, 14, 22, .72)); font-size: .75rem; line-height: 1.3;
}
.photo .credit a { color: #F2FBFA; text-decoration: none; }
.photo .credit a:hover { text-decoration: underline; }
.level-photo.photo, .place .photo { border-radius: 0; }
.course-photo.photo { border-radius: 18px; box-shadow: var(--shadow); }
@media (max-width: 899px) { .level-photo.photo { aspect-ratio: 16 / 9; } }
@media (max-width: 767px) { .place .photo { aspect-ratio: 16 / 9; } }

/* ------------------------------------------------------------ emplacements photo (en attente) */
.photo-slot {
  margin: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center;
  aspect-ratio: 4 / 3; padding: 20px; border-radius: 16px;
  border: 2px dashed rgba(14, 90, 120, .35); color: var(--ocean);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .7), transparent 60%),
    repeating-linear-gradient(135deg, rgba(34, 181, 176, .10) 0 12px, rgba(34, 181, 176, .03) 12px 24px),
    var(--ecume);
}
.photo-slot svg { width: 34px; height: 34px; }
.photo-slot figcaption { display: grid; gap: 2px; max-width: 30ch; font-size: .875rem; line-height: 1.4; }
.photo-slot strong { font-size: .9375rem; }

/* ------------------------------------------------------------ lieux */
.place-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .place-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.place { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius); background: var(--sable); color: var(--texte); box-shadow: var(--shadow); }
.place .photo-slot { border-radius: 0; border: 0; border-bottom: 2px dashed rgba(14, 90, 120, .3); }
@media (max-width: 767px) {
  .place .photo-slot { aspect-ratio: 2 / 1; }
  /* Carrousel au doigt : contain: paint évite que la page entière s'élargisse (piège connu). */
  .place-grid--slide {
    grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    contain: paint; padding-bottom: 10px; scrollbar-width: thin;
  }
  .place-grid--slide .place { scroll-snap-align: start; }
}
.swipe-hint { display: none; margin: 10px 0 0; font-size: .875rem; font-weight: 600; color: var(--lagon-clair); }
.swipe-hint::after { content: " →"; }
@media (max-width: 767px) { .swipe-hint { display: block; } }
.tags-more { border-style: dashed !important; color: var(--texte-doux); }
.place-body { padding: 20px 22px 24px; }
.place-body h3 { font-size: 1.35rem; margin-bottom: 8px; }
.place-where { display: flex; gap: 6px; align-items: flex-start; font-size: .9375rem; font-weight: 600; color: var(--ocean); }
.place-where svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }

/* ------------------------------------------------------------ équipe */
.person-grid { display: grid; gap: 22px; }
@media (min-width: 768px) { .person-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: start; background: var(--blanc); border-radius: var(--radius); padding: 20px; }
.person .portrait { aspect-ratio: 1; padding: 10px; border-radius: 16px; }
.person .portrait figcaption span { display: none; }
.person h3 { font-size: 1.35rem; }
.person-role { margin: 4px 0 10px; font-weight: 700; color: var(--ocean); }
.person-note { font-size: .9375rem; margin: 0; }
@media (min-width: 1024px) { .person { grid-template-columns: 150px 1fr; padding: 26px; } }

/* ------------------------------------------------------------ trouver ma formation */
.finder { display: grid; gap: 28px; }
@media (min-width: 1024px) { .finder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.finder-form { display: grid; gap: 22px; }
.finder-q { margin: 0; padding: 0; border: 0; min-width: 0; }
.finder-q legend { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 800 1.15rem/1.3 var(--font-display); }
.finder-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--abysse); color: var(--sable); font-size: .9375rem; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border-radius: 999px;
  background: var(--blanc); border: 2px solid rgba(11, 38, 56, .2); font-weight: 600; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.chip input:checked + span { background: var(--abysse); border-color: var(--abysse); color: var(--sable); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.finder-results { display: grid; gap: 14px; }
.finder-hint { margin: 0; padding: 22px; border-radius: 16px; border: 2px dashed rgba(11, 38, 56, .2); color: var(--texte-doux); }
.result { background: var(--blanc); border-radius: 18px; padding: 20px 22px; box-shadow: 0 10px 26px -20px rgba(3, 18, 28, .5); }
.result h3 { font-size: 1.3rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.result .kicker { margin-bottom: 6px; }
.result p { margin: 8px 0 0; }
.result .actions { margin-top: 14px; }
.result-note { font-size: .9375rem; color: var(--texte-doux); }
.depth-badge {
  display: inline-block; vertical-align: middle; padding: 3px 10px; border-radius: 999px;
  background: var(--ocean); color: var(--blanc); font: 700 .8125rem/1.4 var(--font-text); letter-spacing: .02em; white-space: nowrap;
}

/* ------------------------------------------------------------ prochaines dates */
.dates { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.dates-status, .dates-fallback { grid-column: 1 / -1; margin: 0; padding: 20px; border-radius: 16px; border: 2px dashed rgba(11, 38, 56, .2); color: var(--texte-doux); }
html:not(.js) .dates > .dates-status { display: none; }
.date-card {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start;
  background: var(--blanc); border-radius: 18px; padding: 18px; box-shadow: 0 10px 26px -20px rgba(3, 18, 28, .5);
}
.date-day {
  margin: 0; display: grid; justify-items: center; padding: 8px 4px; border-radius: 14px;
  background: var(--abysse); color: var(--sable); line-height: 1.1; text-align: center;
}
.date-day span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.date-day strong { font: 800 1.6rem/1.1 var(--font-display); }
.date-body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.date-meta { margin: 0 0 6px; font-size: .9375rem; color: var(--texte-doux); }
.date-places { margin: 0 0 12px; font-weight: 700; font-size: .9375rem; color: #1B6E3C; }
.date-card.is-full .date-places { color: #B3261E; }
.date-card.is-full .date-day { background: #5B6B74; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.date-tag { position: absolute; bottom: 12px; right: 12px; padding: 2px 8px; border-radius: 999px; background: #FFE45C; color: var(--abysse); font-size: .75rem; font-weight: 700; }
.dates-note { grid-column: 1 / -1; margin: 0; font-size: .875rem; color: var(--texte-doux); }
.dates-more { margin: 22px 0 0; }
@media (max-width: 767px) {
  .dates:not(.dates--compact) {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; contain: paint; padding-bottom: 8px;
  }
  .dates:not(.dates--compact) .date-card { scroll-snap-align: start; }
}
.contact-dates-title { font-size: 1.15rem; margin: 26px 0 12px; color: var(--blanc); }
.dates--compact { grid-template-columns: 1fr; gap: 10px; }
.dates--compact .date-card { padding: 14px; grid-template-columns: 54px 1fr; color: var(--texte); }
.dates--compact .date-day strong { font-size: 1.3rem; }
.dates--compact .dates-status, .dates--compact .dates-note { color: #D9E6EA; border-color: rgba(214, 245, 242, .25); }
.dates--compact .text-link { color: var(--ocean); }

.credits-list { padding-left: 1.2em; }
.credits-list li { margin-bottom: 6px; }

/* ------------------------------------------------------------ appel final */
.cta-final { text-align: center; }
.cta-inner { max-width: 720px; }
.cta-inner .lead { margin-inline: auto; }
.cta-inner .actions { justify-content: center; }
.cta-final h2 { font-size: clamp(2rem, 4.4vw, 3rem); }

/* ------------------------------------------------------------ pages intérieures */
.page-hero { padding: clamp(40px, 7vw, 84px) 0 clamp(36px, 6vw, 64px); }
.page-hero .lead { margin-top: 18px; }
.page-hero--short .display { font-size: clamp(2rem, 5vw, 3.4rem); }
.page-hero-grid { display: grid; gap: 12px; align-items: center; }
.hero-visual--small { height: 180px; }
@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: 1.3fr .7fr; }
  .hero-visual--small { height: 280px; }
}
.chip-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid rgba(214, 245, 242, .55); text-decoration: none; font-weight: 600;
}
.chip-nav a:hover { background: rgba(255, 255, 255, .12); }

.course { padding: clamp(56px, 8vw, 96px) 0; background: var(--sable); }
.course:nth-of-type(odd) { background: var(--ecume); }
.course-grid { display: grid; gap: 28px; align-items: start; }
.course h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.course h2 .depth-badge { margin-left: 6px; }
.course h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.course .lead { margin-top: 14px; }
.steps { list-style: none; display: grid; gap: 10px; }
.steps li { position: relative; padding-left: 30px; }
.steps li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid var(--lagon); }
.course .meta { margin-top: 24px; padding: 18px 20px; background: rgba(255, 255, 255, .7); border-radius: 16px; }
.next { margin-top: 18px; }
.course-photo { aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
  .course-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; }
  .course-photo { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 5; }
}
.course--specs { background: var(--sable) !important; }
.spec-group { margin-top: 34px; }
.spec-group h3 { font-size: 1.3rem; margin: 0 0 14px; }
.spec-list { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.spec { background: var(--blanc); border-radius: 16px; padding: 18px 20px; border: 1px solid rgba(11, 38, 56, .08); }
.spec h4 { font-size: 1.125rem; }
.spec-org { margin: 4px 0 8px; font-size: .8125rem; font-weight: 700; color: var(--ocean); letter-spacing: .02em; }
.spec p:last-child { margin: 0; font-size: .96875rem; }

/* Tarifs */
.table-wrap { overflow-x: auto; contain: paint; border-radius: 16px; background: var(--blanc); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid rgba(11, 38, 56, .1); vertical-align: top; }
.price-table thead th { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ocean); }
.price-table tbody th span { display: block; font-weight: 500; font-size: .875rem; color: var(--texte-doux); }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.note { margin-top: 18px; font-size: .96875rem; }

/* Questions fréquentes */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--blanc); border-radius: 16px; }
.faq-item summary {
  position: relative; list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; min-height: 56px;
  font: 700 1.0625rem/1.4 var(--font-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ecume); color: var(--ocean); font-size: 1.3rem; line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 20px 18px; }
.faq-a p { margin: 0; }
.faq-more { margin-top: 24px; }

/* Contact */
.contact-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: 36px; } }
.contact-form { background: var(--blanc); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); display: grid; gap: 18px; }
.contact-form h2 { font-size: 1.6rem; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 700; font-size: .96875rem; }
.optional { font-weight: 400; color: var(--texte-doux); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid rgba(11, 38, 56, .35); background: var(--blanc); color: var(--texte); font: inherit;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--lagon); outline-offset: 1px; border-color: var(--abysse); }
.field [aria-invalid="true"] { border-color: #C62828; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-legal { font-size: .875rem; color: var(--texte-doux); margin: 0; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; }
.form-merci {
  display: grid; justify-items: center; gap: 12px; text-align: center; padding: 40px 24px; border-radius: var(--radius);
  background: var(--ecume); border: 2px solid rgba(34, 181, 176, .55); color: #13706D;
}
.form-merci:focus { outline: none; }
.form-merci h3 { font-size: 1.8rem; color: var(--abysse); }
.form-merci p { margin: 0; max-width: 46ch; color: var(--texte); }
.form-merci .form-merci-texte { font-weight: 700; font-size: 1.1rem; }
.form-merci .btn { margin-top: 8px; }
.form-status.is-error { color: #B3261E; }
.form-status.is-ok { color: #1B6E3C; }
.contact-card { background: var(--abysse); color: var(--sable); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); }
.contact-card h2 { font-size: 1.4rem; margin-bottom: 16px; }
.contact-card > p a, .contact-list a { color: var(--blanc); }
.contact-list { list-style: none; display: grid; gap: 8px; margin-bottom: 18px; }
.contact-list a { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; font-weight: 700; font-size: 1.0625rem; word-break: break-word; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--lagon); }
.contact-delay { margin: 0; }

/* Mentions légales */
.legal h2 { font-size: 1.35rem; margin: 32px 0 10px; }
.legal h2:first-child { margin-top: 0; }

.page-404 { min-height: 60vh; display: flex; align-items: center; }

/* ------------------------------------------------------------ pied de page */
.site-footer { background: #071B28; color: var(--sable); padding: 56px 0 24px; }
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { width: 171px; height: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; color: #D9E6EA; }
.footer-title { font-weight: 800; font-family: var(--font-display); margin-bottom: 10px; color: var(--blanc); }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; color: #D9E6EA; text-decoration: none; }
.footer-col a:hover { color: var(--blanc); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(214, 245, 242, .15); font-size: .875rem; color: #B8CCD3; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: inherit; }

/* ------------------------------------------------------------ barre d'actions mobile */
.mobile-actions { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: 76px; }
  .mobile-actions {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(8, 30, 45, .95); border-top: 1px solid rgba(214, 245, 242, .15);
  }
  .mobile-actions a {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 14px;
    color: var(--sable); text-decoration: none; font-weight: 700; font-size: .9375rem; background: rgba(255, 255, 255, .08);
  }
  .mobile-actions svg { width: 20px; height: 20px; }
  .mobile-actions .is-primary { background: var(--orange); color: var(--abysse); }
}

/* ------------------------------------------------------------ apparitions au défilement (ajoutées par script) */
/* Seulement un glissement : le contenu reste visible même si l'animation ne se joue pas (onglet en arrière-plan, capture). */
.motion .reveal { transform: translateY(26px); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal.is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
