/* ==========================================================================
   KARTA - Landing v2
   Thème sombre verrouillé, un seul accent (lime), rayons : 20px cartes / pilule boutons
   ========================================================================== */

:root {
    --bg: #0a0a0b;
    --bg-2: #111113;
    --bg-3: #18181b;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #f4f4f1;
    --muted: #a1a19b;
    --subtle: #6d6d68;
    --accent: #d4ff3f;
    --accent-ink: #0c0f02;
    --accent-soft: rgba(212, 255, 63, .12);
    --accent-fg: #d4ff3f;   /* accent utilisé comme couleur de texte ou d'icône */

    --f-display: 'Clash Display', 'Satoshi', system-ui, sans-serif;
    --f-body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --r: 20px;
    --r-sm: 14px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --container: 1320px;
    --gutter: clamp(16px, 4vw, 40px);
    --nav-h: 72px;

    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(88px, 12vw, 160px); }

/* ---------- Typo ---------- */
.h2 {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(2.3rem, 5.2vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -.025em;
    word-spacing: .05em;
    text-wrap: balance;
}
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 46ch; }
.is-accent { color: var(--accent-fg); }

/* Découpage en mots pour les révélations */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- Boutons ---------- */
.btn {
    --pad-y: 14px; --pad-x: 24px;
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: var(--pad-y) var(--pad-x);
    border-radius: 999px;
    font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
    transition: transform .5s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .4s var(--ease);
    isolation: isolate;
}
.btn i { font-size: 1.15em; transition: transform .45s var(--ease); }
.btn:hover i.ph-arrow-right { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--sm { --pad-y: 11px; --pad-x: 18px; font-size: 14px; }
.btn--lg { --pad-y: 18px; --pad-x: 30px; font-size: 16px; }
.btn--xl { --pad-y: 22px; --pad-x: 36px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { box-shadow: 0 10px 40px -10px rgba(212, 255, 63, .55); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.btn--glass {
    color: #fff; border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(20, 20, 22, .45);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn--glass:hover { background: rgba(20, 20, 22, .65); }
.btn--ghost .ph-whatsapp-logo, .btn--glass .ph-whatsapp-logo { color: #25d366; }

/* ---------- Marque ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
    width: 32px; height: 32px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--accent); color: var(--accent-ink);
}
.brand__mark i { font-size: 18px; transform: rotate(90deg); }
.brand__word { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -.03em; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--nav-h);
    transition: transform .6s var(--ease), background-color .4s, border-color .4s;
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    background: rgba(10, 10, 11, .72);
    backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
    height: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__links { display: flex; gap: 4px; }
.nav__links a {
    padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted);
    transition: color .25s, background-color .25s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__login { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .25s; }
.nav__login:hover { color: var(--text); }

.burger { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mmenu {
    position: fixed; inset: 0; z-index: 45;
    background: var(--bg);
    padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
    display: flex; flex-direction: column; justify-content: space-between;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .8s var(--ease);
    visibility: hidden;
}
.mmenu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mmenu__links { display: flex; flex-direction: column; }
.mmenu__links a {
    font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -.02em;
    padding-block: 6px; border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(20px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.mmenu.is-open .mmenu__links a { opacity: 1; transform: none; }
.mmenu.is-open .mmenu__links a:nth-child(2) { transition-delay: .05s; }
.mmenu.is-open .mmenu__links a:nth-child(3) { transition-delay: .1s; }
.mmenu.is-open .mmenu__links a:nth-child(4) { transition-delay: .15s; }
.mmenu.is-open .mmenu__links a:nth-child(5) { transition-delay: .2s; }
.mmenu.is-open .mmenu__links a:nth-child(6) { transition-delay: .25s; }
.mmenu__foot { display: grid; gap: 12px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex; align-items: center;
    padding-top: calc(var(--nav-h) + 24px);
    padding-bottom: 48px;
    overflow: hidden;
}
.hero__glow {
    position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 90vh; pointer-events: none;
    background:
        radial-gradient(closest-side, rgba(212, 255, 63, .10), transparent 70%),
        radial-gradient(60% 60% at 70% 40%, rgba(255, 255, 255, .04), transparent 70%);
    filter: blur(20px);
}
.hero__grid {
    position: relative;
    display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px);
}
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 500; color: var(--muted);
    padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px;
    margin-bottom: 28px;
}
.hero__eyebrow i { color: var(--accent-fg); font-size: 16px; }
.hero__title {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(2.6rem, 4.7vw, 4.8rem);
    line-height: 1;
    letter-spacing: -.03em;
    word-spacing: .06em;
}
.hero__sub { margin-top: 28px; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--muted); max-width: 40ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---- Scène ---- */
.scene { position: relative; height: min(640px, 72vh); perspective: 1400px; }
.scene__inner { position: absolute; inset: 0; }

.phone {
    position: relative;
    width: 290px; aspect-ratio: 9 / 19;
    border-radius: 46px;
    padding: 11px;
    background: linear-gradient(145deg, #3a3a3e, #121214 40%, #2a2a2d);
    box-shadow:
        inset 0 0 0 1.5px rgba(255, 255, 255, .12),
        0 50px 100px -30px rgba(0, 0, 0, .8),
        0 30px 60px -40px rgba(212, 255, 63, .15);
}
.phone__island {
    position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
    width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 5;
}
.phone__screen {
    position: relative; width: 100%; height: 100%;
    border-radius: 36px; overflow: hidden;
    background: #0d0d0f;
}
.phone--hero { position: absolute; left: 4%; z-index: 1; top: 50%; transform: translateY(-50%) rotate(-4deg); }

.p-lock {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; padding-top: 74px;
    background:
        radial-gradient(120% 70% at 50% 110%, rgba(212, 255, 63, .22), transparent 60%),
        linear-gradient(180deg, #17171a, #0b0b0c);
}
.p-lock__time { font-family: var(--f-display); font-weight: 500; font-size: 64px; line-height: 1; letter-spacing: -.02em; }
.p-lock__date { font-size: 14px; color: var(--muted); margin-top: 6px; }
.p-lock__hint {
    margin-top: auto; margin-bottom: 42px;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--muted);
    padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06);
}
.p-lock__hint i { color: var(--accent-fg); font-size: 15px; }

.p-notif {
    position: absolute; left: 10px; right: 10px; top: 56px; z-index: 4;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 18px;
    background: rgba(40, 40, 44, .85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .08);
    opacity: 0;
}
.p-notif__icon { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.p-notif__icon i { transform: rotate(90deg); }
.p-notif__text { display: flex; flex-direction: column; line-height: 1.25; font-size: 12px; min-width: 0; }
.p-notif__text small { color: var(--muted); font-size: 11px; }
.p-notif__open { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--accent-fg); }

.p-profile {
    position: absolute; inset: 0; opacity: 0;
    display: flex; flex-direction: column; align-items: center;
    background: #0e0e10;
    padding: 0 14px;
}
.p-cover {
    position: absolute; inset: 0 0 auto 0; height: 118px;
    background:
        radial-gradient(90% 120% at 20% 0%, rgba(212, 255, 63, .55), transparent 60%),
        linear-gradient(135deg, #2b3a0b, #0e0e10 80%);
}
.p-avatar {
    position: relative; margin-top: 78px;
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
    border: 3px solid #0e0e10;
}
.p-name { font-family: var(--f-display); font-weight: 600; font-size: 19px; margin-top: 8px; }
.p-role { font-size: 11.5px; color: var(--muted); }
.p-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; margin-top: 14px; }
.p-actions span {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 4px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 10.5px; font-weight: 500;
}
.p-actions i { font-size: 17px; }
.p-actions .is-wa { background: #25d366; color: #06230f; }
.p-links { display: grid; gap: 6px; width: 100%; margin-top: 10px; }
.p-links span {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 12px; border-radius: 12px; font-size: 12px; font-weight: 500;
    background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .06);
}
.p-links i { font-size: 15px; color: var(--accent-fg); }

/* Ondes NFC */
.h-rings { position: absolute; left: 56%; top: 40%; z-index: 2; width: 0; height: 0; pointer-events: none; }
.h-rings span {
    position: absolute; left: -80px; top: -80px; width: 160px; height: 160px; border-radius: 50%;
    border: 1.5px solid var(--accent); opacity: 0; transform: scale(.2);
}

/* Carte 3D */
.h-card-wrap {
    position: absolute; right: 2%; bottom: 10%;
    width: min(360px, 62%); aspect-ratio: 85.6 / 54;
    perspective: 1000px;
    z-index: 3;
}
.h-card {
    position: absolute; inset: 0;
    border-radius: 18px;
    padding: 22px 24px;
    display: flex; flex-direction: column; justify-content: space-between;
    background:
        repeating-linear-gradient(100deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
        linear-gradient(135deg, #2a2a2e 0%, #121214 45%, #1d1d20 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        inset 0 0 0 1px rgba(255, 255, 255, .07),
        0 40px 80px -20px rgba(0, 0, 0, .85),
        0 18px 30px -18px rgba(0, 0, 0, .9);
    transform: rotateX(18deg) rotateY(-22deg) rotateZ(-10deg);
    transform-style: preserve-3d;
    overflow: hidden;
}
.h-card__shine {
    position: absolute; inset: -50%;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .13) 50%, transparent 60%);
    transform: translateX(-30%);
    pointer-events: none;
}
.h-card__top { display: flex; justify-content: space-between; align-items: center; }
.h-card__logo { font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: -.03em; color: var(--accent-fg); }
.h-card__nfc { font-size: 28px; color: rgba(255, 255, 255, .7); }
.h-card__bottom { display: flex; flex-direction: column; line-height: 1.2; }
.h-card__name { font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.h-card__role { font-size: 13px; color: var(--muted); }

/* ==========================================================================
   RÉASSURANCE + MARQUEE
   ========================================================================== */
.assure { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(17, 17, 19, .6); }
.assure__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.assure__item {
    display: flex; align-items: center; gap: 14px;
    padding: 28px 20px;
    border-left: 1px solid var(--line);
}
.assure__item:first-child { border-left: 0; padding-left: 0; }
.assure__item i { font-size: 28px; color: var(--accent-fg); flex: none; }
.assure__item span { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); line-height: 1.35; }
.assure__item strong { color: var(--text); font-size: 15.5px; font-weight: 700; }

.marquee { border-top: 1px solid var(--line); overflow: hidden; padding-block: 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 56px; padding-right: 56px; }
.marquee__group span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 500; font-size: 22px; color: var(--muted); white-space: nowrap; }
.marquee__group i { font-size: 24px; color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   MANIFESTE
   ========================================================================== */
.manifesto { min-height: 100dvh; display: flex; align-items: center; padding-block: 80px; }
.manifesto__text {
    font-family: var(--f-display); font-weight: 500;
    font-size: clamp(2rem, 4.6vw, 4.2rem);
    line-height: 1.12; letter-spacing: -.02em;
    max-width: 22ch;
}
.manifesto__text .mw { opacity: .14; transition: none; }
.no-anim .manifesto__text .mw { opacity: 1; }

/* ==========================================================================
   BENTO
   ========================================================================== */
#avantages .h2 { margin-bottom: clamp(48px, 6vw, 80px); }
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(260px, auto);
    gap: 16px;
}
.tile {
    position: relative; overflow: hidden;
    border-radius: var(--r);
    background: var(--bg-2);
    border: 1px solid var(--line);
    padding: 32px;
    display: flex; flex-direction: column;
}
.tile h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.12; letter-spacing: -.015em; }
.tile p { color: var(--muted); font-size: 15.5px; margin-top: 10px; max-width: 38ch; }
.tile--a { grid-column: span 2; grid-row: span 2; }
.tile--b { grid-column: span 1; }
.tile--c { grid-column: span 1; }
.tile--d { grid-column: span 2; }
.tile--e { grid-column: span 2; }
.tile--f { grid-column: span 2; }

.tile--photo { padding: 0; justify-content: flex-end; border: 0; }
.tile--photo img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 11, 0) 30%, rgba(10, 10, 11, .9) 100%); }
.tile__content { position: relative; z-index: 1; padding: 32px; }
.tile__content p { color: rgba(244, 244, 241, .78); }
.tile__icon { font-size: 30px; color: var(--accent-fg); margin-bottom: 14px; display: block; }

