/* File Download Manager — site web
   Même système de design que l'application : surfaces Fluent sur fond « Mica », angles de 6 à 14 px,
   une seule couleur — le dégradé bleu → violet — réservée à l'action et au mouvement. */

:root {
    --brand-1: #2f6fed;
    --brand-2: #6a5af6;
    --brand: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    --brand-h: linear-gradient(90deg, var(--brand-1), var(--brand-2));

    --bg: #f3f4f8;
    --bg-glow-1: rgba(47, 111, 237, .14);
    --bg-glow-2: rgba(106, 90, 246, .12);
    --surface: rgba(255, 255, 255, .82);
    --surface-solid: #ffffff;
    --surface-2: rgba(255, 255, 255, .55);
    --subtle: rgba(15, 23, 42, .04);
    --hover: rgba(15, 23, 42, .05);
    --stroke: rgba(15, 23, 42, .08);
    --stroke-strong: rgba(15, 23, 42, .14);
    --text: #17181d;
    --text-2: #474c5a;
    --text-3: #6a7080;
    --accent-text: #2a5ad6;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .07);
    --shadow-lg: 0 2px 6px rgba(15, 23, 42, .06), 0 30px 80px rgba(30, 40, 90, .18);
    --header: rgba(243, 244, 248, .72);
    --code-bg: rgba(15, 23, 42, .05);

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;
    --container: 1180px;
    --gutter: 24px;

    --font-text: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
    --font-mono: "Cascadia Mono", "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
    --tracking-tight: -0.022em;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] {
        --bg: #15161b;
        --bg-glow-1: rgba(47, 111, 237, .20);
        --bg-glow-2: rgba(106, 90, 246, .16);
        --surface: rgba(255, 255, 255, .045);
        --surface-solid: #1f2026;
        --surface-2: rgba(255, 255, 255, .03);
        --subtle: rgba(255, 255, 255, .04);
        --hover: rgba(255, 255, 255, .06);
        --stroke: rgba(255, 255, 255, .08);
        --stroke-strong: rgba(255, 255, 255, .14);
        --text: #f2f3f6;
        --text-2: #bfc3cf;
        --text-3: #8d92a2;
        --accent-text: #9db1ff;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
        --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 30px 90px rgba(0, 0, 0, .55);
        --header: rgba(21, 22, 27, .72);
        --code-bg: rgba(255, 255, 255, .06);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #15161b;
    --bg-glow-1: rgba(47, 111, 237, .20);
    --bg-glow-2: rgba(106, 90, 246, .16);
    --surface: rgba(255, 255, 255, .045);
    --surface-solid: #1f2026;
    --surface-2: rgba(255, 255, 255, .03);
    --subtle: rgba(255, 255, 255, .04);
    --hover: rgba(255, 255, 255, .06);
    --stroke: rgba(255, 255, 255, .08);
    --stroke-strong: rgba(255, 255, 255, .14);
    --text: #f2f3f6;
    --text-2: #bfc3cf;
    --text-3: #8d92a2;
    --accent-text: #9db1ff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 30px 90px rgba(0, 0, 0, .55);
    --header: rgba(21, 22, 27, .72);
    --code-bg: rgba(255, 255, 255, .06);
    color-scheme: dark;
}

/* Écritures : police que Windows utilise pour chaque langue (comme dans l'application). */
:lang(zh) { --font-text: "Segoe UI Variable Text", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif; --font-display: "Segoe UI Variable Display", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif; --tracking-tight: 0; }
:lang(ja) { --font-text: "Segoe UI Variable Text", "Yu Gothic UI", "Meiryo UI", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; --font-display: "Segoe UI Variable Display", "Yu Gothic UI", "Meiryo UI", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; --tracking-tight: 0; }
:lang(ko) { --font-text: "Segoe UI Variable Text", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; --font-display: "Segoe UI Variable Display", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; --tracking-tight: 0; }
:lang(hi) { --font-text: "Nirmala UI", "Segoe UI Variable Text", "Noto Sans Devanagari", "Kohinoor Devanagari", system-ui, sans-serif; --font-display: "Nirmala UI", "Segoe UI Variable Display", "Noto Sans Devanagari", system-ui, sans-serif; --tracking-tight: 0; }
:lang(ar) { --font-text: "Segoe UI Variable Text", "Segoe UI", "Noto Sans Arabic", Tahoma, system-ui, sans-serif; --font-display: "Segoe UI Variable Display", "Segoe UI", "Noto Sans Arabic", Tahoma, system-ui, sans-serif; --tracking-tight: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
    margin: 0;
    overflow-wrap: break-word;
    background:
        radial-gradient(1100px 600px at 12% -8%, var(--bg-glow-1), transparent 60%),
        radial-gradient(900px 520px at 92% 4%, var(--bg-glow-2), transparent 60%),
        var(--bg);
    background-repeat: no-repeat;
    color: var(--text);
    font: 400 16px/1.6 var(--font-text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
:lang(hi) body, body:lang(hi) { line-height: 1.75; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); color: var(--text); margin: 0 0 .5em; line-height: 1.15; font-weight: 650; letter-spacing: var(--tracking-tight); }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.4rem); }
h3, .h3 { font-size: 1.15rem; letter-spacing: 0; line-height: 1.3; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { line-height: 1.4; }
code { font-family: var(--font-mono); font-size: .9em; }
strong { font-weight: 650; }
:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; border-radius: 4px; }

