/* =========================================================
   FPROD · Landing page OTIR
   ========================================================= */

:root {
  --navy-950: #040a14;
  --navy-900: #060e1b;
  --navy-800: #0a1628;
  --navy-700: #10213a;
  --navy-600: #1a2f4f;
  --blue-500: #1677ff;
  --blue-400: #3b8fff;
  --blue-300: #6aaeff;
  --blue-100: #e6f0ff;
  --ink: #0b1626;
  --ink-soft: #4a5a70;
  --line: #e3e9f2;
  --bg-light: #f6f8fc;
  --white: #ffffff;
  --green: #16a34a;
  --red: #e5484d;
  --orange: #f59e0b;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Caveat", cursive;

  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 78px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

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

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-fill { fill: currentColor; stroke: none; }

.accent {
  color: var(--blue-400);
  background: linear-gradient(100deg, var(--blue-300) 0%, var(--blue-500) 45%, var(--blue-300) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer { to { background-position: -220% 0; } }

/* ---------------- Boutons ---------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  padding: .95em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 .95rem/1 var(--font);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, border-color .3s;
}
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: scale(.97); }

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-400), var(--blue-500) 60%, #0b5fe0);
  box-shadow: 0 10px 30px -10px rgba(22, 119, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(22, 119, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); }
.btn-ghost:hover .ico { transform: scale(1.15); }

.btn-sm { padding: .7em 1.2em; font-size: .85rem; }
.btn-lg { padding: 1.1em 1.9em; font-size: 1rem; }
.btn:disabled { opacity: .7; cursor: wait; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .4s, box-shadow .4s, height .4s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 66px;
  background: rgba(6, 14, 27, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -20px rgba(0, 0, 0, .8);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); }
.brand-logo { height: 36px; width: auto; transition: transform .5s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .2); }
.brand-text small { font-size: .7rem; color: rgba(255, 255, 255, .72); }

.main-nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  position: relative;
  padding: 6px 0;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  transition: color .3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .35s var(--ease), opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--navy-900);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; }

.hero-photo {
  position: absolute;
  inset: -6% 0 -6% 0;
  /* Photo à déposer dans img/hero.jpg. Sans photo, le fond dégradé suffit. */
  background:
    url("../img/hero.jpg") 70% center / cover no-repeat,
    radial-gradient(ellipse 60% 70% at 78% 40%, #173a6b 0%, transparent 70%),
    linear-gradient(160deg, #0b1a30 0%, var(--navy-900) 60%);
  transform: scale(1.12);
  animation: kenburns 2.6s var(--ease) forwards;
  will-change: transform;
}
@keyframes kenburns { to { transform: scale(1.02); } }

.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 10, 20, .94) 0%, rgba(4, 10, 20, .78) 35%, rgba(4, 10, 20, .2) 65%, rgba(4, 10, 20, .35) 100%),
    linear-gradient(0deg, rgba(4, 10, 20, .9) 0%, transparent 30%);
}

.hero-glow {
  position: absolute;
  width: 46vmax; height: 46vmax;
  left: var(--gx, 70%); top: var(--gy, 40%);
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 119, 255, .22) 0%, transparent 62%);
  transition: left 1.2s var(--ease), top 1.2s var(--ease);
  pointer-events: none;
}

.hero-rings {
  position: absolute;
  right: -8vmax; top: 50%;
  width: 62vmax; height: 62vmax;
  translate: 0 -50%;
  fill: none;
  stroke: rgba(106, 174, 255, .1);
  stroke-width: 1;
  animation: spin 120s linear infinite, fadeIn 2s .6s both;
}
.hero-rings path { stroke: rgba(106, 174, 255, .16); }
@keyframes spin { to { rotate: 360deg; } }

.hero-laser {
  position: absolute;
  left: 0; top: 58%;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 143, 255, .0) 20%, rgba(59, 143, 255, .7) 50%, transparent 80%);
  opacity: 0;
  animation: laser 7s 2s ease-in-out infinite;
}
@keyframes laser {
  0% { transform: translateX(-60%); opacity: 0; }
  15% { opacity: 1; }
  45% { transform: translateX(60%); opacity: 0; }
  100% { transform: translateX(60%); opacity: 0; }
}