.tile--accent { background: var(--accent); color: var(--accent-ink); border: 0; justify-content: flex-end; }
.tile--accent p { color: rgba(12, 15, 2, .7); }
.tile__big { font-family: var(--f-display); font-weight: 600; font-size: clamp(6rem, 11vw, 9rem); line-height: .8; letter-spacing: -.05em; margin-bottom: auto; }

.edit-demo { margin-top: auto; padding-top: 20px; }
.edit-demo label { font-size: 12px; color: var(--subtle); font-weight: 500; }
.edit-demo__field {
    margin-top: 6px; display: flex; align-items: center;
    padding: 12px 14px; border-radius: 12px;
    background: var(--bg); border: 1px solid var(--line-2);
    font-weight: 500; font-variant-numeric: tabular-nums;
}
.caret { display: inline-block; width: 1.5px; height: 18px; background: var(--accent); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.edit-demo__ok {
    margin-top: 10px; font-size: 13px; color: var(--accent-fg); display: flex; align-items: center; gap: 6px;
    opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.edit-demo__ok.is-on { opacity: 1; transform: none; }

.stats-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; height: 100%; align-items: stretch; }
.stats-demo > div:first-child { align-self: end; }
.stats-demo__chart { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.stats-demo__num { display: flex; flex-direction: column; font-family: var(--f-display); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.stats-demo__num small { font-family: var(--f-body); font-size: 12.5px; font-weight: 500; color: var(--subtle); margin-top: 6px; letter-spacing: 0; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 8px; height: 110px; }
.bars span { height: calc(var(--h) * 100%); border-radius: 6px 6px 3px 3px; background: rgba(255, 255, 255, .12); transform-origin: bottom; }
.bars span:last-child { background: var(--accent); }

.compat { display: flex; flex-direction: column; height: 100%; }
.compat__icons { display: flex; gap: 12px; margin-bottom: auto; padding-bottom: 28px; }
.compat__icons i {
    width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
    font-size: 30px; background: var(--bg-3); border: 1px solid var(--line);
}
.compat__icons i:last-child { color: var(--accent-fg); }

/* ==========================================================================
   COMMENT ÇA MARCHE (horizontal)
   ========================================================================== */
.how { position: relative; background: rgba(17, 17, 19, .5); border-block: 1px solid var(--line); }
.how__pin { overflow: hidden; }
.how__track {
    display: flex; align-items: center; gap: clamp(24px, 3vw, 48px);
    height: 100dvh;
    /* Côtés logiques : en arabe, la piste démarre à droite et défile vers la gauche */
    padding-inline-start: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    padding-inline-end: 10vw;
    width: max-content;
}
.how__intro { width: min(440px, 80vw); flex: none; }
.how__intro .lead { margin-top: 24px; }
.how__progress { margin-top: 40px; height: 2px; width: 200px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.how__progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.step {
    flex: none; width: min(62vw, 820px);
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: end;
}
.step__media { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; max-height: 72vh; }
.step__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.step__body h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -.03em; }
.step__body p { margin-top: 16px; color: var(--muted); max-width: 30ch; }

/* ==========================================================================
   DÉMO
   ========================================================================== */
.demo { position: relative; overflow: hidden; }
.demo::before {
    content: ""; position: absolute; left: 50%; top: 55%; width: 900px; height: 900px; transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(212, 255, 63, .08), transparent 70%); pointer-events: none;
}
.demo__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.demo__head .h2 { margin-inline: auto; }
.demo__stage {
    position: relative;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(24px, 5vw, 80px);
    margin-top: 56px;
}
.demo__notes { display: grid; gap: 48px; }
.demo__notes--left { justify-items: end; text-align: right; }
.demo__notes li { display: flex; align-items: flex-start; gap: 14px; max-width: 260px; }
.demo__notes--left li { flex-direction: row-reverse; }
.demo__notes i {
    flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
    font-size: 21px; color: var(--accent-fg); background: var(--bg-2); border: 1px solid var(--line);
}
.demo__notes span { display: flex; flex-direction: column; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.demo__notes strong { color: var(--text); font-size: 16px; }

.phone--demo { width: 300px; }
.demo-screen {
    --s-bg: #0e0e10; --s-text: #f4f4f1; --s-muted: #9d9d97; --s-card: rgba(255,255,255,.06); --s-border: rgba(255,255,255,.08);
    --s-accent: #d4ff3f; --s-accent-ink: #0c0f02;
    --s-cover: radial-gradient(90% 120% at 20% 0%, rgba(212,255,63,.5), transparent 60%), linear-gradient(135deg, #2b3a0b, #0e0e10 80%);
    background: var(--s-bg); color: var(--s-text);
    display: flex; flex-direction: column; align-items: center; padding: 0 16px 16px;
    transition: background-color .6s var(--ease), color .6s var(--ease);
}
.demo-screen[data-theme="emeraude"] {
    --s-bg: #062b21; --s-text: #eefaf4; --s-muted: #9cc9b6; --s-card: rgba(255,255,255,.07); --s-border: rgba(255,255,255,.1);
    --s-accent: #f3d27a; --s-accent-ink: #231a02;
    --s-cover: radial-gradient(100% 120% at 80% 0%, rgba(243,210,122,.4), transparent 60%), linear-gradient(135deg, #0f5a44, #062b21 85%);
}
.demo-screen[data-theme="sable"] {
    --s-bg: #efebe3; --s-text: #1c1b18; --s-muted: #6f6a60; --s-card: #ffffff; --s-border: rgba(0,0,0,.07);
    --s-accent: #1c1b18; --s-accent-ink: #efebe3;
    --s-cover: linear-gradient(135deg, #d6cdbb, #efebe3 85%);
}
.demo-screen[data-theme="cobalt"] {
    --s-bg: #0b1233; --s-text: #eef1ff; --s-muted: #a3acd8; --s-card: rgba(255,255,255,.07); --s-border: rgba(255,255,255,.1);
    --s-accent: #ffffff; --s-accent-ink: #1a2a9c;
    --s-cover: radial-gradient(100% 120% at 30% 0%, rgba(120,150,255,.7), transparent 60%), linear-gradient(135deg, #2442d6, #0b1233 85%);
}
.d-cover { position: absolute; inset: 0 0 auto 0; height: 132px; background: var(--s-cover); transition: opacity .6s; }
.d-avatar { position: relative; margin-top: 86px; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--s-bg); transition: border-color .6s; }
.d-name { font-family: var(--f-display); font-weight: 600; font-size: 21px; margin-top: 10px; }
.d-role { font-size: 12.5px; color: var(--s-muted); }
.d-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 18px; }
.d-actions button, .d-links button {
    background: var(--s-card); border: 1px solid var(--s-border); color: var(--s-text);
    transition: transform .3s var(--ease), background-color .6s, border-color .6s, color .6s;
}
.d-actions button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 4px; border-radius: 14px; font-size: 11.5px; font-weight: 500; }
.d-actions button i { font-size: 19px; }
.d-actions button:nth-child(2) { background: var(--s-accent); color: var(--s-accent-ink); border-color: transparent; }
.d-actions button:active, .d-links button:active { transform: scale(.96); }
.d-links { display: grid; gap: 8px; width: 100%; margin-top: 12px; }
.d-links button { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 14px; font-size: 13px; font-weight: 500; text-align: left; }
.d-links button span { flex: 1; }
.d-links button i:last-child { color: var(--s-muted); font-size: 14px; }
.d-links button:hover { transform: translateX(3px); }
.d-foot { margin-top: auto; font-size: 11px; color: var(--s-muted); letter-spacing: .02em; }
.d-toast {
    position: absolute; left: 16px; right: 16px; bottom: 16px;
    padding: 12px 14px; border-radius: 14px; font-size: 12.5px; font-weight: 500; text-align: center;
    background: var(--s-text); color: var(--s-bg);
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.d-toast.is-on { opacity: 1; transform: none; }

.demo__themes { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.demo__themes button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px 10px 10px; border-radius: 999px; border: 1px solid var(--line-2);
    font-size: 14.5px; font-weight: 500; color: var(--muted);
    transition: color .3s, border-color .3s, background-color .3s;
}
.demo__themes button span { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.demo__themes button:hover { color: var(--text); }
.demo__themes button[aria-checked="true"] { color: var(--text); border-color: var(--accent-fg); background: var(--accent-soft); }

/* ==========================================================================
   MODÈLES
   ========================================================================== */
.models .h2 { margin-bottom: clamp(48px, 6vw, 72px); }
.models__list { display: flex; gap: 12px; height: clamp(460px, 62vh, 620px); }
.model {
    position: relative; flex: 1; min-width: 0;
    border-radius: var(--r); overflow: hidden; cursor: pointer;
    background: var(--bg-2);
    transition: flex-grow .9s var(--ease);
}
.model.is-active { flex-grow: 3.6; cursor: default; }
.model picture, .model img { position: absolute; inset: 0; width: 100%; height: 100%; }
.model img { object-fit: cover; transition: transform 1.2s var(--ease), filter .8s var(--ease); filter: brightness(.55) saturate(.9); }
.model.is-active img { filter: brightness(.8); transform: scale(1.03); }
.model::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10,10,11,.92)); pointer-events: none; }
.model__label {
    position: absolute; left: 24px; bottom: 26px; z-index: 2;
    font-family: var(--f-display); font-weight: 600; font-size: 20px; white-space: nowrap;
    transition: opacity .4s;
}
.model.is-active .model__label { opacity: 0; }
.model__info {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 36px;
    opacity: 0; transform: translateY(24px);
    transition: opacity .5s var(--ease), transform .7s var(--ease);
    pointer-events: none;
}
.model.is-active .model__info { opacity: 1; transform: none; transition-delay: .25s; pointer-events: auto; }
.model__finish { font-size: 13.5px; font-weight: 500; color: var(--accent-fg); }
.model__info h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; margin-top: 6px; }
.model__info p { color: rgba(244,244,241,.78); margin-top: 10px; max-width: 44ch; }
.model__buy { display: flex; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.model__price { font-family: var(--f-display); font-weight: 600; font-size: 28px; letter-spacing: -.02em; }

/* ==========================================================================
   MÉTIERS
   ========================================================================== */
.metiers .h2 { margin-bottom: 36px; }
.metiers__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.metiers__tabs button {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-2);
    font-weight: 500; font-size: 15px; color: var(--muted);
    transition: color .3s, background-color .3s, border-color .3s;
}
.metiers__tabs button i { font-size: 18px; }
.metiers__tabs button:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.metiers__tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.metiers__stage { position: relative; border-radius: var(--r); overflow: hidden; height: clamp(540px, 74vh, 700px); background: var(--bg-2); }
.mpanel { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: clamp(16px, 3vw, 40px); }
.mpanel[hidden] { display: flex; visibility: hidden; }
.mpanel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
.mpanel.is-active img { opacity: 1; transform: scale(1); }
.mpanel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,11,.55), transparent 60%); z-index: 1; }
.mpanel__card {
    position: relative; z-index: 2; max-width: 500px;
    padding: clamp(24px, 3vw, 36px); border-radius: var(--r);
    background: rgba(14, 14, 16, .72);
    backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    opacity: 0; transform: translateY(24px);
    transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.mpanel.is-active .mpanel__card { opacity: 1; transform: none; transition-delay: .2s; }
.mpanel__card h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }
.mpanel__card p { color: rgba(244,244,241,.75); margin-top: 12px; font-size: 16px; }
.mpanel__card ul { display: grid; gap: 8px; margin: 20px 0 26px; }
.mpanel__card li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.mpanel__card li i { color: var(--accent-fg); font-size: 18px; }
@media (prefers-reduced-transparency: reduce) { .mpanel__card { background: #141416; } }

/* ==========================================================================
   TARIFS
   ========================================================================== */
.pricing__head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(48px, 6vw, 72px); }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
    position: relative; display: flex; flex-direction: column;
    padding: 36px 32px 32px; border-radius: var(--r);
    background: var(--bg-2); border: 1px solid var(--line);
}
.plan--featured { background: linear-gradient(180deg, #1a1d10, var(--bg-2) 70%); border-color: rgba(212, 255, 63, .45); box-shadow: 0 30px 80px -40px rgba(212,255,63,.35); }
.plan__badge {
    position: absolute; top: 20px; right: 20px;
    padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
    background: var(--accent); color: var(--accent-ink);
}
.plan__name { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -.01em; }
.plan__desc { color: var(--muted); font-size: 15px; margin-top: 8px; min-height: 48px; max-width: 32ch; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin: 28px 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.plan__price strong { font-family: var(--f-display); font-weight: 600; font-size: 52px; line-height: 1; letter-spacing: -.035em; }
.plan__price span { color: var(--muted); font-size: 15px; }
.plan__list { display: grid; gap: 12px; margin-bottom: 32px; }
.plan__list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; }
.plan__list i { color: var(--accent-fg); font-size: 18px; flex: none; margin-top: 1px; }
.plan .btn { margin-top: auto; }
.pricing__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; color: var(--muted); font-size: 15px; text-align: center; }
.pricing__note i { color: var(--accent-fg); font-size: 20px; }

/* ==========================================================================
   PREUVE SOCIALE
   ========================================================================== */
.proof { padding-top: 0; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: clamp(88px, 11vw, 140px); }
.figure { padding: 40px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.figure:first-child { border-left: 0; padding-left: 0; }
.figure strong { font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 5.5vw, 5rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.figure strong small { font-size: .5em; color: var(--muted); margin-left: 2px; }
.figure > span { color: var(--muted); font-size: 15px; }
.proof__title { margin-bottom: clamp(40px, 5vw, 64px); }
.quotes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.quote { grid-column: span 5; padding: 32px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.quote:nth-child(1) { grid-column: span 7; }
.quote:nth-child(4) { grid-column: span 7; }
.quote:nth-child(2) { background: var(--bg-3); }
.quote:nth-child(4) { background: linear-gradient(135deg, #1a1d10, var(--bg-2) 70%); border-color: rgba(212,255,63,.2); }
.quote__stars { display: flex; gap: 3px; color: var(--accent-fg); font-size: 16px; }
.quote blockquote { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 1.7vw, 1.55rem); line-height: 1.3; letter-spacing: -.01em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote figcaption > span:last-child { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); line-height: 1.35; }
.quote figcaption strong { color: var(--text); font-size: 15px; }
.quote__avatar {
    width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
    font-weight: 700; font-size: 14px; letter-spacing: .02em;
    background: var(--bg-3); border: 1px solid var(--line-2); color: var(--accent-fg);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq__side .h2 { font-size: clamp(2.2rem, 3.8vw, 3.6rem); }
.faq__help { margin-top: 32px; padding: 24px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); max-width: 380px; }
.faq__help p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 26px 0; text-align: left;
    font-family: var(--f-display); font-weight: 500; font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -.01em;
    transition: color .3s;
}
.faq__q:hover { color: var(--accent-fg); }
.faq__q i {
    flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--line-2); font-size: 18px; transition: transform .5s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.faq__q[aria-expanded="true"] i { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent-fg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--muted); padding-bottom: 28px; max-width: 60ch; }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.final { position: relative; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; }
.final__media { position: absolute; inset: 0; }
.final__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); filter: grayscale(.4) brightness(.45); }
.final__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(10,10,11,.25) 30%, rgba(10,10,11,.4) 70%, var(--bg) 100%); }
.final__inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; padding-block: 120px; }
.final__title {
    font-family: var(--f-display); font-weight: 600;
    font-size: clamp(2.4rem, 5.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.035em;
    word-spacing: .05em; text-wrap: balance;
}
.final__sub { margin-top: 24px; color: rgba(244,244,241,.8); font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.final__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding-top: 96px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__about p { color: var(--muted); margin-top: 18px; max-width: 32ch; font-size: 15.5px; }
.footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.footer ul a { transition: color .25s; }
.footer ul a:hover { color: var(--accent-fg); }
.footer__word {
    font-family: var(--f-display); font-weight: 600;
    font-size: clamp(7rem, 27vw, 26rem); line-height: .8; letter-spacing: -.06em;
    text-align: center; margin-top: 64px;
    color: transparent;
    background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 85%);
    -webkit-background-clip: text; background-clip: text;
    user-select: none;
}
.footer__bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 24px 0 32px; border-top: 1px solid var(--line);
    font-size: 13.5px; color: var(--subtle);
}

