/* =========================================================
   Hyères Marche Nordique
   ========================================================= */

/* Palette relevée sur la presqu'île de Giens :
   eau profonde → lagon turquoise → sable des salins → tuiles.  */
:root {
  --deep:          #07333d;  /* eau profonde, au large des rochers */
  --deep-soft:     #0d5566;  /* bleu-vert des herbiers             */
  --lagoon:        #14919b;  /* turquoise des hauts-fonds — décoratif */
  --lagoon-light:  #ddf1f0;  /* écume                              */
  --sand:          #f5efe1;  /* sable des salins                   */
  --terracotta:    #fbb900;  /* accent ocre                        */
  --pine:          #4e6b45;  /* pins d'Alep                        */
  --ink:           #0e2b31;
  --ink-soft:      #4a6a70;
  --line:          #dfe7e4;
  --white:         #ffffff;

  --wrap:   1140px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(7,51,61,.05), 0 12px 32px -12px rgba(7,51,61,.24);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--deep);
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 750; margin-bottom: .8em; }
h3 { font-size: 1.12rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
/* Le turquoise pur (--lagoon) tombe à 3,3:1 sur fond clair : il reste
   réservé aux aplats et aux traits. Tout ce qui est texte utilise
   --deep-soft, qui tient 7:1 sur sable comme sur blanc. */
a { color: var(--deep-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--deep); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--deep); color: #fff; padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--deep-soft); margin-bottom: .9em;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px;
  background: var(--deep); color: #fff;
  font-weight: 650; font-size: .95rem; text-decoration: none;
  border: 1.5px solid var(--deep);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--deep-soft); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-ghost { background: transparent; color: var(--deep); border-color: var(--line); }
.btn-ghost:hover { background: var(--lagoon-light); color: var(--deep); border-color: var(--lagoon); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 108px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--deep); }
.brand-logo { height: 68px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .93rem; font-weight: 550; }
.nav a:hover { color: var(--deep); }
.nav a.btn { color: #fff; }

.nav-toggle, .burger { display: none; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 88px 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 24px 28px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .28s ease; visibility: hidden;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a.btn { margin-top: 18px; border-bottom: none; justify-content: center; }
  .nav-toggle:checked ~ .nav { transform: translateY(0); visibility: visible; }

  .burger {
    display: block; width: 44px; height: 44px; cursor: pointer;
    position: relative; border-radius: 10px;
  }
  .burger span, .burger span::before, .burger span::after {
    content: ""; position: absolute; left: 12px; width: 20px; height: 2px;
    background: var(--deep); border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
  }
  .burger span { top: 21px; }
  .burger span::before { top: -6px; left: 0; }
  .burger span::after  { top: 6px;  left: 0; }
  .nav-toggle:checked ~ .burger span { background: transparent; }
  .nav-toggle:checked ~ .burger span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked ~ .burger span::after  { transform: translateY(-6px) rotate(-45deg); }
}

/* Pages sans menu (mentions légales) : le seul lien, « Retour au site », reste visible à la place du burger. */
@media (max-width: 900px) {
  .nav.nav-back {
    position: static; inset: auto; flex-direction: row; align-items: center; gap: 0;
    padding: 0; background: none; border: 0; box-shadow: none;
    transform: none; visibility: visible; transition: none;
  }
  .nav.nav-back a.btn { margin: 0; padding: 9px 18px; font-size: .88rem; }
}

/* ---------- Hero ---------- */
/* La photo aérienne est le fond ; si le fichier est absent, le bloc reste
   sur --deep et le voile ci-dessous suffit à tenir le rendu. */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--deep) url("images/hero-giens.webp") center 38% / cover no-repeat;
}
/* Voile teinté. Deux rôles distincts, d'où deux couches :
   - un écran sombre centré, qui garantit le contraste sous le bloc de texte ;
   - un voile d'ensemble plus léger, qui unifie la photo avec la palette
     sans la noyer (le lagon doit rester lisible).                        */
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 700px at 50% 42%, rgba(4,30,38,.52) 0%, rgba(4,30,38,.42) 55%,
                                             rgba(4,30,38,.2) 80%, transparent 100%),
    radial-gradient(820px 420px at 84% 2%,  rgba(201,106,63,.16), transparent 60%),
    linear-gradient(170deg, rgba(6,42,51,.44) 0%, rgba(10,79,92,.36) 46%,
                            rgba(16,121,138,.32) 78%, rgba(26,155,160,.28) 100%);
}
/* Bas du hero : une frange d'écume, puis le trait de sable qui rejoint
   la section suivante — la mer se termine sur la plage. */
