/* ==========================================================================
   Fazeo Software · page d'atterrissage

   Tokens repris tels quels du design system Fazeo (tokens/colors, typography,
   spacing, effects). Les valeurs de base et les alias semantiques ne sont pas
   reecrits : seul le theme sombre est derive ici, en reaffectant les alias aux
   memes couleurs de base — la charte n'autorise que deux fonds, sapin profond
   ou ivoire.

   Aucune valeur de couleur, de typo ou d'espacement ne doit etre ecrite en dur
   ailleurs dans ce fichier.
   ========================================================================== */

:root {
    /* ── Base ─────────────────────────────────────────────── */
    --fazeo-sapin-profond: #10261E;
    --fazeo-sapin-median: #1E3A2E;
    --fazeo-vert-verdict: #3FA075;
    --fazeo-vert-texte: #2E6B4F;
    --fazeo-ivoire: #F2F1EA;
    --fazeo-ivoire-2: #E4E3DB;
    --fazeo-blanc: #FFFFFF;
    --fazeo-gris-vert: #5E6E66;
    --fazeo-gris-vert-clair: #8FA69B;
    --fazeo-bordure: #D5D3C7;

    /* ── Signaux — usage exceptionnel, jamais decoratif ───── */
    --fazeo-ocre-alerte: #C99A2E;
    --fazeo-brique-critique: #B0492F;

    /* ── Alias semantiques ────────────────────────────────── */
    color-scheme: light;

    --surface-page: var(--fazeo-ivoire);
    --surface-card: var(--fazeo-blanc);
    --surface-inset: var(--fazeo-ivoire-2);
    --surface-inverse: var(--fazeo-sapin-profond);
    --surface-inverse-2: var(--fazeo-sapin-median);

    --text-strong: var(--fazeo-sapin-profond);
    --text-body: var(--fazeo-vert-texte);
    --text-muted: var(--fazeo-gris-vert);
    --text-faint: var(--fazeo-gris-vert-clair);
    --text-on-inverse: var(--fazeo-ivoire);
    --text-muted-on-inverse: var(--fazeo-gris-vert-clair);

    --accent: var(--fazeo-vert-verdict);
    --accent-on-accent: var(--fazeo-sapin-profond);

    --border-hairline: var(--fazeo-bordure);
    --border-structural: var(--fazeo-sapin-profond);
    --border-inverse: var(--fazeo-sapin-median);

    --status-sain: var(--fazeo-vert-verdict);
    --status-attention: var(--fazeo-ocre-alerte);
    --status-critique: var(--fazeo-brique-critique);

    /* ── Typographie ──────────────────────────────────────── */
    --font-sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --text-display: 54px;
    --text-h1: 38px;
    --text-h2: 32px;
    --text-h3: 21px;
    --text-h4: 19px;

    --text-lede: 18px;
    --text-body-size: 15px;
    --text-body-sm: 14.5px;
    --text-body-xs: 14px;

    --text-label: 11px;
    --text-label-sm: 10px;
    --text-data: 12px;

    --lh-tight: 1.12;
    --lh-heading: 1.25;
    --lh-body: 1.6;
    --lh-relaxed: 1.7;

    --ls-display: -0.015em;
    --ls-heading: -0.01em;
    --ls-label: 0.16em;
    --ls-label-wide: 0.2em;

    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;

    /* ── Espacement ───────────────────────────────────────── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-11: 44px;
    --space-14: 56px;
    --space-18: 72px;
    --space-21: 84px;
    --space-24: 96px;

    --wrap-max: 1200px;
    --wrap-pad: 40px;
    --section-pad-y: 84px;
    --card-pad: 24px;
    --measure: 62ch;

    /* ── Effets ───────────────────────────────────────────── */
    --radius-none: 0px;
    --radius-sm: 2px;
    --radius-md: 4px;

    --border-width: 1px;
    --border-strong-width: 2px;

    --shadow-lift: 0 18px 40px -28px rgba(16, 38, 30, 0.5);

    --transition-fast: 120ms linear;
    --transition-base: 150ms linear;
}