/* ---------- Barre mobile ---------- */
.mbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    display: none; gap: 8px; padding: 8px;
    border-radius: 999px;
    background: rgba(20, 20, 22, .82);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line-2);
    transform: translateY(140%); transition: transform .6s var(--ease);
}
.mbar.is-visible { transform: none; }
.mbar__wa { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #06230f; font-size: 24px; }
.mbar .btn { --pad-y: 0; height: 48px; }

/* ---------- Fond animé ---------- */
main, .footer { position: relative; z-index: 1; }
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg__aurora { position: absolute; inset: -25%; will-change: transform; }
.bg__blob { position: absolute; border-radius: 50%; will-change: transform; }
.bg__blob--1 {
    width: 70vmax; height: 70vmax; left: 42%; top: -8%;
    background: radial-gradient(closest-side, rgba(212, 255, 63, .15), rgba(212, 255, 63, .05) 45%, transparent 72%);
    animation: blob1 34s ease-in-out infinite alternate;
}
.bg__blob--2 {
    width: 80vmax; height: 80vmax; left: -18%; top: 30%;
    background: radial-gradient(closest-side, rgba(38, 110, 72, .28), rgba(38, 110, 72, .09) 50%, transparent 72%);
    animation: blob2 42s ease-in-out infinite alternate;
}
.bg__blob--3 {
    width: 55vmax; height: 55vmax; left: 58%; top: 62%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .05), transparent 70%);
    animation: blob3 50s ease-in-out infinite alternate;
}
@keyframes blob1 { to { transform: translate3d(-18vw, 14vh, 0) scale(1.15); } }
@keyframes blob2 { to { transform: translate3d(22vw, -12vh, 0) scale(.9); } }
@keyframes blob3 { to { transform: translate3d(-26vw, -20vh, 0) scale(1.2); } }

