/*
 * TrustChange Pay — site du produit (pay.trustchange.fr).
 * Feuille de style maison, sans framework, tirée du design system TrustChange :
 *  - thème clair ou sombre pour toute la page (réglage de l'appareil, ou bouton du menu : site/js/theme.js) ;
 *    les bandes alternent fond principal et fond doux, bord à bord, sans dégradé ;
 *  - le pétrole (--primary) est un tampon : un seul élément pétrole par écran ;
 *  - l'action la plus forte est la pilule contrastée (noire en clair, blanche en sombre) ; toutes les actions sont des pilules ;
 *  - pas d'ombres portées : la profondeur vient du changement de fond ;
 *  - Inter Tight 500 à partir de 20 px, Inter 400 / 600 pour le reste (jamais Inter 500) ;
 *  - les maquettes de l'application restent en thème sombre (écrans de l'app).
 */

/* ── Tokens fixes ───────────────────────────────────────────────────────── */
:root {
    --primary: #026873;
    --primary-bright: #167f93;
    --primary-deep: #00626f;
    --on-primary: #ffffff;
    --accent-teal: #00a87e;

    --font-display: "Inter Tight", Inter, system-ui, sans-serif;
    --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;

    --space-xxs: 4px;
    --space-xs: 6px;
    --space-sm: 8px;
    --space-md: 14px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-xxl: 32px;
    --space-xxxl: 48px;
    --space-block: 80px;
    --space-section: 88px;
    --space-band: 120px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --control-md: 48px;
    --control-sm: 36px;
    --input-height: 56px;
    --nav-height: 64px;
    --container-max: 1200px;

    /* Maquettes de l'app (toujours sombres) */
    --app-bg: #000000;
    --app-surface: #16181a;
    --app-chip: #26292d;
    --app-mute: rgba(255, 255, 255, .62);
}

/* ── Thème clair (par défaut) ───────────────────────────────────────────── */
:root {
    color-scheme: light;
    --bg: #ffffff;
    --bg-soft: #f4f4f4;
    --surface: #ffffff;          /* cartes sur fond principal */
    --surface-on-soft: #ffffff;  /* cartes sur fond doux */
    --chip: #f4f4f4;             /* pastilles, tuiles, puces */
    --chip-hover: #e2e2e7;
    --text: #191c1f;
    --text-body: #1f2226;
    --text-label: #3a3d40;
    --text-mute: #505a63;
    --text-faint: #c9c9cd;
    --hairline: #e2e2e7;
    --hairline-strong: #191c1f;
    --field-border: #8d969e;
    --strong: #000000;           /* action la plus forte */
    --on-strong: #ffffff;
    --strong-hover: #3a3d40;
    --header-bg: #ffffff;
    --pill-tint-bg: rgba(2, 104, 115, .1); --pill-tint-text: #026873;
    --link: #376cd5;
    --star: #b38600;
    --success-bg: #e8f2e8; --success-text: #006400;
    --error-bg: #f8e6e6;   --error-text: #8b0000;
    --note-bg: #fdf3e6;    --note-text: #6b3a00;
    --up-bg: #e8f2e8;      --up-text: #006400;
    --down-bg: #f8e6e6;    --down-text: #8b0000;
    --code-bg: #000000;
    --show-moon: block; --show-sun: none;
}