/* Theme sombre : les memes couleurs de base, reaffectees. Le systeme decide
   tant que le visiteur n'a pas choisi ; son clic l'emporte ensuite. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;

        /* Les bandes de structure restent plus sombres que la page, comme en clair.
           Inverser vers l'ivoire retournait la composition au lieu de l'assombrir :
           l'accroche devenait claire au milieu d'une page sombre. */
        --surface-page: var(--fazeo-sapin-median);
        --surface-card: var(--fazeo-sapin-profond);
        --surface-inset: var(--fazeo-sapin-median);
        --surface-inverse: var(--fazeo-sapin-profond);
        --surface-inverse-2: var(--fazeo-sapin-median);

        --text-strong: var(--fazeo-ivoire);
        --text-body: var(--fazeo-ivoire);
        --text-muted: var(--fazeo-gris-vert-clair);
        --text-faint: var(--fazeo-gris-vert-clair);
        --text-on-inverse: var(--fazeo-ivoire);
        --text-muted-on-inverse: var(--fazeo-gris-vert-clair);

        --border-hairline: var(--fazeo-sapin-profond);
        --border-structural: var(--fazeo-gris-vert-clair);
        --border-inverse: var(--fazeo-gris-vert);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;

    /* Les bandes de structure restent plus sombres que la page, comme en clair.
       Inverser vers l'ivoire retournait la composition au lieu de l'assombrir :
       l'accroche devenait claire au milieu d'une page sombre. */
    --surface-page: var(--fazeo-sapin-median);
    --surface-card: var(--fazeo-sapin-profond);
    --surface-inset: var(--fazeo-sapin-median);
    --surface-inverse: var(--fazeo-sapin-profond);
    --surface-inverse-2: var(--fazeo-sapin-median);

    --text-strong: var(--fazeo-ivoire);
    --text-body: var(--fazeo-ivoire);
    --text-muted: var(--fazeo-gris-vert-clair);
    --text-faint: var(--fazeo-gris-vert-clair);
    --text-on-inverse: var(--fazeo-ivoire);
    --text-muted-on-inverse: var(--fazeo-gris-vert-clair);

    --border-hairline: var(--fazeo-sapin-profond);
    --border-structural: var(--fazeo-gris-vert-clair);
    --border-inverse: var(--fazeo-gris-vert);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--surface-page);
    color: var(--text-strong);
    font-family: var(--font-sans);
    font-size: var(--text-body-size);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--ls-heading);
    line-height: var(--lh-tight);
    text-wrap: pretty;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

.wrap {
    max-width: var(--wrap-max);
    margin: 0 auto;
    padding: 0 var(--wrap-pad);
}

.sr-only {
    position: absolute;
    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: -9999px;
}

.skip-link:focus {
    left: var(--space-4);
    top: var(--space-4);
    z-index: 100;
    padding: var(--space-2) var(--space-4);
    background: var(--accent);
    color: var(--accent-on-accent);
}

:focus-visible {
    outline: var(--border-strong-width) solid var(--accent);
    outline-offset: 3px;
}

/* ── En-tête ──────────────────────────────────────────────────────────── */

.masthead {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface-inverse);
}

.masthead-inner {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding-top: 22px;
    padding-bottom: 22px;
}

/* Le wordmark : « fa », le glyphe z, « eo ». Les barres suivent la couleur du
   texte, la diagonale seule porte le vert verdict. */
.wordmark {
    font-size: 26px;
    font-weight: var(--weight-medium);
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--text-on-inverse);
    text-decoration: none;
    white-space: nowrap;
}

.wordmark-z {
    height: 0.53em;
    width: 0.466em;
    vertical-align: baseline;
    margin: 0 0.012em;
}

.z-barres {
    fill: currentColor;
}

.z-diagonale {
    fill: var(--accent);
}

.nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: var(--text-label);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav a {
    color: var(--text-muted-on-inverse);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav a:hover {
    color: var(--text-on-inverse);
}

/* ── Boutons ──────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 26px;
    font-size: var(--text-body-size);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    border: var(--border-width) solid transparent;
    transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.btn-sm {
    padding: 9px 16px;
    font-family: var(--font-mono);
    font-size: var(--text-label);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-on-accent);
}

/* « Le bouton vert passe à l'ivoire. » Jamais d'opacité, jamais de taille. */
.btn-primary:hover {
    background: var(--fazeo-ivoire);
    color: var(--fazeo-sapin-profond);
}

.btn-secondary {
    background: var(--surface-inset);
    border-color: var(--border-hairline);
    color: var(--text-strong);
}

.btn-secondary:hover {
    border-color: var(--border-structural);
}

.lien-mono {
    font-family: var(--font-mono);
    font-size: var(--text-data);
    color: var(--text-muted-on-inverse);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.lien-mono:hover {
    color: var(--accent);
}

/* ── Bascule de thème ─────────────────────────────────────────────────── */

/* Cachée tant que le script ne l'a pas révélée : sans JavaScript elle ne ferait
   rien, et un bouton mort vaut moins que pas de bouton. */
.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: var(--border-width) solid transparent;
    color: var(--text-muted-on-inverse);
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--text-on-inverse);
    border-color: var(--border-inverse);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* L'icône annonce ce que le clic va faire, donc elle suit le thème effectif. */
.theme-toggle .vers-sombre {
    display: block;
}

.theme-toggle .vers-clair {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .vers-sombre {
        display: none;
    }

    :root:not([data-theme="light"]) .theme-toggle .vers-clair {
        display: block;
    }
}

:root[data-theme="dark"] .theme-toggle .vers-sombre,
:root[data-theme="light"] .theme-toggle .vers-clair {
    display: none;
}

:root[data-theme="dark"] .theme-toggle .vers-clair,
:root[data-theme="light"] .theme-toggle .vers-sombre {
    display: block;
}

/* ── Bandes ───────────────────────────────────────────────────────────── */

.band {
    padding: var(--section-pad-y) 0;
    border-bottom: var(--border-width) solid var(--border-hairline);
}

/* L'en-tête collant mesure 74px : sans cette marge, un clic dans la navigation
   dépose le titre de section derrière lui. */
[id] {
    scroll-margin-top: 96px;
}

.band-inverse {
    background: var(--surface-inverse);
    color: var(--text-muted-on-inverse);
    border-bottom-color: var(--border-inverse);
}

.band-inverse .section-title,
.band-inverse .closing-title {
    color: var(--text-on-inverse);
}

.band-head {
    display: flex;
    align-items: baseline;
    gap: var(--space-5);
    flex-wrap: wrap;
    margin-bottom: var(--space-11);
}

.lbl {
    font-family: var(--font-mono);
    font-size: var(--text-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

.section-title {
    font-size: var(--text-h2);
    max-width: 26ch;
}

/* Paragraphe d'adresse : il passe sous le titre au lieu de se ranger a cote,
   et la gouttiere de la bande fait l'espacement. */
.band-intro {
    flex-basis: 100%;
}

/* ── Accroche ─────────────────────────────────────────────────────────── */

.hero {
    padding: 88px 0 96px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
    align-items: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-label);
    letter-spacing: var(--ls-label-wide);
    text-transform: uppercase;
    color: var(--accent);
}

.hero h1 {
    font-size: clamp(34px, 4.3vw, var(--text-display));
    letter-spacing: var(--ls-display);
    line-height: 1.08;
    color: var(--text-on-inverse);
}

.accent {
    display: block;
    color: var(--accent);
}

.lede {
    max-width: var(--measure);
    font-size: var(--text-lede);
    line-height: var(--lh-body);
    color: var(--text-body);
}

.band-inverse .lede {
    color: var(--text-muted-on-inverse);
}

.cluster {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.proofs {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-mono);
    font-size: var(--text-label);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted-on-inverse);
}

.proofs li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Marqueur d'état : carré plein. Jamais un rond, jamais une coche. */
.marqueur {
    flex: none;
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
}

/* ── Carte « extrait de rapport » ─────────────────────────────────────── */

/* Seul element de la page a porter l'ombre : c'est la piece a conviction. */
.audit-card {
    margin: 0;
    background: var(--surface-page);
    border: var(--border-width) solid var(--border-inverse);
    box-shadow: var(--shadow-lift);
}

.audit-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: 14px 20px;
    border-bottom: var(--border-width) solid var(--border-hairline);
    font-family: var(--font-mono);
    font-size: var(--text-label-sm);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--text-muted);
}