.bg__dots, .bg__spot { position: absolute; inset: 0; background-size: 28px 28px; background-position: center; }
.bg__dots {
    background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.5px);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 25%, transparent 88%);
    mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 25%, transparent 88%);
}
.bg__spot {
    background-image: radial-gradient(rgba(212, 255, 63, .7) 1.2px, transparent 1.7px);
    -webkit-mask-image: radial-gradient(circle 280px at var(--mx, -999px) var(--my, -999px), #000, transparent 75%);
    mask-image: radial-gradient(circle 280px at var(--mx, -999px) var(--my, -999px), #000, transparent 75%);
    opacity: 0; transition: opacity .6s var(--ease);
}
.bg__spot.is-on { opacity: .85; }
@media (max-width: 767px) { .bg__dots, .bg__spot { background-size: 22px 22px; } }

/* ---------- Grain ---------- */
.grain {
    position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   ÉTATS INITIAUX DES ANIMATIONS (seulement si JS actif)
   ========================================================================== */
.js:not(.no-anim) [data-reveal] { opacity: 0; transform: translateY(40px); }
.js:not(.no-anim) [data-hero-fade] { opacity: 0; transform: translateY(24px); }
.js:not(.no-anim) .scene { opacity: 0; }
.js:not(.no-anim) [data-split]:not(.is-split) { opacity: 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
    .nav__links { display: none; }
    .burger { display: inline-block; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero { padding-top: calc(var(--nav-h) + 40px); }
    .scene { height: 560px; max-width: 560px; width: 100%; margin-inline: auto; }
    .demo__stage { grid-template-columns: 1fr; justify-items: center; }
    .demo__notes { grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; max-width: 620px; }
    .demo__notes--left { justify-items: start; text-align: left; order: 2; }
    .demo__notes--left li { flex-direction: row; }
    .demo__notes--right { order: 3; }
    .phone--demo { order: 1; }
}

/* Horizontal : désactivé sous 1024px, on empile */
@media (max-width: 1023px) {
    .how__track { flex-direction: column; align-items: stretch; height: auto; width: 100%; padding: 96px var(--gutter); gap: 56px; }
    .how__intro { width: 100%; }
    .how__progress { display: none; }
    .step { width: 100%; grid-template-columns: 1fr; gap: 20px; }
    .step__media { aspect-ratio: 4 / 3; max-height: none; }
    .step__media img { transform: none; }
}

@media (max-width: 900px) {
    .bento { grid-template-columns: 1fr 1fr; }
    .tile--a { grid-column: span 2; grid-row: span 1; min-height: 420px; }
    .tile--d, .tile--e, .tile--f { grid-column: span 2; }
    .assure__grid { grid-template-columns: 1fr 1fr; }
    .assure__item:nth-child(3) { border-left: 0; padding-left: 0; }
    .assure__item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .pricing__grid { grid-template-columns: 1fr; max-width: 520px; }
    .figures { grid-template-columns: 1fr 1fr; }
    .figure:nth-child(3) { border-left: 0; padding-left: 0; }
    .figure:nth-child(n+3) { border-top: 1px solid var(--line); }
    .quotes { grid-template-columns: 1fr; }
    .quote, .quote:nth-child(1), .quote:nth-child(4) { grid-column: auto; }
    .faq__grid { grid-template-columns: 1fr; }
    .faq__side { position: static; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__about { grid-column: span 2; }
    .models__list { flex-direction: column; height: auto; }
    .model, .model.is-active { flex: none; height: 440px; cursor: default; }
    .model img, .model.is-active img { filter: brightness(.72); }
    .model__label { display: none; }
    .model__info { opacity: 1; transform: none; pointer-events: auto; padding: 24px; }
}

@media (max-width: 767px) {
    body { font-size: 16px; }
    .nav__login, .nav__actions > .btn { display: none; }
    .mbar { display: flex; }
    .hero { min-height: auto; padding-bottom: 24px; }
    .hero__ctas .btn { flex: 1 1 100%; }
    .scene { height: 500px; }
    .phone--hero { width: 236px; left: 2%; }
    .p-lock__time { font-size: 52px; }
    .h-card-wrap { width: 250px; right: -2%; bottom: 6%; }
    .h-card { padding: 16px 18px; border-radius: 14px; }
    .h-card__logo { font-size: 20px; }
    .h-card__name { font-size: 14px; }
    .h-card__role { font-size: 11px; }
    .assure__grid { grid-template-columns: 1fr; }
    .assure__item, .assure__item:nth-child(3) { border-left: 0; padding: 18px 0; }
    .assure__item + .assure__item { border-top: 1px solid var(--line); }
    .manifesto { min-height: auto; }
    .bento { grid-template-columns: 1fr; }
    .tile--a, .tile--b, .tile--c, .tile--d, .tile--e, .tile--f { grid-column: auto; }
    .tile--e { min-height: 360px; }
    .tile { padding: 26px; }
    .stats-demo { grid-template-columns: 1fr; }
    .demo__notes { grid-template-columns: 1fr; }
    .phone--demo { width: 290px; }
    .metiers__tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
    .metiers__tabs::-webkit-scrollbar { display: none; }
    .metiers__tabs button { flex: none; }
    .metiers__stage { height: auto; min-height: 620px; }
    .mpanel { padding: 12px; }
    .mpanel::before { background: linear-gradient(180deg, transparent 20%, rgba(10,10,11,.7)); }
    .figure { padding: 28px 16px; }
    .figure:nth-child(odd) { padding-left: 0; }
    .final__ctas .btn { flex: 1 1 100%; }
    .footer { padding-bottom: 88px; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__about { grid-column: auto; }
}

/* ==========================================================================
   MOUVEMENT RÉDUIT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .marquee__track { animation: none; }
    .manifesto__text .mw { opacity: 1; }
    .p-lock { opacity: 0; }
    .p-profile { opacity: 1; }
}

/* ==========================================================================
   SÉLECTEUR DE LANGUE + BOUTON DE THÈME
   ========================================================================== */
.lang-switch { position: relative; }
.lang-switch summary {
    list-style: none; cursor: pointer; height: 40px; padding: 0 12px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; font-weight: 700;
    transition: color .25s, border-color .25s, background-color .25s;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--text); border-color: var(--text); }
.lang-switch summary i { font-size: 17px; }
.lang-switch__menu {
    position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 170px;
    display: grid; gap: 2px; padding: 6px; border-radius: 16px;
    background: var(--bg-2); border: 1px solid var(--line-2);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55);
    animation: langIn .35s var(--ease);
}
@keyframes langIn { from { opacity: 0; transform: translateY(-6px); } }
.lang-switch__menu a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--text);
    transition: background-color .2s;
}
.lang-switch__menu a:hover { background: var(--accent-soft); }
.lang-switch__menu a[aria-checked="true"] { font-weight: 700; }
.lang-switch__menu a i { color: var(--accent-fg); }
.lang-switch__menu a[lang="ar"], .mmenu__langs a[lang="ar"] { font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif; }

.theme-toggle {
    position: relative; width: 40px; height: 40px; border-radius: 50%; flex: none;
    display: grid; place-items: center; overflow: hidden;
    border: 1px solid var(--line-2); color: var(--muted);
    transition: color .25s, border-color .25s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text); }
.theme-toggle i { position: absolute; font-size: 18px; transition: transform .6s var(--ease), opacity .4s; }
.theme-toggle__sun { transform: translateY(140%) rotate(-90deg); opacity: 0; }
html[data-theme="light"] .theme-toggle__sun { transform: none; opacity: 1; }
html[data-theme="light"] .theme-toggle__moon { transform: translateY(-140%) rotate(90deg); opacity: 0; }
.theme-toggle--wide { width: 52px; height: 52px; }

.mmenu__prefs { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 20px; }
.mmenu__langs { display: flex; gap: 6px; flex-wrap: wrap; }
.mmenu__langs a {
    padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2);
    font-size: 15px; font-weight: 600; color: var(--muted);
}
.mmenu__langs a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.nav__actions { gap: 12px; }
@media (max-width: 1100px) { .nav__login { display: none; } }
@media (max-width: 767px) {
    .nav__actions .theme-toggle, .nav__lang { display: none; }
}