.muted { color: var(--text-3); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.125rem; color: var(--text-2); }
.icon { flex: none; }
[dir="rtl"] .icon-flip, [dir="rtl"] .btn .icon:last-child:not(:first-child), [dir="rtl"] .link .icon { transform: scaleX(-1); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--surface-solid); padding: 10px 14px; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ Boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 40px; padding: 0 18px; border-radius: var(--r-sm);
    font: 600 .95rem/1 var(--font-text); white-space: nowrap; cursor: pointer;
    border: 1px solid var(--stroke-strong); background: var(--surface-solid); color: var(--text);
    box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, background .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn-primary {
    border: 0; color: #fff; background: var(--brand);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 18px rgba(64, 90, 240, .35);
}
.btn-primary:hover { background: var(--brand); filter: brightness(1.07); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 26px rgba(64, 90, 240, .45); }
.btn-ghost { background: var(--surface); }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 1.02rem; border-radius: 8px; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: .875rem; gap: 8px; }
.btn-light { background: #fff; color: #23264a; border: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.btn-light:hover { background: #fff; filter: brightness(.97); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.icon-btn {
    display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm);
    border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; flex: none;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* ------------------------------------------------------------------ En-tête */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: var(--header);
    -webkit-backdrop-filter: saturate(1.6) blur(20px);
    backdrop-filter: saturate(1.6) blur(20px);
    border-bottom: 1px solid var(--stroke);
}
.topbar-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 650 1rem/1 var(--font-display); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--text-2); padding: 8px 12px; border-radius: var(--r-sm); font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--hover); text-decoration: none; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.lang-menu { position: relative; }
.lang-menu summary {
    list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px;
    border-radius: var(--r-sm); cursor: pointer; color: var(--text-2); font-size: .85rem; font-weight: 600;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: var(--hover); color: var(--text); }
.lang-menu ul {
    position: absolute; inset-inline-end: 0; top: 44px; min-width: 190px; margin: 0; padding: 6px; list-style: none;
    background: var(--surface-solid); border: 1px solid var(--stroke); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
}
.lang-menu a { display: block; padding: 8px 12px; border-radius: var(--r-sm); color: var(--text); }
.lang-menu a:hover { background: var(--hover); text-decoration: none; }
.lang-menu a[aria-current] { background: var(--subtle); font-weight: 650; box-shadow: inset 3px 0 0 var(--brand-1); }
[dir="rtl"] .lang-menu a[aria-current] { box-shadow: inset -3px 0 0 var(--brand-1); }
.theme-toggle .when-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .when-dark { display: inline; }
:root[data-theme="dark"] .theme-toggle .when-light { display: none; }
@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] .theme-toggle .when-dark { display: inline; }
    :root[data-theme="auto"] .theme-toggle .when-light { display: none; }
}
.menu-toggle { display: none; }

/* Images claires / sombres selon le thème */
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] .only-dark { display: block !important; }
    :root[data-theme="auto"] .only-light { display: none !important; }
}