.mark-inline {
    flex: none;
    height: 15px;
    width: 13px;
    color: var(--text-strong);
}

.fiche-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    padding: 18px var(--space-5) var(--space-4);
}

.fiche-app {
    font-size: var(--text-h4);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--ls-heading);
    line-height: var(--lh-heading);
    color: var(--text-strong);
}

/* Le verdict est le seul emploi legitime de l'ocre : il qualifie un etat dans un
   rapport, il ne decore pas. */
.fiche-verdict {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: var(--text-label);
    color: var(--text-body);
}

.fiche-verdict .marqueur {
    width: 7px;
    height: 7px;
}

.marqueur.attention {
    background: var(--status-attention);
}

/* Les faits mesures : mono, un par ligne, separes par des filets. */
.fiche-faits {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: var(--border-width) solid var(--border-hairline);
}

.fiche-faits li {
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-mono);
    font-size: var(--text-data);
    line-height: var(--lh-body);
    color: var(--text-muted);
}

.fiche-faits li + li {
    border-top: var(--border-width) solid var(--surface-inset);
}

.fiche-implication {
    padding: var(--space-4) var(--space-5);
    border-top: var(--border-width) solid var(--border-hairline);
    font-size: var(--text-body-xs);
    line-height: var(--lh-body);
    color: var(--text-body);
}

/* La legende dit que l'entreprise est fictive : c'est une mention qui doit se
   lire, pas s'estomper. Elle prend le gris de texte, pas le gris d'appui. */
.audit-card-foot {
    padding: 12px var(--space-5);
    border-top: var(--border-width) solid var(--border-hairline);
    font-family: var(--font-mono);
    font-size: var(--text-data);
    color: var(--text-muted);
}

/* ── Constat ──────────────────────────────────────────────────────────── */

.symptoms,
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.symptoms li,
.steps li {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.symptoms li {
    border-top: var(--border-strong-width) solid var(--border-structural);
    padding-top: 18px;
}

.ordinal {
    font-family: var(--font-mono);
    font-size: var(--text-label);
    color: var(--text-faint);
}

.symptoms h3,
.steps h3 {
    font-size: var(--text-h4);
}

.symptoms p,
.steps p {
    font-size: var(--text-body-sm);
    color: var(--text-muted);
}

/* Ordinal en carré sapin, chiffre ivoire — la forme prescrite par la charte. */
.step-number {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--fazeo-sapin-profond);
    color: var(--fazeo-ivoire);
    font-family: var(--font-mono);
    font-size: var(--text-body-size);
    font-weight: var(--weight-semibold);
}

/* ── Offres ───────────────────────────────────────────────────────────── */

.offers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.offer {
    display: flex;
    flex-direction: column;
    background: var(--surface-card);
    border: var(--border-width) solid var(--border-hairline);
}

.offer-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: var(--card-pad) var(--card-pad) 0;
}

.offer h3 {
    font-size: var(--text-h3);
}

.offer-stack {
    font-family: var(--font-mono);
    font-size: var(--text-label);
    line-height: var(--lh-body);
    color: var(--text-faint);
}

.offer-formats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.offer-formats li {
    padding: 5px 9px;
    background: var(--surface-page);
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-body);
}