.hero-grain {
  position: absolute; inset: 0;
  opacity: .07;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-content { padding-top: calc(var(--header-h) + 40px); padding-bottom: 120px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-400);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.hero .eyebrow { color: rgba(255, 255, 255, .78); }
.hero .eyebrow::before { background: var(--blue-400); }

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 28px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: lineUp 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.hero-title .accent { animation: lineUp 1.1s var(--ease) forwards, shimmer 6s 2s linear infinite; animation-delay: var(--d, 0s), 2s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-lead { max-width: 33rem; font-size: 1.08rem; color: rgba(255, 255, 255, .78); margin-bottom: 38px; }

.hero-anim { opacity: 0; animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }

.hero-signature {
  position: absolute;
  right: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  bottom: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1;
  color: var(--white);
  transform: rotate(-8deg);
}
.hero-signature span:first-child { margin-right: 3.5em; }
.hero-signature svg { width: 220px; margin-top: 6px; fill: none; stroke: var(--blue-500); stroke-width: 3; stroke-linecap: round; }
.hero-signature path { stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw 1.4s 1.8s var(--ease) forwards; }
.hero-signature path + path { stroke-width: 2; opacity: .7; animation-delay: 2.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.scroll-cue {
  position: absolute;
  left: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  bottom: 38px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .75);
  transition: color .3s;
}
.scroll-cue:hover { color: var(--white); }
.scroll-cue .ico { animation: bob 2s ease-in-out infinite; }
.mouse { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.mouse span { width: 3px; height: 7px; border-radius: 2px; background: currentColor; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------------- Sections ---------------- */

.section { position: relative; padding: 120px 0; overflow: hidden; isolation: isolate; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--navy-900); color: var(--white); }

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 18px;
}
.section-lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 36px; }
.section-dark .section-lead { color: rgba(255, 255, 255, .72); }

.bg-rings {
  position: absolute;
  right: -260px; top: 50%;
  width: 900px; height: 900px;
  translate: 0 -50%;
  z-index: -1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 89px, rgba(22, 119, 255, .07) 89px 90px);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

/* Liste de fonctionnalités */
.feature-list { display: grid; gap: 22px; margin-bottom: 40px; }
.feature-list li { display: flex; gap: 18px; align-items: flex-start; }
.feature-list h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.feature-list p { font-size: .92rem; color: var(--ink-soft); }
.feature-ico {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  flex: none;
  border-radius: 14px;
  color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 8px 24px -12px rgba(16, 33, 58, .35), inset 0 0 0 1px var(--line);
  font-size: 1.15rem;
  transition: transform .45s var(--ease), background-color .3s, color .3s;
}
.feature-list li:hover .feature-ico { transform: translateY(-3px) rotate(-6deg); background: var(--blue-500); color: var(--white); }

.feature-list-dark p { color: rgba(255, 255, 255, .65); }
.feature-list-dark .feature-ico {
  color: var(--blue-300);
  background: rgba(22, 119, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(106, 174, 255, .25);
}

/* Section club */
.club-bg {
  position: absolute; inset: -10% 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--navy-900) 0%, rgba(6, 14, 27, .9) 45%, rgba(6, 14, 27, .7) 100%),
    url("../img/club-bg.jpg") center / cover no-repeat,
    radial-gradient(ellipse 50% 60% at 85% 20%, #14315a 0%, transparent 70%),
    var(--navy-900);
}
.split-club { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }

/* ---------------- Mockups ---------------- */

.device-stage {
  container-type: inline-size;
  position: relative;
  /* Les mockups sont dimensionnés en em : leur taille suit la largeur du bloc, pas celle de la fenêtre */
  padding: 3% 0 9% 11%;
  perspective: 1600px;
}
.device-stage > * { font-size: calc(100cqw / 66); transition: transform .8s var(--ease); }

.laptop { position: relative; width: 100%; transform-style: preserve-3d; animation: float 7s ease-in-out infinite; }
.laptop-screen {
  position: relative;
  aspect-ratio: 16 / 10.4;
  padding: 1.4em;
  border-radius: 1.6em 1.6em .4em .4em;
  background: linear-gradient(180deg, #1c2333, #0d1220);
  box-shadow: 0 0 0 .15em #2b3448, 0 4em 7em -2em rgba(10, 22, 40, .55);
}
.laptop-screen::before {
  content: "";
  position: absolute;
  top: .55em; left: 50%;
  width: .5em; height: .5em;
  translate: -50% 0;
  border-radius: 50%;
  background: #2f3a52;
}
.laptop-base {
  position: relative;
  height: 1.6em;
  margin: 0 -6%;
  border-radius: 0 0 2.2em 2.2em;
  background: linear-gradient(180deg, #d9dee8 0%, #a9b1c0 60%, #7d8696 100%);
}
.laptop-base::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 16%; height: .6em;
  translate: -50% 0;
  border-radius: 0 0 .8em .8em;
  background: #8b93a3;
}
.device-stage-dark .laptop-screen { box-shadow: 0 0 0 .15em #2b3448, 0 4em 8em -2em rgba(0, 0, 0, .8), 0 0 8em -2em rgba(22, 119, 255, .35); }

.app {
  display: flex;
  height: 100%;
  overflow: hidden;
  border-radius: .5em;
  background: #f4f7fb;
  color: var(--ink);
  font-size: 1.15em;
}
.app-side {
  width: 22%;
  flex: none;
  padding: 1.4em 1em;
  background: linear-gradient(180deg, #0a1628, #0d1d36);
  color: rgba(255, 255, 255, .72);
}
.app-logo { margin-bottom: 1.8em; padding-left: .3em; }
.app-logo img { height: 2em; width: auto; }
.app-side li { display: flex; align-items: center; gap: .7em; padding: .6em .7em; border-radius: .5em; font-size: .92em; }
.app-side li svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-side li.is-active { background: rgba(22, 119, 255, .18); color: var(--white); box-shadow: inset .2em 0 0 var(--blue-500); }

.app-main { flex: 1; min-width: 0; padding: 1.2em 1.4em; display: flex; flex-direction: column; gap: .8em; }
.app-top { display: flex; justify-content: space-between; align-items: center; font-size: 1.15em; }
.app-avatar { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--blue-100); color: var(--blue-500); font-size: .7em; font-weight: 700; }

.app-card { background: var(--white); border-radius: .7em; padding: .85em 1.2em; box-shadow: 0 .2em .8em rgba(16, 33, 58, .06); }
.app-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: .7em; font-weight: 700; font-size: .95em; }

.app-table { width: 100%; border-collapse: collapse; font-size: .82em; }
.app-table th { text-align: left; font-weight: 600; color: #7a879a; padding: .5em .4em; border-bottom: 1px solid var(--line); }
.app-table td { padding: .48em .4em; border-bottom: 1px solid #f0f3f8; white-space: nowrap; }
.app-table tr:last-child td { border-bottom: 0; }

.pill { display: inline-block; padding: .25em .7em; border-radius: 999px; font-size: .85em; font-weight: 600; white-space: nowrap; }
.pill-blue { background: #e6f0ff; color: #1462d6; }
.pill-green { background: #e3f6ea; color: #138a3f; }
.pill-red { background: #fde8e8; color: #c9343a; }
.pill-orange { background: #fef3e2; color: #b76e00; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9em; }
.kpi { position: relative; display: flex; flex-direction: column; padding: .9em 1em .9em 1.6em; border-radius: .7em; background: var(--white); box-shadow: 0 .2em .8em rgba(16, 33, 58, .06); }
.kpi strong { font-size: 1.8em; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.kpi small { color: #7a879a; font-size: .78em; }
.kpi-bar { position: absolute; left: .8em; top: .9em; bottom: .9em; width: .3em; border-radius: 1em; }
.kpi-blue { background: var(--blue-500); }
.kpi-sky { background: #7cb6ff; }
.kpi-green { background: var(--green); }

.sessions { display: grid; gap: .4em; font-size: .82em; }
.sessions li { display: grid; grid-template-columns: auto minmax(0, 1fr) 7em 3.6em; align-items: center; gap: .9em; }
.sessions li > div strong { display: block; line-height: 1.2; }
.sessions small { color: #7a879a; }
.session-date { display: flex; flex-direction: column; align-items: center; width: 3em; padding: .25em 0; border-radius: .5em; background: var(--blue-100); color: var(--blue-500); font-size: .85em; line-height: 1.1; text-transform: uppercase; }
.session-date strong { font-size: 1.35em; font-weight: 800; }
.gauge { height: .45em; border-radius: 1em; background: #edf1f7; overflow: hidden; }
.gauge i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--blue-500); transform: scaleX(0); transform-origin: left; transition: transform 1.2s 1s var(--ease); }
.is-visible .gauge i { transform: scaleX(1); }
.gauge-label { text-align: right; font-weight: 600; }
.gauge-label.is-full { color: var(--green); }

.legend {display: inline-flex; align-items: center; gap: .4em; font-weight: 500; font-size: .78em; color: #7a879a; }
.legend i { width: .7em; height: .7em; border-radius: .2em; margin-left: .6em; }
.l-blue { background: var(--blue-500); }
.l-green { background: #2fbf71; }
.l-red { background: var(--red); }

.bars { display: flex; justify-content: space-between; align-items: flex-end; gap: .6em; height: 4.6em; padding-top: .4em; border-bottom: 1px solid var(--line); }
.bar-group { flex: 1; display: flex; justify-content: center; align-items: flex-end; gap: .2em; height: 100%; }
.bar-group i { width: 28%; height: var(--h); border-radius: .2em .2em 0 0; background: var(--blue-500); transform: scaleY(0); transform-origin: bottom; transition: transform 1s var(--ease); }
.bar-group i:nth-child(2) { background: #2fbf71; }
.bar-group i:nth-child(3) { background: var(--red); }
.is-visible .bar-group i { transform: scaleY(1); }
.bar-group:nth-child(2) i { transition-delay: .08s; }
.bar-group:nth-child(3) i { transition-delay: .16s; }
.bar-group:nth-child(4) i { transition-delay: .24s; }
.bar-group:nth-child(5) i { transition-delay: .32s; }
.bar-group:nth-child(6) i { transition-delay: .4s; }
.bar-group:nth-child(7) i { transition-delay: .48s; }
.bar-group:nth-child(8) i { transition-delay: .56s; }

/* Lignes de tableau qui apparaissent l'une après l'autre */
.app-table tbody tr { opacity: 0; transform: translateX(1.5em); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.is-visible .app-table tbody tr { opacity: 1; transform: none; }
.is-visible .app-table tbody tr:nth-child(1) { transition-delay: .5s; }
.is-visible .app-table tbody tr:nth-child(2) { transition-delay: .62s; }
.is-visible .app-table tbody tr:nth-child(3) { transition-delay: .74s; }
.is-visible .app-table tbody tr:nth-child(4) { transition-delay: .86s; }
.is-visible .app-table tbody tr:nth-child(5) { transition-delay: .98s; }

/* Téléphone */
.phone {
  position: absolute;
  left: 0; bottom: 0;
  width: 17em;
  padding: .9em;
  border-radius: 3.4em;
  background: linear-gradient(145deg, #2a3346, #0c111c);
  box-shadow: 0 0 0 .15em #3a4560, 0 3em 6em -1em rgba(10, 22, 40, .6);
  animation: float 7s -3.5s ease-in-out infinite;
  z-index: 2;
}
.phone-screen {
  position: relative;
  aspect-ratio: 9 / 18.5;
  overflow: hidden;
  border-radius: 2.6em;
  background: var(--white);
  color: var(--ink);
  font-size: 1em;
  display: flex;
  flex-direction: column;
}
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: .9em 1.6em .4em; font-size: .8em; font-weight: 700; }
.phone-notch { width: 30%; height: 1.6em; border-radius: 1em; background: #0c111c; }
.phone-app-head { display: flex; justify-content: center; padding: .7em; background: var(--navy-800); }
.phone-app-head img { height: 1.6em; width: auto; }
.phone-body { flex: 1; padding: 1.2em 1.2em; display: flex; flex-direction: column; }
.phone-body h4 { font-size: 1.1em; margin-bottom: 1em; }

.stepper { position: relative; display: grid; gap: 1.1em; margin-bottom: 1.4em; }
.stepper::before { content: ""; position: absolute; left: .6em; top: .6em; bottom: .6em; width: 2px; background: var(--line); }
.stepper li { position: relative; padding-left: 2.1em; display: flex; flex-direction: column; line-height: 1.25; }
.stepper li::before {
  content: "";
  position: absolute; left: 0; top: .05em;
  width: 1.2em; height: 1.2em;
  border-radius: 50%;
  border: 2px solid #c8d2e0;
  background: var(--white);
}
.stepper li.is-done::before { border-color: var(--blue-500); background: var(--blue-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 65% no-repeat; }
.stepper li.is-current::before { border-color: var(--blue-500); box-shadow: 0 0 0 .3em rgba(22, 119, 255, .2); animation: pulse 2s infinite; }
.stepper strong { font-size: .82em; }
.stepper small { font-size: .7em; color: #7a879a; }
@keyframes pulse { 50% { box-shadow: 0 0 0 .55em rgba(22, 119, 255, 0); } }

.phone-btn { margin-top: auto; padding: .8em; border-radius: .8em; text-align: center; background: var(--blue-500); color: var(--white); font-weight: 700; font-size: .85em; }

.comp-list { display: grid; gap: .7em; }
.comp-list li { display: flex; align-items: center; justify-content: space-between; gap: .5em; padding: .8em .8em; border-radius: .8em; background: #f4f7fb; }
.comp-list strong { display: block; font-size: .78em; line-height: 1.2; }
.comp-list small { font-size: .66em; color: #7a879a; }
.comp-list .pill { font-size: .62em; }

.phone-tabs { display: flex; justify-content: space-around; padding: .7em .4em 1.2em; border-top: 1px solid var(--line); font-size: .66em; color: #8a96a8; }
.phone-tabs span { display: flex; flex-direction: column; align-items: center; gap: .3em; }
.phone-tabs svg { width: 1.8em; height: 1.8em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phone-tabs .is-active { color: var(--blue-500); font-weight: 700; }

@keyframes float { 50% { translate: 0 -1.2em; } }

/* ---------------- Pourquoi ---------------- */

.why { background: var(--white); }
.why .section-title { margin-bottom: 56px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.why-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(22, 119, 255, .12), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
}
.why-card:hover { transform: translateY(-8px); border-color: rgba(22, 119, 255, .35); box-shadow: 0 30px 60px -30px rgba(16, 33, 58, .35); }
.why-card:hover::before { opacity: 1; }
.why-ico {
  display: grid; place-items: center;
  width: 58px; height: 58px;
  margin-bottom: 22px;
  border-radius: 16px;
  font-size: 1.5rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-400), #0b5fe0);
  box-shadow: 0 14px 30px -12px rgba(22, 119, 255, .7);
  transition: transform .5s var(--ease);
}
.why-card:hover .why-ico { transform: rotate(-8deg) scale(1.06); }
.why-card h3 { position: relative; font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.why-card p { position: relative; font-size: .93rem; color: var(--ink-soft); }

/* ---------------- Contact ---------------- */

.contact-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 45% 55% at 85% 30%, rgba(22, 119, 255, .18), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 100%, rgba(22, 119, 255, .1), transparent 70%),
    var(--navy-900);
}
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }

.contact-list { display: grid; gap: 22px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list a, .contact-list strong { display: block; font-weight: 700; color: var(--blue-300); transition: color .3s; }
.contact-list a:hover { color: var(--white); }
.contact-list small { color: rgba(255, 255, 255, .6); font-size: .88rem; }
.contact-ico {
  display: grid; place-items: center;
  width: 48px; height: 48px; flex: none;
  border-radius: 50%;
  color: var(--white);
  background: rgba(22, 119, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(106, 174, 255, .3);
  font-size: 1.1rem;
}

.contact-form {
  position: relative;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(26, 47, 79, .7), rgba(16, 33, 58, .55));
  border: 1px solid rgba(106, 174, 255, .16);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .88); }
.field label span { color: var(--blue-300); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(4, 10, 20, .45);
  color: var(--white);
  font: 400 .95rem/1.4 var(--font);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .38); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  background: rgba(4, 10, 20, .65);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, .2);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 72, 77, .15); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .82rem; color: rgba(255, 255, 255, .68); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--blue-500); cursor: pointer; }
.consent.is-invalid { color: #ff9a9d; }

.contact-form .btn { justify-self: start; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { display: none; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; font-size: .9rem; }
.form-msg.is-visible { display: flex; animation: fadeUp .6s var(--ease); }
.form-success { background: rgba(22, 163, 74, .15); color: #7ee2a2; border: 1px solid rgba(22, 163, 74, .35); }
.form-error { background: rgba(229, 72, 77, .14); color: #ffb1b3; border: 1px solid rgba(229, 72, 77, .35); }

/* ---------------- Footer ---------------- */

.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .75); padding: 48px 0 28px; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.editor { display: inline-flex; align-items: center; gap: 12px; padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: rgba(255, 255, 255, .55); }
.editor img { height: 34px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: .9rem; }
.footer-nav a:hover, .footer-bottom a:hover { color: var(--white); }
.socials { display: flex; gap: 12px; }
.socials a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  transition: background-color .3s, transform .4s var(--ease);
}
.socials a:hover { background: var(--blue-500); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .82rem; color: rgba(255, 255, 255, .5); }

/* ---------------- Apparition au scroll ---------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="zoom"] { transform: translateY(40px) scale(.94); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
  .split, .split-club { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .split-text { max-width: 640px; }
  .device-stage { max-width: 820px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    background: rgba(4, 10, 20, .97);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  /* backdrop-filter crée un bloc conteneur : on le coupe pour que le menu plein écran couvre bien la page */
  .site-header.nav-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; }
  .nav-links { flex-direction: column; align-items: center; gap: 26px; }
  .nav-links a { font-size: 1.4rem; font-weight: 700; }
  .main-nav.is-open .nav-links li { animation: fadeUp .6s var(--ease) both; }
  .main-nav.is-open .nav-links li:nth-child(2) { animation-delay: .06s; }
  .main-nav.is-open .nav-links li:nth-child(3) { animation-delay: .12s; }
  .main-nav.is-open .nav-links li:nth-child(4) { animation-delay: .18s; }
  .nav-cta { font-size: 1rem; padding: 1em 1.6em; }
  .hero-signature { bottom: 100px; font-size: 1.4rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { padding: 0 18px; }
  .brand-text small { display: none; }
  .brand-logo { height: 30px; }
  .editor { padding-left: 0; border-left: 0; }
  .hero-content { padding-bottom: 170px; }
  .hero-photo { background-position: 78% center, center, center; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(4, 10, 20, .45) 0%, rgba(4, 10, 20, .72) 35%, rgba(4, 10, 20, .5) 70%, rgba(4, 10, 20, .9) 100%);
  }
  .hero-lead { font-size: 1rem; }
  .hero-signature { right: 18px; bottom: 96px; font-size: 1.25rem; }
  .hero-signature svg { width: 160px; }
  .scroll-cue { left: 18px; bottom: 28px; }
  .section { padding: 84px 0; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 20px; }
  .contact-form .btn { justify-self: stretch; }
  .btn-row .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .hero-anim, .hero-title .line > span { opacity: 1; transform: none; }
}

/* ---------------- Page mentions légales ---------------- */

.legal-hero {
  padding: calc(var(--header-h) + 72px) 0 64px;
  color: var(--white);
  background:
    radial-gradient(ellipse 50% 80% at 85% 0%, rgba(22, 119, 255, .22), transparent 70%),
    var(--navy-900);
}
.legal-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.legal-hero p:last-child { color: rgba(255, 255, 255, .6); font-size: .9rem; }

.legal-body { padding: 72px 0 96px; background: var(--white); }
.legal-content { max-width: 820px; }
.legal-content h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.015em; margin: 48px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-content h3 { font-size: 1rem; font-weight: 700; margin: 24px 0 6px; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content p + p { margin-top: 10px; }
.legal-content ul { display: grid; gap: 4px; margin: 10px 0 12px; padding-left: 20px; list-style: disc; }
.legal-content a { color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }
.legal-content strong { color: var(--ink); }

/* Champs restant à compléter : bien visibles tant qu'ils existent */
.todo { padding: 1px 6px; border-radius: 4px; background: #fff3cd; color: #8a5a00; font-weight: 600; }

.legal-page .site-footer { padding-top: 0; }
.consent a { color: var(--blue-300); text-decoration: underline; text-underline-offset: 2px; }
