/* WheelPower — style façon Apple (clair, épuré, typo système SF) */
:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0066cc;
  --radius: 18px;
  --nav-h: 62px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Empêche tout déplacement horizontal de la page (sans casser le sticky) */
html, body { overflow-x: clip; max-width: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Barre de navigation translucide (sticky) ── */
/* Barre flottante translucide — bulle « liquid glass » */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 11px 16px;
  background: transparent;
  pointer-events: none;
}
/* Bandeau flouté tout en haut (au-dessus / derrière la bulle) */
.nav::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0;
  height: calc(env(safe-area-inset-top, 0px) + 54px);
  /* Voile clair max en haut (heure/batterie lisibles) qui s'estompe → pas de bord net */
  background: linear-gradient(to bottom, rgba(249,249,251,0.92) 0%, rgba(249,249,251,0.35) 55%, transparent 100%);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  -webkit-mask: linear-gradient(to bottom, #000 50%, transparent 100%);
          mask: linear-gradient(to bottom, #000 50%, transparent 100%);
  pointer-events: none; z-index: -1;
}
.nav-inner {
  pointer-events: auto;
  position: relative;
  width: 100%; max-width: 720px;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 5px 16px;
  border-radius: 980px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
}
.nav .logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--text);
}
.nav .logo:hover { text-decoration: none; }
.logo-img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.nav-inner > nav { margin-left: auto; }
.nav nav a { color: #1d1d1f; opacity: .82; font-size: 14px; margin-left: 22px; }
.nav nav a:hover { opacity: 1; text-decoration: none; }

/* Sélecteur de langue FR / EN */
.lang-switch { margin-left: 16px; font-size: 13px; font-weight: 700; color: var(--blue);
  border: 1px solid rgba(0,0,0,0.14); border-radius: 999px; padding: 4px 11px; line-height: 1; white-space: nowrap; }
.lang-switch:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* Lien Instagram dans le footer (catégorie Réseaux / Follow us) */
.ft-ig { display: inline-flex; align-items: center; gap: 8px; }
.ft-ig svg { flex: 0 0 16px; }

/* Bouton « Envoyer » du formulaire de contact (distinct) */
.btn-send { display: inline-flex; align-items: center; gap: 9px; padding: 14px 30px; border-radius: 14px;
  font-size: 16px; background: linear-gradient(135deg, #3b82f6 0%, #0066cc 100%);
  box-shadow: 0 8px 22px rgba(0,102,204,0.30); transition: transform .18s ease, box-shadow .18s ease; }
.btn-send svg { width: 17px; height: 17px; }
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,102,204,0.38); }