.offer-body {
    flex: 1;
    padding: var(--space-4) var(--card-pad) var(--card-pad);
    font-size: var(--text-body-xs);
    color: var(--text-muted);
}

.offer-foot {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: 18px var(--card-pad);
    border-top: var(--border-width) solid var(--surface-inset);
}

.offer-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
}

.amount {
    font-size: var(--text-h4);
    font-weight: var(--weight-semibold);
    white-space: nowrap;
}

.scope {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    text-align: right;
}

/* La mention porte un engagement commercial (le parc, le delai de devis) et non
   une note de bas de carte : elle est lue, donc elle revient dans l'echelle. */
.offer-price-note {
    font-family: var(--font-mono);
    font-size: var(--text-data);
    line-height: 1.5;
    color: var(--text-muted);
}

.price-pledge {
    margin-top: 28px;
    padding: var(--space-6) var(--space-8);
    background: var(--surface-inverse);
    color: var(--text-on-inverse);
    font-size: var(--text-body-sm);
}

/* ── Confidentialité ──────────────────────────────────────────────────── */

.guarantees {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 56px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--text-body-sm);
}

.guarantees li {
    position: relative;
    padding-left: 22px;
}

.guarantees li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.band-note {
    margin-top: var(--space-11);
    max-width: var(--measure);
    font-size: var(--text-body-xs);
    color: var(--text-muted-on-inverse);
}

/* ── L'intervenant ────────────────────────────────────────────────────── */

.founder {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    max-width: var(--measure);
}

.founder-line {
    font-family: var(--font-mono);
    font-size: var(--text-data);
    color: var(--text-muted);
}

.founder p:not(.founder-line):not(.meta) {
    font-size: var(--text-body-sm);
    color: var(--text-muted);
}

.reference {
    margin: 0;
    padding: 18px 22px;
    background: var(--surface-card);
    border: var(--border-width) solid var(--border-hairline);
    border-left: var(--border-strong-width) solid var(--accent);
    font-size: var(--text-h4);
    line-height: var(--lh-heading);
    color: var(--text-strong);
}

.meta {
    font-size: var(--text-body-xs);
    color: var(--text-faint);
}

/* ── Questions ────────────────────────────────────────────────────────── */

.faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-8) 64px;
    margin: 0;
}

.faq-entry {
    border-top: var(--border-width) solid var(--border-hairline);
    padding-top: var(--space-5);
}

.faq dt {
    font-size: var(--text-body-size);
    font-weight: var(--weight-semibold);
}

.faq dd {
    margin: 10px 0 0;
    font-size: var(--text-body-sm);
    color: var(--text-muted);
}

/* ── Clôture ──────────────────────────────────────────────────────────── */

.closing .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    text-align: center;
}

.closing-title {
    font-size: var(--text-h1);
    max-width: 640px;
}

.closing .lede {
    max-width: 62ch;
}

.closing .cluster {
    justify-content: center;
    padding-top: var(--space-2);
}

/* ── Pied de page ─────────────────────────────────────────────────────── */

.site-footer {
    padding: var(--space-5) 0;
    background: var(--surface-inverse);
    border-top: var(--border-width) solid var(--border-inverse);
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: var(--text-label-sm);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted-on-inverse);
}

.footer-legal {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.footer-legal a {
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--accent);
}

.footer-mark {
    flex: none;
}

