:root {
  --bg: #0b2f63;
  --bg-deep: #061d42;
  --bg-mid: #0e3a78;
  --line: rgba(255, 255, 255, 0.88);
  --line-soft: rgba(255, 255, 255, 0.35);
  --sky: #7fb2e5;
  --ink: #0f3466;
  --text: #e9f0fb;
  --muted: #a9bfdf;
  --serif: "Libre Caslon Text", Georgia, serif;
  --accent: "Instrument Serif", Georgia, serif;
  --sans: "Figtree", "Avenir Next", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-font-smoothing: antialiased; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
em { font-family: var(--accent); font-style: italic; font-weight: 400; letter-spacing: 0; }
.mono { font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
::selection { background: var(--sky); color: var(--bg-deep); }

/* ---------- SVG line-art ---------- */
svg { overflow: visible; }
svg path, svg line, svg circle, svg rect, svg ellipse, svg polyline {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg .thin, svg .thin * { stroke-width: 1; stroke: var(--line-soft); }
svg .occl { fill: var(--bg); }
svg .fill { fill: var(--line); }

/* ---------- ambient layers ---------- */
.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 30%), rgba(127, 178, 229, 0.12), transparent 60%);
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-3%, 2%); }
  66% { transform: translate(2%, -3%); }
  100% { transform: translate(0, 0); }
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--sky), #fff); }