/* ------------------------------------------------------------------ Mise en page */
main { display: block; }
.section { max-width: var(--container); margin: 0 auto; padding: 88px var(--gutter); }
.section.narrow { max-width: 880px; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head .lead { margin-bottom: 0; }
.section-tinted { max-width: none; background: linear-gradient(180deg, transparent, var(--subtle) 18%, var(--subtle) 82%, transparent); }
.section-tinted > * { max-width: calc(var(--container) - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow {
    display: inline-block; margin: 0 0 12px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: var(--brand-h); -webkit-background-clip: text; background-clip: text; color: transparent;
}
:lang(zh) .eyebrow, :lang(ja) .eyebrow, :lang(ko) .eyebrow, :lang(hi) .eyebrow, :lang(ar) .eyebrow { letter-spacing: 0; }
.card {
    background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm); padding: 24px;
}

/* ------------------------------------------------------------------ Héros */
.hero { position: relative; overflow: hidden; padding: 72px var(--gutter) 110px; }
.hero-glow {
    position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
    background:
        radial-gradient(520px 300px at 50% 40%, rgba(80, 110, 250, .22), transparent 70%),
        radial-gradient(420px 260px at 30% 70%, rgba(47, 111, 237, .12), transparent 70%),
        radial-gradient(420px 260px at 72% 70%, rgba(106, 90, 246, .14), transparent 70%);
    filter: blur(10px);
}
.hero-inner { position: relative; max-width: var(--container); margin: 0 auto; }
.hero-copy { max-width: 860px; margin: 0 auto; text-align: center; }
.badge {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px 6px 10px;
    border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); color: var(--text-2);
    font-size: .875rem; font-weight: 600; box-shadow: var(--shadow-sm);
}
.badge .icon { color: var(--brand-1); }
.hero h1 { margin-bottom: 20px; }
.hero h1, .gradient-text { text-wrap: balance; }
.hero .lead { max-width: 720px; margin: 0 auto 30px; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-meta { margin: 16px 0 6px; color: var(--text-3); font-size: .9rem; }
.hero-note { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: .9rem; margin: 0; }
.hero-note .icon { color: #1fa463; }
.hero-visual { position: relative; margin: 56px auto 0; max-width: 1080px; }
.window-frame {
    border-radius: 12px; overflow: hidden; border: 1px solid var(--stroke-strong);
    box-shadow: var(--shadow-lg); background: var(--surface-solid);
}
.floating-card {
    position: absolute; width: 27%; inset-inline-end: -3%; bottom: -8%;
    border-radius: 10px; overflow: hidden; border: 1px solid var(--stroke-strong); box-shadow: var(--shadow-lg);
    transform: rotate(1.5deg); background: var(--surface-solid);
}
[dir="rtl"] .floating-card { transform: rotate(-1.5deg); }

/* Chiffres clés */
.stats {
    max-width: var(--container); margin: 0 auto; padding: 8px var(--gutter) 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat { text-align: center; padding: 8px; }
.stat strong {
    display: block; font: 700 clamp(2rem, 1.4rem + 2vw, 2.8rem)/1.1 var(--font-display); letter-spacing: var(--tracking-tight);
    background: var(--brand-h); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--text-2); font-size: .95rem; }

/* Fonctions */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--stroke-strong); }
.feature h3 { margin-top: 16px; }
.feature p { color: var(--text-2); margin: 0; }
.feature-icon {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: #fff; flex: none;
    background: var(--brand); box-shadow: 0 6px 16px rgba(64, 90, 240, .3), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* Galerie */
.gallery-tabs {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 auto 28px; padding: 4px; width: fit-content; max-width: 100%;
    background: var(--surface); border: 1px solid var(--stroke); border-radius: 10px;
}
.gallery-tabs button, .browser-tabs button {
    font: 600 .92rem/1 var(--font-text); color: var(--text-2); background: transparent; border: 0; cursor: pointer;
    padding: 10px 16px; border-radius: 7px; position: relative;
}
.gallery-tabs button:hover { color: var(--text); background: var(--hover); }
.gallery-tabs button[aria-selected="true"] { color: var(--text); background: var(--surface-solid); box-shadow: var(--shadow-sm); }
.gallery-tabs button[aria-selected="true"]::after {
    content: ""; position: absolute; inset-inline: 30%; bottom: 3px; height: 3px; border-radius: 3px; background: var(--brand-h);
}
.gallery-panel { margin: 0; text-align: center; }
.gallery-panel img {
    margin: 0 auto; border-radius: 12px; border: 1px solid var(--stroke-strong); box-shadow: var(--shadow-lg);
    max-height: 640px; width: auto; object-fit: contain;
}
.gallery-panel figcaption { margin-top: 18px; color: var(--text-2); }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; }
.step p { color: var(--text-2); margin: 0 0 8px; }
.step-number {
    flex: none;
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; margin-bottom: 14px;
    color: #fff; font-weight: 700; background: var(--brand); box-shadow: 0 6px 14px rgba(64, 90, 240, .3);
}
.steps-vertical { grid-template-columns: 1fr; margin-bottom: 32px; }
.steps-vertical .step { display: flex; gap: 16px; align-items: flex-start; }
.steps-vertical .step-number { margin: 0; }
.steps-vertical .step p { margin: 5px 0 0; color: var(--text); }
.steps-vertical .step .link { margin-inline-start: auto; align-self: center; }

/* Carte en deux colonnes */
.split-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 40px; }
.split-card p { color: var(--text-2); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: #fff; background: linear-gradient(135deg, #1fa463, #27b37a); border-radius: 999px; padding: 3px; width: 22px; height: 22px; margin-top: 1px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { padding: 0; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.05rem; flex: 1; }
.faq-item summary .icon { color: var(--text-3); transition: transform .2s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--text-2); }