/* ── Thème sombre : réglage de l'appareil, ou choix enregistré ───────────── */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #000000;
        --bg-soft: #0b0c0d;
        --surface: #16181a;
        --surface-on-soft: #16181a;
        --chip: #1d1f22;
        --chip-hover: #2c2f33;
        --text: #ffffff;
        --text-body: rgba(255, 255, 255, .88);
        --text-label: rgba(255, 255, 255, .82);
        --text-mute: rgba(255, 255, 255, .72);
        --text-faint: rgba(255, 255, 255, .28);
        --hairline: rgba(255, 255, 255, .12);
        --hairline-strong: rgba(255, 255, 255, .6);
        --field-border: rgba(255, 255, 255, .28);
        --strong: #ffffff;
        --on-strong: #000000;
        --strong-hover: #c9c9cd;
        --header-bg: #000000;
    --pill-tint-bg: rgba(22, 127, 147, .22); --pill-tint-text: #7fd3dd;
        --link: #8fb0ff;
        --star: #f0c24b;
        --success-bg: rgba(0, 168, 126, .16); --success-text: #6fe0b8;
        --error-bg: rgba(226, 59, 74, .18);   --error-text: #ff9aa3;
        --note-bg: rgba(236, 126, 0, .16);    --note-text: #ffc58a;
        --up-bg: rgba(0, 168, 126, .14);      --up-text: #4fd1a5;
        --down-bg: rgba(226, 59, 74, .16);    --down-text: #ff8a94;
        --code-bg: #16181a;
        --show-moon: none; --show-sun: block;
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #000000;
    --bg-soft: #0b0c0d;
    --surface: #16181a;
    --surface-on-soft: #16181a;
    --chip: #1d1f22;
    --chip-hover: #2c2f33;
    --text: #ffffff;
    --text-body: rgba(255, 255, 255, .88);
    --text-label: rgba(255, 255, 255, .82);
    --text-mute: rgba(255, 255, 255, .72);
    --text-faint: rgba(255, 255, 255, .28);
    --hairline: rgba(255, 255, 255, .12);
    --hairline-strong: rgba(255, 255, 255, .6);
    --field-border: rgba(255, 255, 255, .28);
    --strong: #ffffff;
    --on-strong: #000000;
    --strong-hover: #c9c9cd;
    --header-bg: #000000;
    --pill-tint-bg: rgba(22, 127, 147, .22); --pill-tint-text: #7fd3dd;
    --link: #8fb0ff;
    --star: #f0c24b;
    --success-bg: rgba(0, 168, 126, .16); --success-text: #6fe0b8;
    --error-bg: rgba(226, 59, 74, .18);   --error-text: #ff9aa3;
    --note-bg: rgba(236, 126, 0, .16);    --note-text: #ffc58a;
    --up-bg: rgba(0, 168, 126, .14);      --up-text: #4fd1a5;
    --down-bg: rgba(226, 59, 74, .16);    --down-text: #ff8a94;
    --code-bg: #16181a;
    --show-moon: none; --show-sun: block;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: .24px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 18px; border-radius: var(--radius-full);
    background: var(--strong); color: var(--on-strong); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--primary-bright); outline-offset: 3px; }

/* ── Typographie ────────────────────────────────────────────────────────── */
.display-xxl, .display-xl, .display-lg, .display-md, .heading-lg, .heading-md, .heading-sm {
    font-family: var(--font-display); font-weight: 500;
}
.display-xxl { font-size: clamp(48px, 9.4vw, 136px); line-height: 1; letter-spacing: -.02em; }
.display-xl { font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -.01em; }
.display-lg { font-size: clamp(32px, 4vw, 48px); line-height: 1.21; letter-spacing: -.01em; }
.display-md { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -.01em; }
.heading-lg { font-size: 32px; line-height: 1.19; letter-spacing: -.32px; }
.heading-md { font-size: 24px; line-height: 1.33; }
.heading-sm { font-size: 20px; line-height: 1.4; }
.body-lg { font-size: 18px; line-height: 1.56; letter-spacing: -.09px; }
.body-sm { font-size: 14px; line-height: 1.43; letter-spacing: 0; }
.caption { font-size: 13px; line-height: 1.4; letter-spacing: 0; }
.text-mute { color: var(--text-mute); }
.eyebrow {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--text-mute);
}
.link-inline { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ── Mise en page ───────────────────────────────────────────────────────── */
.container { width: 100%; max-width: calc(var(--container-max) + 2 * var(--space-xl)); margin: 0 auto; padding: 0 var(--space-xl); }
.container-narrow { max-width: calc(800px + 2 * var(--space-xl)); }
.band { padding: var(--space-section) 0; }
.band-hero { padding: var(--space-band) 0 var(--space-section); }
.band-soft { background: var(--bg-soft); }
.band-tight { padding: var(--space-block) 0 0; }
.band-head { max-width: 760px; margin-bottom: var(--space-xxxl); }
.band-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.band-head > * + * { margin-top: var(--space-lg); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xxxl); align-items: center; }
.split > .split-media { justify-self: center; max-width: 100%; }
.split.reverse > .split-media { order: -1; }
.split-top { align-items: start; }
.grid { display: grid; gap: var(--space-xl); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split > *, .hero-grid > *, .grid > * { min-width: 0; }
.stack > * + * { margin-top: var(--space-lg); }
.stack-lg > * + * { margin-top: var(--space-xl); }
.row-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }
.row-actions + .row-actions, .grid + .row-actions, .faq-list + .row-actions, .steps + p { margin-top: var(--space-xxl); }
.center-text { text-align: center; margin-bottom: var(--space-xl); }