main, .nav { position: relative; z-index: 2; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-deep);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
}
.pre-watch { width: 74px; }
.pre-hand { transform-origin: 60px 80px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pre-count { font-size: 40px; letter-spacing: 0.04em; color: #fff; }
.pre-unit { color: var(--sky); }
.pre-label { color: var(--muted); }
html:not(.js) .preloader { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  transition: padding 0.5s var(--ease), background 0.5s, backdrop-filter 0.5s;
}
.nav.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(6, 29, 66, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-logo { font-family: var(--serif); font-weight: 700; font-size: 22px; opacity: 0; transform: translateY(-6px); transition: 0.5s var(--ease); }
.nav-logo span { font-weight: 400; }
.nav.scrolled .nav-logo { opacity: 1; transform: none; }
.nav-links { display: flex; gap: clamp(14px, 2.2vw, 34px); font-size: 14px; }
.nav-links a { position: relative; padding: 4px 0; opacity: 0.85; transition: opacity 0.3s; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { border: 1px solid var(--line-soft); border-radius: 99px; padding: 4px 16px !important; }
.nav-cta::after { display: none; }
.nav-burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  --fill: var(--sky);
  --fill-ink: var(--bg-deep);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.6s var(--ease);
}
/* remplissage circulaire qui naît là où entre le curseur */
.btn-fill {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--d, 400px);
  height: var(--d, 400px);
  margin: calc(var(--d, 400px) / -2) 0 0 calc(var(--d, 400px) / -2);
  border-radius: 50%;
  background: var(--fill);
  transform: scale(0);
  transition: transform 0.65s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.btn:hover .btn-fill { transform: scale(1); }
.btn:hover { color: var(--fill-ink); box-shadow: 0 12px 36px -12px rgba(127, 178, 229, 0.75); }
/* texte qui roule lettre par lettre */
.btn-label { position: relative; display: inline-flex; overflow: hidden; line-height: 1.25; }
.btn-label .ch { display: inline-block; white-space: pre; transition: transform 0.55s var(--ease); transition-delay: calc(var(--i) * 14ms); }
.btn-label .row { display: inline-flex; }
.btn-label .row-b { position: absolute; inset: 0; }
.btn-label .row-b .ch { transform: translateY(110%); }
.btn:hover .btn-label .row-a .ch { transform: translateY(-110%); }
.btn:hover .btn-label .row-b .ch { transform: translateY(0); }
/* flèche qui traverse */
.btn-arrow { position: relative; display: inline-grid; width: 16px; height: 16px; overflow: hidden; }
.btn-arrow svg { grid-area: 1 / 1; width: 16px; height: 16px; transition: transform 0.55s var(--ease); }
.btn-arrow svg:last-child { transform: translateX(-140%); }
.btn:hover .btn-arrow svg:first-child { transform: translateX(140%); }
.btn:hover .btn-arrow svg:last-child { transform: translateX(0); transition-delay: 0.08s; }
.btn svg path { stroke: currentColor; stroke-width: 2; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light { --fill: var(--bg-deep); --fill-ink: #fff; }
.btn-light:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 14px 40px -12px rgba(127, 178, 229, 0.8); }
.btn-ghost { border: 1px solid var(--line-soft); --fill: #fff; --fill-ink: var(--ink); }
.btn-ghost:hover { border-color: #fff; }
.btn.big { padding: 18px 34px; font-size: 16px; }

/* ---------- typography ---------- */
.kicker { color: var(--sky); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.h2 em { font-size: 1.12em; color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px var(--pad) 80px;
  overflow: hidden;
}
.blueprint {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-text { position: relative; z-index: 2; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 0 rgba(127, 178, 229, 0.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(127, 178, 229, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 178, 229, 0); } }
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(44px, 10.5vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
  white-space: nowrap;
  color: #fff;
}
.hero-title .char-wrap { display: inline-block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .char { display: inline-block; }
.hero-sub { font-size: clamp(18px, 2vw, 30px); font-weight: 500; margin: 18px 0 22px; letter-spacing: -0.01em; }
.hero-lead { max-width: 470px; color: var(--muted); margin: 0 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
  mask-image: linear-gradient(180deg, #000 80%, transparent);
}
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.scroll-line { width: 1px; height: 48px; background: linear-gradient(var(--line), transparent); transform-origin: top; animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- ecosystem ---------- */
.eco { position: relative; padding: 140px var(--pad); }
.eco-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; min-height: 80vh; }
.words { text-align: justify; hyphens: auto; font-size: clamp(16px, 1.2vw, 19px); }
.words .w { opacity: 0.16; transition: none; }
.eco-net-wrap { position: relative; }
.eco-net { width: 100%; max-width: 600px; display: block; margin: 0 auto; }
.eco-net .node circle { fill: var(--bg); }
.eco-net .node .n-ring { stroke: var(--line-soft); stroke-dasharray: 2 4; }
.eco-net .node text { fill: #fff; stroke: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.eco-net .node .n-icon * { stroke-width: 1.4; }
.eco-net .pulse { fill: var(--sky); stroke: none; filter: drop-shadow(0 0 6px var(--sky)); opacity: 0; transition: opacity 0.6s; }
.eco-net .pulse.on { opacity: 1; }
.center-core { fill: #fff; stroke: none; }
.center-halo { stroke: var(--sky); stroke-dasharray: 3 5; animation: spin 30s linear infinite; transform-origin: 300px 300px; }
.center-t1, .center-t2 { fill: var(--ink); stroke: none; font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: 0.04em; }
.center-t2 { font-weight: 400; font-size: 14px; letter-spacing: 0.02em; }
.net-caption { text-align: center; color: var(--muted); margin-top: 10px; }
.net-count { color: #fff; }

/* ---------- qui ---------- */
.qui { padding: 120px var(--pad); background: linear-gradient(180deg, var(--bg), var(--bg-mid) 50%, var(--bg)); }
.qui-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.qui-text p { text-align: justify; hyphens: auto; color: #dce6f5; }
.swim-wrap { position: relative; overflow: hidden; }
.swimmer { display: block; width: min(100%, 360px); height: auto; margin: 0 auto; }

/* piliers reliés par un schéma de circuit (tracé calculé en JS) */
.pillars-wrap { position: relative; margin-top: 34px; }
.pillars-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.pl-bus { fill: none; stroke: rgba(127, 178, 229, 0.35); stroke-width: 1; }
.pl-trace { fill: none; stroke: rgba(127, 178, 229, 0.35); stroke-width: 1; transition: stroke 0.5s; }
.pl-trace.live { stroke: rgba(127, 178, 229, 0.9); }
.pl-comet { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 24 200; stroke-dashoffset: 24; opacity: 0; filter: drop-shadow(0 0 4px var(--sky)) drop-shadow(0 0 10px var(--sky)); }
.port-dot { fill: var(--bg); stroke: rgba(127, 178, 229, 0.6); stroke-width: 1; transition: fill 0.4s, stroke 0.4s; }
.pl-port.hit .port-dot { fill: #fff; stroke: #fff; }
.port-wave { fill: none; stroke: var(--sky); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pl-port.hit .port-wave { animation: portwave 1.4s var(--ease); }
@keyframes portwave { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(5); } }
.hub-ring { fill: none; stroke: rgba(127, 178, 229, 0.45); stroke-width: 1; stroke-dasharray: 2 4; transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.hub-core { fill: var(--bg); stroke: var(--sky); stroke-width: 1.2; }
.hub-dot { fill: #fff; stroke: none; filter: drop-shadow(0 0 4px var(--sky)); }
.pillars { position: relative; z-index: 1; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pillar {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.5s, background 0.5s;
}
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.12), transparent 70%);
  transform: translateX(-110%);
  pointer-events: none;
}
.pillar.on::after { animation: sweep 1.4s var(--ease); }
@keyframes sweep { to { transform: translateX(110%); } }
.pillar.on, .pillar:hover { border-color: rgba(127, 178, 229, 0.7); background: rgba(127, 178, 229, 0.1); }
.pillar-icon { flex: none; width: 22px; height: 22px; transition: filter 0.5s; }
.pillar-icon * { stroke: #fff; stroke-width: 1.4; }
.pillar-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), #fff);
  transform: scaleX(0);
  transform-origin: left;
}
.pillar.on .pillar-bar { transform: scaleX(1); transition: transform var(--hold, 2.6s) linear; }
.pillar.on .pillar-icon, .pillar:hover .pillar-icon { filter: drop-shadow(0 0 6px rgba(127, 178, 229, 0.9)); }
@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr; gap: 14px; }
  .pillars-wrap { padding-left: 24px; }
}

/* ---------- programmes ---------- */
.progs { position: relative; padding: 140px var(--pad); text-align: center; }
.progs::before {
  content: "";
  position: absolute;
  inset: 10% 15%;
  background: radial-gradient(closest-side, rgba(127, 178, 229, 0.18), transparent);
  pointer-events: none;
}
.progs-head .kicker { justify-content: center; }
.cards { position: relative; max-width: 1180px; margin: 60px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1400px; }
.card {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 36px 28px 44px;
  text-align: center;
  transform-style: preserve-3d;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.4s;
  will-change: transform;
}
.card:hover { box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(127, 178, 229, 0.4); }
.card > * { transform: translateZ(30px); }
.card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--sx, 50%) var(--sy, 0%), rgba(127, 178, 229, 0.22), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  transform: none;
}
.card:hover .card-shine { opacity: 1; }
.card-icon { width: 72px; height: 52px; margin: 0 auto 6px; display: block; }
.card-icon * { stroke: #4f87c6 !important; stroke-width: 1.8 !important; }
.runner .speed { animation: speed 0.8s linear infinite; }
@keyframes speed { 0% { transform: translateX(6px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(-8px); opacity: 0; } }
.card-acro { font-family: var(--serif); font-weight: 700; font-size: clamp(48px, 4.6vw, 64px); line-height: 1; margin: 8px 0 12px; letter-spacing: 0.01em; }
.card-name { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.5; margin: 0; }
.card-rule { display: block; width: 40px; height: 2px; background: var(--sky); margin: 16px auto; transform-origin: center; }
.card-desc { font-style: italic; font-size: 14px; color: #34598c; line-height: 1.5; margin: 0 0 22px; }
.card-list { list-style: none; padding: 0; margin: 0; text-align: left; display: grid; gap: 10px; font-size: 13.5px; }
.card-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.card-list li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.2 4.7-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* ---------- méthode ---------- */
.methode { padding: 140px var(--pad); }
.methode-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.methode-text > p { text-align: justify; color: #dce6f5; max-width: 620px; }
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; opacity: 0.3; transition: opacity 0.5s, transform 0.5s var(--ease); }
.step.on { opacity: 1; transform: translateY(-6px); }
.step-icon { width: 58px; height: 58px; }
.step.on .step-icon { filter: drop-shadow(0 0 10px rgba(127, 178, 229, 0.7)); }
.compass-needle { transform-origin: 28px 28px; transition: transform 1s var(--ease); }
.step.on .compass-needle { transform: rotate(360deg); }
.step-n { color: var(--sky); font-size: 10px; }
.step-t { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: clamp(12px, 1vw, 15px); }
.steps-track { height: 1px; background: rgba(255, 255, 255, 0.15); margin-top: 26px; }
.steps-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), #fff); transform-origin: left; transform: scaleX(0); }
.boxer-wrap { position: relative; display: grid; justify-items: center; }

.boxer { width: min(100%, 300px); height: auto; }
.boxer path, .stadium path { fill: var(--line); stroke: none; }

/* ---------- baromètre ---------- */
.baro { padding: 120px var(--pad); background: var(--bg-deep); border-block: 1px solid rgba(255, 255, 255, 0.06); }
.baro-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.gauge-wrap { position: relative; }
.gauge { width: 100%; }
.g-arc-bg { stroke: rgba(255, 255, 255, 0.1) !important; stroke-width: 14 !important; }
.g-arc { stroke: url(#arcGrad) !important; stroke-width: 14 !important; stroke-linecap: butt !important; }
.g-ticks line { stroke: var(--line-soft); }
.g-ticks line.major { stroke: var(--line); stroke-width: 2; }
.g-lab { fill: var(--muted); stroke: none; font-size: 11px; letter-spacing: 0.14em; transition: fill 0.4s; }
.g-lab.on { fill: #fff; }
.g-needle path { fill: #fff; stroke: none; filter: drop-shadow(0 0 8px rgba(127, 178, 229, 0.8)); }
.g-hub { fill: var(--bg-deep); stroke: #fff; stroke-width: 2; }
.g-hub-in { fill: var(--sky); stroke: none; }
.gauge-read { text-align: center; font-size: 34px; color: #fff; margin-top: -6px; }
.g-unit { color: var(--sky); }
.baro-text p { text-align: justify; color: #dce6f5; }
.baro-chips { display: flex; gap: 10px; margin-top: 24px; }
.chip { border: 1px solid var(--line-soft); border-radius: 99px; padding: 6px 14px; color: #fff; }

/* ---------- contact ---------- */
.contact { position: relative; text-align: center; padding: 150px var(--pad) 0; overflow: hidden; }
.tagline { font-family: var(--accent); font-style: italic; font-weight: 400; font-size: clamp(40px, 6.4vw, 104px); line-height: 1.05; margin: 0 0 40px; letter-spacing: -0.01em; }
.tagline .wd { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.08em 0.1em; }
.tagline .wd > span { display: inline-block; }
.contact-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 22px; font-size: clamp(17px, 1.8vw, 26px); font-weight: 500; }
.c-link { position: relative; display: inline-block; }
.c-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--sky); transform: scaleX(0); transition: transform 0.5s var(--ease); }
.c-link:hover::after { transform: scaleX(1); }
.sep { color: var(--line-soft); }
.address { color: var(--muted); margin: 18px 0 0; }
.stage { position: relative; margin: 40px calc(-1 * var(--pad)) 0; }
.stadium { display: block; width: 100%; height: auto; }
.stage-cta {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.stage-cta::before {
  content: "";
  position: absolute;
  inset: -60px -90px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(207, 226, 251, 0.35), transparent);
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  pointer-events: none;
  animation: halo 5s ease-in-out infinite;
}
@keyframes halo { 50% { transform: scale(1.08); } }
.stage.lit .stage-cta::before { opacity: 1; }
.stage-cta .btn { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 20px 60px -10px rgba(127, 178, 229, 0.9); white-space: nowrap; }

/* ---------- retour en haut ---------- */
.back-top {
  position: fixed;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  z-index: 55;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(6, 29, 66, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(24px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.4s;
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.back-top .bt-track { stroke: rgba(255, 255, 255, 0.15); stroke-width: 1.5; }
.back-top .bt-ring { stroke: var(--sky); stroke-width: 2; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.back-top path { stroke: #fff; stroke-width: 1.8; transform: rotate(90deg); transform-origin: 26px 26px; transition: transform 0.4s var(--ease); }
.back-top:hover { background: #fff; }
.back-top:hover path { stroke: var(--ink); transform: rotate(90deg) translateX(-3px); }
.foot {
  position: relative;
  margin: 0 calc(-1 * var(--pad));
  padding: 22px var(--pad);
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 13px;
  color: var(--muted);
}
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 30px; font-size: 12px; padding-right: 70px; }

/* ---------- initial states (JS on) ---------- */
html.js .fade-up { opacity: 0; transform: translateY(30px); }
html.js .hero-sub, html.js .hero-lead, html.js .hero-actions { opacity: 0; transform: translateY(20px); }
html.js .nav-links a { opacity: 0; }
html.js .card { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .eco-inner, .qui-inner, .methode-inner, .baro-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero-art { max-height: 52vh; }
  .cards { grid-template-columns: 1fr; max-width: 440px; }
  .boxer { width: 220px; }
  .qui-inner .swim-wrap { order: 2; }
  .eco-inner { min-height: 0; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 26px;
    font-size: 24px;
    background: var(--bg-deep);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
  }
  .nav.open { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  html.js .nav-links a { opacity: 1; }
  .nav-burger {
    display: grid;
    gap: 6px;
    position: relative;
    z-index: 2;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
  }
  .nav-burger span { width: 26px; height: 1.5px; background: #fff; transition: transform 0.4s var(--ease); }
  .nav.open .nav-burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.open .nav-burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-logo { opacity: 1; transform: none; }
  .foot-bottom { flex-direction: column; align-items: center; text-align: center; padding: 0 0 70px; }
  .pillars { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .hero-title { font-size: 15vw; }
  .hero-inner > * { min-width: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .sep { display: none; }
  .contact-links { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