.hero-bg::before,
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-repeat: no-repeat;
}
.hero-bg::before {
  opacity: .22; background-size: 140% 118px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 96 C160 40 320 152 480 104 C640 56 800 150 960 108 C1120 66 1280 140 1440 96 L1440 200 L0 200 Z'/%3E%3C/svg%3E");
  background-position: calc(var(--wave-x, 50%) + var(--wave-idle, 0%)) bottom;
}
.hero-bg::after {
  background-size: 140% 74px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%23f5efe1' d='M0 140 C180 96 300 172 520 140 C700 114 820 178 1000 148 C1180 118 1300 168 1440 138 L1440 200 L0 200 Z'/%3E%3C/svg%3E");
  background-position: calc((var(--wave-x, 50%) * -1 + 100%) - var(--wave-idle, 0%)) bottom;
}

/* Léger clapot permanent : la vague respire même sans scroll. */
@property --wave-idle {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 0%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-bg { animation: wave-idle-drift 7s ease-in-out infinite; }
}
@keyframes wave-idle-drift {
  0%, 100% { --wave-idle: -9%; }
  50%      { --wave-idle: 9%; }
}
.hero-inner { position: relative; padding: clamp(90px, 12vw, 150px) 24px; max-width: 900px; margin-inline: auto; text-align: center; }

/* En portrait, le cadrage "cover" ne retient qu'une bande étroite de la photo :
   recentré sur la baie pour garder l'eau turquoise plutôt que la pinède. */
@media (max-width: 700px) {
  .hero { background-position: 62% 58%; }
  .hero h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); }
}
.hero h1 { color: #fff; margin-bottom: .45em; text-shadow: 0 2px 12px rgba(4,20,26,.5); }
.hero .eyebrow { color: #8fd8e8; text-shadow: 0 1px 8px rgba(4,20,26,.5); }
/* Sur photo, les blancs transparents ne tiennent plus le contraste :
   le hero passe en blanc plein, la version sur aplat garde son alpha. */
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.86); max-width: 60ch; margin-inline: auto; }
.hero .lede { color: #fff; text-shadow: 0 1px 10px rgba(4,20,26,.45); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 34px 0 0; }
.hero .btn { background: var(--terracotta); border-color: var(--terracotta); color: var(--ink); }
.hero .btn:hover {
  background: color-mix(in srgb, var(--terracotta) 82%, black);
  border-color: color-mix(in srgb, var(--terracotta) 82%, black);
}
.hero .btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.34); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.14); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--sand); }
/* Sur fond blanc, les cartes prennent un voile turquoise très léger
   pour garder le même relief que sur les sections sable. */