/* ── Boutons et pilules ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
    min-height: var(--control-md); padding: 14px 28px; border: 1px solid transparent; border-radius: var(--radius-full);
    font-family: var(--font-sans); font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: .24px;
    text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
    white-space: nowrap;
}
.btn-lg { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: 0; padding: 16px 32px; min-height: 56px; }
/* Action la plus forte (btn-primary et btn-dark sont équivalents : contraste maximal dans les deux thèmes) */
.btn-primary, .btn-dark { background: var(--strong); color: var(--on-strong); }
.btn-primary:hover, .btn-dark:hover { background: var(--strong-hover); }
.btn-petrol { background: var(--primary); color: var(--on-primary); }
.btn-petrol:hover { background: var(--primary-deep); }
.btn-soft { background: var(--chip); color: var(--text); }
.btn-soft:hover { background: var(--chip-hover); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--hairline-strong); padding: 13px 27px; }
.btn-outline:hover { background: var(--chip); }
.btn-block { width: 100%; white-space: normal; }
.pill {
    display: inline-flex; align-items: center; gap: var(--space-xs); min-height: var(--control-sm); padding: 8px 16px;
    border-radius: var(--radius-full); background: var(--chip); color: var(--text);
    font-size: 14px; font-weight: 600; letter-spacing: 0; text-decoration: none;
}
.pill:hover { background: var(--chip-hover); }
.badge {
    display: inline-flex; align-items: center; gap: var(--space-xxs); padding: 4px 12px; border-radius: var(--radius-full);
    background: var(--chip); color: var(--text); font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: 0;
}
.badge-petrol { background: var(--primary); color: var(--on-primary); }
.icon { width: 20px; height: 20px; flex: none; }
.icon-lg { width: 28px; height: 28px; }
.icon-chip {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-full);
    background: var(--chip); color: var(--text);
}

/* ── Cartes ─────────────────────────────────────────────────────────────── */
.card {
    padding: var(--space-xxl); border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--hairline);
}
.band-soft .card { background: var(--surface-on-soft); border-color: transparent; }
.card-soft, .band-soft .card-soft { background: var(--chip); border-color: transparent; }
.card > * + * { margin-top: var(--space-md); }
.card-title { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.33; }
a.card { display: block; color: inherit; text-decoration: none; transition: background-color .15s; }
a.card:hover { background: var(--chip); }
.band-soft a.card:hover { background: var(--chip-hover); }
.center-card { text-align: center; display: grid; justify-items: center; gap: var(--space-md); }
.center-card > * + * { margin-top: 0; }
/* Même écriture que les cartes de la section Sécurité : titre Inter Tight 500, texte atténué, icône en pastille */
.feature-list { list-style: none; padding: 0; display: grid; gap: var(--space-xl); }
.feature-list li { display: flex; gap: var(--space-lg); align-items: flex-start; color: var(--text-mute); }
.feature-list .icon {
    width: 40px; height: 40px; padding: 10px; border-radius: var(--radius-full);
    background: var(--chip); color: var(--text);
}
.band-soft .feature-list .icon { background: var(--surface-on-soft); }
.feature-list strong {
    display: block; margin-bottom: var(--space-xxs); color: var(--text);
    font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.4; letter-spacing: 0;
}
.notes { margin-top: var(--space-xxxl); max-width: 760px; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
/* En-tête plein, sans filet : c'est le fond arrondi du haut de page qui crée la séparation */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); color: var(--text); }
.site-header .bar { display: flex; align-items: center; gap: var(--space-xl); height: var(--nav-height); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.2px; }
.brand-tag { font-size: 12px; font-weight: 600; letter-spacing: .4px; padding: 2px 8px; border-radius: var(--radius-full); background: var(--chip); color: var(--text-mute); }
.nav-links { display: flex; gap: var(--space-xs); margin: 0 auto; padding: 0 0 0 var(--space-xl); list-style: none; }
.nav-links a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: var(--radius-full);
    text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: 0; color: var(--text-mute); white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--chip); }
