/* =========================================================
   APEXIA — Page d'accueil
   Charte : navy #142352 · gold #f2d287 · Inter
   ========================================================= */
:root {
    --navy: #142352;
    --navy-950: #0a1430;
    --navy-900: #0e1a3f;
    --navy-800: #1a2b62;
    --gold: #f2d287;
    --gold-strong: #e8c063;
    --gold-soft: rgba(242, 210, 135, 0.12);
    --white: #ffffff;
    --text-soft: #dbe3ff;
    --muted: rgba(219, 227, 255, 0.66);
    --faint: rgba(219, 227, 255, 0.38);
    --line: rgba(255, 255, 255, 0.08);
    --line-gold: rgba(242, 210, 135, 0.28);
    --card: rgba(255, 255, 255, 0.035);
    --shadow-lg: 0 30px 80px rgba(3, 8, 28, 0.55);
    --radius: 24px;
    --radius-sm: 14px;
    --container: 1180px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--navy);
    color: var(--white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.accent { color: var(--gold); }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Background ambience ── */
.ambient {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(900px 520px at 85% -10%, rgba(242, 210, 135, 0.13), transparent 60%),
        radial-gradient(800px 600px at -10% 30%, rgba(76, 110, 220, 0.18), transparent 60%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%);
}
.ambient::after {
    content: ""; position: absolute; inset: 0;
    background-image: 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: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 28px; border-radius: 999px;
    font-size: 15.5px; font-weight: 700; letter-spacing: .1px;
    border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-gold {
    background: linear-gradient(135deg, #f7e0a6 0%, var(--gold) 45%, var(--gold-strong) 100%);
    color: var(--navy);
    box-shadow: 0 10px 30px rgba(242, 210, 135, 0.28), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(242, 210, 135, 0.38), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-light { background: var(--white); color: var(--navy); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.btn-light:hover { transform: translateY(-2px); background: #f4f6ff; }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--white); border-color: rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--gold); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }

.cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-band { padding: 8px 0 0; }
@media (max-width: 640px) {
    .cta-row { flex-direction: column; align-items: stretch; max-width: 420px; margin: 0 auto; }
}

/* ── Logo centré (pas de header) ── */
.top-logo {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 32px 16px 0; font-weight: 900; font-size: 24px; letter-spacing: 2px;
}
.top-logo img { height: 38px; width: auto; }
@media (max-width: 640px) { .top-logo { padding-top: 24px; font-size: 20px; } .top-logo img { height: 32px; } }

/* ── Hero ── */
.hero { padding: 36px 0 24px; text-align: center; }
.proof-pill {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 6px 18px 6px 6px; border-radius: 999px;
    background: rgba(255,255,255,.06); border: 1px solid var(--line);
    font-size: 14px; color: var(--text-soft);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.proof-pill strong { color: var(--gold); font-weight: 800; }
.avatars { display: flex; }
.avatars > * {
    width: 32px; height: 32px; border-radius: 50%; margin-left: -10px; background: var(--navy-800);
    border: 2px solid var(--navy); object-fit: cover; flex-shrink: 0;
}
.avatars > *:first-child { margin-left: 0; }
.avatar-initial {
    display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--navy);
    background: linear-gradient(135deg, #f7e0a6, var(--gold-strong));
}
.avatar-initial:nth-child(2n) { background: linear-gradient(135deg, #c9d4ff, #8fa3ee); }
.avatar-initial:nth-child(3n) { background: linear-gradient(135deg, #ffffff, #dbe3ff); }

.hero h1 {
    margin: 22px auto 14px; max-width: 1200px;
    font-size: clamp(30px, 4.3vw, 54px); line-height: 1.1; font-weight: 900; letter-spacing: -1.4px;
    text-wrap: balance;
}
.hero-sub { margin: 0 auto; font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); text-wrap: balance; }

/* ── Video player ── */
.player-wrap { margin: 32px auto 0; max-width: 980px; position: relative; }
.player-wrap::before {
    content: ""; position: absolute; inset: -1px; border-radius: calc(var(--radius) + 1px);
    background: linear-gradient(140deg, rgba(242,210,135,.7), rgba(242,210,135,0) 35%, rgba(255,255,255,0) 65%, rgba(242,210,135,.45));
    z-index: 0;
}
.player-wrap::after {
    content: ""; position: absolute; left: 10%; right: 10%; bottom: -40px; height: 80px; z-index: -1;
    background: radial-gradient(ellipse, rgba(242,210,135,.25), transparent 70%); filter: blur(20px);
}
.player {
    position: relative; z-index: 1; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
    background: #050b20; box-shadow: var(--shadow-lg); isolation: isolate;
    user-select: none; -webkit-user-select: none;
}
.player video, .player .yt-host, .player .yt-host iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #050b20; }
.player .yt-shield { position: absolute; inset: 0; z-index: 2; }
.player:fullscreen { border-radius: 0; aspect-ratio: auto; }
.player:fullscreen video { object-fit: contain; }

/* Poster / start */
.player-start {
    position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    background: #050b20 center / cover no-repeat; cursor: pointer; border: 0; padding: 20px; color: var(--white);
    transition: opacity .5s var(--ease), visibility .5s;
}
.player-start::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(10,20,48,.25), rgba(10,20,48,.78) 75%),
                linear-gradient(0deg, rgba(10,20,48,.85), transparent 45%);
}
.player-start > * { position: relative; }
.player.started .player-start { opacity: 0; visibility: hidden; }
.play-btn {
    width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, #f7e0a6, var(--gold) 50%, var(--gold-strong));
    color: var(--navy); box-shadow: 0 18px 50px rgba(242,210,135,.4);
    transition: transform .35s var(--ease);
}
.play-btn svg { width: 34px; height: 34px; margin-left: 5px; }
.play-btn::before, .play-btn::after {
    content: ""; position: absolute; width: 92px; height: 92px; border-radius: 50%;
    border: 2px solid rgba(242,210,135,.55); animation: ripple 2.6s var(--ease) infinite;
}
.play-btn::after { animation-delay: 1.3s; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.player-start:hover .play-btn { transform: scale(1.07); }
.start-title { font-size: clamp(16px, 2vw, 20px); font-weight: 800; }
.start-meta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--text-soft); }
.chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
    background: rgba(10,20,48,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px);
}
.chip svg { width: 14px; height: 14px; }
.chip-gold { color: var(--gold); border-color: var(--line-gold); }

/* Controls */
.controls {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
    padding: 40px 18px 14px;
    background: linear-gradient(0deg, rgba(5,11,32,.9), rgba(5,11,32,0));
    display: flex; flex-direction: column; gap: 10px;
    opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.player.started .controls { opacity: 1; transform: none; }
.player.started.playing.idle .controls { opacity: 0; transform: translateY(6px); }
.player.started.playing.idle { cursor: none; }
.ctrl-row { display: flex; align-items: center; gap: 6px; }
.ctrl-btn {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: transparent; border: 0; color: var(--white); cursor: pointer; transition: background .2s, color .2s;
}
.ctrl-btn:hover { background: rgba(255,255,255,.1); color: var(--gold); }
.ctrl-btn svg { width: 20px; height: 20px; }
.ctrl-time { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-soft); margin-left: 6px; }
.ctrl-spacer { flex: 1; }
.ctrl-lock { font-size: 12px; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; }
.ctrl-lock svg { width: 14px; height: 14px; }

.progress { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; }
.progress-track { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; transition: height .2s; }
.progress:hover .progress-track { height: 6px; }
.progress-watched { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.28); }
.progress-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--gold-strong), var(--gold)); }
.progress-thumb {
    position: absolute; top: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
    background: var(--gold); transform: translateY(-50%) scale(0); transition: transform .2s; box-shadow: 0 0 0 4px rgba(242,210,135,.25);
}
.progress:hover .progress-thumb { transform: translateY(-50%) scale(1); }

/* Toast in player */
.player-toast {
    position: absolute; top: 18px; left: 50%; z-index: 6; transform: translate(-50%, -10px);
    display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
    background: rgba(10,20,48,.92); border: 1px solid var(--line-gold); color: var(--text-soft);
    font-size: 13px; font-weight: 600; white-space: nowrap; max-width: calc(100% - 32px);
    opacity: 0; pointer-events: none; transition: .3s var(--ease);
}
.player-toast svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
.player-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Center pause indicator */
.player-center {
    position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none;
}
.player-center span {
    width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(10,20,48,.6); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.15);
    opacity: 0; transform: scale(.85); transition: .3s var(--ease);
}
.player-center svg { width: 28px; height: 28px; }
.player.started:not(.playing):not(.ended) .player-center span { opacity: 1; transform: none; }

/* End screen */
.player-end {
    position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    padding: 24px; text-align: center; background: rgba(8, 16, 42, .82); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: .5s var(--ease);
}
.player.ended .player-end { opacity: 1; visibility: visible; }
.end-check {
    width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    background: var(--gold-soft); border: 1.5px solid var(--line-gold); color: var(--gold);
}
.end-check svg { width: 30px; height: 30px; }
.player-end h3 { margin: 0; font-size: clamp(20px, 2.6vw, 28px); font-weight: 900; letter-spacing: -.5px; }
.player-end p { margin: 0; color: var(--muted); max-width: 440px; }
.end-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

@media (max-width: 640px) {
    .proof-pill { font-size: 12.5px; gap: 10px; padding-right: 14px; text-align: left; }
    .avatars > * { width: 26px; height: 26px; margin-left: -8px; }
    .avatars > *:nth-child(n+6) { display: none; }
    .player-wrap { margin-top: 30px; }
    .player { border-radius: 18px; }
    .play-btn, .play-btn::before, .play-btn::after { width: 70px; height: 70px; }
    .play-btn svg { width: 26px; height: 26px; }
    .start-title { display: none; }
    .controls { padding: 30px 8px 6px; gap: 4px; }
    .ctrl-btn { width: 36px; height: 36px; }
    .ctrl-lock span { display: none; }
    .player-end p { display: none; }
}

/* ── Gate panel (sous la vidéo) ── */
.gate {
    margin: 26px auto 0; max-width: 620px;
    display: flex; align-items: center; gap: 18px; text-align: left;
    padding: 16px 22px 16px 16px; border-radius: 20px;
    background: linear-gradient(135deg, rgba(242,210,135,.08), rgba(255,255,255,.02));
    border: 1px solid var(--line-gold);
    transition: opacity .5s var(--ease), transform .5s var(--ease), max-height .6s var(--ease), margin .6s var(--ease), padding .6s var(--ease);
    max-height: 200px; overflow: hidden;
}
.gate.pulse { animation: pulse 0.9s var(--ease); }
@keyframes pulse { 0%,100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.gate.done { opacity: 0; transform: translateY(-10px); max-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
.ring { position: relative; width: 58px; height: 58px; flex-shrink: 0; }
.ring svg { width: 58px; height: 58px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .ring-bg { stroke: rgba(255,255,255,.1); }
.ring .ring-fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .4s linear; }
.ring-icon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); }
.ring-icon svg { width: 20px; height: 20px; transform: none; }
.gate-text strong { display: block; font-size: 15.5px; font-weight: 800; }
.gate-text span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.gate-text b { color: var(--gold); font-variant-numeric: tabular-nums; }

/* ── Contenu verrouillé ── */
.gated { position: relative; }
.gated.is-locked {
    max-height: 360px; overflow: hidden; pointer-events: none; user-select: none;
    filter: blur(7px) saturate(.7); opacity: .4;
    mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.gated.is-unlocking { animation: unlock 1.1s var(--ease) both; }
@keyframes unlock { from { opacity: .3; filter: blur(8px); } to { opacity: 1; filter: none; } }

/* ── Sections ── */
.section { padding: 96px 0 40px; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 48px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--gold);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--gold); opacity: .6; }
.section-head h2 { margin: 0 0 16px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; font-weight: 900; letter-spacing: -1.2px; text-wrap: balance; }
.section-head p { margin: 0; font-size: clamp(16px, 1.7vw, 18px); color: var(--muted); text-wrap: balance; }
.section-head p strong { color: var(--gold); font-weight: 700; }
.section-cta { margin-top: 56px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.card {
    position: relative; display: flex; flex-direction: column; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
    border: 1px solid var(--line); overflow: hidden;
    transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.card::before {
    content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242,210,135,.7), transparent);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-gold); box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.card-label {
    display: flex; align-items: center; gap: 10px; padding: 20px 22px 0;
    font-size: 13px; font-weight: 700; color: var(--text-soft);
}
.card-label .num {
    width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
    background: var(--gold-soft); color: var(--gold); font-size: 12px; font-weight: 900;
}
.card-label b { color: var(--gold); font-weight: 700; }
.card-visual {
    margin: 16px 16px 0; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; position: relative;
    background: radial-gradient(circle at 30% 20%, rgba(76,110,220,.25), transparent 60%), var(--navy-950);
    border: 1px solid var(--line);
}
.card-visual > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-visual > img { transform: scale(1.04); }
.card-visual.contain > img { object-fit: contain; padding: 10px; }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.card-body p { margin: 0; font-size: 14.5px; color: var(--muted); }
.card-body p strong { color: var(--white); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text-soft); }