/* Transition douce lors du changement de thème (seulement à ce moment-là) */
html.theme-anim, html.theme-anim body, html.theme-anim .nav, html.theme-anim .tile, html.theme-anim .plan,
html.theme-anim .quote, html.theme-anim .assure, html.theme-anim .how, html.theme-anim .footer {
    transition: background-color .45s ease, color .45s ease, border-color .45s ease !important;
}

/* ==========================================================================
   THÈME CLAIR
   Page claire "papier", accent lime conservé pour les aplats ; les objets
   (téléphones, carte, visuels sur photo) restent sombres : ils ressortent mieux.
   ========================================================================== */
html[data-theme="light"] {
    --bg: #f5f4ef;
    --bg-2: #ffffff;
    --bg-3: #ecebe4;
    --line: rgba(20, 20, 16, .09);
    --line-2: rgba(20, 20, 16, .16);
    --text: #121210;
    --muted: #5b5b54;
    --subtle: #8a8a81;
    --accent-fg: #4b6800;
    --accent-soft: rgba(140, 180, 0, .14);
    color-scheme: light;
}
html[data-theme="light"] ::selection { background: #d4ff3f; color: #0c0f02; }

/* Zones qui restent sombres : on y rétablit les couleurs du thème sombre */
html[data-theme="light"] :is(.phone, .h-card-wrap, .tile--photo, .model, .mpanel__card, .step__media) {
    --bg: #0a0a0b; --bg-2: #111113; --bg-3: #18181b;
    --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
    --text: #f4f4f1; --muted: #a1a19b; --subtle: #6d6d68;
    --accent-fg: #d4ff3f; --accent-soft: rgba(212, 255, 63, .12);
    color: var(--text);
}
html[data-theme="light"] .phone { box-shadow: 0 50px 100px -40px rgba(20, 20, 16, .45); }

/* Fond animé : aurores plus douces, trame de points sombre */
html[data-theme="light"] .bg__blob--1 { background: radial-gradient(closest-side, rgba(190, 240, 30, .32), rgba(190, 240, 30, .1) 45%, transparent 72%); }
html[data-theme="light"] .bg__blob--2 { background: radial-gradient(closest-side, rgba(60, 160, 110, .16), rgba(60, 160, 110, .05) 50%, transparent 72%); }
html[data-theme="light"] .bg__blob--3 { background: radial-gradient(closest-side, rgba(255, 255, 255, .9), transparent 70%); }
html[data-theme="light"] .bg__dots { background-image: radial-gradient(rgba(20, 20, 16, .14) 1px, transparent 1.5px); }
html[data-theme="light"] .bg__spot { background-image: radial-gradient(rgba(100, 140, 0, .8) 1.2px, transparent 1.7px); }
html[data-theme="light"] .grain { opacity: .035; }

/* Navigation, boutons */
html[data-theme="light"] .nav.is-scrolled { background: rgba(245, 244, 239, .8); }
html[data-theme="light"] .nav__links a:hover { background: rgba(20, 20, 16, .05); }
html[data-theme="light"] .btn--ghost { background: rgba(255, 255, 255, .6); }
html[data-theme="light"] .btn--ghost:hover { border-color: rgba(20, 20, 16, .35); background: #fff; }
html[data-theme="light"] .btn--accent { box-shadow: inset 0 0 0 1px rgba(80, 110, 0, .25); }
html[data-theme="light"] .lang-switch__menu { box-shadow: 0 24px 60px -28px rgba(20, 20, 16, .35); }

/* Sections */
html[data-theme="light"] .assure { background: rgba(255, 255, 255, .55); }
html[data-theme="light"] .how { background: rgba(255, 255, 255, .5); }
html[data-theme="light"] .tile:not(.tile--photo):not(.tile--accent) { background: #fff; box-shadow: 0 20px 50px -36px rgba(20, 20, 16, .35); }
html[data-theme="light"] .bars span { background: rgba(20, 20, 16, .1); }
html[data-theme="light"] .metiers__tabs button:hover { border-color: rgba(20, 20, 16, .3); }
html[data-theme="light"] .plan { box-shadow: 0 24px 60px -40px rgba(20, 20, 16, .3); }
html[data-theme="light"] .plan--featured { background: linear-gradient(180deg, #f3ffcf, #fff 70%); border-color: rgba(120, 160, 0, .5); box-shadow: 0 30px 80px -40px rgba(120, 170, 0, .45); }
html[data-theme="light"] .quote { box-shadow: 0 20px 50px -40px rgba(20, 20, 16, .3); }
html[data-theme="light"] .demo__themes button span { box-shadow: inset 0 0 0 1px rgba(20, 20, 16, .15); }

/* CTA final : la photo reste sombre, le texte reste clair */
html[data-theme="light"] .final__media::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 10, 11, .35) 26%, rgba(10, 10, 11, .55) 74%, var(--bg) 100%); }
html[data-theme="light"] .final__title { color: #f4f4f1; }
html[data-theme="light"] .final .btn--accent { box-shadow: none; }

/* Pied de page, barre mobile */
html[data-theme="light"] .footer__word { background: linear-gradient(180deg, rgba(20, 20, 16, .13), rgba(20, 20, 16, 0) 85%); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .mbar { background: rgba(255, 255, 255, .88); box-shadow: 0 20px 50px -20px rgba(20, 20, 16, .35); }

/* ==========================================================================
   ARABE (droite à gauche)
   ========================================================================== */
html[lang="ar"] {
    --f-display: 'Readex Pro', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
    --f-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}
/* L'arabe ne supporte pas l'interlettrage négatif (lettres liées) */
html[lang="ar"] :is(h1, h2, h3, .h2, .hero__title, .final__title, .figure strong, .tile__big, .plan__price strong) { letter-spacing: 0; word-spacing: normal; }
html[lang="ar"] :is(.hero__title, .h2, .final__title) { line-height: 1.25; }
html[lang="ar"] .w { padding-bottom: .22em; margin-bottom: -.22em; }
/* La marque et les maquettes gardent leur sens et leur police d'origine */
html[dir="rtl"] :is(.brand, .scene, .marquee, .h-card, .footer__word) { direction: ltr; }
/* « Comment ça marche » : la barre de progression se remplit de droite à gauche */
html[dir="rtl"] .how__progress span { transform-origin: right; }
html[dir="rtl"] :is(.brand__word, .footer__word, .h-card__logo) { font-family: 'Clash Display', sans-serif; }
/* Flèches orientées dans le sens de lecture */
html[dir="rtl"] :is(.ph-arrow-right, .ph-arrow-up-right) { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover i.ph-arrow-right { transform: scaleX(-1) translateX(4px); }
/* Bordures pensées pour la gauche */
html[dir="rtl"] .figure { border-left: 0; border-right: 1px solid var(--line); }
html[dir="rtl"] .figure:first-child { border-right: 0; padding-right: 0; padding-left: 24px; }
html[dir="rtl"] .figure strong small { margin-left: 0; margin-right: 4px; }
@media (max-width: 900px) {
    html[dir="rtl"] .figure:nth-child(3) { border-right: 0; padding-right: 0; }
}

/* Visiteur connecté : accès à son espace */
.nav__account {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 4px 14px 4px 4px; border-radius: 999px;
    border: 1px solid var(--line-2); font-size: 15px; font-weight: 600; color: var(--text);
    transition: border-color .25s, background-color .25s;
}
.nav__account:hover { border-color: var(--accent); }
.nav__avatar {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent); color: var(--accent-ink, #0c0f02);
    font-family: var(--f-display); font-size: 14px; font-weight: 600;
}
[dir="rtl"] .nav__account { padding: 4px 4px 4px 14px; }
@media (max-width: 1100px) {
    .nav__account { padding: 3px; }
    .nav__account-l { display: none; }
}