.nav-end { display: flex; align-items: center; gap: var(--space-sm); }
.nav-end > .btn { min-height: 40px; padding: 8px 20px; font-size: 15px; margin-left: var(--space-xs); }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-full); background: var(--chip); }
.lang-switch a {
    min-width: 36px; padding: 4px 10px; border-radius: var(--radius-full); text-align: center;
    font-size: 13px; font-weight: 600; letter-spacing: .3px; text-decoration: none; color: var(--text-mute);
}
.lang-switch a[aria-current="true"] { background: var(--strong); color: var(--on-strong); }
.theme-toggle {
    display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius-full);
    background: var(--chip); color: var(--text); cursor: pointer;
}
.theme-toggle:hover { background: var(--chip-hover); }
.theme-toggle .icon-moon { display: var(--show-moon); }
.theme-toggle .icon-sun { display: var(--show-sun); }
.mobile-nav { display: none; }
.mobile-nav summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--chip); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary .icon-menu, .mobile-nav:not([open]) summary .icon-close { display: none; }
.mobile-nav .panel {
    position: fixed; inset: var(--nav-height) 0 0 0; background: var(--bg); padding: var(--space-xl);
    overflow-y: auto; border-top: 1px solid var(--hairline);
}
.mobile-nav .panel ul { list-style: none; padding: 0; margin: 0 0 var(--space-xl); }
.mobile-nav .panel li a {
    display: block; padding: 16px 0; border-bottom: 1px solid var(--hairline); text-decoration: none;
    font-family: var(--font-display); font-weight: 500; font-size: 24px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-xxxl); align-items: center; }
.hero-copy > * + * { margin-top: var(--space-xl); }
.hero-copy .body-lg { color: var(--text-mute); max-width: 560px; }
.hero .display-xxl { font-size: clamp(40px, 5vw, 72px); line-height: 1.05; }
/* Haut de page posé sur une forme arrondie (fond doux) qui se détache de l'en-tête et du reste de la page */
.hero, .page-hero { margin: 0 var(--space-xl); border-radius: 32px; background: var(--bg-soft); }
.hero.band-hero { padding: var(--space-section) 0; }
.eyebrow-pill {
    display: inline-block; padding: 8px 18px; border-radius: var(--radius-full);
    background: var(--pill-tint-bg); color: var(--pill-tint-text); text-transform: uppercase; letter-spacing: .04em; font-size: 13px; line-height: 1.5;
}
.hero-media { position: relative; display: grid; place-items: center; }
.store-row { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.store-tile {
    display: inline-flex; align-items: center; gap: 12px; min-height: var(--input-height); padding: 10px 20px 10px 16px;
    border-radius: var(--radius-md); background: var(--strong); color: var(--on-strong); text-decoration: none;
}
.store-tile:hover { background: var(--strong-hover); }
.store-tile .icon { width: 26px; height: 26px; }
.store-tile small { display: block; font-size: 12px; line-height: 1.2; opacity: .72; letter-spacing: 0; }
.store-tile strong { display: block; font-size: 16px; line-height: 1.25; font-weight: 600; }

/* Orbite de logos autour du téléphone (crypto et opérateurs) */
.orbit { position: absolute; inset: -6% -4%; pointer-events: none; }
.orbit img {
    position: absolute; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); padding: 6px;
    animation: float 6s ease-in-out infinite;
}
.orbit img:nth-child(1) { top: 6%; left: 4%; }
.orbit img:nth-child(2) { top: 2%; right: 10%; animation-delay: -1s; }
.orbit img:nth-child(3) { top: 40%; left: -2%; animation-delay: -2s; }
.orbit img:nth-child(4) { top: 46%; right: -2%; animation-delay: -3s; }
.orbit img:nth-child(5) { bottom: 10%; left: 8%; animation-delay: -4s; }
.orbit img:nth-child(6) { bottom: 4%; right: 12%; animation-delay: -5s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .orbit img { animation: none; } html { scroll-behavior: auto; } }

