:root {
  --navy: #0B2F4E;
  --deep: #0A4A78;
  --yellow: #FFD23F;
  --yellow-shadow: #D9A800;
  --coral: #FF6B5A;
  --green: #2FD39A;
  --sky: #EAF2F8;
  --ink: #0B2F4E;
  --muted: #4E6A82;
  /* Polices système uniquement : aucune requête vers un service tiers */
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: #fff;
  background: var(--navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  background: rgba(11, 47, 78, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-style: italic; font-size: 1.25rem; }
.brand span { color: var(--yellow); }
/* Icône de l'app, coins arrondis comme sur l'écran d'accueil iOS */
.brand-icon { border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(255,255,255,.15); margin-right: 2px; }
.app-icon { display: block; width: 96px; height: 96px; border-radius: 22.5%; box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.12); margin-bottom: 20px; }
.nav nav { display: flex; gap: 20px; }
.nav nav a { text-decoration: none; font-weight: 700; opacity: .85; }
.nav nav a:hover { opacity: 1; color: var(--yellow); }
@media (max-width: 560px) { .nav nav { display: none; } }

/* Hero */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 48px 16px 80px;
}
.hero-bg {
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 3px), rgba(255,255,255,.05) calc(25% - 3px) 25%),
    radial-gradient(ellipse at 70% 30%, #1479A3 0%, var(--navy) 65%);
}
.kicker { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .85rem; color: #7FE3F5; margin: 0 0 8px; }
.logo { font-size: clamp(3.6rem, 10vw, 6.5rem); font-style: italic; letter-spacing: -.02em; margin: 0; line-height: .9; text-shadow: 0 4px 0 rgba(0,0,0,.18); }
.logo span { color: var(--yellow); }
.logo.small { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.wave { width: 220px; margin: 14px 0 6px; display: block; }
.tagline { font-size: 1.4rem; font-weight: 800; margin: 8px 0 12px; }
.lead { font-size: 1.1rem; color: #CFE3F2; max-width: 34em; }
.lead em { font-style: italic; font-weight: 900; color: #fff; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 18px;
  font-weight: 900; font-size: 1.05rem; text-decoration: none; border: 0; cursor: pointer;
}
.btn-yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 5px 0 var(--yellow-shadow); }
.btn-yellow span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-yellow small { font-size: .72rem; font-weight: 700; }
.btn-yellow[aria-disabled] { cursor: default; }
.btn-ghost { border: 2px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn.small { padding: 10px 28px; font-size: 1.1rem; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pills li { background: rgba(255,255,255,.1); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; }

/* Phone + demo */
.phone {
  justify-self: center;
  width: min(360px, 100%);
  aspect-ratio: 9 / 18;
  padding: 12px; border-radius: 52px;
  background: #111; box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 2px #333;
  scroll-margin-top: 80px;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: #1479A3; }
#pool { display: block; width: 100%; height: 100%; touch-action: manipulation; cursor: pointer; }
.hud { position: absolute; top: 14px; left: 12px; right: 12px; display: flex; gap: 6px; pointer-events: none; }
.hud-box { flex: 1; background: rgba(11,47,78,.82); border-radius: 14px; padding: 6px 10px; }
.hud-box:first-child { flex: 1.4; }
.hud-box small { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; font-weight: 800; }
.hud-box b { font-size: 1.15rem; }
.overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 4px; padding: 24px;
  background: linear-gradient(rgba(11,47,78,.15), rgba(11,47,78,.55) 50%, rgba(11,47,78,.15)); cursor: pointer;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
  transition: opacity .25s;
}
.overlay.hidden { opacity: 0; pointer-events: none; }
.overlay-title { font-size: 2.6rem; font-weight: 900; font-style: italic; margin: 0; }
.overlay p { margin: 0 0 12px; font-weight: 700; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 32px; }
  .wave, .app-icon { margin-inline: auto; }
  .lead { margin-inline: auto; }
  .cta-row, .pills { justify-content: center; }
}

/* Bands */
.band { padding: 80px 16px; }
.wrap { max-width: 1120px; margin: 0 auto; }
.wrap.narrow { max-width: 760px; }
.band.light { background: var(--sky); color: var(--ink); }
.band.dark { background: var(--deep); }
.intro { font-size: 1.15rem; max-width: 40em; margin: 0 0 40px; opacity: .85; }
.sub { margin-top: 64px; font-size: 1.5rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.step { background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 6px 0 #d5e3ee; }
.step p { color: var(--muted); margin: 0; }
.step-ico { height: 72px; display: flex; align-items: center; margin-bottom: 12px; }
.step-ico.tap span {
  display: grid; place-items: center; width: 56px; height: 56px; margin-right: 8px;
  border-radius: 16px; background: var(--navy); color: var(--yellow); font-size: 2rem; font-weight: 900;
}
.step-ico.speed { font-size: 2.8rem; font-weight: 900; color: var(--coral); }
.step-ico.speed small { font-size: 1.4rem; }

.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.items figure {
  margin: 0; background: #fff; border-radius: 20px; padding: 16px 10px; text-align: center;
  border-bottom: 4px solid var(--coral);
}
.items figure.good { border-bottom-color: var(--green); }
.items img { height: 60px; width: auto; object-fit: contain; display: block; margin: 0 auto 8px; }
.items img.pad { height: 20px; margin: 20px auto 28px; }
.items img.flip { transform: rotate(180deg); }
.items figcaption { font-size: .85rem; color: var(--muted); }
.items figcaption b { display: block; color: var(--ink); font-size: 1rem; }

.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mode { display: grid; grid-template-columns: 76px 1fr; gap: 0 18px; align-items: start; background: #fff; color: var(--ink); border-radius: 24px; padding: 20px; }
.mode p { grid-column: 2; margin: 0; color: var(--muted); }
.mode h3 { grid-column: 2; margin: 4px 0 4px; }
.mode-ico { grid-row: span 2; width: 76px; height: 76px; border-radius: 18px; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.mode-ico.duo { display: flex; justify-content: center; gap: 6px; }
.mode-ico .wall { font-size: .9rem; letter-spacing: .1em; color: var(--navy); background: #fff; padding: 2px 6px; border-radius: 6px; }
.mode-ico .eight { font-size: 2.4rem; color: #fff; }
.tag { display: inline-block; vertical-align: middle; font-size: .72rem; font-weight: 800; background: var(--yellow); color: var(--navy); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
@media (max-width: 760px) { .modes, .steps { grid-template-columns: 1fr; } }

.shots { display: grid; gap: 24px; }
.shots img { border-radius: 24px; display: block; }

.season-band { background: linear-gradient(180deg, var(--navy), #0E3B5F); }
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.season { position: relative; text-align: center; }
.season h3 { margin: 16px 0 2px; font-size: 1.3rem; }
.season p { margin: 0; color: #CFE3F2; font-size: .95rem; }
.season .dates { color: #7FE3F5; font-weight: 800; font-size: .85rem; margin-bottom: 4px; }
.season.current::before {
  content: "En ce moment"; position: absolute; z-index: 2; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: var(--navy); font-weight: 900; font-size: .75rem;
  padding: 3px 12px; border-radius: 999px; box-shadow: 0 3px 0 var(--yellow-shadow); white-space: nowrap;
}
.season.current .pool { outline: 3px solid var(--yellow); outline-offset: 4px; }

/* Mini bassin vu du dessus : 4 couloirs, bord carrelé, lignes d'eau qui défilent */
.pool {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4; border-radius: 20px;
  border: 9px solid var(--edge);
  background:
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255,255,255,.07) 18px 20px),
    linear-gradient(90deg, transparent 11.5%, rgba(11,47,78,.13) 11.5% 13.5%, transparent 13.5% 36.5%, rgba(11,47,78,.13) 36.5% 38.5%, transparent 38.5% 61.5%, rgba(11,47,78,.13) 61.5% 63.5%, transparent 63.5% 86.5%, rgba(11,47,78,.13) 86.5% 88.5%, transparent 88.5%),
    linear-gradient(var(--a), var(--b));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 12px 24px rgba(0,0,0,.25);
}
.pool::after {
  /* joints du carrelage sur le bord */
  content: ""; position: absolute; inset: -9px; border-radius: 20px; pointer-events: none;
  border: 9px solid transparent;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.09) 0 1px, transparent 1px 14px) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box;
          mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box;
}
.rope {
  position: absolute; top: 0; bottom: 0; left: var(--x); width: 5px; transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, #E63946 0 7px, #fff 7px 14px, #2457D6 14px 21px, #fff 21px 28px);
  border-radius: 3px; box-shadow: 0 0 0 1px rgba(11,47,78,.12);
  animation: rope 1.4s linear infinite;
}
@keyframes rope { to { background-position: 0 28px; } }
.deco {
  position: absolute; left: var(--l); top: var(--t); width: calc(var(--s) * 1.35); height: calc(var(--s) * 1.35);
  transform: rotate(var(--r, 0deg));
  animation: bob 3.6s ease-in-out infinite; animation-delay: var(--d, 0s);
  filter: drop-shadow(0 2px 1px rgba(11,47,78,.25));
}
.deco.snow { filter: drop-shadow(0 0 2px rgba(255,255,255,.6)); animation-name: drift; }
@keyframes bob {
  0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  50% { transform: translate(3px, 5px) rotate(calc(var(--r, 0deg) + 14deg)); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: .95; }
  50% { transform: translate(-3px, 6px) rotate(45deg); opacity: .7; }
}
.obj {
  position: absolute; left: var(--x); top: var(--y); width: 22%; height: auto; max-width: 52px;
  transform: translate(-50%, -50%);
}
.obj.swimmer { top: 76%; width: 20%; max-width: 46px; }
.note { margin-top: 32px; opacity: .8; }
@media (max-width: 860px) { .seasons { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }
@media (prefers-reduced-motion: reduce) { .rope, .deco { animation: none; } }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.promises article { background: rgba(255,255,255,.08); border-radius: 22px; padding: 24px; border-top: 4px solid var(--yellow); }
.promises p { margin: 0; color: #CFE3F2; }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .promises { grid-template-columns: 1fr; } }

details { background: #fff; border-radius: 18px; margin-bottom: 12px; padding: 0 20px; }
summary { cursor: pointer; font-weight: 800; padding: 18px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--deep); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--muted); }

/* Pages de texte (confidentialité, assistance) */
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.prose h2, .band.light .wrap.narrow > h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.prose p, .prose li { color: #2E4A62; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose a, .band.light a { color: var(--deep); font-weight: 700; }
.meta { color: var(--muted); margin-top: -8px; }
.callout { background: #fff; border-radius: 22px; padding: 4px 24px 16px; border-left: 6px solid var(--green); margin: 24px 0; }
.callout h2 { margin-top: 20px !important; }
.callout.report { border-left-color: var(--yellow); margin-top: 48px; }
.callout .btn { margin-top: 8px; }
.callout ul { padding-left: 1.2em; color: var(--muted); }
.support-hero { text-align: center; }
.support-hero h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin-top: 8px; }
.support-hero p { color: #CFE3F2; font-size: 1.1rem; }
.support-hero .btn { margin-top: 12px; max-width: 100%; overflow-wrap: anywhere; }

.final { text-align: center; background: radial-gradient(ellipse at center, #1479A3, var(--navy) 70%); }
.final p { font-size: 1.2rem; }

.foot { text-align: center; padding: 32px 16px 48px; background: #071F35; color: #9DB6CB; font-size: .95rem; }
.foot p { margin: 4px 0; }
.foot .legal { font-size: .8rem; opacity: .7; margin-top: 12px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