/* Statut d'envoi du formulaire de contact */
.form-status { margin-top: 14px; font-size: 14px; font-weight: 600; }
.form-status.ok { color: #1a7f37; }
.form-status.err { color: #c0392b; }
@media (max-width: 700px) { .lang-switch { margin-left: auto; margin-right: 8px; } }

/* Bouton hamburger (injecté par nav.js) — caché sur desktop */
.nav-toggle { display: none; border: none; background: transparent; cursor: pointer; }

/* ── Version mobile : pas de logo image, menu déroulant via hamburger ── */
@media (max-width: 700px) {
  .nav .logo .logo-img { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 36px; height: 32px; padding: 7px 8px;
  }
  .nav-toggle span {
    display: block; width: 20px; height: 2px; background: #1d1d1f; border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-inner > nav {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 190px; display: none; flex-direction: column; align-items: stretch;
    padding: 8px; border-radius: 16px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 14px 36px rgba(0,0,0,0.18);
  }
  .nav-inner > nav.open { display: flex; }
  .nav-inner > nav a { margin: 0; padding: 11px 14px; border-radius: 10px; font-size: 15px; opacity: 1; color: var(--text); }
  .nav-inner > nav a:hover { background: rgba(0,0,0,0.05); }
  /* Page courante (aria-current posé par nav.js) */
  .nav-inner > nav a[aria-current="page"] { background: rgba(0,0,0,0.06); font-weight: 600; }
}

/* Focus clavier visible sur toute la barre de nav (aucun style de focus auparavant) */
.nav a:focus-visible,
.nav-toggle:focus-visible,
.lang-switch:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px;
}
.nav nav a[aria-current="page"] { opacity: 1; font-weight: 600; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 92px 22px 80px;
  background: var(--bg);
}
.hero h1 {
  font-size: 56px; line-height: 1.05; font-weight: 700;
  letter-spacing: -0.015em;
}
.hero .sub {
  font-size: 26px; color: var(--muted); font-weight: 500;
  margin-top: 12px; letter-spacing: -0.01em;
}
.hero .cta { margin-top: 28px; }
.btn {
  display: inline-block; background: var(--blue); color: #fff;
  font-size: 17px; padding: 11px 22px; border-radius: 980px;
}
.btn:hover { background: #0a5bd0; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--blue); padding-left: 6px; }

/* ── Sections ── */
.section { padding: 70px 22px; }
.section.alt { background: var(--bg-alt); }
.section .inner { max-width: 980px; margin: 0 auto; }
.section h2 {
  font-size: 36px; font-weight: 700; letter-spacing: -0.01em;
  text-align: center; margin-bottom: 34px;
}

/* ── Cartes (grille de liens) ── */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.cards a {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; color: var(--text);
}
.cards a:hover { text-decoration: none; box-shadow: 0 6px 24px rgba(0,0,0,0.06); transform: translateY(-2px); transition: .2s; }
.cards a strong { display: block; font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.cards a span { color: var(--muted); font-size: 14px; }

/* ── Pages légales (texte) ── */
.legal { max-width: 720px; margin: 0 auto; padding: 64px 22px 90px; }
.legal h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 38px 0 10px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 22px 0 4px; }
.legal p, .legal li { font-size: 17px; color: #1d1d1f; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal li { margin: 4px 0; }
.legal .muted { color: var(--muted); }

.fill { background: #fff3d6; border: 1px solid #e9cf8a; color: #7a5a00;
  padding: 1px 6px; border-radius: 5px; font-size: 0.95em; }

/* ── Pages « document » (moins Apple : carte blanche sur fond gris, accents bleus) ── */
body.doc { background: #eef0f3; }
.doc .legal {
  background: #fff; max-width: 800px; margin: 30px auto 96px;
  padding: 54px 50px; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 12px 44px rgba(0,0,0,0.06);
}
.doc .legal h1 { font-size: 38px; margin-bottom: 4px; }
.doc .legal h1::after { content: ""; display: block; width: 58px; height: 4px;
  background: var(--blue); border-radius: 2px; margin-top: 16px; }
.doc .legal > .muted:first-of-type, .doc .legal .updated { margin-bottom: 24px; }
.doc .legal h2 { border-left: 3px solid var(--blue); padding-left: 14px; margin: 40px 0 12px; }
.doc .legal h3 { color: #1d1d1f; }
@media (max-width: 640px) { .doc .legal { padding: 36px 22px; border-radius: 18px; } }

/* ── Page Contact (mise en page dédiée, colorée — loin du minimalisme Apple) ── */
body.contact { background: linear-gradient(180deg, #e9f1fd 0%, #f5f7fa 340px, #f5f7fa 100%); }
.contact-wrap { max-width: 1000px; margin: 0 auto; padding: 72px 22px 96px; }
.contact-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 50px; align-items: start; }
.contact-info h1 { font-size: 44px; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
.contact-info h1 .accent { color: var(--blue); }
.contact-info > p { font-size: 18px; color: var(--muted); margin-top: 16px; max-width: 360px; line-height: 1.55; }
.contact-methods { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.cmethod { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 16px; box-shadow: 0 6px 20px rgba(0,0,0,0.04); }
.cmethod .ico { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px;
  background: #e6f0fd; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cmethod .t { font-size: 12px; color: var(--muted); }
.cmethod .v, .cmethod .v a { font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; }
.cmethod .v a:hover { color: var(--blue); }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 34px 32px; box-shadow: 0 20px 56px rgba(20,40,80,0.10); }
.contact-card .form { max-width: none; }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-info h1 { font-size: 34px; }
  .contact-card { padding: 26px 20px; }
}

/* ── À propos ── */
.about p { font-size: 18px; line-height: 1.7; }
.about .big { font-size: 25px; font-weight: 600; letter-spacing: -0.01em; margin: 36px 0 6px; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.faq-item p { font-size: 16px; color: #424245; line-height: 1.6; }

/* ── Formulaire de contact ── */
.form { max-width: 560px; margin: 4px 0 0; }
.form .row { margin-bottom: 16px; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #1d1d1f; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: #1d1d1f;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,204,0.15);
}
.form button.btn { border: none; cursor: pointer; font: inherit; font-size: 17px; }
.hp { position: absolute; left: -9999px; }

/* ── Pied de page structuré ── */
.site-footer { background: #f5f5f7; border-top: 1px solid var(--line); margin-top: 90px; }
.ft-inner { max-width: 1080px; margin: 0 auto; padding: 54px 22px 34px;
  display: flex; gap: 56px; flex-wrap: wrap; }
.ft-brand { flex: 1 1 260px; min-width: 220px; }
.ft-logo { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; color: var(--text); }
.ft-logo img { width: 26px; height: 26px; border-radius: 7px; }
.ft-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 290px; line-height: 1.5; }
.ft-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.ft-col { display: flex; flex-direction: column; gap: 11px; min-width: 140px; }
.ft-col h4 { font-size: 12px; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.ft-col a { color: var(--muted); font-size: 15px; text-decoration: none; }
.ft-col a:hover { color: var(--text); }
.ft-bottom { max-width: 1080px; margin: 0 auto; padding: 18px 22px 26px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }

/* ── Ancien pied de page (compat) ── */
footer.foot {
  background: var(--bg-alt); border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
footer.foot .inner { max-width: 980px; margin: 0 auto; padding: 26px 22px; }
footer.foot a { color: var(--muted); }
footer.foot .links a { margin-right: 18px; }
footer.foot .rule { border-top: 1px solid var(--line); margin: 14px 0; }

/* ── Header d'accueil (gros titre + badge App Store) ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.top-hero { position: relative; text-align: center; max-width: 820px; margin: 0 auto;
  min-height: calc(100vh - 70px); min-height: calc(100svh - 70px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 30px 22px 40px; }
.top-hero::before { content: ""; position: absolute; inset: -40px 0 auto 0; height: 460px; z-index: -1;
  background: radial-gradient(58% 70% at 50% 0%, #e6f0fd 0%, rgba(230,240,253,0) 70%); }
.top-hero .app-icon { width: 116px; height: 116px; border-radius: 27px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18); animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) both; }
.top-hero h1 { font-size: 60px; font-weight: 700; line-height: 1.04; letter-spacing: -0.022em;
  margin-top: 26px; animation: fadeUp .8s .1s cubic-bezier(.2,.7,.2,1) both; }
.top-hero h1 .accent { color: var(--blue); }
.top-hero p { font-size: 21px; color: var(--muted); margin: 14px auto 0; max-width: 560px;
  animation: fadeUp .8s .2s cubic-bezier(.2,.7,.2,1) both; }
.th-cta { margin-top: 32px; }
/* Vagues bleues animées — TOUTE LA LARGEUR de la page, derrière le titre */
.hero-waves { position: absolute; left: 50%; top: 30%; width: 100vw; height: 460px;
  transform: translate(-50%, -50%); z-index: -1; overflow: hidden; pointer-events: none;
  transition: opacity .55s ease; }
.hero-waves svg { width: 200%; height: 100%; display: block; }
.hero-waves path { fill: none; stroke-linecap: round; }
/* Une vague par couleur UCI : bleu, rouge, noir, jaune, vert */
.hero-waves .w1 { stroke: #0072CE; stroke-width: 3.5; opacity: .9;  }  /* bleu */
.hero-waves .w2 { stroke: #E03A3E; stroke-width: 3;   opacity: .8;  }  /* rouge */
.hero-waves .w3 { stroke: #1A1A1A; stroke-width: 2.6; opacity: .7;  }  /* noir */
.hero-waves .w4 { stroke: #FFD200; stroke-width: 2.6; opacity: .85; }  /* jaune */
.hero-waves .w5 { stroke: #009639; stroke-width: 2.4; opacity: .8;  }  /* vert */
.top-hero .th-text { position: relative; z-index: 1; }

/* Au scroll : le titre s'efface, les vagues s'effacent */
.top-hero .th-text { transition: opacity .45s ease, transform .45s ease; }
body.scrolled .top-hero .th-text { opacity: 0; transform: translateY(-26px); }
body.scrolled .hero-waves { opacity: 0; }

/* Le badge du hero lui-même glisse vers le coin haut-droit au scroll */
.th-cta { position: fixed; top: 16px; right: 18px; z-index: 200; transform-origin: top right;
  transform: translate(var(--tx, calc(-50vw + 50% + 18px)), var(--ty, 52vh)) scale(1.05);
  transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
body.scrolled .th-cta { transform: translate(0, 0) scale(.8); }
@media (prefers-reduced-motion: reduce) { .hero-waves, .top-hero .th-text, .th-cta { transition: none; } }
/* Badge App Store (logo Apple officiel, plus grand) */
/* Badge officiel App Store (image fournie par Apple) */
.appstore-badge { display: inline-block; text-decoration: none; line-height: 0;
  transition: transform .2s, filter .2s; animation: fadeUp .8s .3s cubic-bezier(.2,.7,.2,1) both; }
.appstore-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 12px 24px rgba(0,0,0,0.28)); text-decoration: none; }
.appstore-badge img { height: 56px; width: auto; display: block; }

/* Indice de défilement (mobile uniquement) : petite flèche minimaliste sous le badge */
.scroll-hint { display: none; }
@media (max-width: 820px) {
  .scroll-hint {
    display: block; align-self: center; width: 22px; height: 22px;
    margin: 20px auto 0; color: var(--muted); opacity: .5;
    animation: scrollBob 1.8s ease-in-out infinite;
    transition: opacity .4s ease;
  }
  .scroll-hint svg { width: 100%; height: 100%; display: block; }
  body.scrolled .scroll-hint { opacity: 0; }
}
@keyframes scrollBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 820px) {
  .top-hero { flex-direction: column; align-items: flex-start; gap: 30px; padding-top: 19vh; padding-bottom: 90px; }
  /* Le badge App Store reste sous le titre et s'efface AVEC lui (pas d'envol dans le coin) */
  .th-cta { position: static; transform: none !important; align-self: center; margin: 8px 0 0;
            transition: opacity .45s ease, transform .45s ease; }
  body.scrolled .th-cta { opacity: 0; transform: translateY(-26px) !important; }
  /* Vagues : remontées un peu + aplaties (plus légères) — mobile uniquement */
  .hero-waves { top: 22%; height: 340px; transform: translate(-50%, -50%) scaleY(0.7); }
  /* Un poil plus épaisses sur mobile (mêmes courbes) */
  .hero-waves .w1 { stroke-width: 4.2; }
  .hero-waves .w2 { stroke-width: 3.6; }
  .hero-waves .w3 { stroke-width: 3.1; }
  .hero-waves .w4 { stroke-width: 3.1; }
  .hero-waves .w5 { stroke-width: 2.9; }
}
@media (max-width: 600px) { .top-hero h1 { font-size: 40px; } .top-hero p { font-size: 18px; } }

/* ── Intégrations disponibles ── */
.integrations { max-width: 1080px; margin: 0 auto; padding: 0 22px 84px; text-align: center; }
.integrations h2 { font-size: 64px; font-weight: 700; letter-spacing: -0.022em; color: #1d1d1f; line-height: 1.04; }
.integrations h2 .accent { color: var(--blue); }
.integrations > p { color: var(--muted); font-size: 19px; margin: 14px auto 38px; max-width: 560px; }
.intg-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  max-width: 760px; margin: 0 auto; }
.intg { flex: 0 0 138px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06); display: flex; flex-direction: column; align-items: center; gap: 11px; }
.intg-icon { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; display: block;
  box-shadow: 0 4px 14px rgba(0,0,0,0.14); }
.intg-name { font-size: 14.5px; font-weight: 700; color: #1d1d1f; letter-spacing: -0.01em; text-align: center; }
@media (max-width: 520px) { .intg-grid { max-width: 308px; } }

/* ── Hero d'accueil ── */
.hero2 { position: relative; text-align: center; padding: 86px 22px 24px; max-width: 1180px; margin: 0 auto; }
/* 1re section : remontée pour se superposer au hero, cachée jusqu'au 1er scroll */
.hero2.tight { padding-top: 30px; margin-top: -50vh; position: relative; z-index: 2; }
.swap { opacity: 0; transform: translateY(34px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
body.scrolled .swap { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .swap { transition: none; } }

/* Cartes flottantes autour de l'iPhone (recréées en CSS depuis l'app) */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes cardIn { from { opacity: 0; } to { opacity: 1; } }
.floats { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.mcard {
  position: absolute; width: 236px; background: #fff; border-radius: 18px;
  padding: 13px 16px 14px; text-align: left;
  box-shadow: 0 14px 36px rgba(0,0,0,0.12); border: 1px solid rgba(0,0,0,0.05);
  opacity: 0; animation: cardIn .7s ease both, floaty 7s ease-in-out infinite;
}
.mc-top { display: flex; align-items: center; justify-content: space-between; }
.mc-label { font-size: 15px; font-weight: 700; color: #1d1d1f; display: flex; align-items: center; gap: 7px; }
.mc-label i { font-style: normal; font-weight: 600; font-size: 11px; color: #86868b;
  background: #f0f0f2; padding: 2px 6px; border-radius: 6px; }
.mc-score { font-size: 15px; font-weight: 700; color: #6fae86; }
.mc-bar { height: 7px; background: #edeef0; border-radius: 99px; margin: 9px 0 7px; overflow: hidden; }
.mc-bar span { display: block; height: 100%; background: #6fae86; border-radius: 99px; }
.mc-sub { font-size: 11px; color: #86868b; line-height: 1.35; }
.c1 { top: 420px; left: 200px;  }
.c2 { top: 680px; left: 200px;  }
.c3 { top: 420px; right: 200px; }
.c4 { top: 680px; right: 200px; }
.mcard.c2 { animation-delay: .16s, -1.6s; }
.mcard.c3 { animation-delay: .10s, -3.0s; }
.mcard.c4 { animation-delay: .22s, -4.4s; }
@media (max-width: 1200px) { .floats { display: none; } }
/* Sur iPhone : les 4 métriques groupées au MILIEU de l'iPhone à l'arrivée,
   puis elles sortent une à une (gauche/droite alternées) au scroll — piloté en JS. */
@media (max-width: 700px) {
  .hero2.metrics .iphone { max-width: 240px; }
  .metrics .floats { display: block; position: absolute; inset: 0; pointer-events: none; }
  .metrics .mcard {
    position: absolute; left: 50%; width: 152px; max-width: 152px; height: 84px; overflow: hidden;
    opacity: 1; animation: none; padding: 9px 11px 10px; border-radius: 14px; top: auto; right: auto;
    will-change: transform, opacity;
  }
  .metrics .mc-top { white-space: nowrap; }
  .metrics .mc-label { font-size: 12.5px; }
  .metrics .mc-label i { font-size: 10px; padding: 1px 5px; }
  .metrics .mc-score { font-size: 12.5px; }
  .metrics .mc-bar { height: 5px; margin: 6px 0 5px; }
  .metrics .mc-sub { font-size: 9.5px; }
  /* rangées (vertical) — cluster centré sur l'iPhone */
  .metrics .c1, .metrics .c2 { bottom: 312px; }
  .metrics .c3, .metrics .c4 { bottom: 196px; }
  /* position horizontale de base (surchargée par le JS) */
  .metrics .c1, .metrics .c3 { transform: translateX(-106%); }
  .metrics .c2, .metrics .c4 { transform: translateX(6%); }
}
@media (prefers-reduced-motion: reduce) { .mcard { animation: cardIn .5s ease both; } }

/* Bulles-images (2e hero) */
.floats2 { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.bcard {
  position: absolute; width: 264px; border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 16px 42px rgba(0,0,0,0.16); border: 1px solid rgba(0,0,0,0.06);
  opacity: 0; animation: cardIn .7s ease both, floaty 7s ease-in-out infinite;
}
.bcard img { width: 100%; display: block; }
.b1 { top: 384px; left: 156px;  width: 290px; }   /* Métriques (large) */
.b2 { top: 352px; right: 150px; }                 /* Puissance réalisée */
.b3 { top: 648px; left: 178px;  }                 /* Cardio */
.bcard.b2 { animation-delay: .14s, -2.4s; }
.bcard.b3 { animation-delay: .22s, -4.2s; }
@media (max-width: 1200px) { .floats2 { display: none; } }
@media (prefers-reduced-motion: reduce) { .bcard { animation: cardIn .5s ease both; } }

/* iPhone à DROITE + bulles capacités à gauche reliées par des traits (3e hero) */
.capsline { display: flex; align-items: center; gap: 22px; max-width: 1080px; margin: 50px auto 0; text-align: left; }
.capsline .iphone { flex: 0 0 290px; margin: 0; order: 2; }
.caps { flex: 1; display: flex; flex-direction: column; gap: 16px; order: 1; }
.cap { display: flex; align-items: center; gap: 14px; }
.cap .card { flex: 1; order: 1; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; box-shadow: 0 8px 26px rgba(0,0,0,0.07); }
.cap .card strong { display: block; font-size: 15px; font-weight: 600; color: #1d1d1f; letter-spacing: -0.01em; }
.cap .card span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.cap .cline { flex: 0 0 50px; order: 2; height: 2px; background: var(--line); border-radius: 2px; position: relative; }
.cap .cline::after { content: ""; position: absolute; right: -4px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
/* Variante miroir : iPhone à gauche, bulles à droite */
.capsline.rev .iphone { order: 1; }
.capsline.rev .caps { order: 2; }
.capsline.rev .cap .card { order: 2; text-align: right; }
.capsline.rev .cap .cline { order: 1; }
.capsline.rev .cap .cline::after { right: auto; left: -4px; }
@media (max-width: 860px) {
  .capsline { flex-direction: column; align-items: center; }
  .capsline .iphone { order: 0; }
  .cap .cline { display: none; }
  .cap .card { text-align: center; }
  .capsline.rev .cap .card { text-align: center; }
}

/* ── Section « story » : l'iPhone se transforme au défilement ─────────── */
.story { position: relative; height: 230vh; margin-bottom: 36px; }
.story-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.story-wrap { max-width: 1140px; width: 100%; margin: 0 auto; padding: 0 24px; }
.story-row { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 300px minmax(0,1fr);
  align-items: center; gap: 26px; padding-top: 230px; }

/* Titre + sous-titre centrés au-dessus des iPhones (même taille que .hero2).
   Le bloc vit dans sa colonne → il apparaît/disparaît avec elle (fondu). */
.story-h { font-size: 64px; line-height: 1.04; letter-spacing: -0.022em; font-weight: 700; color: #1d1d1f; margin: 0; }
.story-h .accent { color: var(--blue); }       /* on garde le bleu sur les titres */
.story-sub { font-size: 24px; color: var(--muted); margin: 16px auto 0; max-width: 620px; line-height: 1.5; }
.story-row .story-head { position: absolute; top: 0; left: 0; right: 0; text-align: center; }

.story-col { flex: 1; min-width: 0; }
.col-coach { text-align: right; }
.col-course { text-align: left; opacity: 0; }
.col-coach .caps .card { text-align: right; }

/* Bulles miroir (colonne droite) : trait à gauche, carte à droite */
.revcaps .cap .card { order: 2; text-align: left; }
.revcaps .cap .cline { order: 1; }
.revcaps .cap .cline::after { right: auto; left: -4px; }

/* Deux iPhones superposés au centre (Coach dans le flux pour la hauteur,
   Course superposé en absolu → fondu au scroll). */
.phones { position: relative; flex: 0 0 300px; width: 300px; z-index: 2; }
.phones .story-phone { margin: 0 auto; }
.phones .pf-coach  { position: relative; }
.phones .pf-course { position: absolute; top: 0; left: 0; right: 0; margin: 0 auto; width: 100%; opacity: 0; }

.m-titlebar { display: none; }

/* ── Mobile : récit horizontal piloté au scroll ──────────────────────────
   phone centré (titre au-dessus) → panote à droite (bulles coach)
   → revient + switch d'iPhone → panote à gauche (bulles courses). */
@media (max-width: 860px) {
  .story { height: 360vh; }
  .story-sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: block; }
  .story-wrap { height: 100%; max-width: none; margin: 0; padding: 0; }

  /* Barre de titre + sous-titre fixe en haut, switch coach→course */
  .m-titlebar { display: block; position: absolute; top: 92px; left: 0; right: 0; z-index: 4;
                text-align: center; padding: 0 22px; pointer-events: none; }
  .m-titlebar .m-title { position: absolute; left: 0; right: 0; top: 0; }
  .m-titlebar .m-tk { opacity: 0; }
  .m-titlebar .story-h { position: static; margin: 0; font-size: 64px; line-height: 1.04; letter-spacing: -0.022em; }
  .m-titlebar .story-sub { font-size: 24px; margin: 16px auto 0; max-width: 560px; line-height: 1.45; }

  /* Conteneur simple (plus de piste 300vw) */
  .story-row { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
               transform: none; padding: 0; }

  /* iPhone centré, glisse horizontalement (léger). Centré via left:calc → transform libre pour le pan. */
  .story-row > .phones {
    position: absolute; top: 286px; left: calc(50% - 105px); width: 210px; height: auto;
    margin: 0; padding: 0; z-index: 2; will-change: transform; backface-visibility: hidden;
  }
  .phones .story-phone { width: 210px; max-width: 210px; margin: 0; }
  .phones .pf-coach  { position: relative; }
  .phones .pf-course { position: absolute; top: 0; left: 0; width: 210px; transform: none;
                       opacity: 0; will-change: opacity; }

  /* Panneaux de bulles : plein écran, glissent depuis les côtés (coach=droite, courses=gauche) */
  .story-col {
    position: absolute; top: 286px; left: 0; right: 0; width: 100%; height: auto;
    display: flex; flex-direction: column; align-items: center; padding: 0 18px;
    opacity: 1 !important; text-align: center; z-index: 3;
    will-change: transform; backface-visibility: hidden;
  }
  .col-coach  { transform: translate3d(100%, 0, 0); }    /* caché à droite */
  .col-course { transform: translate3d(-100%, 0, 0); }   /* caché à gauche */
  .story-col .story-head { display: none; }
  .story-col .caps { flex: 0 0 auto; width: 88%; max-width: 360px; gap: 9px; }
  .col-coach .caps .card, .revcaps .cap .card { text-align: center; }
  .cap .cline { display: none; }
  /* Cartes plus compactes → les 5 cartes Coach tiennent sans être coupées */
  .story-col .cap .card { padding: 9px 13px; }
  .story-col .cap .card strong { font-size: 13.5px; }
  .story-col .cap .card span { font-size: 12px; line-height: 1.35; }

  /* Dynamic Island + boutons latéraux à l'échelle du petit iPhone (210 px) */
  .phones .story-phone .island { width: 62px; height: 17px; top: 9px; }
  .phones .story-phone::before { top: 92px; height: 44px; }
  .phones .story-phone::after  { top: 146px; height: 44px; }

  /* Sous-titre : marge des bords de la page */
  .m-titlebar { padding-left: 32px; padding-right: 32px; }

  /* Entrée à l'arrivée : titre (fondu+glissé) et iPhone (fondu seul — pas de transition sur transform, sinon le pan lague) */
  .m-titlebar { transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
  .story-row > .phones { transition: opacity .5s ease; }
  #story:not(.in) .m-titlebar { opacity: 0; transform: translateY(28px); }
  #story:not(.in) .story-row > .phones { opacity: 0; }
}
@media (max-width: 600px) { .story-h { font-size: 40px; } .m-titlebar .story-h { font-size: 40px; } .m-titlebar .story-sub { font-size: 19px; max-width: 320px; } }

/* iPhone à gauche + bulles reliées par des traits gris (2e hero) */
.callout { display: flex; align-items: center; gap: 22px; max-width: 1080px; margin: 50px auto 0; text-align: left; }
.callout .iphone { flex: 0 0 290px; margin: 0; }
.feats { flex: 1; display: flex; flex-direction: column; gap: 44px; margin-top: 60px; }
.feat { display: flex; align-items: center; gap: 16px; }
.feat .line { flex: 0 0 54px; height: 2px; background: var(--line); border-radius: 2px; position: relative; }
.feat .line::before { content: ""; position: absolute; left: -4px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.feat .bub { flex: 0 0 190px; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12); border: 1px solid rgba(0,0,0,0.06); }
.feat .bub img { width: 100%; display: block; }
.feat .desc { flex: 1; }
.feat .desc h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
.feat .desc p { font-size: 14px; color: var(--muted); line-height: 1.5; }
/* Section export : cartes encadrées à gauche, reliées à l'iPhone (à droite) par un trait. */
#export .feat { text-align: left; }
/* Toutes les cartes à la même largeur (celle de la plus large — la 3e, « .ERG »). */
#export .feat .desc { flex: 0 0 360px; width: 360px; max-width: 100%;
  background: #fff; border: 1px solid rgba(0,0,0,0.10); border-radius: 16px;
  padding: 15px 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
#export .feat .desc h3 { margin-bottom: 5px; }
/* Couleurs des cartes (comme sur la capture) — la 4e (PDF) reste blanche. */
#export .desc.c-zwift  { background: #F4641E; border-color: rgba(0,0,0,0.06); }
#export .desc.c-garmin { background: #007CC3; border-color: rgba(0,0,0,0.06); }
#export .desc.c-erg    { background: #F5C518; border-color: rgba(0,0,0,0.08); }
#export .desc.c-zwift h3, #export .desc.c-garmin h3 { color: #fff; }
#export .desc.c-zwift p,  #export .desc.c-garmin p  { color: rgba(255,255,255,0.92); }
#export .desc.c-erg h3 { color: #1a1a1a; }
#export .desc.c-erg p  { color: rgba(0,0,0,0.66); }
/* Le trait s'étire pour relier la carte à l'iPhone, quelle que soit la largeur de la carte. */
#export .feat .line { flex: 1 1 auto; }
#export .feat .line::before { left: auto; right: -4px; }
/* Section export : marges haut/bas calées sur la référence du site (~110px) pour
   laisser le même espace entre l'iPhone et le titre de la section suivante. */
#export { padding-top: 110px; padding-bottom: 130px; }
@media (max-width: 700px) { #export { padding-top: 72px; padding-bottom: 90px; } }

/* Section nutrition : iPhone à gauche, QUATRE carrés (grille 2×2) à droite.
   Mêmes cartes que les sections export/lactate (fond blanc, rayon 16, ombre douce),
   mais disposées en grille — et conservées sur mobile (en 1 colonne). */
#nutrition .feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
#nutrition .feat { align-items: stretch; }          /* cartes de même hauteur sur une ligne */
#nutrition .feat .desc { flex: 1 1 auto; width: 100%;
  background: #fff; border: 1px solid rgba(0,0,0,0.10); border-radius: 16px;
  padding: 16px 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
#nutrition .feat .desc h3 { margin-bottom: 5px; color: #0A8742; }   /* 4,61:1 sur blanc */
/* Accent du titre = le vert EXACT de l'anneau de calories sur la capture (#34C759, vert système
   iOS), prélevé au pixel sur shots/nutrition-hero.png — demande utilisatrice : « le même vert que
   sur la photo ». Réservé au grand titre ; les titres de cartes gardent le vert dense (#0A8742),
   lisible en petit corps. */
#nutrition h1 .accent { color: #34C759; }
#nutrition { padding-top: 110px; padding-bottom: 110px; }
@media (max-width: 860px) { #nutrition .feats { margin-top: 40px; } }
@media (max-width: 700px) {
  #nutrition { padding-top: 72px; padding-bottom: 90px; }
  #nutrition .feats { grid-template-columns: 1fr; gap: 14px; margin-top: 34px; }
  #nutrition .callout { justify-content: center; margin-top: 0; }
  #nutrition .callout .iphone { margin: 48px auto 0; max-width: 240px; }
}

/* Section lactate : iPhone à gauche, cartes encadrées à droite reliées par un trait. */
#lactate .feat .desc { flex: 0 0 360px; width: 360px; max-width: 100%;
  background: #fff; border: 1px solid rgba(0,0,0,0.10); border-radius: 16px;
  padding: 15px 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
#lactate .feat .desc h3 { margin-bottom: 5px; color: #FF2D78; }
#lactate h1 .accent { color: #FF2D78; }    /* accent du titre en rose lactate (pas bleu) */
#lactate .feat .line { flex: 1 1 auto; }            /* le trait s'étire vers l'iPhone (à gauche) */
#lactate { padding-top: 110px; padding-bottom: 240px; }
@media (max-width: 700px) { #lactate { padding-top: 72px; padding-bottom: 140px; } }
@media (max-width: 860px) {
  .callout { flex-direction: column; align-items: center; }
  .feat { flex-direction: column; text-align: center; gap: 10px; }
  .feat .line { display: none; }
  .feat .desc p { max-width: 360px; }
}
/* Sur iPhone : bulles à leur place (chevauchent l'iPhone), titre au-dessus,
   révélées une à une quand elles passent au centre (la page défile normalement). */
@media (max-width: 700px) {
  #features .callout { position: relative; display: block; min-height: 560px; margin-top: 30px; }
  #features .callout .iphone { max-width: 230px; margin: 0 auto; }
  #features .feats { position: absolute; inset: 0; margin: 0; display: block; pointer-events: none; }
  #features .feat {
    position: absolute; width: 168px; flex-direction: column; align-items: stretch; gap: 6px;
    border-radius: 16px; padding: 10px; text-align: center;
    background: rgba(255,255,255,0.55);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 16px 38px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.6);
    opacity: 0; transition: opacity .12s ease; will-change: opacity;
  }
  #features .feat .desc { order: 1; }                                  /* titre AU-DESSUS */
  #features .feat .bub  { order: 2; flex: none; width: 100%; border-radius: 9px; box-shadow: none; margin: 0; }
  #features .feat .desc h3 { font-size: 13px; margin: 0; }
  #features .feat .desc p { display: none; }
  #features .feat:nth-child(1) { top: 18px;  left: -8px;  right: auto; }
  #features .feat:nth-child(2) { top: 210px; right: -8px; left: auto; }
  #features .feat:nth-child(3) { top: 338px; left: -8px;  right: auto; }
}
/* Hero Export sur iPhone : juste la photo, sans les cartes explicatives */
/* Heros Export (5) et Lactate (6) sur iPhone : seulement la photo, pas de cartes/bulles ;
   même espace titre→hero que les heros 1/2 (margin-top 30px). */
@media (max-width: 700px) {
  #export .feats, #lactate .feats { display: none; }
  /* Une SEULE marge (sur l'iPhone) = même écart sous-titre→photo que le hero 2.
     Le callout ne doit PAS ajouter sa propre marge, sinon l'écart est doublé. */
  #export .callout, #lactate .callout { justify-content: center; margin-top: 0; }
  #export .callout .iphone, #lactate .callout .iphone { margin: 48px auto 0; max-width: 240px; }
}

.hero2 h1 { font-size: 64px; font-weight: 700; line-height: 1.04; letter-spacing: -0.022em; }
.hero2 h1 .accent { color: var(--blue); }
.hero2 p { font-size: 24px; color: var(--muted); margin: 16px auto 0; max-width: 620px; }
.hero2 .iphone { margin-top: 48px; max-width: 300px; }
/* Entrée au chargement — uniquement le 1er hero (au-dessus de la ligne de flottaison) */
.hero2.first h1 { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero2.first p { animation: fadeUp .8s .12s cubic-bezier(.2,.7,.2,1) both; }
.hero2.first .iphone { animation: fadeUp .9s .24s cubic-bezier(.2,.7,.2,1) both; }
@media (max-width: 600px) { .hero2 h1 { font-size: 40px; } .hero2 p { font-size: 19px; } .integrations h2 { font-size: 40px; } }

/* ── Apparition au scroll ── */
.reveal { opacity: 0; transform: translateY(50px) scale(.96);
  transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.shots .shot:nth-child(2) { transition-delay: .07s; }
.shots .shot:nth-child(3) { transition-delay: .14s; }
.shots .shot:nth-child(4) { transition-delay: .07s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero2 h1, .hero2 p, .hero2 .iphone { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ── Vitrine screenshots ── */
.showcase { max-width: 1100px; margin: 0 auto; padding: 40px 22px 96px; }
.showcase .intro { text-align: center; margin-bottom: 56px; }
.showcase .intro h1 { font-size: 48px; font-weight: 700; letter-spacing: -0.015em; }
.showcase .intro p { font-size: 22px; color: var(--muted); margin-top: 12px; }
.shots { display: grid; gap: 56px 36px; grid-template-columns: repeat(3, 1fr); }
.shot { text-align: center; }

/* Cadre iPhone autour du screenshot */
.iphone {
  position: relative; width: 100%; max-width: 258px; margin: 0 auto;
  background: #0c0c0e; border-radius: 46px; padding: 11px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.24), inset 0 0 0 2px rgba(255,255,255,0.06);
}
.iphone .screen {
  position: relative; border-radius: 36px; overflow: hidden; background: #000;
  line-height: 0;
}
.iphone .screen img { width: 100%; display: block; }
.iphone .island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 22px; background: #0c0c0e; border-radius: 13px; z-index: 3;
}
/* boutons latéraux */
.iphone::before, .iphone::after {
  content: ""; position: absolute; left: -2px; width: 3px; border-radius: 3px; background: #2a2a2e;
}
.iphone::before { top: 120px; height: 56px; }
.iphone::after  { top: 190px; height: 56px; }

/* Variante « bare » : le SVG Figma apporte déjà son propre cadre iPhone,
   on neutralise donc le cadre CSS (corps, ombre, encoche, boutons). */
.iphone.bare {
  background: none; padding: 0; border-radius: 0; box-shadow: none;
}
.iphone.bare::before, .iphone.bare::after { display: none; }
.iphone.bare img { width: 100%; display: block; border-radius: 0; }

.shot h3 { font-size: 21px; font-weight: 600; margin: 24px 0 7px; letter-spacing: -0.01em; }
.shot p { color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 330px; margin: 0 auto; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .shots { grid-template-columns: 1fr; } .showcase .intro h1 { font-size: 36px; } }

@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .hero h1 { font-size: 40px; } .hero .sub { font-size: 21px; }
  .section h2 { font-size: 28px; }
  .nav nav a { margin-left: 16px; }
}

/* ── Bascule de langue en place : animation « monte du bas » (comme .reveal) ── */
@keyframes wpLangIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.lang-anim { animation: wpLangIn .55s cubic-bezier(.2,.7,.2,1) both; }
.lang-switch { cursor: pointer; }

/* ===== Version ANGLAISE : TOUT le site en mode SOMBRE =====
   On garde les couleurs de marque (Zwift/Garmin/ERG) et l'accent lactate. */
html[lang="en"] {
  --text: #f2f2f5;
  --muted: #a1a1aa;
  --bg: #0a0a0b;
  --bg-alt: #141417;
  --line: rgba(255,255,255,.13);
  --blue: #2e8bff;
}
html[lang="en"] body { background: #0a0a0b; color: var(--text); }
html[lang="en"] .section.alt { background: #141417; }

/* Barre de navigation (verre sombre) */
html[lang="en"] .nav { background: rgba(20,20,22,.6); border-color: rgba(255,255,255,.10); }
html[lang="en"] .nav nav a { color: #f2f2f5; }
html[lang="en"] .nav-toggle span { background: #f2f2f5; }
html[lang="en"] .nav-inner > nav a:hover { background: rgba(255,255,255,.06); }

/* Volet déroulant mobile (menu hamburger) en anglais : fond SOMBRE.
   BUG CORRIGÉ : le volet gardait le fond clair `rgba(255,255,255,0.94)` de `.nav-inner > nav`
   (bloc mobile, plus haut) alors que le texte passait en clair #f2f2f5 → contraste 1,02:1,
   texte quasi invisible. Fond sombre + texte clair → 16,46:1. */
@media (max-width: 700px) {
  html[lang="en"] .nav-inner > nav {
    background: #141417;
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 14px 36px rgba(0,0,0,.55);
  }
  html[lang="en"] .nav-inner > nav a { color: #f2f2f5; }               /* 16,46:1 */
  html[lang="en"] .nav-inner > nav a:hover { background: rgba(255,255,255,.06); }   /* 14,2:1 */
  html[lang="en"] .nav-inner > nav a[aria-current="page"] { background: rgba(255,255,255,.10); }  /* 12,5:1 */
}

/* Focus clavier + bouton de langue en sombre */
html[lang="en"] .nav a:focus-visible,
html[lang="en"] .nav-toggle:focus-visible,
html[lang="en"] .lang-switch:focus-visible { outline-color: #4da3ff; }               /* 7,0:1 */
/* Le liseré du bouton FR/EN était noir (rgba(0,0,0,.14)) → invisible sur fond noir. */
html[lang="en"] .lang-switch { border-color: rgba(255,255,255,.22); }
/* Survol : texte NOIR sur le bleu clair (le blanc sur #2e8bff ne donnait que 3,36:1). */
html[lang="en"] .lang-switch:hover { background: var(--blue); color: #0a0a0b; }       /* 5,89:1 */

/* Halo du haut SUPPRIMÉ en anglais : c'est lui qui transparaissait sous la barre du haut et créait
   la « bande grise ». Sans lui, le haut est noir pur. */
html[lang="en"] .top-hero::before { background: none; }

/* Titres / textes à couleur figée → clairs */
html[lang="en"] .integrations h2,
html[lang="en"] .intg-name,
html[lang="en"] .feat .desc h3,
html[lang="en"] .mc-label,
html[lang="en"] .story-h,
html[lang="en"] .cap .card strong { color: #f2f2f5; }
html[lang="en"] .hero2 h1 .accent,
html[lang="en"] #story .story-h .accent { color: #2e8bff; }

/* Conteneurs/cartes blancs → sombres (hors cartes de marque export) */
html[lang="en"] .mcard,
html[lang="en"] .cap .card,
html[lang="en"] .feat .bub,
html[lang="en"] .intg,
html[lang="en"] .site-footer,
html[lang="en"] #export .feat .desc:not(.c-zwift):not(.c-garmin):not(.c-erg),
html[lang="en"] #lactate .feat .desc,
html[lang="en"] #nutrition .feat .desc { background: #141417; }
html[lang="en"] .mcard,
html[lang="en"] .cap .card,
html[lang="en"] .feat .bub,
html[lang="en"] .intg,
html[lang="en"] #export .feat .desc:not(.c-zwift):not(.c-garmin):not(.c-erg),
html[lang="en"] #lactate .feat .desc,
html[lang="en"] #nutrition .feat .desc { border-color: rgba(255,255,255,.09); }
/* Vert nutrition en sombre : 8,28:1 sur la carte #141417 */
html[lang="en"] #nutrition .feat .desc h3,
html[lang="en"] #nutrition h1 .accent { color: #34C759; }
html[lang="en"] .mcard { box-shadow: 0 14px 36px rgba(0,0,0,.55); }
html[lang="en"] .mc-label i { background: rgba(255,255,255,.08); }
html[lang="en"] .mc-bar { background: rgba(255,255,255,.13); }

/* Nav (.nav-inner) en anglais : NOIR PLEIN (couleur du fond) + fin liseré, sans reflet ni flou
   (le verre translucide paraissait gris sur le fond noir). */
html[lang="en"] .nav-inner {
  background: #0a0a0b;
  border-color: rgba(255,255,255,.10);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Voile flou du haut (.nav::before) en anglais : flou conservé (masque le contenu qui remonte →
   heure/batterie lisibles), fond NOIR opaque en haut (couleur du fond) qui s'estompe, SANS saturation. */
/* La barre .nav (sticky, transparente) rendait une bande légèrement plus claire que le fond noir.
   On lui donne EXACTEMENT la couleur du fond → plus de bande, et elle masque le contenu qui passe
   dessous (heure/batterie lisibles). Flou conservé pour frost le contenu qui remonte. */
html[lang="en"] .nav {
  background: #0a0a0b;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
html[lang="en"] .nav::before { display: none; }

/* SOUS-PAGES anglaises (à propos, FAQ, contact, légal, confidentialité, conditions) en sombre */
html[lang="en"] body.doc { background: #0a0a0b; }
html[lang="en"] body.contact { background: linear-gradient(180deg, #11151b 0%, #0a0a0b 340px, #0a0a0b 100%); }
html[lang="en"] .doc .legal,
html[lang="en"] .contact-card,
html[lang="en"] .cards a,
html[lang="en"] .cmethod,
html[lang="en"] .form input,
html[lang="en"] .form select,
html[lang="en"] .form textarea { background: #141417; border-color: rgba(255,255,255,.10); }
html[lang="en"] .legal p,
html[lang="en"] .legal li,
html[lang="en"] .doc .legal h3,
html[lang="en"] .form label,
html[lang="en"] .cmethod .v,
html[lang="en"] .form input,
html[lang="en"] .form select,
html[lang="en"] .form textarea { color: #f2f2f5; }
html[lang="en"] .form input::placeholder,
html[lang="en"] .form textarea::placeholder { color: rgba(255,255,255,.40); }
html[lang="en"] .card-ico { background: rgba(46,139,255,.16); }
html[lang="en"] .fill { background: rgba(255,214,90,.12); border-color: rgba(255,214,90,.30); color: #f0c860; }

/* Mobile : cartes de bulles (#features) en verre sombre */
@media (max-width: 700px) {
  html[lang="en"] #features .feat { background: rgba(20,20,22,.55); }
}


/* Badge « Bientôt » sur les intégrations pas encore connectables (Garmin, Wahoo, COROS,
   Hammerhead, Google Calendar) : les logos restent visibles — ces intégrations sont annoncées —
   mais la tuile ne prétend plus qu'elles fonctionnent déjà. */
.intg-soon {
  display: inline-block; margin-top: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: #8a6d1f; background: rgba(251,191,36,.18);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
html[lang="en"] .intg-soon { color: #FBBF24; background: rgba(251,191,36,.16); }