/* Bandeau d'appel à l'action */
.cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    padding: 44px 48px; border-radius: var(--r-xl); color: #fff;
    background:
        radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, .18), transparent 60%),
        linear-gradient(135deg, #2f6fed, #5b5df5 55%, #7a56f0);
    box-shadow: 0 30px 70px rgba(60, 80, 230, .35);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ Page de téléchargement */
.download-page h2 { font-size: 1.4rem; margin-top: 8px; }
.download-hero { text-align: center; padding: 48px 32px; margin-bottom: 48px; box-shadow: var(--shadow); }
.download-hero h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); }
.download-icon {
    display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 18px; border-radius: 18px; color: #fff;
    background: var(--brand); box-shadow: 0 12px 30px rgba(64, 90, 240, .4);
}
.download-hero .btn { margin: 8px 0 6px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
/* Les éléments de grille ne doivent pas s'élargir à cause d'un chemin ou d'une commande sur une seule ligne. */
.info-grid > *, .donate-grid > *, .tutorial-steps > *, .tutorial-step > * { min-width: 0; }
.info-grid h2, .notes h2, .donate-mini h2, .tip h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-top: 0; }
.info-grid p { color: var(--text-2); margin: 0; }
.code-block {
    display: block; padding: 10px 12px; margin: 8px 0; border-radius: var(--r-sm); background: var(--code-bg);
    overflow-x: auto; white-space: nowrap; font-size: .82rem; text-align: left;
}
.copy-row { display: flex; align-items: center; gap: 8px; margin: 10px 0 16px; padding: 6px 6px 6px 12px; border-radius: var(--r-sm); background: var(--code-bg); }
.copy-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .82rem; text-align: left; }
.copy-row .icon-btn.copied { color: #1fa463; }
.notes { margin-bottom: 16px; }
.notes p { color: var(--text-2); margin: 0; }
.donate-mini { display: flex; gap: 18px; align-items: center; margin-top: 16px; }
.donate-mini > div { flex: 1; }
.donate-mini h2 { margin-bottom: 4px; }
.donate-mini p { margin: 0; color: var(--text-2); }

/* ------------------------------------------------------------------ Tutoriel */
.browser-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.browser-tabs button {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--stroke);
}
[dir="rtl"] .browser-tabs button { padding: 8px 8px 8px 16px; }
.browser-tabs button:hover { color: var(--text); border-color: var(--stroke-strong); }
.browser-tabs button[aria-selected="true"] { color: var(--text); background: var(--surface-solid); border-color: transparent; box-shadow: 0 0 0 2px var(--brand-1), var(--shadow); }
.browser-initial {
    display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; color: #fff; font-weight: 700; font-size: .85rem;
    background: var(--browser, #555);
}
.tutorial-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.tutorial-step { display: grid; grid-template-columns: 1fr 1.35fr; gap: 28px; align-items: center; }
.tutorial-step img { border-radius: var(--r-md); border: 1px solid var(--stroke-strong); box-shadow: var(--shadow); }
.tutorial-text .step-number { margin-bottom: 10px; }
.tutorial-text p { color: var(--text-2); }
.tutorial-text .muted.small { margin: 0 0 4px; }
.tip { display: flex; gap: 18px; align-items: center; margin-top: 24px; }
.tip p { margin: 0; }

/* ------------------------------------------------------------------ Dons */
.donate-heart {
    display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; margin-bottom: 16px; color: #fff;
    background: linear-gradient(135deg, #f0457a, #b44dff); box-shadow: 0 12px 30px rgba(220, 70, 160, .35);
}
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.donate-card { display: flex; flex-direction: column; }
.donate-card > .btn { margin-top: auto; align-self: flex-start; }
.donate-card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.donate-card-head h2 { margin: 0; }
.donate-card-head p { margin: 0; }
.pay-logo { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; font: 800 1.3rem/1 var(--font-display); }
.pay-paypal { background: linear-gradient(135deg, #003087, #009cde); }
.pay-btc { background: linear-gradient(135deg, #f7931a, #ffb547); }
.qr { width: 180px; border-radius: 10px; margin: 4px 0 8px; background: #fff; padding: 8px; border: 1px solid var(--stroke); }
.thanks { text-align: center; margin-top: 32px; font-size: 1.1rem; color: var(--text-2); }

/* ------------------------------------------------------------------ Alternative, confidentialité, 404 */
.alternative-page .card { margin-bottom: 16px; }
.alternative-page .card h2 { font-size: 1.35rem; }
.alternative-page .card p { color: var(--text-2); margin-bottom: 8px; }
.hero-actions.center { margin-top: 24px; }
.table-wrap { overflow-x: auto; }
.feature-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.feature-table th, .feature-table td { padding: 12px 10px; border-bottom: 1px solid var(--stroke); text-align: start; }
.feature-table thead th { color: var(--text-3); font-weight: 600; font-size: .85rem; }
.feature-table tbody th { font-weight: 500; }
.feature-table td { white-space: nowrap; }
.yes { display: inline-flex; align-items: center; gap: 6px; color: #1a9a5c; font-weight: 600; }
.prose h2 { font-size: 1.35rem; margin-top: 36px; }
.prose p { color: var(--text-2); }
.not-found .big-number {
    font: 800 6rem/1 var(--font-display); margin: 0 0 12px;
    background: var(--brand-h); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------------------------ Pied de page */
.footer { border-top: 1px solid var(--stroke); margin-top: 40px; background: var(--surface-2); }
.footer-inner {
    max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter) 32px;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 32px;
}
.footer-brand p { color: var(--text-2); margin: 14px 0 6px; max-width: 320px; }
.footer-col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 14px; font-family: var(--font-text); }
.footer-col a { display: block; color: var(--text-2); padding: 4px 0; }
.footer-col a:hover { color: var(--text); }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.lang-grid a[aria-current] { color: var(--text); font-weight: 650; }
.footer-bottom { max-width: var(--container); margin: 0 auto; padding: 20px var(--gutter) 40px; border-top: 1px solid var(--stroke); color: var(--text-3); font-size: .875rem; }
.footer-bottom p { margin: 0 0 4px; }

/* ------------------------------------------------------------------ Adaptation aux écrans */
@media (max-width: 1080px) {
    .nav { position: absolute; top: 64px; inset-inline: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
           background: var(--surface-solid); border-bottom: 1px solid var(--stroke); box-shadow: var(--shadow); display: none; }
    .nav.open { display: flex; }
    .nav a { padding: 12px; }
    .menu-toggle { display: inline-grid; }
    .topbar-actions { margin-inline-start: auto; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    :root { --gutter: 16px; }
    .section { padding: 64px var(--gutter); }
    .hero { padding-top: 44px; }
    .brand span { display: none; }
    .topbar-cta span { display: none; }
    .topbar-cta { padding: 0 10px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .hero { padding-bottom: 56px; }
    .feature-grid, .steps, .info-grid, .donate-grid { grid-template-columns: 1fr; }
    .split-card { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
    .floating-card { display: none; }
    .hero-visual { margin-top: 40px; }
    .cta-band { padding: 32px 24px; }
    .tutorial-step { grid-template-columns: 1fr; }
    .tutorial-step img { order: -1; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .donate-mini, .tip { flex-direction: column; align-items: flex-start; }
    .steps-vertical .step { flex-wrap: wrap; }
    .btn-lg { width: 100%; white-space: normal; line-height: 1.25; text-align: center; padding-block: 10px; }
    .hero-actions .btn { width: 100%; }
}