/* ── Maquettes de l'application (écrans réels, thème sombre de l'app) ───── */
.phone {
    position: relative; width: 300px; aspect-ratio: 9 / 19.5; padding: 10px; border-radius: 46px;
    background: #1d1f22; border: 1px solid #2c2f33; flex: none;
}
.phone-screen {
    position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 37px;
    background: var(--app-bg); color: #fff; padding: 44px 16px 16px; font-size: 12px; letter-spacing: 0;
}
.phone-screen::before { /* encoche */
    content: ""; position: absolute; top: 10px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%);
    border-radius: 14px; background: #000; box-shadow: 0 0 0 1px #1d1f22;
}
.phone-sm { width: 260px; }
.app-row { display: flex; align-items: center; gap: 10px; }
.app-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--app-chip); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.app-muted { color: var(--app-mute); }
.app-title { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -.2px; }
.app-card { border-radius: 22px; background: var(--app-surface); padding: 14px; }
.app-account { margin-top: 16px; padding: 16px; border-radius: 24px; background: var(--app-surface); }
.app-balance { font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -.4px; margin-top: 6px; }
.app-dots { display: flex; gap: 4px; justify-content: center; margin-top: 10px; }
.app-dots i { width: 6px; height: 6px; border-radius: 3px; background: #2c2f33; }
.app-dots i:first-child { width: 18px; background: #fff; }
.app-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0; text-align: center; font-size: 11px; }
.app-actions span { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 6px; border-radius: 50%; background: var(--app-chip); }
.app-actions .icon { width: 18px; height: 18px; }
.app-list > * + * { border-top: 1px solid rgba(255, 255, 255, .06); }
.app-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.app-item img, .app-item .app-avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.app-item .grow { flex: 1; min-width: 0; }
.app-item b { display: block; font-weight: 600; font-size: 12px; }
.app-item small { display: block; font-size: 11px; color: var(--app-mute); }
.app-pos { color: var(--accent-teal); }
.app-neg { color: #ff6b77; }
.app-seg { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--app-surface); margin: 12px 0; font-size: 11px; font-weight: 600; }
.app-seg span { flex: 1; text-align: center; padding: 6px 0; border-radius: 999px; color: var(--app-mute); }
.app-seg span:first-child { background: #fff; color: #000; }
.app-qr { width: 150px; height: 150px; margin: 14px auto; padding: 10px; border-radius: 18px; background: #fff; }
.app-qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.app-pill-btn { display: block; text-align: center; margin-top: 12px; padding: 11px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: 13px; }
.app-link { text-align: center; font-weight: 600; font-size: 13px; }
.app-tabbar {
    position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-around; padding: 10px 6px;
    border-radius: 999px; background: rgba(22, 24, 26, .92); font-size: 9px; color: var(--app-mute); text-align: center;
}
.app-tabbar span:first-child { color: #fff; }
.app-tabbar .icon { width: 16px; height: 16px; margin: 0 auto 2px; }

/* ── Sections de l'accueil ──────────────────────────────────────────────── */
.logo-rail { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); }
.logo-chip {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: var(--radius-full);
    background: var(--chip); font-weight: 600; font-size: 14px; letter-spacing: 0;
}
.logo-chip img { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; background: #fff; }
.logo-chip small { color: var(--text-mute); font-weight: 400; }

/* Carte du compte : le tampon pétrole de la section */
.iban-card {
    width: min(100%, 420px); aspect-ratio: 1.586; display: flex; flex-direction: column; justify-content: space-between;
    padding: var(--space-xxl); border-radius: var(--radius-lg); background: var(--primary); color: var(--on-primary);
}
.iban-card .caption { color: rgba(255, 255, 255, .8); }
.iban-balance { font-family: var(--font-display); font-weight: 500; font-size: 44px; line-height: 1; letter-spacing: -.02em; }
.iban-balance span { font-size: 20px; }
.iban-meta { display: grid; gap: var(--space-sm); font-size: 14px; }
.iban-meta div { display: flex; justify-content: space-between; gap: var(--space-lg); }
.iban-meta dt { color: rgba(255, 255, 255, .72); }
.iban-meta dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

.market { padding: 8px var(--space-xl); }
.market-row { display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-lg); align-items: center; padding: 14px 0; }
.market-row + .market-row { border-top: 1px solid var(--hairline); }
.market-row img { width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.market-asset { display: flex; gap: 12px; align-items: center; min-width: 0; }
.market-asset b { display: block; font-weight: 600; }
.market-asset small { color: var(--text-mute); }
.market-price { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.market-change { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; min-width: 76px; text-align: right; padding: 4px 10px; border-radius: var(--radius-full); }
.market-change.up { color: var(--up-text); background: var(--up-bg); }
.market-change.down { color: var(--down-text); background: var(--down-bg); }

.stats > div { display: flex; flex-direction: column-reverse; padding-top: var(--space-xl); border-top: 1px solid var(--hairline-strong); }
.stats dd { margin: 0; }
.stats dt { margin-top: var(--space-sm); }
.stat-value { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.02em; }
.stat-label { color: var(--text-mute); }
/* Chiffres de l'accueil : tuiles, 2 par ligne sur mobile (un chiffre par ligne faisait une page interminable) */
.stat-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.stat-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm);
    padding: var(--space-xl); border-radius: var(--radius-lg); background: var(--chip); min-width: 0;
}
.stat-card .icon-chip { width: 40px; height: 40px; background: var(--pill-tint-bg); color: var(--pill-tint-text); margin-bottom: var(--space-sm); }
.stat-card .stat-value { font-size: clamp(32px, 4vw, 48px); }
.stat-card .stat-label { font-size: 15px; line-height: 1.4; letter-spacing: 0; }
.steps { counter-reset: step; }
.step-num {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-full);
    background: var(--strong); color: var(--on-strong); font-weight: 600;
}
.quote-card blockquote { font-size: 17px; line-height: 1.55; }
.quote-stars { color: var(--star); letter-spacing: 2px; }
.star-off { color: var(--text-faint); }
.quote-author { display: flex; align-items: center; gap: 12px; }
.quote-author .app-avatar { background: var(--chip); color: var(--text); width: 40px; height: 40px; }
.coming-soon { display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; }
.code-card {
    width: 100%; max-width: 520px; margin: 0; padding: var(--space-xxl); border-radius: var(--radius-lg); overflow-x: auto;
    background: var(--code-bg); color: #e8eaed; font: 14px/1.7 var(--font-mono);
}
.c-mute { color: #8d969e; }
.c-key { color: #8fd4dc; }
.c-str { color: #4fd1a5; }
.cta-final { text-align: center; }
.cta-final .row-actions { justify-content: center; }
.qr-tile { display: inline-flex; align-items: center; gap: var(--space-lg); padding: 12px 20px 12px 12px; border-radius: var(--radius-lg); background: var(--surface-on-soft); text-align: left; }
.qr-tile img { width: 96px; height: 96px; border-radius: 12px; background: #fff; padding: 6px; }
.band:not(.band-soft) .qr-tile { background: var(--chip); }
@media (hover: none) and (pointer: coarse) { .qr-desktop { display: none; } }

/* ── Pages intérieures ──────────────────────────────────────────────────── */
.page-hero { padding: var(--space-block) 0 var(--space-section); }
.page-hero .body-lg { color: var(--text-mute); max-width: 640px; margin-top: var(--space-xl); }
.page-hero .display-xl { margin-top: var(--space-md); }
.contact-list { display: grid; gap: var(--space-md); }
.contact-list a, .contact-list div { display: flex; gap: var(--space-md); align-items: flex-start; text-decoration: none; }
.contact-list small { display: block; color: var(--text-mute); }
.map-frame { width: 100%; height: 320px; border: 0; border-radius: var(--radius-lg); background: var(--chip); }

/* FAQ (lignes dépliables) */
.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding: 22px 0;
    cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .2s; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item .answer { padding: 0 0 22px; color: var(--text-mute); max-width: 760px; }
.faq-search-field { margin-top: var(--space-xxl); }
.faq-search { width: 100%; }
#faq-count { margin-top: var(--space-md); }
.faq-cats { margin-top: var(--space-xl); }
.faq-group + .faq-group { margin-top: var(--space-block); }
.faq-group > h2 { margin-bottom: var(--space-md); }

/* Formulaires */
.form { display: grid; gap: var(--space-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.field { display: grid; gap: var(--space-xs); border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--text-label); padding: 0; }
.field legend { margin-bottom: var(--space-xs); }
.input, .textarea {
    width: 100%; min-height: var(--input-height); padding: 14px 16px; border-radius: var(--radius-md);
    background: var(--bg); border: 1px solid var(--field-border); color: var(--text);
}
.band-soft .input, .band-soft .textarea, .page-hero .input { background: var(--surface-on-soft); }
.input::placeholder, .textarea::placeholder { color: var(--text-mute); }
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .textarea:focus { outline: 2px solid var(--primary-bright); outline-offset: 1px; border-color: var(--primary-bright); }
.check { display: flex; gap: var(--space-md); align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.choice { position: relative; display: block; padding: 16px 18px; border-radius: var(--radius-md); border: 1px solid var(--field-border); cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked) { border-color: var(--text); outline: 1px solid var(--text); }
.choice:has(input:focus-visible) { outline: 2px solid var(--primary-bright); outline-offset: 2px; }
.choice strong { display: block; font-weight: 600; }
.choice small { color: var(--text-mute); }
.alert { padding: 16px 20px; border-radius: var(--radius-md); font-weight: 600; }
.alert-success { background: var(--success-bg); color: var(--success-text); }
.alert-error { background: var(--error-bg); color: var(--error-text); }
.alert + .form, .alert + form { margin-top: var(--space-xl); }
.form-error { color: var(--error-text); font-size: 14px; font-weight: 600; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { cursor: pointer; color: var(--text-faint); }
.stars label svg { width: 36px; height: 36px; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--star); }
.stars input:focus-visible + label { outline: 2px solid var(--primary-bright); outline-offset: 2px; border-radius: 6px; }
.mydata-form .confirm-partial { display: none; }
.mydata-form:has(input[value="partial"]:checked) .confirm-partial { display: inline; }
.mydata-form:has(input[value="partial"]:checked) .confirm-all { display: none; }

/* Pages de contenu (CGU, politique LCB-FT…) */
.legal { padding-top: var(--space-xxxl); }
.legal h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; letter-spacing: -.01em; }
.legal h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.33; margin-top: var(--space-xxxl); }
.legal h3, .legal h4, .legal h5 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin-top: var(--space-xl); }
.legal p, .legal li { color: var(--text-body); }
.legal p { margin-top: var(--space-md); }
.legal ul, .legal ol { margin-top: var(--space-md); padding-left: 1.3em; }
.legal li + li { margin-top: var(--space-xs); }
.legal a { color: var(--link); }

/* Menu des documents légaux + mise en avant (mentions légales, confidentialité, CGU, activités, LCB-FT) */
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-xl); }
.legal-nav-item {
    display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--hairline); color: var(--text-body); font-size: 14px; text-decoration: none;
}
.legal-nav-item:hover { background: var(--surface-hover); }
.legal-nav-item.is-active { background: var(--chip); border-color: transparent; color: var(--strong, var(--text-body)); font-weight: 600; }
.legal-intro { font-size: 17px; line-height: 1.6; color: var(--text-mute); }
.legal-note {
    margin-top: var(--space-lg); padding: 14px 16px; border-left: 3px solid var(--accent, #026873);
    background: var(--surface-soft, transparent); border-radius: 0 8px 8px 0;
}
.legal-ids { font-size: 13px; color: var(--text-mute); }
.legal table { width: 100%; border-collapse: collapse; margin-top: var(--space-lg); font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.legal-sections { margin-top: var(--space-xxl); border-top: 1px solid var(--hairline); }
.legal-section { border-bottom: 1px solid var(--hairline); }
.legal-section summary { display: flex; align-items: center; gap: var(--space-md); padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.legal-section summary::-webkit-details-marker { display: none; }
.legal-section summary::after { content: "+"; margin-left: auto; font-size: 24px; color: var(--text-mute); }
.legal-section[open] summary::after { content: "−"; }
.legal-section > :not(summary) { margin-bottom: var(--space-md); }
.legal-meta { margin-top: var(--space-sm); color: var(--text-mute); }

/* ── Pied de page ───────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--hairline); background: var(--bg); color: var(--text-mute); padding: var(--space-block) 0 var(--space-xxxl); font-size: 14px; letter-spacing: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--space-xxl); }
.footer-grid h2 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: var(--space-md); font-family: var(--font-sans); }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-about .brand { color: var(--text); }
.footer-about p { margin-top: var(--space-lg); max-width: 320px; }
.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-xl); }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--chip); color: var(--text); }
.footer-social a:hover { background: var(--chip-hover); }
.footer-legal { margin-top: var(--space-block); padding-top: var(--space-xl); border-top: 1px solid var(--hairline); font-size: 13px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: var(--space-lg); justify-content: space-between; }
.newsletter { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); max-width: 380px; }
.newsletter .input { flex: 1 1 200px; min-width: 0; min-height: 48px; padding: 10px 16px; border-radius: var(--radius-full); background: var(--chip); border-color: var(--hairline); }
.newsletter .btn { min-height: 48px; padding: 10px 20px; }
.newsletter-msg { margin-top: var(--space-sm); font-size: 13px; color: var(--text); }

/* ── Adaptations ────────────────────────────────────────────────────────── */
@media (min-width: 1024px) and (max-width: 1279px) {
    .nav-links a { padding-left: 10px; padding-right: 10px; }
    .nav-links li:nth-child(4) { display: none; } /* Sécurité : reste accessible depuis l'accueil et le menu mobile */
}
@media (max-width: 1023px) {
    .nav-links, .nav-end > .btn { display: none; }
    .mobile-nav { display: block; }
    .nav-end { margin-left: auto; }
    .hero-grid, .split { grid-template-columns: 1fr; }
    .split.reverse > .split-media { order: 0; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .band { padding: 64px 0; }
    .band-hero, .hero.band-hero { padding: 48px 0; }
    .page-hero { padding: 56px 0; }
    .band-tight { padding: 64px 0 0; }
    .grid-2, .grid-3, .grid-4, .form-row, .choice-group { grid-template-columns: 1fr; }
    .card { padding: var(--space-xl); }
    .orbit { display: none; }
    .market { padding: 0 var(--space-lg); }
    .market-row { grid-template-columns: 1fr auto; }
    .market-price { display: none; }
}
@media (max-width: 480px) {
    .hero, .page-hero { margin: 0 var(--space-sm); border-radius: 24px; }
    .brand-tag { display: none; }
    .brand-name { font-size: 19px; }
    .brand img { width: 26px; }
    .nav-end { gap: 6px; }
    .lang-switch a { min-width: 30px; padding: 4px 7px; }
    .theme-toggle, .mobile-nav summary { width: 38px; height: 38px; }
    .site-header .bar { gap: var(--space-sm); }
    .phone { width: min(300px, 100%); }
}
@media (max-width: 359px) {
    .brand-name { display: none; }
}
@media (max-width: 1023px) {
    .stat-cards { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
}
@media (max-width: 480px) {
    .stat-card { padding: var(--space-lg); }
    .feature-list strong { font-size: 18px; }
}
@media (max-width: 359px) {
    .stat-cards { grid-template-columns: 1fr; }
    .stat-card { align-items: center; text-align: center; }
}
@media (max-width: 425px) {
    .container { padding: 0 var(--space-lg); }
    .footer-grid { grid-template-columns: 1fr; }
    .store-row .store-tile { flex: 1 1 100%; }
}

/* ── Animations d'apparition ────────────────────────────────────────────── */
/* Classe « anim » posée par theme.js (JavaScript actif, mouvement non réduit). Haut de page : CSS seul, au chargement. */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rise-media { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
.anim .hero-copy > *, .anim .page-hero .container > *, .anim .docs-hero .docs-container > * {
    animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
}
.anim .hero-copy > :nth-child(2), .anim .page-hero .container > :nth-child(2) { animation-delay: .08s; }
.anim .hero-copy > :nth-child(3), .anim .page-hero .container > :nth-child(3) { animation-delay: .16s; }
.anim .hero-copy > :nth-child(4), .anim .page-hero .container > :nth-child(4) { animation-delay: .24s; }
.anim .hero-copy > :nth-child(n+5), .anim .page-hero .container > :nth-child(n+5) { animation-delay: .32s; }
.anim .hero-media .phone { animation: rise-media 1s cubic-bezier(.2, .7, .2, 1) .2s both; }
.anim .hero-media .orbit { animation: rise .8s ease .6s both; }
/* Reste de la page : au défilement (site.js ajoute « reveal » puis « is-in ») */
.anim .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1), background-color .15s;
    transition-delay: var(--reveal-delay, 0ms);
}
.anim .reveal.is-in { opacity: 1; transform: none; }
.anim .split-media.reveal { transform: translateY(40px) scale(.97); }
.anim .split-media.reveal.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
    .anim .reveal, .anim .hero-copy > *, .anim .page-hero .container > *, .anim .hero-media .phone { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}