.section:not(.section-alt):not(.section-dark) :is(.card, .slot, .price) { background: #f7fbfa; }
.section:not(.section-alt):not(.section-dark) .slot-accent { background: var(--deep); }
.section-dark { background: var(--deep); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #8fd8e8; }
.lede-dark { color: rgba(255,255,255,.82); margin-inline: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.two-col-balanced { grid-template-columns: 1.25fr 1fr; align-items: start; }
@media (max-width: 860px) { .two-col, .two-col-balanced { grid-template-columns: 1fr; } }

.prose { font-size: 1.06rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose-narrow { max-width: 68ch; margin-top: 28px; }

/* ---------- Photos ---------- */
.shot { margin: 26px 0 0; }
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
/* Carré volontairement bridé : à pleine largeur de colonne il déséquilibrait
   la grille face aux trois cartes. */
.shot-square { max-width: 400px; }
.shot-square img { aspect-ratio: 1 / 1; }
.shot-wide img   { aspect-ratio: 3 / 2; }
.shot-banner { margin-bottom: 34px; }
.shot-banner img { aspect-ratio: 21 / 9; object-position: 50% 35%; }
@media (max-width: 700px) { .shot-banner img { aspect-ratio: 4 / 3; } }
.shot figcaption {
  margin-top: 10px; font-size: .86rem; color: var(--ink-soft);
}

/* ---------- Cartes ---------- */
.cards { display: grid; gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { color: var(--deep-soft); margin-bottom: .4em; }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- Horaires ---------- */
.schedule { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 760px) { .schedule { grid-template-columns: 1fr; } }
.slot {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 4px;
}
.slot-day   { font-size: 1.25rem; font-weight: 750; color: var(--deep); letter-spacing: -.02em; }
.slot-time  { font-size: 1.05rem; font-weight: 650; color: var(--deep-soft); }
.slot-note  { font-size: .88rem; color: var(--ink-soft); }
.slot-accent { background: var(--deep); border-color: var(--deep); }
.slot-accent .slot-day { color: #fff; }
.slot-accent .slot-time { color: #fff; }
.slot-accent .slot-note { color: rgba(255,255,255,.7); }

.notice {
  background: var(--lagoon-light); border-left: 4px solid var(--lagoon);
  border-radius: 0 10px 10px 0; padding: 18px 22px;
}
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notice-list li { position: relative; padding-left: 20px; font-size: .97rem; color: var(--deep-soft); }
.notice-list li::before { content: "–"; position: absolute; left: 0; color: var(--lagoon); font-weight: 700; }

/* ---------- Coach ---------- */
.coach { display: grid; grid-template-columns: 485px 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .coach { grid-template-columns: 1fr; } }
.coach-photo-stack { position: relative; aspect-ratio: 3 / 4; margin-top: 22px; }
.coach-photo-item {
  position: absolute; inset: 0; margin: 0; border-radius: var(--radius);
  overflow: hidden; background: var(--lagoon-light); box-shadow: var(--shadow);
  transition: transform .35s ease;
}
.coach-photo-item img { width: 100%; height: 100%; object-fit: cover; }
.coach-photo-behind { z-index: 0; transform: translate(22px, 22px) rotate(4deg); }
.coach-photo-behind img { filter: blur(2px); opacity: .82; transition: filter .35s ease, opacity .35s ease; }
.coach-photo-front { z-index: 1; }
.coach-photo-front img { transition: filter .35s ease, opacity .35s ease; }
/* Survol de la partie visible de la photo du dessous : les deux permutent. */
.coach-photo-behind:hover { z-index: 2; transform: translate(0, 0) rotate(0deg); }
.coach-photo-behind:hover img { filter: blur(0); opacity: 1; }
.coach-photo-behind:hover ~ .coach-photo-front { transform: translate(22px, 22px) rotate(-4deg); }
.coach-photo-behind:hover ~ .coach-photo-front img { filter: blur(2px); opacity: .82; }
/* Sticker fixe : reste toujours au même endroit, au-dessus des photos,
   qu'elles soient en train de permuter ou non. */
.coach-badge {
  position: absolute; top: -22px; left: -14px; z-index: 3;
  background: var(--terracotta); color: var(--ink); font-size: .8rem; font-weight: 750;
  letter-spacing: .02em; padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow);
  transform: rotate(-4deg); transition: transform .35s ease;
}
/* Le sticker ne suit pas les photos, mais frémit un peu pour rester lié
   au geste quand elles permutent. */
.coach-photo-stack:has(.coach-photo-behind:hover) .coach-badge {
  transform: rotate(2deg) scale(1.06);
}
.coach-text h2 { margin-bottom: .2em; }
.coach-role { font-weight: 650; color: var(--deep-soft); margin-bottom: 1.2em; }
.coach-text p { color: var(--ink-soft); }
.coach-text .btn { margin-top: 8px; }
/* Petit sticker qui amène le bouton, dans le même esprit que le badge photo. */
.coach-text .coach-cta-question {
  display: block; width: fit-content; color: var(--ink); background: var(--terracotta);
  font-weight: 750; font-size: .92rem; letter-spacing: .01em;
  padding: 7px 15px; border-radius: 5px 12px 5px 12px; box-shadow: var(--shadow);
  transform: rotate(-2.5deg); margin: 10px 0 18px;
}

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; padding-top: 32px; }
@media (max-width: 1040px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing { grid-template-columns: 1fr; } }
.price {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px 32px;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.price:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.price-featured {
  border: 2px solid var(--deep); box-shadow: var(--shadow);
}
@media (min-width: 881px) {
  .price-featured { transform: translateY(-18px) scale(1.05); padding-top: 50px; padding-bottom: 46px; }
  .price-featured:hover { transform: translateY(-20px) scale(1.05); }
}
.price-badge {
  position: absolute; top: -12px; left: 28px;
  background: var(--deep); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.price-badge-new { background: var(--terracotta); color: var(--ink); }
.price h3 { color: var(--ink-soft); font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .6em; }
.price-amount { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; color: var(--deep); margin: 0 0 1em; line-height: 1; }
.price-amount span { font-size: 1.4rem; font-weight: 650; }
.price ul { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 10px; }
.price li { position: relative; padding-left: 26px; font-size: .95rem; color: var(--ink-soft); }
.pps-link {
  display: inline-block; margin-top: 6px; padding: 4px 11px; border-radius: 999px;
  background: var(--lagoon-light); color: var(--deep-soft); font-size: .78rem; font-weight: 650;
  text-decoration: none; transition: background .15s ease, color .15s ease;
}
.pps-link:hover { background: var(--lagoon); color: #fff; }
.price li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 8px;
  border-left: 2px solid var(--lagoon); border-bottom: 2px solid var(--lagoon);
  transform: rotate(-45deg);
}
.pricing-free {
  margin: 34px 0 0; text-align: center; font-size: 1.05rem; color: var(--deep-soft);
}
.pricing-free strong { color: color-mix(in srgb, var(--terracotta) 55%, black); }

/* ---------- Inscription ---------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 26px; }
.steps li { counter-increment: s; position: relative; padding-left: 60px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--lagoon-light); color: var(--deep);
  display: grid; place-items: center; font-weight: 750; font-size: 1.05rem;
}
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

.download {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 30px; text-align: center;
  box-shadow: var(--shadow);
}
.download h3 { font-size: 1.3rem; margin-bottom: .9em; }
.download .btn { width: 100%; margin: 0 0 8px; }
.download-note { font-size: .88rem; color: var(--ink-soft); margin: 16px 0 0; }

/* Bascule "Remplissez le formulaire en ligne" : case à cocher masquée +
   étiquette cliquable stylée en bouton, même principe que le menu mobile
   (pas de JS nécessaire pour l'ouverture). */
.download-toggle { position: absolute; left: -9999px; }
.download-online-toggle { cursor: pointer; }
.download-pdf-link {
  display: inline-block; margin: 0 0 4px; font-size: .86rem; font-weight: 600;
  color: var(--deep-soft); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.download-pdf-link:hover { color: var(--deep); }
.bf-pdf-link { display: block; margin: 10px 0 0; text-align: center; }
.bulletin-form { display: none; margin-top: 22px; text-align: left; }
.download-toggle:checked ~ .bulletin-form { display: block; }
.download-toggle:checked ~ .download-online-toggle,
.download-toggle:checked ~ .download-pdf-link { display: none; }

.bf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .bf-row { grid-template-columns: 1fr; } }
.bf-field { margin-bottom: 16px; }
.bf-field label {
  display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 6px;
}
.bf-field input, .bf-field select {
  width: 100%; background: #f7fbfa; border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; font: inherit; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.bf-field input:focus, .bf-field select:focus {
  outline: none; border-color: var(--lagoon); background: #fff;
}
.bf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bf-consent {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px;
  font-size: .86rem; color: var(--ink-soft); cursor: pointer;
}
.bf-consent input { flex: none; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--deep); }
.bulletin-form .btn:disabled { opacity: .6; cursor: not-allowed; }
.bf-status { margin: 12px 0 0; font-size: .9rem; min-height: 1.3em; }
.bf-status[data-state="ok"] { color: #1a7a4c; }
.bf-status[data-state="error"] { color: #b1552f; }

.bf-alt-actions {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
}
.bf-alt-actions a { font-size: .85rem; color: var(--deep-soft); text-decoration: underline; text-underline-offset: 3px; }
.bf-alt-actions a:hover { color: var(--deep); }
.bf-back-top { display: inline-flex; align-items: center; gap: 4px; text-decoration: none !important; }
.bf-back-top span { font-size: 1.05em; }

/* ---------- Contact ---------- */
.contact-form { max-width: 640px; margin: 40px auto 0; }
.contact-form-title { color: #fff; font-size: 1.3rem; margin-bottom: 1em; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }
.cf-field { margin-bottom: 18px; text-align: left; }
.cf-field label {
  display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: #8fd8e8; margin-bottom: 8px;
}
.cf-field input, .cf-field textarea {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.24);
  border-radius: 10px; padding: 12px 14px; font: inherit; color: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.cf-field input::placeholder, .cf-field textarea::placeholder { color: rgba(255,255,255,.4); }
.cf-field input:focus, .cf-field textarea:focus {
  outline: none; border-color: var(--lagoon); background: rgba(255,255,255,.1);
}
.cf-field textarea { resize: vertical; min-height: 110px; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { background: var(--terracotta); border-color: var(--terracotta); color: var(--ink); }
.contact-form .btn:hover {
  background: color-mix(in srgb, var(--terracotta) 82%, black);
  border-color: color-mix(in srgb, var(--terracotta) 82%, black);
}
.contact-form .btn:disabled { opacity: .6; cursor: not-allowed; }
.cf-status { margin: 14px 0 0; font-size: .92rem; min-height: 1.4em; }
.cf-status[data-state="ok"] { color: #a6f0d8; }
.cf-status[data-state="error"] { color: #ffb4a3; }

/* ---------- Footer ---------- */
.site-footer { background: #042132; color: rgba(255,255,255,.6); padding: 44px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand { color: #fff; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; font-size: .86rem; }
.footer-contact a { color: rgba(255,255,255,.62); text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a, .footer-legal a { color: rgba(255,255,255,.62); text-decoration: none; }
.footer-nav a:hover, .footer-legal a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin: 0; flex-basis: 100%; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; }
.footer-credit { margin: 10px 0 0; flex-basis: 100%; font-size: .76rem; color: rgba(255,255,255,.4); }
.footer-credit a { color: rgba(255,255,255,.5); }
.footer-credit a:hover { color: #fff; }

/* ---------- Animations d'apparition au scroll ---------- */
/* .reveal : fondu + léger glissement vers le haut, pour les blocs sans
   transform propre (titres, textes, images, listes).
   .reveal-fade : fondu seul, pour les éléments qui ont déjà un hover à
   base de transform (cartes, tarifs) afin de ne jamais entrer en conflit
   avec lui une fois l'apparition terminée.                             */
@media (prefers-reduced-motion: no-preference) {
  .reveal, .reveal-fade {
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal { opacity: 0; transform: translateY(18px); }
  .reveal-fade { opacity: 0; }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
  .reveal-fade.is-visible { opacity: 1; }

  .reveal:nth-child(2), .reveal-fade:nth-child(2) { transition-delay: .08s; }
  .reveal:nth-child(3), .reveal-fade:nth-child(3) { transition-delay: .16s; }
  .reveal:nth-child(4), .reveal-fade:nth-child(4) { transition-delay: .24s; }
}

@media print {
  .site-header, .hero-bg, .burger { display: none; }
  body { color: #000; }
}

/* ---------- Photos de groupe (section Discipline) ---------- */
.group-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.group-photos figure { margin: 0; position: relative; }
.group-photos img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
/* Légende sur la photo (dégradé en bas) : la photo finit exactement au bas de la colonne. */
.group-photos figure::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  border-radius: 0 0 var(--radius) var(--radius); pointer-events: none;
  background: linear-gradient(to top, rgba(4,30,38,.62), rgba(4,30,38,0));
}
.group-photos figcaption {
  position: absolute; left: 12px; bottom: 9px; z-index: 1;
  font-size: .82rem; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
@media (max-width: 480px) { .group-photos { grid-template-columns: 1fr; } }

/* Au survol (souris), la photo passe devant : elle s'agrandit, se décale un peu sur le
   côté en s'inclinant, et l'autre photo, derrière, devient légèrement floue — même
   effet que la pile de photos d'Odile. */
.group-photos img { transition: filter .35s ease, opacity .35s ease, box-shadow .28s ease; }
@media (hover: hover) {
  .group-photos figure { position: relative; transition: transform .3s ease; transform-origin: left top; }
  .group-photos figure:nth-child(2) { transform-origin: right top; }
  .group-photos figure:nth-child(1):hover { transform: translate(-6px, 6px) rotate(-2.5deg) scale(1.45); z-index: 5; }
  .group-photos figure:nth-child(2):hover { transform: translate(6px, 6px) rotate(2.5deg) scale(1.45); z-index: 5; }
  .group-photos figure:hover img { box-shadow: 0 18px 44px -12px rgba(7,51,61,.45); }
  .group-photos figure:hover figcaption { opacity: 0; }
  .group-photos:has(figure:hover) figure:not(:hover) img { filter: blur(2px); opacity: .82; }
}
@media (prefers-reduced-motion: reduce) {
  .group-photos figure { transition: none; }
}

/* Zone couverte, en pied de page */
.footer-area { margin: 0; flex-basis: 100%; font-size: .84rem; color: rgba(255,255,255,.62); }

/* Section Discipline : les deux colonnes finissent au même niveau. La colonne de
   gauche s'étire sur la hauteur des cartes et les photos occupent la place restante. */
@media (min-width: 861px) {
  #discipline .two-col { align-items: stretch; }
  #discipline .two-col > div:first-child { display: flex; flex-direction: column; }
  #discipline .group-photos { flex: 1 1 auto; grid-template-rows: minmax(0, 1fr); }
  #discipline .group-photos figure { display: flex; flex-direction: column; min-height: 0; }
  #discipline .group-photos img { flex: 1 1 0; min-height: 110px; height: 0; aspect-ratio: auto; }
}

/* Discipline : cartes un peu plus aérées et pas de marge sous le dernier paragraphe,
   pour que les deux colonnes soient de hauteur quasi égale (peu de blanc dans les cartes). */
#discipline .prose p:last-child { margin-bottom: 0; }
@media (min-width: 861px) {
  #discipline .card { padding: 29px 26px; }
}

/* ---------- Arrivée sur le site : la mer se retire ---------- */
.sea-intro {
  position: fixed; inset: 0; z-index: 300; overflow: hidden; pointer-events: none;
  animation: sea-gone 0s linear 1.15s forwards;
}
@keyframes sea-gone { to { visibility: hidden; } }

.sea-layer { position: absolute; inset: 0; will-change: transform; }
.sea-layer-foam { background: #d5f0f3; color: #d5f0f3; animation: sea-recede .7s cubic-bezier(.66, 0, .3, 1) .3s forwards; }
.sea-layer-deep {
  background: linear-gradient(180deg, #0b4d5b 0%, #07333d 55%, #052a33 100%); color: #0b4d5b;
  animation: sea-recede .7s cubic-bezier(.66, 0, .3, 1) .22s forwards;
}
@keyframes sea-recede { to { transform: translateY(calc(100% + 120px)); } }

/* La crête de vague, au bord haut de l'eau : elle dérive sans fin sur le côté. */
.sea-crest {
  position: absolute; left: 0; bottom: calc(100% - 2px); width: 200%; height: 84px;
  fill: currentColor; animation: sea-drift 1.3s linear infinite;
}
.sea-layer-foam .sea-crest { animation-duration: 1.7s; animation-direction: reverse; }
@keyframes sea-drift { to { transform: translateX(-50%); } }

.sea-logo {
  position: absolute; top: 50%; left: 50%; width: min(340px, 62vw); height: auto;
  transform: translate(-50%, -50%); animation: sea-logo .45s cubic-bezier(.2, .8, .2, 1) .03s both;
}
@keyframes sea-logo {
  from { opacity: 0; transform: translate(-50%, -34%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* Un clic, une touche ou un défilement passent l'animation. */
.sea-skip .sea-intro { opacity: 0; transition: opacity .3s ease; }

/* Les informations du haut de page arrivent avec la vague : elles montent, se balancent, se posent. */
.hero-inner > * { animation: swell-in .6s cubic-bezier(.2, .9, .25, 1.1) both; }
.hero-inner > :nth-child(1) { animation-delay: .35s; }
.hero-inner > :nth-child(2) { animation-delay: .4s; }
.hero-inner > :nth-child(3) { animation-delay: .75s; }
.hero-inner > :nth-child(4) { animation-delay: .85s; }
.hero-inner > h1.is-split { animation: none; }
@keyframes swell-in {
  from { opacity: 0; transform: translateY(46px) rotate(-1.2deg) skewY(2.5deg); }
  60%  { opacity: 1; transform: translateY(-6px) rotate(.4deg) skewY(-.6deg); }
  to   { opacity: 1; transform: none; }
}

/* Le titre : une vague traverse les lettres, de gauche à droite. */
.hero h1 .w { display: inline-block; white-space: nowrap; }
.hero h1 .l { display: inline-block; animation: letter-swell .55s cubic-bezier(.2, .9, .25, 1.1) both; }
@keyframes letter-swell {
  from { opacity: 0; transform: translateY(.6em) rotate(5deg); }
  55%  { opacity: 1; transform: translateY(-.16em) rotate(-1.5deg); }
  to   { opacity: 1; transform: none; }
}

/* Pas d'animation si le visiteur ne veut pas de mouvement, ou en retour depuis une autre page. */
.no-intro .sea-intro { display: none; }
.no-intro .hero-inner > *, .no-intro .hero h1 .l { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .sea-intro { display: none; }
  .hero-inner > *, .hero h1 .l { animation: none; }
}