/* ── Adaptations ──────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-11);
    }

    .nav {
        display: none;
    }

    .theme-toggle {
        margin-left: auto;
    }
}

@media (max-width: 940px) {
    .offers {
        grid-template-columns: minmax(0, 1fr);
    }

    .offer-body,
    .offer-stack {
        max-width: var(--measure);
    }
}

@media (max-width: 780px) {
    .symptoms,
    .steps {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-8);
    }

    .band-head {
        gap: var(--space-3);
    }
}

@media (max-width: 640px) {
    .faq,
    .guarantees {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .wrap {
        padding: 0 var(--space-5);
    }

    /* Sous 360px, la gouttiere de 20px de la fiche mange la ligne de mono : les
       faits les plus longs y tiennent en deux lignes au lieu de trois. */
    .audit-card-head,
    .fiche-head,
    .fiche-faits li,
    .fiche-implication,
    .audit-card-foot {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    /* Le verdict passe sous le nom de l'application plutot que de se serrer a
       cote : les deux tiennent alors sur leur propre ligne. */
    .fiche-head {
        justify-content: flex-start;
        gap: var(--space-2);
    }

    .fiche-app {
        flex-basis: 100%;
    }

    .hero {
        padding: var(--space-14) 0 var(--space-18);
    }

    .band {
        padding: var(--space-14) 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   Pages légales

   Section ajoutée en fin de fichier, et qui ne sert qu'aux pages légales. Aucune
   règle au dessus n'est modifiée : la structure de ces pages reprend les bandes
   de l'accueil, seul le tableau de mentions est neuf.
   ========================================================================== */

.legal-intro {
    padding: var(--space-18) 0;
}

.legal-intro h1 {
    margin-top: var(--space-4);
    max-width: 20ch;
    font-size: var(--text-h1);
    color: var(--text-on-inverse);
}

.legal-intro .lede {
    margin-top: var(--space-5);
}

/* Les mentions d'identification se consultent par repérage et non en lecture
   suivie : intitulé en mono à gauche, valeur en sans à droite, une règle par
   ligne. Le libellé est de largeur fixe, la valeur prend le reste. */
.legal-facts {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    margin: 0;
    max-width: var(--measure);
}

.legal-facts dt {
    padding: var(--space-3) var(--space-4) var(--space-3) 0;
    border-top: var(--border-width) solid var(--border-hairline);
    font-family: var(--font-mono);
    font-size: var(--text-data);
    line-height: var(--lh-body);
    color: var(--text-muted);
}

.legal-facts dd {
    margin: 0;
    padding: var(--space-3) 0;
    border-top: var(--border-width) solid var(--border-hairline);
    font-size: var(--text-body-sm);
    color: var(--text-strong);
    overflow-wrap: break-word;
}

.legal-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    max-width: var(--measure);
    font-size: var(--text-body-sm);
    color: var(--text-muted);
}

.legal-facts + .legal-body,
.legal-facts + .legal-contact,
.legal-body + .legal-facts {
    margin-top: var(--space-8);
}

.legal-body + .legal-contact {
    margin-top: var(--space-6);
}

/* Une adresse ou une page voisine : ce qui se vérifie passe en mono, et le trait
   vert tient lieu de soulignement. */
.legal-contact {
    font-family: var(--font-mono);
    font-size: var(--text-data);
}

.legal-contact a {
    padding-bottom: 2px;
    border-bottom: var(--border-width) solid var(--accent);
    color: var(--text-strong);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.legal-contact a:hover {
    color: var(--accent);
}

/* Repli d'une rubrique dont aucune donnée n'est encore connue. La rubrique reste
   visible : la masquer laisserait croire que l'obligation n'existe pas. Ce texte
   porte seul la rubrique, donc il se lit comme du corps et non comme une note. */
.legal-note {
    max-width: var(--measure);
    font-size: var(--text-body-xs);
    color: var(--text-muted);
}

@media (max-width: 640px) {
    /* Les titres des rubriques légales sont courts : ils tiennent sur la ligne de
       l'ordinal jusqu'à toucher la marge. On les empile plutôt. */
    .legal-band .band-head {
        flex-direction: column;
        gap: var(--space-3);
    }

    /* Deux colonnes sur 320px réduiraient la valeur à un mot par ligne. */
    .legal-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .legal-facts dt {
        padding: var(--space-3) 0 0;
    }

    .legal-facts dd {
        padding: var(--space-1) 0 var(--space-3);
        border-top: 0;
    }

    .legal-intro {
        padding: var(--space-14) 0;
    }
}