/* Visual: zéro créneau */
.v-zero { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.v-zero-title { display: flex; align-items: center; gap: 10px; font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: -1px; }
.v-zero-title .x { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 92, 92, .14); color: #ff6b6b; }
.v-zero-title .x svg { width: 20px; height: 20px; }
.v-zero-sub { font-size: 13px; color: var(--muted); margin-top: -6px; }
.slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.slot { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--line-gold); }
.slot svg { width: 12px; height: 12px; }

/* Visual mockups (suivi) */
.mock { position: absolute; inset: 0; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 11px; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.mock-tile { border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; justify-content: space-between; }
.mock-tile small { font-size: 9.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--faint); font-weight: 700; }
.mock-tile strong { font-size: 20px; font-weight: 900; letter-spacing: -.5px; line-height: 1.1; }
.mock-tile .ok { color: #5ee0a0; }
.mock-tile .gold { color: var(--gold); }
.mock-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.mock-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold-strong), var(--gold)); }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-weight: 600; }

.call { position: absolute; inset: 0; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.call-tile {
    position: relative; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
    background: linear-gradient(160deg, #22356f, #101c45); border: 1px solid var(--line);
}
.call-tile.speaking { box-shadow: 0 0 0 2px var(--gold); }
.call-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.call-tile .call-name, .call-tile .wave { z-index: 1; }
.call-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,11,32,.35), transparent 35%, transparent 70%, rgba(5,11,32,.45)); pointer-events: none; }
.call-avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: var(--navy); background: linear-gradient(135deg, #f7e0a6, var(--gold-strong)); }
.call-tile:nth-child(2) .call-avatar { background: linear-gradient(135deg, #dbe3ff, #8fa3ee); }
.call-name { position: absolute; left: 8px; top: 8px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(5,11,32,.7); }
.call-bar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(5,11,32,.8); border: 1px solid var(--line); }
.call-bar span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.call-bar span.end { background: #e5484d; }
.call-bar svg { width: 12px; height: 12px; }
.wave { display: flex; gap: 2px; align-items: center; height: 14px; position: absolute; top: 8px; right: 8px; }
.wave i { width: 3px; border-radius: 2px; background: var(--gold); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; } .wave i:nth-child(4) { animation-delay: .45s; }
@keyframes wave { 0%,100% { height: 4px; } 50% { height: 14px; } }

.score { position: absolute; inset: 0; padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.score-ring { position: relative; width: 104px; height: 104px; }
.score-ring svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 7; }
.score-ring .bg { stroke: rgba(255,255,255,.08); }
.score-ring .fg { stroke: var(--gold); stroke-linecap: round; }
.score-ring div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-pts { font-size: 11px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; margin-bottom: 3px; letter-spacing: .2px; }
.score-ring strong { font-size: 22px; font-weight: 900; line-height: 1; }
.score-ring small { font-size: 9px; color: var(--faint); font-weight: 700; letter-spacing: .6px; text-transform: uppercase; margin-top: 3px; }
.skills { display: flex; flex-direction: column; gap: 7px; }
.skill { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 12px; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.delta { position: absolute; top: 12px; right: 12px; font-size: 10.5px; font-weight: 800; color: #5ee0a0; background: rgba(94,224,160,.1); border: 1px solid rgba(94,224,160,.25); padding: 3px 8px; border-radius: 999px; }

/* ── Progression (escalier) ── */
.stairs-wrap {
    position: relative; padding: 32px 28px 26px; border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    border: 1px solid var(--line);
}
.stairs { position: relative; display: grid; grid-template-columns: 1fr 1.1fr 1.35fr 1.7fr auto; align-items: end; gap: 0; }
.step { position: relative; display: flex; flex-direction: column; }
.step-level {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px -10px;
    font-size: 22px; font-weight: 900; letter-spacing: -.5px; color: var(--gold);
}
.step-level::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(242,210,135,.18); }
.step-box {
    border: 1px solid var(--line-gold); border-right: 0; border-bottom: 0;
    background: linear-gradient(180deg, rgba(242,210,135,.09), rgba(242,210,135,.015));
    padding: 18px 16px; display: flex; flex-direction: column; gap: 10px;
    transition: background .3s;
}
.step:hover .step-box { background: linear-gradient(180deg, rgba(242,210,135,.16), rgba(242,210,135,.03)); }
.step:nth-child(1) .step-box { min-height: 120px; border-top-left-radius: 14px; }
.step:nth-child(2) .step-box { min-height: 168px; }
.step:nth-child(3) .step-box { min-height: 216px; }
.step:nth-child(4) .step-box { min-height: 264px; border-right: 1px solid var(--line-gold); border-top-right-radius: 14px; }
.step-dur { font-size: clamp(20px, 2.2vw, 28px); font-weight: 900; letter-spacing: -.6px; }
.step-dur small { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.step-scores { display: flex; flex-direction: column; gap: 4px; }
.step-scores span { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); padding: 4px 0; border-top: 1px dashed rgba(255,255,255,.08); }
.step-scores b { color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums; }
.stairs-final { align-self: start; margin-top: -8px; padding-left: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stairs-final .trophy {
    width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
    background: linear-gradient(135deg, #f7e0a6, var(--gold-strong)); color: var(--navy);
    box-shadow: 0 14px 34px rgba(242,210,135,.35); font-size: 24px; font-weight: 900;
}
.stairs-final span { font-size: 12px; color: var(--gold); font-weight: 700; }

.timeline { position: relative; margin-top: 28px; padding-top: 6px; }
.timeline-bar { position: relative; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); }
.timeline-bar i { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, var(--gold-strong), var(--gold)); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease) .2s; }
.reveal.in .timeline-bar i, .timeline.in .timeline-bar i { transform: scaleX(1); }
.timeline-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.timeline-labels b { color: var(--gold); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.legend span { font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text-soft); }
.legend b { color: var(--gold); margin-right: 4px; }

@media (max-width: 860px) {
    .stairs-wrap { padding: 22px 18px; }
    .stairs { grid-template-columns: 1fr; gap: 14px; padding-left: 22px; }
    .stairs::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 30px; width: 2px; background: linear-gradient(var(--gold), rgba(242,210,135,.15)); }
    .step-level { margin-left: -23px; margin-bottom: 8px; }
    .step .step-box, .step:nth-child(n) .step-box { min-height: 0; border: 1px solid var(--line-gold); border-radius: 14px; }
    .stairs-final { flex-direction: row; align-self: auto; margin: 4px 0 0 -23px; padding-left: 0; }
    .stairs-final .trophy { width: 48px; height: 48px; border-radius: 14px; font-size: 18px; }
}

/* ── Témoignages ── */
.testi { position: relative; }
.testi-track {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 6px calc(50% - 160px) 12px; scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
    flex: 0 0 320px; scroll-snap-align: center; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; position: relative;
    background: var(--navy-950); border: 1px solid var(--line);
    transition: transform .5s var(--ease), opacity .5s, border-color .3s;
    transform: scale(.9); opacity: .5;
}
.testi-card.active { transform: none; opacity: 1; border-color: var(--line-gold); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.testi-card > img:not(.testi-flag), .testi-card > video { width: 100%; height: 100%; object-fit: cover; background: #050b20; }
.testi-card .testi-flag {
    position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 1; pointer-events: none;
    width: 64px; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.testi-info {
    position: absolute; inset: auto 0 0 0; z-index: 1; pointer-events: none;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    padding: 70px 18px 18px;
    background: linear-gradient(to top, rgba(5,11,32,.92) 0%, rgba(5,11,32,.55) 55%, transparent 100%);
    transition: opacity .3s;
}
.testi-stars { display: inline-flex; gap: 3px; flex: none; }
.testi-stars svg { width: 17px; height: 17px; fill: rgba(255,255,255,.25); }
.testi-stars svg.on { fill: #f5b83d; }
.testi-name {
    color: #fff; font-size: 16px; font-weight: 800; line-height: 1.25; text-align: right;
    text-shadow: 0 2px 8px rgba(0,0,0,.5); margin-left: auto;
}
.testi-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
    width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
    background: #e0344f; color: #fff; box-shadow: 0 10px 26px rgba(224,52,79,.45);
    transition: transform .2s var(--ease), opacity .3s;
}
.testi-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.testi-play svg { width: 24px; height: 24px; margin-left: 3px; }
.testi-card.playing .testi-play,
.testi-card.playing .testi-info,
.testi-card.playing .testi-flag { opacity: 0; pointer-events: none; }
.testi-flag { transition: opacity .3s; }
.testi-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: rgba(10,20,48,.75); border: 1px solid var(--line-gold); color: var(--gold); backdrop-filter: blur(8px);
    transition: background .2s, transform .2s;
}
.testi-nav:hover { background: var(--gold); color: var(--navy); }
.testi-nav svg { width: 22px; height: 22px; }
.testi-nav.prev { left: calc(50% - 250px); }
.testi-nav.next { right: calc(50% - 250px); }
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.testi-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.2); cursor: pointer; transition: width .35s var(--ease), background .3s; }
.testi-dots button.active { width: 28px; background: var(--gold); }
@media (max-width: 640px) {
    .testi-card { flex-basis: 78vw; }
    .testi-track { padding-inline: 11vw; }
    .testi-nav { display: none; }
}

/* ── CTA finale ── */
.final-cta {
    margin: 100px auto 0; padding: 56px 28px; text-align: center; border-radius: 32px; position: relative; overflow: hidden;
    background: radial-gradient(700px 300px at 50% 0%, rgba(242,210,135,.18), transparent 70%), linear-gradient(180deg, #1b2d66, #111e48);
    border: 1px solid var(--line-gold);
}
.final-cta h2 { margin: 0 auto 14px; max-width: 720px; font-size: clamp(28px, 3.8vw, 42px); line-height: 1.12; font-weight: 900; letter-spacing: -1px; text-wrap: balance; }
.final-cta p { margin: 0 auto 30px; max-width: 580px; color: var(--muted); }

/* ── Footer ── */
.footer { margin-top: 96px; border-top: 1px solid rgb(255 254 2 / 39%); } /*  background: rgba(5,11,32,.4); */
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 64px 0 48px; }
.footer h4 { margin: 0 0 20px; font-size: 18px; font-weight: 800; color: var(--gold); }
.footer p { margin: 0 0 12px; font-size: 16px; color: rgba(255,255,255,.88); }
.footer .footer-about { max-width: 330px; line-height: 1.6; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--gold); }
.socials { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.socials a {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; color: var(--navy);
    transition: transform .2s var(--ease), box-shadow .2s;
}
.socials a:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.3); }
.socials svg { width: 22px; height: 22px; }
.socials .social-facebook  { background: #1877f2; color: #fff; }
.socials .social-twitter   { background: #1d9bf0; color: #fff; }
.socials .social-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; }
.socials .social-youtube   { background: #ff0000; color: #fff; }
.socials .social-linkedin  { background: #0a66c2; color: #fff; }
.socials .social-tiktok    { background: #000; color: #fff; }
.socials .social-telegram  { background: #26a5e4; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ── WhatsApp ── */
.wa {
    position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center; background: #25d366; box-shadow: 0 12px 30px rgba(37,211,102,.35);
    transition: transform .25s var(--ease);
}
.wa:hover { transform: scale(1.08); }
.wa img { width: 34px; height: 34px; }
.wa-badge { position: absolute; top: -2px; right: -2px; width: 20px; height: 20px; border-radius: 50%; background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--navy); }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.1s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
