/*
 * Feuille unique du site public (un seul fichier CSS servi, aucun @import en cascade).
 *
 * Partie 1, entre « tokens:debut » et « tokens:fin » : copie conforme de
 * assets/styles/tokens.css, lui-même généré par design/build_tokens.py.
 * Ne pas l'éditer ici : régénérer les tokens (python3 design/build_tokens.py), puis remplacer
 * tout le bloc compris entre les deux marqueurs par le contenu de assets/styles/tokens.css.
 *
 * Partie 2 : composants du site (direction « Plan de fabrication »).
 */

/* tokens:debut */
/*
 * Algo Factory : design tokens de la refonte (préfixe --af-).
 * Source unique : design/tokens.json, généré en même temps que ce fichier.
 * Mobile-first, aucune règle de mise en forme ici : uniquement des variables et les polices.
 * Contrastes calculés (WCAG 2.1) : voir design/MOODBOARD.md, section 6.
 */

/* ---------- Polices : 3 fichiers WOFF2 (sous-ensemble latin + français) ----------
 * poppins-800-italic.woff2 : titres (signature de la charte), à précharger.
 * poppins-600.woff2 : boutons, navigation, h3-h4, texte fort.
 * poppins-400.woff2 : texte courant (charte ; au-delà du budget de 20 Ko, choix de l'agence).
 * Famille « Poppins Text » pour le corps : elle n'a pas d'italique, un <em> du texte courant
 * ne tombe donc pas sur le 800 italique des titres (voir em, i, cite dans app.css).
 * Son 600 pointe vers le même fichier que celui de « Poppins » : un seul téléchargement.
 */
@font-face {
    font-family: "Poppins";
    font-style: italic;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/poppins-800-italic-dEtnniG.woff2") format("woff2");
    unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153, U+0178, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-600-JyCLkA6.woff2") format("woff2");
    unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153, U+0178, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122;
}
@font-face {
    font-family: "Poppins Text";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-400-gD6H-Pe.woff2") format("woff2");
    unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153, U+0178, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122;
}
@font-face {
    font-family: "Poppins Text";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-600-JyCLkA6.woff2") format("woff2");
    unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153, U+0178, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122;
}
/*
 * Polices de secours aux métriques recalées sur Poppins (fontTools, texte français,
 * Liberation Sans = métriques d'Arial) : le texte affiché avant la police occupe
 * la même place, donc pas de décalage de mise en page (CLS 0) malgré swap.
 */
@font-face {
    font-family: "Poppins Fallback Display";
    font-style: italic;
    font-weight: 800;
    src: local("Arial Bold Italic"), local("Arial-BoldItalicMT"), local("Liberation Sans Bold Italic"), local("LiberationSans-BoldItalic"), local("Helvetica Bold Oblique");
    size-adjust: 108.9%;
    ascent-override: 96.4%;
    descent-override: 32.1%;
    line-gap-override: 9.2%;
}
@font-face {
    font-family: "Poppins Fallback UI";
    font-style: normal;
    font-weight: 600;
    src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Helvetica Bold");
    size-adjust: 106.7%;
    ascent-override: 98.4%;
    descent-override: 32.8%;
    line-gap-override: 9.4%;
}
@font-face {
    font-family: "Poppins Fallback Body";
    font-style: normal;
    font-weight: 400;
    src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans-Regular"), local("Helvetica");
    size-adjust: 112%;
    ascent-override: 93.8%;
    descent-override: 31.3%;
    line-gap-override: 8.9%;
}
@font-face {
    font-family: "Poppins Fallback Body";
    font-style: normal;
    font-weight: 600;
    src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Helvetica Bold");
    size-adjust: 106.7%;
    ascent-override: 98.4%;
    descent-override: 32.8%;
    line-gap-override: 9.4%;
}

:root {
    /* ---------- Couleurs primitives (charte : site actuel et gabarit PDF) ---------- */
    --af-navy-950: #070731; /* Bleu nuit de la charte, couleur dominante */
    --af-navy-900: #0d0d5e; /* Nuit secondaire (dégradé historique, utilisé en aplat uni) */
    --af-navy-700: #2c2c63; /* Filets sur fond nuit */
    --af-ink-900: #1d1f3d; /* Texte courant de la charte */
    --af-slate-600: #5b6075; /* Texte secondaire */
    --af-slate-500: #6b7088; /* Bordure des champs (4,89:1 sur blanc) */
    --af-slate-300: #b4b8d6; /* Texte secondaire sur fond nuit */
    --af-slate-200: #e3e6ef; /* Filets décoratifs */
    --af-slate-100: #f5f7fb; /* Fond alterné */
    --af-blue-700: #0056cc; /* Bleu action : liens, bouton principal, focus (6,56:1 sur blanc) */
    --af-blue-600: #1c6fd6; /* Bleu texte de la charte PDF, réservé au décor et aux grands titres */
    --af-blue-500: #3399ff; /* Bleu électrique de la marque : aplats, jamais de texte blanc dessus */
    --af-blue-300: #8cc4ff; /* Lien sur fond nuit */
    --af-blue-100: #eaf3ff; /* Fond d'encadré */
    --af-yellow-400: #ffd166; /* Jaune de la charte : surlignage, étoiles, focus sur fond nuit */
    --af-teal-200: #a8dadc; /* Accent de la charte, aplat avec texte nuit */
    --af-peach-100: #ffe8d6; /* Accent de la charte, aplat avec texte nuit */
    --af-salmon-300: #ffb28e; /* Accent de la charte, aplat avec texte nuit */
    --af-red-600: #c3262e; /* Erreur */
    --af-red-100: #fdecec; /* Fond d'erreur */
    --af-green-700: #1b7a43; /* Succès */
    --af-green-100: #e8f5ec; /* Fond de succès */
    --af-white: #ffffff; /* Blanc */

    /* ---------- Couleurs sémantiques : à utiliser dans les composants ---------- */
    --af-color-bg: var(--af-white); /* Fond de page */
    --af-color-bg-alt: var(--af-slate-100); /* Fond de section alterné */
    --af-color-bg-tint: var(--af-blue-100); /* Fond d'encadré */
    --af-color-bg-warm: var(--af-peach-100); /* Fond chaud ponctuel (témoignages) */
    --af-color-bg-inverse: var(--af-navy-950); /* Sections nuit (pied de page, bandeau preuve, contact) */
    --af-color-bg-accent: var(--af-blue-500); /* Aplat bleu électrique : texte nuit uniquement */
    --af-color-bg-highlight: var(--af-yellow-400); /* Surlignage, badge : texte nuit uniquement */
    --af-color-text: var(--af-ink-900); /* Texte courant */
    --af-color-text-strong: var(--af-navy-950); /* Titres et texte fort */
    --af-color-text-muted: var(--af-slate-600); /* Texte secondaire (jamais sur jaune) */
    --af-color-text-on-inverse: var(--af-white); /* Texte sur fond nuit */
    --af-color-text-on-inverse-muted: var(--af-slate-300); /* Texte secondaire sur fond nuit */
    --af-color-text-on-accent: var(--af-navy-950); /* Texte sur aplat bleu, jaune, turquoise, pêche ou saumon */
    --af-color-accent-on-inverse: var(--af-blue-500); /* Chiffres et étiquettes bleus sur fond nuit */
    --af-color-link: var(--af-blue-700); /* Lien */
    --af-color-link-hover: var(--af-navy-950); /* Lien survolé */
    --af-color-link-on-inverse: var(--af-blue-300); /* Lien sur fond nuit */
    --af-color-link-on-inverse-hover: var(--af-white); /* Lien survolé sur fond nuit */
    --af-color-border: var(--af-slate-200); /* Filet décoratif (pas d'exigence de contraste) */
    --af-color-border-control: var(--af-slate-500); /* Bordure de champ et de case (1.4.11 : 4,89:1) */
    --af-color-border-strong: var(--af-navy-950); /* Filet fort, bouton secondaire */
    --af-color-border-on-inverse: var(--af-navy-700); /* Filet sur fond nuit */
    --af-color-focus: var(--af-blue-700); /* Anneau de focus sur fond clair */
    --af-color-focus-on-inverse: var(--af-yellow-400); /* Anneau de focus sur fond nuit */
    --af-color-focus-on-accent: var(--af-navy-950); /* Anneau de focus sur aplat bleu ou jaune */
    --af-color-selection-bg: var(--af-yellow-400); /* Fond de la sélection de texte */
    --af-color-selection-text: var(--af-navy-950); /* Texte sélectionné */
    --af-color-error: var(--af-red-600); /* Message d'erreur */
    --af-color-error-bg: var(--af-red-100); /* Fond de message d'erreur */
    --af-color-success: var(--af-green-700); /* Message de succès */
    --af-color-success-bg: var(--af-green-100); /* Fond de message de succès */
    --af-color-star: var(--af-yellow-400); /* Étoiles de notation (toujours doublées d'un texte « 5/5 ») */
    --af-color-grid-line: rgb(7 7 49 / 0.07); /* Lignes de la grille visible (décor) */
    --af-color-grid-line-on-inverse: rgb(255 255 255 / 0.08); /* Lignes de grille sur fond nuit (décor) */

    /* ---------- Boutons (repos / survol), contrastes AA dans les deux états ---------- */
    --af-button-primary-bg: var(--af-blue-700);
    --af-button-primary-text: var(--af-white);
    --af-button-primary-bg-hover: var(--af-navy-950);
    --af-button-primary-text-hover: var(--af-white);
    --af-button-inverse-bg: var(--af-blue-500);
    --af-button-inverse-text: var(--af-navy-950);
    --af-button-inverse-bg-hover: var(--af-white);
    --af-button-inverse-text-hover: var(--af-navy-950);
    --af-button-secondary-bg: var(--af-white);
    --af-button-secondary-text: var(--af-navy-950);
    --af-button-secondary-border: var(--af-navy-950);
    --af-button-secondary-bg-hover: var(--af-navy-950);
    --af-button-secondary-text-hover: var(--af-white);
    --af-button-disabled-bg: var(--af-slate-200);
    --af-button-disabled-text: var(--af-slate-600);

    /* ---------- Typographie ---------- */
    --af-font-display: "Poppins", "Poppins Fallback Display", "Arial", sans-serif;
    --af-font-ui: "Poppins", "Poppins Fallback UI", "Arial", sans-serif;
    --af-font-body: "Poppins Text", "Poppins Fallback Body", "Arial", sans-serif;
    --af-font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Segoe UI Mono", "DejaVu Sans Mono", "Liberation Mono", "Menlo", "Consolas", monospace;
    --af-weight-regular: 400;
    --af-weight-bold: 700;
    --af-weight-ui: 600;
    --af-weight-display: 800;
    /* Échelle fluide : de 360 px à 1280 px de viewport ; max ≤ 2,5 × min (zoom 200 % respecté, WCAG 1.4.4) */
    --af-text-xs: 0.8125rem; /* Mentions, légendes : 13 → 13 px */
    --af-text-sm: clamp(0.875rem, 0.8505rem + 0.1087vw, 0.9375rem); /* Texte secondaire, étiquettes monospace : 14 → 15 px */
    --af-text-base: clamp(1rem, 0.9511rem + 0.2174vw, 1.125rem); /* Corps de texte : 16 → 18 px */
    --af-text-lg: clamp(1.125rem, 1.0761rem + 0.2174vw, 1.25rem); /* Chapô : 18 → 20 px */
    --af-text-xl: clamp(1.25rem, 1.1522rem + 0.4348vw, 1.5rem); /* Titre h4 : 20 → 24 px */
    --af-text-2xl: clamp(1.4375rem, 1.3152rem + 0.5435vw, 1.75rem); /* Titre h3 : 23 → 28 px */
    --af-text-3xl: clamp(1.75rem, 1.5054rem + 1.087vw, 2.375rem); /* Titre h2 : 28 → 38 px */
    --af-text-4xl: clamp(2.125rem, 1.6359rem + 2.1739vw, 3.375rem); /* Titre h1 des pages intérieures : 34 → 54 px */
    --af-text-5xl: clamp(2.5rem, 1.4239rem + 4.7826vw, 5.25rem); /* Titre d'accueil (display) : 40 → 84 px */
    --af-leading-none: 1;
    --af-leading-tight: 1.05;
    --af-leading-snug: 1.2;
    --af-leading-normal: 1.6;
    --af-leading-relaxed: 1.7;
    --af-tracking-tight: -0.02em;
    --af-tracking-normal: 0;
    --af-tracking-wide: 0.08em;

    /* ---------- Espacements (base 4 px) ---------- */
    --af-space-0: 0;
    --af-space-1: 0.25rem;
    --af-space-2: 0.5rem;
    --af-space-3: 0.75rem;
    --af-space-4: 1rem;
    --af-space-5: 1.25rem;
    --af-space-6: 1.5rem;
    --af-space-8: 2rem;
    --af-space-10: 2.5rem;
    --af-space-12: 3rem;
    --af-space-16: 4rem;
    --af-space-20: 5rem;
    --af-space-24: 6rem;
    --af-space-gutter: clamp(1rem, 0.413rem + 2.6087vw, 2.5rem); /* Marge latérale de page : 16 → 40 px */
    --af-space-gap: clamp(1rem, 0.6087rem + 1.7391vw, 2rem); /* Gouttière de grille : 16 → 32 px */
    --af-space-section: clamp(3.5rem, 1.7391rem + 7.8261vw, 8rem); /* Espace vertical entre sections : 56 → 128 px */

    /* ---------- Mise en page ---------- */
    --af-container: 80rem; /* Largeur de contenu (1280 px, reprise du site actuel) */
    --af-container-wide: 90rem; /* Largeur large (1440 px) */
    --af-measure: 68ch; /* Longueur de ligne maximale du texte courant */
    --af-header-height: 4rem; /* Hauteur d'en-tête mobile (5rem dès 64em) */
    --af-target-min: 2.75rem; /* Cible tactile minimale : 44 px */
    --af-control-height: 3rem; /* Hauteur des boutons et champs : 48 px */

    /* ---------- Rayons : arrondis faibles, 8 px au plus ---------- */
    --af-radius-none: 0; /* Grilles, sections */
    --af-radius-xs: 2px; /* Étiquettes, badges */
    --af-radius-sm: 4px; /* Boutons, champs, cartes */
    --af-radius-md: 8px; /* Panneaux (maximum autorisé) */
    --af-radius-round: 50%; /* Avatars uniquement */
    --af-border-hairline: 1px;
    --af-border-strong: 2px;

    /* ---------- Focus : anneau de 3 px décalé de 2 px (WCAG 2.4.7, 2.4.13 visé) ---------- */
    --af-focus-width: 3px;
    --af-focus-offset: 2px;
    --af-focus-ring: var(--af-focus-width) solid var(--af-color-focus);

    /* ---------- Ombres : aucune ombre douce sur les cartes ---------- */
    --af-shadow-none: none;
    --af-shadow-panel: 0 16px 40px -12px rgb(7 7 49 / 0.28); /* Méga-menu et tiroir uniquement : seule ombre portée floue autorisée */
    --af-shadow-offset: 6px 6px 0 0 #3399ff; /* Ombre franche décalée, signature des cartes de référence au survol */

    /* ---------- Mouvement : transform et opacity uniquement ---------- */
    --af-duration-fast: 120ms; /* Retour d'état : survol, focus */
    --af-duration-base: 200ms; /* Ouverture de panneau */
    --af-duration-slow: 320ms; /* Tiroir mobile */
    --af-ease-standard: cubic-bezier(0.2, 0, 0, 1); /* Mouvement par défaut */
    --af-ease-enter: cubic-bezier(0, 0, 0.2, 1); /* Entrée */
    --af-ease-exit: cubic-bezier(0.4, 0, 1, 1); /* Sortie */

    /* ---------- Points de rupture (documentation : var() est interdit dans @media) ----------
     * sm: (min-width: 30em)  = 480 px
     * md: (min-width: 48em)  = 768 px
     * lg: (min-width: 64em)  = 1024 px
     * xl: (min-width: 80em)  = 1280 px
     * 2xl: (min-width: 90em)  = 1440 px
     */
    --af-bp-sm: 30em;
    --af-bp-md: 48em;
    --af-bp-lg: 64em;
    --af-bp-xl: 80em;
    --af-bp-2xl: 90em;

    /* ---------- Superpositions ---------- */
    --af-z-base: 0;
    --af-z-raised: 1;
    --af-z-dropdown: 100;
    --af-z-sticky: 200;
    --af-z-header: 300;
    --af-z-overlay: 400;
    --af-z-drawer: 500;
    --af-z-modal: 600;
    --af-z-toast: 700;
    --af-z-skip-link: 800;
}

/* En-tête plus haut sur grand écran */
@media (min-width: 64em) {
    :root {
        --af-header-height: 5rem;
    }
}

/* Mouvement réduit : les transitions deviennent instantanées (WCAG 2.3.3, RGAA 13.8) */
@media (prefers-reduced-motion: reduce) {
    :root {
        --af-duration-fast: 0ms;
        --af-duration-base: 0ms;
        --af-duration-slow: 0ms;
    }
}

/* Contraste forcé (Windows) : le focus suit la couleur système */
@media (forced-colors: active) {
    :root {
        --af-color-focus: Highlight;
        --af-color-focus-on-inverse: Highlight;
        --af-color-focus-on-accent: Highlight;
    }
}
/* tokens:fin */

/* =====================================================================
 * Site public : composants. Mobile-first strict (styles de base = 375-390 px,
 * enrichis par des @media (min-width) uniquement), BEM, aucune règle
 * !important, aucun framework, aucun JavaScript de mise en page.
 * Les composants consomment les tokens sémantiques (--af-color-*, --af-button-*…).
 * Animations : transform, translate, rotate, opacity et clip-path seulement,
 * coupées sous prefers-reduced-motion.
 * Points de rupture : 30em, 48em, 64em, 80em (var() interdit dans @media).
 * ===================================================================== */

/* ---------- Base (seul endroit où les sélecteurs d'éléments sont permis) ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    /* deux styles de Poppins seulement : jamais de faux gras ni de faux italique */
    font-synthesis: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* l'en-tête collant ne masque jamais la cible d'une ancre ni le focus (WCAG 2.4.11) */
    scroll-padding-top: calc(var(--af-header-height) + var(--af-space-4));
}

/* accueil, mobile et tablette : la barre d'appel collée sous l'en-tête compte aussi
 * (ancres #expertises, #avis, #agence et focus jamais dessous) ; sa hauteur sert au héro */
html:has(.cta-bar) {
    --cta-bar-height: 3.5rem;
    scroll-padding-top: calc(var(--af-header-height) + var(--cta-bar-height) + var(--af-space-4));
}

@media (min-width: 64em) {
    html:has(.cta-bar) {
        --cta-bar-height: 0px;
    }
}

/* menu plein écran ouvert : la page dessous ne défile plus (CSS seul) */
html:has(.site-nav__panel:popover-open) {
    overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--af-color-bg);
    color: var(--af-color-text);
    font-family: var(--af-font-body);
    font-size: var(--af-text-base);
    line-height: var(--af-leading-normal);
    overflow-wrap: break-word;
}

/*
 * ESSAI : texte courant en Poppins Light (300) au lieu du Regular (400).
 * Titres, boutons, navigation et texte fort gardent leur graisse explicite.
 * Si l'essai est retenu, ce bloc passe dans les jetons (design/build_tokens.py :
 * police 300 de « Poppins Text », jeton de graisse du corps) ; sinon, le supprimer
 * avec assets/fonts/poppins-300.woff2.
 */
@font-face {
    font-family: "Poppins Text";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/poppins-300-Bc4PnsX.woff2") format("woff2");
    unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153, U+0178, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122;
}

body {
    font-weight: 300;
}

::selection {
    background: var(--af-color-selection-bg);
    color: var(--af-color-selection-text);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
    margin: 0;
}

/* Poppins 800 italique : le seul grand titre de chaque page */
h1 {
    font-family: var(--af-font-display);
    font-size: var(--af-text-4xl);
    font-style: italic;
    font-weight: var(--af-weight-display);
    line-height: var(--af-leading-tight);
    letter-spacing: var(--af-tracking-tight);
    color: var(--af-color-text-strong);
    text-wrap: balance;
}

/* Sous-titres : Poppins 600, serrés, éditoriaux */
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--af-font-ui);
    font-weight: var(--af-weight-ui);
    line-height: var(--af-leading-snug);
    color: var(--af-color-text-strong);
    text-wrap: balance;
}

/* Titres de section : Poppins 800 italique, comme le h1 (charte : « titres
 * Poppins 800 italique bleu nuit »), sur toutes les pages. Les étiquettes en
 * h2 (pied de page, cartes) reviennent au 600 dans leur composant. */
h2 {
    font-family: var(--af-font-display);
    font-size: var(--af-text-3xl);
    font-style: italic;
    font-weight: var(--af-weight-display);
    line-height: 1.08;
    letter-spacing: var(--af-tracking-tight);
}

h3 {
    font-size: var(--af-text-2xl);
    letter-spacing: var(--af-tracking-tight);
}

h4 {
    font-size: var(--af-text-xl);
}

h5,
h6 {
    font-size: var(--af-text-lg);
}

/* texte fort : le Poppins 600 (pas de fichier 700, jamais de faux gras) */
strong,
b {
    font-weight: var(--af-weight-ui);
}

/* le texte courant n'a pas de Poppins italique : penché par le navigateur,
 * plutôt qu'un 800 italique de titre ou un mot resté droit */
em,
i,
cite {
    font-synthesis-style: auto;
}

a {
    color: var(--af-color-link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--af-color-link-hover);
    text-decoration-thickness: 2px;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

/* Focus : 3 px plein, couleur selon le fond (--focus-color redéfinie par les contextes) */
:focus-visible {
    outline: var(--af-focus-width) solid var(--focus-color, var(--af-color-focus));
    outline-offset: var(--af-focus-offset);
}

/* main reçoit le focus du lien d'évitement : pas d'anneau autour de toute la page */
[tabindex="-1"]:focus:not(:focus-visible) {
    outline: none;
}

/* ---------- Utilitaires ---------- */
.u-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.u-display-contents {
    display: contents;
}

/* mot composé qui ne se coupe pas à son trait d'union (Poppins n'a pas de U+2011) */
.u-nowrap {
    white-space: nowrap;
}

/* ---------- Contextes de fond : paire fond + texte + focus déclarée ensemble (RGAA 10.5) ---------- */
.context-inverse {
    --focus-color: var(--af-color-focus-on-inverse);
    --cta-bg: var(--af-white);
    --cta-text: var(--af-navy-950);
    --cta-bg-hover: var(--af-blue-100);
    background-color: var(--af-color-bg-inverse);
    color: var(--af-color-text-on-inverse);
}

/* :where() : spécificité d'une classe, un composant peut recolorer son titre */
.context-inverse :where(h1, h2, h3, h4) {
    color: var(--af-color-text-on-inverse);
}

.context-inverse :where(a:not(.button)) {
    color: var(--af-color-link-on-inverse);
}

.context-inverse :where(a:not(.button)):hover {
    color: var(--af-color-link-on-inverse-hover);
}

/* aplat bleu électrique : texte, liens et focus nuit (6,59:1) */
.context-accent {
    --focus-color: var(--af-color-focus-on-accent);
    background-color: var(--af-color-bg-accent);
    color: var(--af-color-text-on-accent);
}

.context-accent :where(h2, h3, h4),
.context-accent :where(a:not(.button)),
.context-accent :where(a:not(.button)):hover {
    color: var(--af-color-text-on-accent);
}

.context-alt {
    background-color: var(--af-color-bg-alt);
    color: var(--af-color-text);
}

.context-warm {
    background-color: var(--af-color-bg-warm);
    color: var(--af-color-text);
}

/* Coup de marqueur jaune sur quelques mots (texte nuit, 13,44:1) */
.marker {
    position: relative;
    color: var(--af-color-text-on-accent);
    white-space: nowrap;
}

/* dans un titre, le surligné déborde du mot : un peu d'air pour que l'italique ne le touche pas */
.kinetic-title .marker {
    margin-inline: 0.08em;
}

/* le jaune passe sous toutes les lignes du titre, jamais sur la ligne suivante */
.offer__title,
.reviews__big {
    isolation: isolate;
}

.marker::before {
    content: "";
    position: absolute;
    inset: 0.12em -0.12em 0.02em;
    z-index: -1;
    background-color: var(--af-color-bg-highlight);
    transform: skewX(-8deg) rotate(-1deg);
}

/* ---------- Mise en page ---------- */
.container {
    width: 100%;
    max-width: calc(var(--af-container) + 2 * var(--af-space-gutter));
    margin-inline: auto;
    padding-inline: var(--af-space-gutter);
}

.section {
    padding-block: var(--af-space-section);
}

.lead {
    max-width: var(--af-measure);
    font-size: var(--af-text-lg);
}

/* En-tête de section : titre et chapô */
.section-head {
    display: grid;
    gap: var(--af-space-4);
    max-width: 52rem;
    margin-bottom: var(--af-space-10);
}

.section-head__lead {
    max-width: var(--af-measure);
    font-size: var(--af-text-lg);
    color: var(--af-color-text-muted);
}

/* ---------- Lien d'évitement ---------- */
.skip-link {
    position: absolute;
    top: var(--af-space-2);
    left: var(--af-space-2);
    z-index: var(--af-z-skip-link);
    display: inline-flex;
    align-items: center;
    min-height: var(--af-target-min);
    padding: var(--af-space-2) var(--af-space-4);
    background: var(--af-color-bg-inverse);
    color: var(--af-color-text-on-inverse);
    font-family: var(--af-font-ui);
    font-weight: var(--af-weight-ui);
    transform: translateY(-300%);
}

.skip-link:focus {
    transform: none;
}

.skip-link:hover {
    color: var(--af-color-text-on-inverse);
}

/* ---------- Boutons ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--af-space-2);
    min-height: var(--af-control-height);
    min-width: var(--af-target-min);
    padding: var(--af-space-2) var(--af-space-5);
    border: var(--af-border-strong) solid transparent;
    border-radius: var(--af-radius-sm);
    font-family: var(--af-font-ui);
    font-size: var(--af-text-base);
    font-weight: var(--af-weight-ui);
    line-height: var(--af-leading-snug);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--af-duration-fast) var(--af-ease-standard), color var(--af-duration-fast) var(--af-ease-standard);
}

.button:hover {
    text-decoration: none;
}

.button--large {
    min-height: 3.5rem;
    padding-inline: var(--af-space-6);
    font-size: var(--af-text-lg);
}

/* flèche en caractère (gabarits qui n'utilisent pas encore l'icône au trait) */
.button__arrow {
    display: inline-block;
    transition: transform var(--af-duration-fast) var(--af-ease-standard);
}

.button:hover .button__arrow {
    transform: translateX(0.25rem);
}

.button--primary {
    background-color: var(--af-button-primary-bg);
    color: var(--af-button-primary-text);
}

.button--primary:hover {
    background-color: var(--af-button-primary-bg-hover);
    color: var(--af-button-primary-text-hover);
}

.button--secondary {
    background-color: var(--af-button-secondary-bg);
    color: var(--af-button-secondary-text);
    border-color: var(--af-button-secondary-border);
}

.button--secondary:hover {
    background-color: var(--af-button-secondary-bg-hover);
    color: var(--af-button-secondary-text-hover);
}

/* Sur fond nuit : aplat bleu électrique, texte nuit (6,59:1), blanc au survol */
.button--inverse {
    background-color: var(--af-button-inverse-bg);
    color: var(--af-button-inverse-text);
}

.button--inverse:hover {
    background-color: var(--af-button-inverse-bg-hover);
    color: var(--af-button-inverse-text-hover);
}

/* Sur aplat bleu électrique : nuit, texte blanc (19,38:1), blanc au survol */
.button--dark {
    background-color: var(--af-button-secondary-bg-hover);
    color: var(--af-button-secondary-text-hover);
}

.button--dark:hover {
    background-color: var(--af-button-secondary-bg);
    color: var(--af-button-secondary-text);
}

/*
 * Bouton principal du site (accueil, pied de page, menu, contact, erreurs) :
 * sobre, un aplat franc selon le fond, typo Poppins 600 un peu espacée, flèche
 * au trait fin qui glisse légèrement au survol, couleur qui change en douceur.
 * Fond clair ou aplat bleu : nuit, texte blanc (19,38:1), bleu action au survol
 * (texte blanc 6,56:1). Fond nuit (--cta-* redéfinies par le contexte) : blanc,
 * texte nuit, bleu pâle au survol (17,3:1).
 */
.button--cta {
    gap: var(--af-space-3);
    padding-inline: var(--af-space-6);
    background-color: var(--cta-bg, var(--af-navy-950));
    color: var(--cta-text, var(--af-white));
    letter-spacing: 0.01em;
    transition:
        background-color var(--af-duration-base) var(--af-ease-standard),
        color var(--af-duration-base) var(--af-ease-standard);
}

.button--cta:hover,
.button--cta:focus-visible {
    background-color: var(--cta-bg-hover, var(--af-blue-700));
    color: var(--cta-text, var(--af-white));
}

.button__icon {
    flex-shrink: 0;
    width: 1.25em;
    height: 1.25em;
    transition: translate var(--af-duration-base) var(--af-ease-standard);
}

.button:hover .button__icon,
.button:focus-visible .button__icon {
    translate: 0.25em 0;
}

/* Lien d'action : soulignement épais qui s'épaissit au survol, flèche qui glisse */
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: var(--af-space-2);
    min-height: var(--af-target-min);
    font-family: var(--af-font-ui);
    font-weight: var(--af-weight-ui);
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35em;
    transition: text-decoration-thickness var(--af-duration-fast) var(--af-ease-standard);
}

.arrow-link:hover {
    text-decoration-thickness: 4px;
}

/* flèche au trait (la police n'en a pas), de l'épaisseur du texte */
.arrow-link__icon {
    flex-shrink: 0;
    width: 1.15em;
    height: 1.15em;
    transition: translate var(--af-duration-fast) var(--af-ease-standard);
}

.arrow-link:hover .icon--arrow-right {
    translate: 0.2em 0;
}

.arrow-link:hover .icon--arrow-up-right {
    translate: 0.15em -0.15em;
}

.arrow-link:hover .icon--arrow-left {
    translate: -0.2em 0;
}

/* ---------- Bandeau d'aperçu (administration) ---------- */
.preview-banner {
    padding: var(--af-space-3) var(--af-space-gutter);
    background-color: var(--af-color-bg-highlight);
    color: var(--af-color-text-on-accent);
    font-size: var(--af-text-sm);
}

/* ---------- En-tête ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--af-z-header);
    background-color: var(--af-color-bg);
    border-bottom: var(--af-border-hairline) solid var(--af-color-border);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--af-space-2);
    min-height: var(--af-header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: var(--af-target-min);
    margin-right: auto;
}

.brand__logo {
    display: block;
    width: auto;
    height: 2rem;
}

/* Burger : deux traits (le second plus court, il s'allonge au survol) ; la
 * croix du menu, posée exactement au même endroit, en est la rotation. Traits
 * en bordure : ils restent visibles en contraste forcé. */
.site-nav__toggle,
.site-nav__close {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-right: calc(-1 * var(--af-space-2));
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.site-nav__toggle {
    color: var(--af-color-text-strong);
}

/* l'intitulé du bouton : lu seulement sur mobile, écrit à droite du burger sur ordinateur */
.site-nav__toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.burger {
    position: relative;
    display: block;
    width: 1.75rem;
    height: 0.875rem;
}

.burger__bar {
    position: absolute;
    right: 0;
    left: 0;
    height: 0;
    border-top: 0.1875rem solid currentColor;
    border-radius: 2px;
}

.burger__bar:first-child {
    top: 0;
}

.burger__bar:last-child {
    bottom: 0;
    transform: scaleX(0.6);
    transform-origin: right center;
}

/* le second trait s'allonge au survol (souris seulement : un survol ne reste pas collé au doigt) et au focus clavier */
.site-nav__toggle:focus-visible .burger__bar:last-child {
    transform: none;
}

@media (hover: hover) {
    .site-nav__toggle:hover .burger__bar:last-child {
        transform: none;
    }
}

.burger--cross .burger__bar:first-child,
.burger--cross .burger__bar:last-child {
    top: calc(50% - 0.09375rem);
    bottom: auto;
    transform-origin: center;
}

.burger--cross .burger__bar:first-child {
    transform: rotate(45deg);
}

.burger--cross .burger__bar:last-child {
    transform: rotate(-45deg);
}

/* Menu : popover natif plein écran, fond nuit, liens énormes (sur tous les écrans) ;
   --menu-inline : marge latérale, alignée sur le conteneur de l'en-tête (croix sur le burger) */
.site-nav__panel {
    --focus-color: var(--af-color-focus-on-inverse);
    --menu-inline: var(--af-space-gutter);
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0 var(--menu-inline) calc(var(--af-space-8) + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    border: 0;
    background-color: var(--af-color-bg-inverse);
    color: var(--af-color-text-on-inverse);
}

/* colonne posée sur le panneau, pas seulement ouvert : elle tient pendant le cercle de fermeture ;
   au doigt, le défilement vertical reste natif, le balayage horizontal ferme le menu (assets/navigation.js) */
.site-nav__panel {
    flex-direction: column;
    touch-action: pan-y;
}

/* balayage : relâché trop tôt, le panneau revient en glissant ; assez loin, il finit de sortir (0,25 s) */
@media (prefers-reduced-motion: no-preference) {
    .site-nav__panel:popover-open:not(.is-dragging) {
        transition:
            clip-path 0.55s var(--af-ease-enter),
            display 0.55s allow-discrete,
            overlay 0.55s allow-discrete,
            transform 0.25s var(--af-ease-standard);
    }
}

/* fermé par un balayage : pas de cercle de fermeture, le panneau est déjà sorti */
.site-nav__panel.is-swiped,
.site-nav__panel.is-swiped:popover-open {
    transition: none;
}

.site-nav__panel:popover-open {
    display: flex;
}

.site-nav__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--af-space-4);
    min-height: var(--af-header-height);
}

.site-nav__logo {
    display: block;
    width: auto;
    height: 2rem;
}

.site-nav__close {
    color: var(--af-color-text-on-inverse);
}

.site-nav__close:hover {
    color: var(--af-color-focus-on-inverse);
}

.site-nav__list {
    margin: var(--af-space-6) 0 0;
    padding: 0;
    list-style: none;
}

.site-nav__link {
    display: inline-block;
    padding-block: var(--af-space-1);
    color: var(--af-color-text-on-inverse);
    font-family: var(--af-font-display);
    font-size: clamp(2.25rem, 10vw, 3.5rem);
    font-style: italic;
    font-weight: var(--af-weight-display);
    line-height: 1.15;
    letter-spacing: var(--af-tracking-tight);
    text-decoration: none;
}

/* survol et focus : le lien passe en jaune (13,44:1 sur nuit) ; la page en cours en bleu clair, sans soulignement */
.site-nav__link:hover,
.site-nav__link:focus-visible {
    color: var(--af-color-focus-on-inverse);
}

/* page en cours : dans l'encart jaune du surligné (texte nuit, 13,4:1), repère qui ne repose pas sur la seule couleur du texte (1.4.1) */
.site-nav__link[aria-current="page"] {
    position: relative;
    isolation: isolate;
    color: var(--af-navy-950);
}

.site-nav__link[aria-current="page"]::before {
    content: "";
    position: absolute;
    inset: 0.18em -0.12em 0.08em;
    z-index: -1;
    background-color: var(--af-color-bg-highlight);
    transform: skewX(-8deg) rotate(-1deg);
}

.site-nav__link[aria-current="page"]:hover,
.site-nav__link[aria-current="page"]:focus-visible {
    color: var(--af-navy-950);
}

.site-nav__contact {
    display: grid;
    justify-items: start;
    gap: var(--af-space-1);
    margin-top: auto;
    padding-top: var(--af-space-10);
}

.site-nav__address {
    margin-bottom: var(--af-space-2);
    padding-top: var(--af-space-6);
    border-top: var(--af-border-hairline) solid var(--af-color-border-on-inverse);
    color: var(--af-color-text-on-inverse-muted);
    justify-self: stretch;
}

/* liens bleus du menu, sans soulignement : leur couleur et leur place suffisent ; blancs au survol */
.site-nav__phone,
.site-nav__mail,
.site-nav__directions {
    display: inline-flex;
    align-items: center;
    min-height: var(--af-target-min);
    color: var(--af-color-link-on-inverse);
    text-decoration: none;
}

.site-nav__phone {
    color: var(--af-color-text-on-inverse);
    font-family: var(--af-font-ui);
    font-size: var(--af-text-xl);
    font-weight: var(--af-weight-ui);
    text-decoration: none;
}

.site-nav__phone:hover,
.site-nav__mail:hover,
.site-nav__directions:hover {
    color: var(--af-color-link-on-inverse-hover);
}

/* menu plein écran (nuit) : bouton principal en blanc */
.site-nav__cta {
    --cta-bg: var(--af-white);
    --cta-text: var(--af-navy-950);
    --cta-bg-hover: var(--af-blue-100);
    justify-self: stretch;
    margin-top: var(--af-space-4);
}

@media (prefers-reduced-motion: no-preference) {
    /*
     * Cercle depuis le burger, dans les deux sens : transitions (et non
     * animation) pour que la fermeture se joue aussi, display et overlay en
     * allow-discrete gardant le panneau affiché le temps du retour. Ouverture
     * qui ralentit, fermeture qui accélère vers le burger ; croix qui se
     * forme, liens en cascade.
     */
    .site-nav__panel {
        --menu-origin: calc(100% - var(--menu-inline) + var(--af-space-2) - var(--menu-burger, 1.5rem)) calc(var(--af-header-height) / 2);
        clip-path: circle(1.5rem at var(--menu-origin));
        transition:
            clip-path 0.4s cubic-bezier(0.55, 0, 0.75, 0.2),
            display 0.4s allow-discrete,
            overlay 0.4s allow-discrete;
    }

    .site-nav__panel:popover-open {
        clip-path: circle(150% at var(--menu-origin));
        transition:
            clip-path 0.55s var(--af-ease-enter),
            display 0.55s allow-discrete,
            overlay 0.55s allow-discrete;
    }

    @starting-style {
        .site-nav__panel:popover-open {
            clip-path: circle(1.5rem at var(--menu-origin));
        }
    }

    .site-nav__panel:popover-open .burger__bar:first-child {
        animation: burger-cross-first 0.45s var(--af-ease-enter);
    }

    .site-nav__panel:popover-open .burger__bar:last-child {
        animation: burger-cross-last 0.45s var(--af-ease-enter);
    }

    .site-nav__panel:popover-open .site-nav__item {
        animation: menu-link-in 0.5s var(--af-ease-enter) both;
        animation-delay: calc(0.12s + var(--item, 0) * 0.06s);
    }

    .site-nav__panel:popover-open .site-nav__contact {
        animation: menu-link-in 0.5s var(--af-ease-enter) 0.4s both;
    }

    .burger__bar {
        transition: transform 0.25s var(--af-ease-standard);
    }

    .site-nav__link {
        transition: color var(--af-duration-fast) var(--af-ease-standard), transform var(--af-duration-fast) var(--af-ease-standard);
    }

    .site-nav__link:hover {
        transform: translateX(0.5rem);
    }
}

@keyframes burger-cross-first {
    from {
        transform: translateY(-0.34rem);
    }

    50% {
        transform: none;
    }
}

@keyframes burger-cross-last {
    from {
        transform: translateY(0.34rem) scaleX(0.6);
    }

    50% {
        transform: none;
    }
}

@keyframes menu-link-in {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
}

@media (min-width: 30em) {
    .brand__logo {
        height: 2.5rem;
    }
}

/* sur ordinateur aussi, le burger ouvre le menu plein écran : logo plus grand,
   contenu du panneau aligné sur le conteneur */
@media (min-width: 64em) {
    .brand__logo,
    .site-nav__logo {
        height: 3rem;
    }

    .site-nav__panel {
        --menu-inline: max(var(--af-space-gutter), calc((100% - var(--af-container)) / 2));
    }

    /* le bouton garde sa largeur : étiré sur 1280 px, il ne se lirait plus comme un bouton */
    .site-nav__cta {
        justify-self: start;
    }
}

/* ---------- En-tête de l'accueil : transparent sur le héro ----------
 * Posé par-dessus le héro (fixed). Avec script seulement : transparent,
 * logo blanc, icônes et liens blancs, focus jaune, tant que la page n'a pas
 * défilé (is-solid, assets/navigation.js) ; sans script, en-tête blanc.
 */
.site-header--over-hero {
    position: fixed;
    right: 0;
    left: 0;
}

.brand {
    display: inline-grid;
}

.brand__logo {
    grid-area: 1 / 1;
}

.brand__logo--inverse {
    visibility: hidden;
    opacity: 0;
}

@media (scripting: enabled) {
    .site-header--over-hero:not(.is-solid) .brand__logo {
        visibility: hidden;
        opacity: 0;
    }

    .site-header--over-hero:not(.is-solid) {
        --focus-color: var(--af-color-focus-on-inverse);
        border-bottom-color: transparent;
        background-color: transparent;
    }

    .site-header--over-hero:not(.is-solid) .brand__logo--inverse {
        visibility: visible;
        opacity: 1;
    }

    .site-header--over-hero:not(.is-solid) .site-nav__toggle {
        color: var(--af-color-text-on-inverse);
    }
}

/* Sur ordinateur, le burger est suivi de « Menu » (même en-tête que sur mobile :
 * blanc, transparent sur le héro de l'accueil, masqué en descendant) */
@media (min-width: 64em) {
    /* burger et croix : icône puis « Menu », même gabarit ; le cercle du menu part du centre de l'icône */
    .site-nav__toggle,
    .site-nav__close {
        gap: var(--af-space-3);
        grid-auto-flow: column;
        width: auto;
        padding-inline: var(--af-space-2);
    }

    .site-nav__panel {
        --menu-burger: 6.125rem; /* centre de l'icône depuis le bord droit du bouton : 0,5rem + « Menu » + 0,75rem + 0,875rem */
    }

    .site-nav__toggle-label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip-path: none;
        font-family: var(--af-font-ui);
        /* capitales de la hauteur de l'icône (0,875rem) : hauteur de capitale de Poppins ≈ 0,7 em ;
           boîte rognée aux capitales pour un centrage exact sur les traits */
        font-size: calc(0.875rem / 0.7);
        font-weight: var(--af-weight-ui);
        line-height: 1;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-box: trim-both cap alphabetic;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .site-header--over-hero {
        transition:
            transform var(--af-duration-base) var(--af-ease-standard),
            background-color var(--af-duration-fast) var(--af-ease-standard),
            border-color var(--af-duration-fast) var(--af-ease-standard);
    }

    .site-header--over-hero .brand__logo {
        transition: opacity var(--af-duration-fast) var(--af-ease-standard), visibility var(--af-duration-fast);
    }
}

/* ---------- En-tête masqué au défilement vers le bas (assets/navigation.js) ----------
 * Toutes les pages : il glisse hors de l'écran (transform seul). Mouvement
 * réduit : sans glissement.
 */
.site-header.is-hidden {
    transform: translateY(-100%);
}

/*
 * Accueil, téléphone et tablette : la barre d'appel se colle sous l'en-tête
 * quand il est affiché, en haut de l'écran quand il est masqué (même
 * comportement de l'en-tête que sur les autres pages). Au masquage, l'en-tête
 * glisse et découvre la barre déjà en place ; au retour, il glisse sur le fond
 * nuit posé au-dessus d'elle (.cta-bar.is-stuck::before). Sans script : collée
 * sous l'en-tête.
 */
.is-header-hidden .cta-bar {
    top: 0;
}

/* :where() : l'en-tête de l'accueil garde sa propre liste de transitions (fond, filet, transform) */
@media (prefers-reduced-motion: no-preference) {
    :where(.site-header) {
        transition: transform var(--af-duration-base) var(--af-ease-standard);
    }
}

/* ---------- Accueil : héro nuit à hauteur d'écran ----------
 * Toute la ligne de flottaison du mobile. La scène (espace libre, en-tête
 * compris : padding-top de sa hauteur) porte le champ de caractères, la
 * phrase et les formes ; le texte d'appui et le bouton restent en bas,
 * visibles, hors du champ.
 */
.intro {
    --focus-color: var(--af-color-focus-on-inverse);
    --cta-bg: var(--af-white);
    --cta-text: var(--af-navy-950);
    --cta-bg-hover: var(--af-blue-100);
    position: relative;
    display: flex;
    flex-direction: column;
    /* la barre d'appel, juste après, termine le premier écran au pixel près */
    min-height: calc(100svh - var(--cta-bar-height, 0px));
    background-color: var(--af-color-bg-inverse);
    color: var(--af-color-text-on-inverse);
}

/* texte d'appui et bouton : sous la scène, hors du champ */
.intro__inner {
    display: grid;
    gap: var(--af-space-6);
    padding-block: var(--af-space-2) var(--af-space-8);
}

.intro__stage {
    position: relative;
    flex: 1 0 calc(14rem + var(--af-header-height));
    padding-top: var(--af-header-height);
    /* profondeur : lueur nuit secondaire au cœur de la scène, éteinte avant les bords et le texte d'appui */
    background-image: radial-gradient(ellipse 75% 55% at 50% 52%, rgb(13 13 94 / 0.45), rgb(13 13 94 / 0.15) 55%, transparent 100%);
}

/* Poppins Regular de la charte, plus grand que le corps : la voix de l'agence
 * après la phrase du héro ; nos technologies en blanc 600 (10,2:1 et 19,4:1) */
.intro__lead {
    max-width: 27em;
    color: var(--af-color-text-on-inverse-muted);
    font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
    line-height: 1.5;
    text-wrap: pretty;
}

.intro__lead strong {
    color: var(--af-color-text-on-inverse);
}

/* le bouton du héro est celui de l'ordinateur ; en dessous, la barre d'appel le remplace */
.intro__action {
    display: none;
}

/*
 * Barre d'appel de l'accueil (mobile et tablette) : pleine largeur, sans marge
 * ni arrondi, au ras du bas du premier écran, puis collée sous l'en-tête
 * (sticky, sous son z-index ; le menu plein écran passe au-dessus, dans la
 * couche supérieure). Aplat nuit de la charte (celle du héro et des
 * boutons), filet clair en haut, filet bleu électrique en bas pour la signer,
 * que le jaune de la charte recouvre à mesure de la lecture, une fois la barre
 * collée (--cta-progress, assets/navigation.js), texte blanc (19,4:1),
 * flèche bleu clair ; au survol et au focus, bleu
 * action (texte blanc 6,56:1) et la flèche, blanche, glisse. Ordinateur : le bouton
 * de l'en-tête et celui du héro suffisent, la barre disparaît.
 */
.cta-bar {
    position: sticky;
    top: var(--af-header-height);
    z-index: calc(var(--af-z-header) - 1);
}

/* en haut de l'écran, un fond de la hauteur de l'en-tête au-dessus d'elle :
 * caché sous l'en-tête, il bouche tout vide pendant un glissement (sinon la
 * page blanche apparaît derrière) */
.cta-bar.is-stuck::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 100%;
    height: var(--af-header-height);
    background-color: var(--af-color-bg-inverse);
    pointer-events: none;
}

.cta-bar__link {
    --focus-color: var(--af-color-focus-on-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--af-space-3);
    min-height: var(--cta-bar-height, 3.5rem);
    padding-inline: var(--af-space-gutter);
    background-color: var(--af-color-bg-inverse);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.12),
        inset 0 -3px 0 var(--af-blue-500);
    color: var(--af-color-text-on-inverse);
    font-family: var(--af-font-ui);
    font-size: var(--af-text-lg);
    font-weight: var(--af-weight-ui);
    line-height: var(--af-leading-snug);
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background-color var(--af-duration-base) var(--af-ease-standard);
}

/* progression de la lecture : le jaune avance sur le filet bleu, de la fin du héro à l'arrivée du pied de page */
.cta-bar__link {
    position: relative;
}

.cta-bar__link::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background-color: var(--af-yellow-400);
    transform: scaleX(var(--cta-progress, 0));
    transform-origin: 0 50%;
    pointer-events: none;
}

.cta-bar__link:hover,
.cta-bar__link:focus-visible {
    background-color: var(--af-blue-700);
    color: var(--af-color-text-on-inverse);
}

/* anneau de focus à l'intérieur : la barre touche les bords de l'écran */
.cta-bar__link:focus-visible {
    outline-offset: calc(-1 * var(--af-focus-width) - 2px);
}

.cta-bar__icon {
    flex-shrink: 0;
    width: 1.25em;
    height: 1.25em;
    color: var(--af-blue-300);
    transition: translate var(--af-duration-base) var(--af-ease-standard);
}

.cta-bar__link:hover .cta-bar__icon,
.cta-bar__link:focus-visible .cta-bar__icon {
    color: currentColor;
    translate: 0.25em 0;
}

@media (min-width: 64em) {
    .intro__action {
        display: block;
    }

    .cta-bar {
        display: none;
    }
}

/* Champ de caractères (assets/hero-field.js) : toile pleine largeur en
 * bandes, chacune sur sa couche, bords fondus dans la nuit et trame de balayage par-dessus
 * (calques fixes : la toile change à chaque image sans repeindre le reste ;
 * un mask-image sur la toile la ferait recomposer à chaque image). */
.intro__field {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.intro__field::before,
.intro__field::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.intro__field::before {
    /* fondu sur les côtés et vers le texte d'appui */
    background-image:
        linear-gradient(to right, var(--af-color-bg-inverse), transparent 12%, transparent 88%, var(--af-color-bg-inverse)),
        linear-gradient(to top, var(--af-color-bg-inverse), transparent 16%);
}

.intro__field::after {
    background-image: repeating-linear-gradient(to bottom, transparent 0 2px, rgb(7 7 49 / 0.45) 2px 3px);
}

.intro__canvas {
    position: absolute;
    inset: 0;
}

/* une bande de lignes par toile, chacune sur sa couche (top et height posés par le script) */
.intro__band {
    position: absolute;
    left: 0;
    width: 100%;
    will-change: transform;
}

/*
 * décrochage d'écran cathodique entre deux icônes (classe posée par le script,
 * 0,3 s, animation déclarée avec l'entrée du champ plus bas) : couleurs dédoublées rouge et cyan, image qui saute d'une ligne,
 * luminosité qui vacille ; par paliers, comme un signal qui décroche
 */
@keyframes intro-crt {
    0% {
        filter: drop-shadow(4px 0 rgb(255 60 110 / 0.55)) drop-shadow(-4px 0 rgb(60 200 255 / 0.55)) brightness(1.35);
        transform: translateY(-2px);
    }
    25% {
        filter: drop-shadow(-2px 0 rgb(255 60 110 / 0.45)) drop-shadow(2px 0 rgb(60 200 255 / 0.45)) brightness(0.85);
        transform: translateY(1px) scaleY(1.01);
    }
    50% {
        filter: drop-shadow(6px 0 rgb(255 60 110 / 0.5)) drop-shadow(-6px 0 rgb(60 200 255 / 0.5)) brightness(1.2);
        transform: none;
    }
    75% {
        filter: drop-shadow(2px 0 rgb(255 60 110 / 0.35)) drop-shadow(-2px 0 rgb(60 200 255 / 0.35));
        transform: translateY(-1px);
    }
    100% {
        filter: none;
        transform: none;
    }
}

/* la phrase en texte : sans script, et le temps que le champ démarre */
.intro__field-text {
    position: absolute;
    inset: var(--af-header-height) 0 0;
    display: grid;
    place-content: center;
    padding-inline: var(--af-space-gutter);
    color: var(--af-color-text-on-inverse);
    font-family: var(--af-font-display);
    font-size: clamp(2.5rem, min(12.5vw, 9svh), 7.5rem);
    font-style: italic;
    font-weight: var(--af-weight-display);
    line-height: 1.02;
    letter-spacing: -0.03em;
    isolation: isolate;
    /* les lignes qui glissent sont coupées aux bords de la scène : pas de défilement horizontal */
    overflow: hidden;
    overflow: clip;
}

/* trois lignes explicites, chacune avec son rang (décalage) et son sens :
 * gauche, droite (« e-commerce » et son surligné), gauche */
.intro__field-line {
    --intro-line-index: 0;
    --intro-line-side: -1;
    display: block;
}

.intro__field-line:nth-child(2) {
    --intro-line-index: 1;
    --intro-line-side: 1;
}

.intro__field-line:nth-child(3) {
    --intro-line-index: 2;
}

/* le champ prend la main : chaque ligne est sortie de son côté */
.intro.is-live .intro__field-line {
    visibility: hidden;
    opacity: 0;
    transform: translateX(calc(var(--intro-line-side) * 60vw));
}

/* critère 2.2.2 : l'animation dure, elle doit pouvoir s'arrêter */
.intro__pause {
    position: absolute;
    right: var(--af-space-gutter);
    bottom: var(--af-space-2);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--af-color-border-on-inverse);
    background-color: var(--af-color-bg-inverse);
    color: var(--af-color-text-on-inverse);
    cursor: pointer;
}

.intro__pause[hidden],
.intro__pause-icon--play,
.intro__pause[aria-pressed="true"] .intro__pause-icon--pause {
    display: none;
}

.intro__pause[aria-pressed="true"] .intro__pause-icon--play {
    display: block;
}

.intro__pause:focus-visible {
    outline: 3px solid var(--af-color-focus-on-inverse);
    outline-offset: 2px;
}

@media (hover: hover) {
    .intro__pause:hover {
        border-color: currentColor;
    }
}

@media (prefers-reduced-motion: no-preference) {
    /* la phrase se dissout pendant que les caractères apparaissent */
    .intro__canvas {
        animation: intro-field-in 1.2s ease-out backwards;
    }

    /* l'entrée reste dans la liste : la retirer la relancerait à la fin du décrochage */
    .intro__canvas.is-glitch {
        animation: intro-field-in 1.2s ease-out backwards, intro-crt 0.3s steps(1, end);
    }

    /* sortie : les lignes partent l'une après l'autre, départ franc qui accélère (ease-in) */
    .intro__field-line {
        transition:
            transform 0.5s cubic-bezier(0.55, 0, 0.85, 0.3),
            opacity 0.5s cubic-bezier(0.55, 0, 1, 0.45),
            visibility 0.5s;
        transition-delay: calc(var(--intro-line-index) * 0.08s);
    }

    /* fin de l'animation : chaque ligne revient de son côté, freine à l'arrivée (ease-out),
     * pendant que le fond ne garde que nos technologies */
    .intro.is-ending .intro__field-line {
        transition-duration: 1s;
        transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: calc(0.15s + var(--intro-line-index) * 0.15s);
    }

    /*
     * au départ, puis à la fin quand elle revient : la phrase arrive comme
     * sur une télé qui décroche (moins d'une seconde, par à-coups) :
     * couleurs dédoublées, image qui
     * saute et se coupe en bandes, lignes décalées, trame dans les lettres
     * qui s'efface. Le texte est lisible dès la première image (élément le
     * plus grand du héro). Chaque étape donne toutes les propriétés : sans
     * cela, une valeur tiendrait jusqu'à la fin.
     */
    .intro__field-text {
        animation: tv-glitch 0.9s steps(1, end);
    }

    .intro__field-line {
        animation: tv-glitch-line 0.9s steps(1, end);
    }

    /* à la fin, quand les lignes se posent : le même décrochage, une seconde fois
     * (la première reste dans la liste, la retirer la relancerait) */
    .intro.is-ending .intro__field-text {
        animation: tv-glitch 0.9s steps(1, end), tv-glitch 0.9s steps(1, end) 1.1s;
    }

    .intro.is-ending .intro__field-line {
        animation: tv-glitch-line 0.9s steps(1, end), tv-glitch-line 0.9s steps(1, end) 1.1s;
    }
}

/* l'image : dédoublement rouge et cyan (codes du décrochage du champ), sauts, bandes coupées, trame */
@keyframes tv-glitch {
    0% {
        filter: drop-shadow(6px 0 rgb(255 60 110 / 0.7)) drop-shadow(-6px 0 rgb(60 200 255 / 0.7)) brightness(1.5);
        transform: skewX(-8deg);
        clip-path: none;
        mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgb(0 0 0 / 0.45) 2px 4px);
    }

    8% {
        filter: brightness(0.35);
        transform: translateY(0.04em);
        clip-path: none;
        mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgb(0 0 0 / 0.45) 2px 4px);
    }

    14% {
        filter: drop-shadow(-5px 0 rgb(255 60 110 / 0.65)) drop-shadow(5px 0 rgb(60 200 255 / 0.65));
        transform: translateX(0.08em);
        clip-path: inset(0 0 52% 0);
        mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgb(0 0 0 / 0.5) 2px 4px);
    }

    22% {
        filter: drop-shadow(4px 0 rgb(255 60 110 / 0.6)) drop-shadow(-4px 0 rgb(60 200 255 / 0.6)) brightness(1.3);
        transform: translateX(-0.06em);
        clip-path: inset(44% 0 0 0);
        mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgb(0 0 0 / 0.5) 2px 4px);
    }

    32% {
        filter: none;
        transform: none;
        clip-path: none;
        mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgb(0 0 0 / 0.7) 2px 4px);
    }

    44% {
        filter: drop-shadow(3px 0 rgb(255 60 110 / 0.5)) drop-shadow(-3px 0 rgb(60 200 255 / 0.5));
        transform: skewX(5deg);
        clip-path: none;
        mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgb(0 0 0 / 0.55) 2px 4px);
    }

    52% {
        filter: brightness(0.6);
        transform: none;
        clip-path: none;
        mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgb(0 0 0 / 0.7) 2px 4px);
    }

    58% {
        filter: none;
        transform: none;
        clip-path: none;
        mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgb(0 0 0 / 0.8) 2px 4px);
    }

    72% {
        filter: drop-shadow(2px 0 rgb(255 60 110 / 0.4)) drop-shadow(-2px 0 rgb(60 200 255 / 0.4));
        transform: none;
        clip-path: none;
        mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgb(0 0 0 / 0.85) 2px 4px);
    }

    78%,
    100% {
        filter: none;
        transform: none;
        clip-path: none;
        mask-image: none;
    }
}

/* chaque ligne glisse de son côté, plus ou moins loin : l'image se déchire */
@keyframes tv-glitch-line {
    0% {
        translate: calc(var(--intro-line-side) * 0.18em) 0;
    }

    14% {
        translate: calc((var(--intro-line-index) - 1) * 0.22em) 0;
    }

    22% {
        translate: calc(var(--intro-line-side) * -0.12em) 0;
    }

    32% {
        translate: none;
    }

    44% {
        translate: calc((1 - var(--intro-line-index)) * 0.1em) 0;
    }

    52%,
    100% {
        translate: none;
    }
}

@keyframes intro-field-in {
    from {
        opacity: 0;
    }
}

@media (min-width: 64em) {
    .intro__inner {
        grid-template-columns: minmax(0, 40rem) auto;
        align-items: end;
        justify-content: space-between;
        column-gap: var(--af-space-12);
        padding-block: var(--af-space-4) var(--af-space-12);
    }
}

/* ---------- Offres : bandes pleine largeur, mises en page asymétriques ---------- */
.offer {
    position: relative;
    overflow: hidden;
    padding-block: var(--af-space-section);
}

.offer__grid {
    display: grid;
    gap: var(--af-space-12);
}

/* Titres de section : Poppins 800 italique par la règle de base h2 (fichier déjà
 * préchargé pour le héro : aucun octet de plus), ici leur taille et leur approche. */
.offer__title {
    font-size: var(--af-text-4xl);
    /* le 800 italique est plus large et plus haut que le 600 : un peu d'air entre 3 ou 4 lignes sur mobile */
    line-height: 1.08;
    letter-spacing: var(--af-tracking-tight);
}

.offer__lead {
    max-width: 34em;
    margin-top: var(--af-space-6);
    font-size: var(--af-text-lg);
    text-wrap: pretty;
}

.offer__text > p + p {
    margin-top: var(--af-space-6);
}

.offer__quote {
    max-width: 34em;
    margin-top: var(--af-space-8);
    padding-left: var(--af-space-5);
    border-left: 0.25rem solid currentColor;
    font-family: var(--af-font-ui);
    font-size: var(--af-text-lg);
    font-weight: var(--af-weight-ui);
    /* citation de 3 à 5 lignes en 600 : 1,2 tassait les lignes, 1,4 se lit sans casser le bloc */
    line-height: 1.4;
    text-wrap: pretty;
}

.offer__quote-source {
    margin-top: var(--af-space-3);
    font-family: var(--af-font-body);
    font-size: var(--af-text-sm);
    font-weight: var(--af-weight-regular);
    /* héritait du 1,2 de la citation : interligne du texte courant si la source passe sur deux lignes */
    line-height: var(--af-leading-normal);
}

.offer--refs .offer__text {
    max-width: 48rem;
}

.offer--perf .offer__text {
    max-width: 52rem;
}

@media (min-width: 64em) {
    .offer__grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        align-items: center;
        gap: var(--af-space-gap);
    }

    .offer__title {
        line-height: 1.04;
        letter-spacing: -0.03em;
    }

    .offer--refs .offer__text {
        grid-column: 1 / span 8;
    }

    .offer--modules .shot {
        grid-column: 1 / span 6;
    }

    .offer--modules .offer__text {
        grid-column: 8 / span 5;
    }

    .offer--support .offer__text {
        grid-column: 1 / span 6;
    }

    .offer--support .shot {
        grid-column: 8 / span 4;
    }
}

/*
 * Références : enchaînent sous le héro, sur la même nuit, sans rupture.
 * Base (mouvement réduit) : la liste lisible seule, en grille immobile.
 * Sans préférence de mouvement : deux rangs de logos qui glissent lentement
 * en sens opposés (transform seul, sur la couche de chaque rang), copies de
 * boucle et second rang aria-hidden ; pause au survol, au focus et par la
 * case « pause » (critère 2.2.2, CSS seul : rien ne dépend du script).
 */
.offer--refs {
    padding-block: var(--af-space-12) var(--af-space-16);
}

.marquee {
    position: relative;
    max-width: var(--af-container-wide);
    margin: var(--af-space-12) auto 0;
    padding-inline: var(--af-space-gutter);
}

.marquee__row--reverse,
.marquee__toggle,
.marquee__pause {
    display: none;
}

.marquee__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--af-space-8) var(--af-space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* copie de boucle : seulement pour le défilé (après .marquee__list, qui la rendrait visible) */
.marquee__list--clone {
    display: none;
}

.marquee__item {
    display: grid;
    justify-items: center;
    align-content: start;
}

/* logos blancs : fichiers à fond transparent, de toutes couleurs (le filtre
   les passe en blanc), tous dans la même boîte quelles que soient leurs proportions */
.marquee__logo {
    display: block;
    width: 100%;
    max-width: 7.5rem;
    height: auto;
    aspect-ratio: 265 / 136;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity var(--af-duration-base) var(--af-ease-standard);
}

/* survol : le logo visé ressort, les autres s'effacent un peu */
@media (hover: hover) {
    .marquee__row:hover .marquee__logo {
        opacity: 0.45;
    }

    .marquee__row:hover .marquee__item:hover .marquee__logo {
        opacity: 1;
    }
}

@media (min-width: 64em) {
    .marquee__list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .marquee__logo {
        max-width: 9rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .marquee {
        padding-inline: 0;
    }

    .marquee__row {
        position: relative;
        overflow: hidden;
    }

    .marquee__row--reverse {
        display: block;
        margin-top: var(--af-space-6);
    }

    /* bords fondus dans la nuit (calques fixes au-dessus des rangs qui glissent) */
    .marquee__row::before,
    .marquee__row::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 1;
        width: var(--af-space-12);
        pointer-events: none;
    }

    .marquee__row::before {
        left: 0;
        background-image: linear-gradient(to right, var(--af-color-bg-inverse), transparent);
    }

    .marquee__row::after {
        right: 0;
        background-image: linear-gradient(to left, var(--af-color-bg-inverse), transparent);
    }

    /* une liste entière de 11 logos (plus large que l'écran) puis sa copie : -50 % boucle sans saut */
    .marquee__track {
        display: flex;
        width: max-content;
        animation: marquee-slide var(--marquee-duration, 64s) linear infinite;
    }

    .marquee__row--reverse .marquee__track {
        --marquee-duration: 78s;
        animation-direction: reverse;
    }

    .marquee__list,
    .marquee__list--clone {
        display: flex;
        gap: 0;
    }

    .marquee__item {
        width: 9.5rem;
        padding-inline: var(--af-space-4);
    }

    .marquee:hover .marquee__track,
    .marquee:focus-within .marquee__track,
    .marquee__toggle:checked ~ .marquee__row .marquee__track {
        animation-play-state: paused;
    }

    /* la case reste lisible au clavier et par les lecteurs d'écran, son étiquette fait le bouton */
    .marquee__toggle {
        display: block;
    }

    .marquee__pause {
        display: grid;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        margin: var(--af-space-6) var(--af-space-gutter) 0 auto;
        border: 1px solid var(--af-color-border-on-inverse);
        background-color: var(--af-color-bg-inverse);
        color: var(--af-color-text-on-inverse);
        cursor: pointer;
    }

    .marquee__pause-icon--play,
    .marquee__toggle:checked ~ .marquee__pause .marquee__pause-icon--pause {
        display: none;
    }

    .marquee__toggle:checked ~ .marquee__pause .marquee__pause-icon--play {
        display: block;
    }

    .marquee__toggle:focus-visible ~ .marquee__pause {
        outline: var(--af-focus-width) solid var(--af-color-focus-on-inverse);
        outline-offset: var(--af-focus-offset);
    }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .marquee__pause:hover {
        border-color: currentColor;
    }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 64em) {
    .marquee__row::before,
    .marquee__row::after {
        width: var(--af-space-24);
    }

    .marquee__item {
        width: 12.5rem;
        padding-inline: var(--af-space-6);
    }
}

@keyframes marquee-slide {
    to {
        transform: translateX(-50%);
    }
}

/*
 * Titres en lignes (.kinetic-title > .kinetic-title__line, coupures choisies
 * dans le gabarit) : au défilement, chaque ligne monte de quelques pixels en
 * apparaissant, l'une juste après l'autre, rappel discret de la phrase du
 * héro. Amélioration progressive : sans animation-timeline, ou en mouvement
 * réduit, le titre est simplement là ; rien n'est masqué sans ce support.
 */
.kinetic-title__line {
    display: block;
}

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .kinetic-title__line {
            animation: title-line-in linear both;
            animation-timeline: view();
            animation-range: entry 10% entry 90%;
        }
    }
}

@keyframes title-line-in {
    from {
        opacity: 0;
        translate: 0 0.3em;
    }
}

/*
 * Titres de page (h1 des en-têtes, pages d'erreur) : à l'arrivée, une fois,
 * le même décrochage de télé que la phrase de l'accueil (tv-glitch, plus
 * haut). Le titre est lisible dès la première image ; ses lignes gardent leur
 * propre entrée (title-line-in), le décrochage ne touche que le titre entier.
 */
@media (prefers-reduced-motion: no-preference) {
    .page-head__title,
    .case-hero__title,
    .error-page__title {
        animation: tv-glitch 0.9s steps(1, end);
    }
}

/* Pièces éditoriales : image réelle, bloc plein décalé (sans flou), légère rotation */
.shot {
    --shot-block: var(--af-color-bg-inverse);
    position: relative;
    justify-self: center;
    width: 100%;
    rotate: var(--shot-tilt, 0deg);
    transition: rotate var(--af-duration-base) var(--af-ease-standard);
}

.shot::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--shot-block);
    translate: 0.75rem 0.75rem;
}

.shot__img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border: var(--af-border-hairline) solid var(--af-color-border-strong);
}

.shot:hover {
    rotate: 0deg;
}

.shot--tilt-left {
    --shot-tilt: -2deg;
}

.shot--tilt-right {
    --shot-tilt: 2deg;
    --shot-block: var(--af-color-bg-accent);
}

.shot--portrait {
    max-width: 18rem;
}

.offer--modules .shot {
    width: calc(100% - 0.75rem);
    justify-self: start;
}

/* apparition au défilement (navigateurs qui savent lier une animation au scroll) */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .shot {
            animation: shot-in linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }
    }
}

@keyframes shot-in {
    from {
        opacity: 0;
        translate: 0 3rem;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* Courbe de performance réelle */
.chart {
    margin-top: var(--af-space-12);
}

.chart__img {
    display: block;
    width: 100%;
    height: auto;
    border: var(--af-border-hairline) solid var(--af-color-border);
    border-radius: var(--af-radius-sm);
}

.chart__caption {
    margin-top: var(--af-space-3);
    color: var(--af-color-text-muted);
    font-size: var(--af-text-sm);
}

/* charte : texte fort en bleu nuit, il se détache du gris de la légende */
.chart__caption strong {
    color: var(--af-color-text-strong);
}

/* ---------- Avis : grandes citations typographiques ---------- */
.reviews {
    padding-block: var(--af-space-section);
}

.reviews__title {
    max-width: 18em;
    font-size: var(--af-text-xl);
    letter-spacing: -0.01em;
}

.reviews__main {
    margin-top: var(--af-space-8);
}

.reviews__big {
    max-width: 22em;
    color: var(--af-color-text-strong);
    font-family: var(--af-font-ui);
    font-size: clamp(1.75rem, 1.1rem + 3.2vw, 3.375rem);
    font-weight: var(--af-weight-ui);
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-wrap: pretty;
}

.reviews__source {
    margin-top: var(--af-space-4);
    color: var(--af-color-text-muted);
    font-size: var(--af-text-sm);
}

.reviews__list {
    display: grid;
    gap: var(--af-space-8);
    margin: var(--af-space-16) 0 0;
    padding: 0;
    list-style: none;
}

.reviews__item {
    padding-top: var(--af-space-5);
    border-top: var(--af-border-strong) solid var(--af-color-border-strong);
}

.reviews__text {
    color: var(--af-color-text-strong);
    font-family: var(--af-font-ui);
    font-size: var(--af-text-lg);
    font-weight: var(--af-weight-ui);
    line-height: 1.4;
    text-wrap: pretty;
}

.reviews__more {
    margin-top: var(--af-space-10);
}

@media (min-width: 64em) {
    .reviews__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--af-space-gap);
    }

    .reviews__item:nth-child(2) {
        margin-top: var(--af-space-12);
    }
}

/* ---------- L'agence ---------- */
.agency {
    padding-block: var(--af-space-section);
}

.agency__grid {
    display: grid;
    gap: var(--af-space-12);
}

/* badge et mention sur une seule ligne, dès le mobile (badge réduit) */
.agency__expert {
    display: flex;
    align-items: center;
    gap: var(--af-space-5);
    margin-top: var(--af-space-10);
    padding-top: var(--af-space-6);
    border-top: var(--af-border-hairline) solid var(--af-color-border);
}

.agency__expert-text {
    flex: 1 1 0;
    min-width: 0;
}

.agency__badge {
    display: block;
    flex-shrink: 0;
    width: 5.5rem;
    height: auto;
}

@media (min-width: 64em) {
    .agency__expert {
        gap: var(--af-space-6);
    }

    .agency__badge {
        width: 8rem;
    }
}

/* le tableau des étapes à droite du texte : à partir de 80em, trois colonnes de cartes y tiennent sans couper les titres */
@media (min-width: 80em) {
    .agency__grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        align-items: center;
        gap: var(--af-space-gap);
    }

    .agency__text {
        grid-column: 1 / span 5;
    }

    .kanban {
        grid-column: 6 / -1;
    }
}

/* ---------- Fil d'Ariane ---------- */
.breadcrumb {
    margin-bottom: var(--af-space-6);
    font-size: var(--af-text-sm);
}

/*
 * Une seule ligne : un fil trop long défile à l'horizontale (doigt, pavé,
 * Maj + molette) pour se lire en entier, sans barre visible. Le petit
 * retrait intérieur, rattrapé par la marge, garde le contour de focus des
 * liens hors de la zone coupée. Là où le défilement lié au fil est connu,
 * le bord droit s'estompe tant qu'il reste du texte à lire.
 */
.breadcrumb__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: calc(-1 * var(--af-space-1));
    padding: var(--af-space-1);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    white-space: nowrap;
    list-style: none;
    scrollbar-width: none;
}

.breadcrumb__list::-webkit-scrollbar {
    display: none;
}

@property --breadcrumb-fade {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

@supports (animation-timeline: scroll()) {
    .breadcrumb__list {
        mask-image: linear-gradient(to right, #000 calc(100% - var(--breadcrumb-fade)), transparent);
        animation: breadcrumb-fade linear both;
        animation-timeline: scroll(self inline);
    }
}

@keyframes breadcrumb-fade {
    from {
        --breadcrumb-fade: 2.5rem;
    }

    95%,
    to {
        --breadcrumb-fade: 0px;
    }
}

.breadcrumb__item {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
}

.breadcrumb__item + .breadcrumb__item::before {
    content: "/";
    padding-inline: var(--af-space-2);
    color: var(--af-color-text-muted);
}

.breadcrumb__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--af-target-min);
}

.breadcrumb__current {
    color: var(--af-color-text-muted);
}

/* ---------- En-tête des pages intérieures : bandeau nuit, titre blanc ---------- */
.page-head {
    --focus-color: var(--af-color-focus-on-inverse);
    padding-block: var(--af-space-4) var(--af-space-12);
    background-color: var(--af-color-bg-inverse);
    color: var(--af-color-text-on-inverse-muted);
}

.page-head :where(a) {
    color: var(--af-color-link-on-inverse);
}

.page-head :where(a):hover {
    color: var(--af-color-link-on-inverse-hover);
}

.page-head .breadcrumb__current,
.page-head .breadcrumb__item + .breadcrumb__item::before {
    color: var(--af-color-text-on-inverse-muted);
}

.page-head__title {
    max-width: 20ch;
    color: var(--af-color-text-on-inverse);
}

.page-head__lead {
    margin-top: var(--af-space-6);
}

/*
 * Lueur des en-têtes nuit (pages, articles, contact, cas clients) : un halo
 * bleu électrique sur le fond. À l'arrivée, une fois, il traverse l'en-tête
 * depuis la gauche et s'arrête à droite du titre (moins de 5 s, aucune
 * boucle ; mouvement réduit : posé, immobile). Ce qui chevauche le bas de
 * l'en-tête doit être positionné pour passer devant lui.
 */
.head-glow {
    position: relative;
    overflow: clip;
    isolation: isolate;
}

.head-glow::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 60rem;
    height: 36rem;
    margin: -18rem 0 0 -30rem;
    background-image: radial-gradient(closest-side, rgb(51 153 255 / 0.22), transparent);
    pointer-events: none;
}

@media (min-width: 64em) {
    .head-glow::before {
        left: 72%;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .head-glow::before {
        animation: head-glow 2.8s var(--af-ease-enter) 0.2s both;
    }
}

@keyframes head-glow {
    0% {
        opacity: 0;
        transform: translateX(calc(-100vw - 12rem));
    }

    15% {
        opacity: 1;
    }
}

@media (min-width: 64em) {
    .page-head {
        padding-block: var(--af-space-6) var(--af-space-16);
    }
}

/* ---------- Contenu riche repris (pages, FAQ, articles) ---------- */
.rich-text {
    max-width: var(--af-measure);
}

.rich-text > * + * {
    margin-top: var(--af-space-5);
}

.rich-text h2 {
    margin-top: var(--af-space-12);
}

.rich-text h3 {
    margin-top: var(--af-space-10);
}

.rich-text h4 {
    margin-top: var(--af-space-8);
}

.rich-text > :first-child {
    margin-top: 0;
}

.rich-text ul,
.rich-text ol {
    padding-left: var(--af-space-6);
}

.rich-text li + li {
    margin-top: var(--af-space-2);
}

.rich-text li::marker {
    color: var(--af-color-link);
}

.rich-text blockquote {
    padding-left: var(--af-space-6);
    border-left: 0.25rem solid var(--af-color-border-strong);
    color: var(--af-color-text-strong);
    font-size: var(--af-text-lg);
}

.rich-text hr {
    height: 0;
    margin-block: var(--af-space-10);
    border: 0;
    border-top: var(--af-border-hairline) solid var(--af-color-border);
}

.rich-text img {
    display: block;
    border-radius: var(--af-radius-xs);
}

.rich-text figcaption {
    margin-top: var(--af-space-2);
    color: var(--af-color-text-muted);
    font-size: var(--af-text-sm);
}

.rich-text code {
    padding: 0.1em 0.3em;
    border-radius: var(--af-radius-xs);
    background-color: var(--af-color-bg-alt);
    font-family: var(--af-font-mono);
    font-size: 0.9em;
}

.rich-text .file-meta {
    color: var(--af-color-text-muted);
    font-size: var(--af-text-sm);
}

/* tableau large : défilement horizontal propre au tableau (focusable : tabindex 0) */
.rich-table {
    max-width: 100%;
    overflow-x: auto;
    border: var(--af-border-hairline) solid var(--af-color-border);
}

.rich-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--af-text-sm);
}

.rich-table th,
.rich-table td {
    padding: var(--af-space-2) var(--af-space-4);
    border-top: var(--af-border-hairline) solid var(--af-color-border);
    text-align: left;
    vertical-align: top;
}

.rich-table thead th {
    background-color: var(--af-color-bg-inverse);
    color: var(--af-color-text-on-inverse);
    font-family: var(--af-font-ui);
    font-weight: var(--af-weight-ui);
}

.rich-table tbody th {
    color: var(--af-color-text-strong);
    font-family: var(--af-font-ui);
    font-weight: var(--af-weight-ui);
}

.page-body {
    padding-block: var(--af-space-12) var(--af-space-section);
}

/* ---------- Page de contact : formulaire et champs (mise en page : assets/styles/contact.css) ---------- */
.contact-form {
    display: grid;
    gap: var(--af-space-6);
    margin-top: var(--af-space-6);
}

.contact-form__note,
.contact-form__privacy {
    color: var(--af-color-text-muted);
    font-size: var(--af-text-sm);
}

.contact-form__row {
    display: grid;
    gap: var(--af-space-6);
}

@media (min-width: 48em) {
    .contact-form__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Piège à robots : hors écran et hors navigation (tabindex -1, aria-hidden) */
.contact-form__trap {
    position: absolute;
    left: -100vw;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field {
    display: grid;
    align-content: start;
    gap: var(--af-space-2);
}

.field__label {
    color: var(--af-color-text-strong);
    font-family: var(--af-font-ui);
    font-weight: var(--af-weight-ui);
}

.field__help {
    color: var(--af-color-text-muted);
    font-size: var(--af-text-sm);
}

.field__errors {
    margin: 0;
    padding: 0;
    list-style: none;
}

.field__error {
    color: var(--af-color-error);
    font-size: var(--af-text-sm);
    font-weight: var(--af-weight-bold);
}

.field__input {
    width: 100%;
    min-height: var(--af-control-height);
    padding: var(--af-space-2) var(--af-space-4);
    border: var(--af-border-hairline) solid var(--af-color-border-control);
    border-radius: var(--af-radius-sm);
    background-color: var(--af-color-bg);
    color: var(--af-color-text);
    font: inherit;
}

.field__input:hover {
    border-color: var(--af-color-border-strong);
}

.field__input[aria-invalid="true"] {
    border: var(--af-border-strong) solid var(--af-color-error);
}

.field__input--textarea {
    min-height: 10rem;
    resize: vertical;
}

/* Récapitulatifs et confirmations */
.notice {
    display: grid;
    gap: var(--af-space-2);
    padding: var(--af-space-5);
    border-left: 0.375rem solid currentColor;
    border-radius: var(--af-radius-xs);
}

.notice--success {
    background-color: var(--af-color-success-bg);
    color: var(--af-color-success);
}

.notice--error {
    background-color: var(--af-color-error-bg);
    color: var(--af-color-error);
}

.notice__title {
    font-family: var(--af-font-ui);
    font-weight: var(--af-weight-ui);
}

.notice__text {
    color: var(--af-color-text);
}

.notice__list {
    margin: 0;
    padding-left: var(--af-space-5);
}

.notice__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--af-target-min);
    color: var(--af-color-error);
    font-weight: var(--af-weight-bold);
}

.notice__link:hover {
    color: var(--af-color-text-strong);
}

/* ---------- Pagination (liste des articles) ; cartes et article : assets/styles/article.css ---------- */
.pagination {
    margin-top: var(--af-space-12);
}

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

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--af-target-min);
    min-height: var(--af-target-min);
    padding-inline: var(--af-space-3);
    border: var(--af-border-hairline) solid var(--af-color-border-strong);
    border-radius: var(--af-radius-xs);
    color: var(--af-color-text-strong);
    font-family: var(--af-font-ui);
    font-weight: var(--af-weight-ui);
    text-decoration: none;
}

.pagination__link--step {
    gap: var(--af-space-2);
    padding-inline: var(--af-space-4);
}

.pagination__link:hover,
.pagination__link[aria-current="page"] {
    background-color: var(--af-button-secondary-bg-hover);
    color: var(--af-button-secondary-text-hover);
}

/* ---------- Pages d'erreur (404, 410) ---------- */
/*
 * Sur la nuit de la charte, quadrillée comme un plan : le code en géant,
 * le titre et les issues. Mobile d'abord : le code au-dessus du texte ; grand
 * écran : le texte à gauche, le code à droite.
 */
.error-page {
    padding-block: var(--af-space-12) var(--af-space-section);
    background-image:
        linear-gradient(rgb(51 153 255 / 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgb(51 153 255 / 0.07) 1px, transparent 1px);
    background-position: center top;
    background-size: 2.5rem 2.5rem;
}

/* 404 : la section prend l'écran sous l'en-tête, pour que le mème (large comme la page) s'y voie */
.error-page:has(.error-page__ascii) {
    display: grid;
    align-content: center;
    min-height: calc(100svh - var(--af-header-height));
}

.error-page__grid {
    display: grid;
    gap: var(--af-space-10);
    align-items: center;
}

.error-page__visual {
    position: relative;
    justify-self: start;
}

/* le texte passe devant le mème ASCII, qui déborde du code sur téléphone */
.error-page__text-block {
    position: relative;
}

.error-page__number {
    position: relative;
    margin: 0;
    color: var(--af-white);
    font-family: var(--af-font-display);
    font-size: clamp(6rem, 30vw, 15rem);
    font-style: italic;
    font-weight: var(--af-weight-display);
    line-height: 0.9;
    letter-spacing: -0.05em;
}

/*
 * Le mème en ASCII (404 seulement), large comme la page et calé en haut de
 * la section, derrière le code et le texte : 101 colonnes, un caractère de
 * chasse fixe fait 0,56 à 0,6 fois sa taille, d'où 100vw / 58. Caché au
 * repos, il ne surgit que pendant les à-coups du décrochage ; ce qui dépasse
 * en bas est coupé par la section (overflow: clip de .head-glow).
 */
.error-page__ascii {
    position: absolute;
    top: 0;
    left: 50%;
    margin: 0;
    color: var(--af-white);
    font-family: var(--af-font-mono);
    font-size: calc(100vw / 58);
    line-height: 1.2;
    white-space: pre;
    opacity: 0;
    pointer-events: none;
    translate: -50% 0;
}

.error-page__ascii-y {
    color: var(--af-yellow-400);
}

.error-page__ascii-p {
    color: var(--af-salmon-300);
}

.error-page__ascii-o {
    color: var(--af-teal-200);
}

/* l'italique déborde à droite : un peu d'air */
.error-page__digits {
    display: inline-block;
    padding-right: 0.1em;
}

.error-page__title {
    max-width: 14ch;
    color: var(--af-color-text-on-inverse);
    font-size: var(--af-text-5xl);
    line-height: 1;
}

.error-page__text {
    max-width: 34em;
    margin-top: var(--af-space-6);
    color: var(--af-color-text-on-inverse-muted);
}

.error-page__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--af-space-4) var(--af-space-8);
    margin: var(--af-space-8) 0 0;
    padding: 0;
    list-style: none;
}

.error-page__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--af-target-min);
    color: var(--af-color-link-on-inverse);
    font-family: var(--af-font-ui);
    font-weight: var(--af-weight-ui);
    text-underline-offset: 0.25em;
}

.error-page__link:hover {
    color: var(--af-color-link-on-inverse-hover);
}

@media (min-width: 64em) {
    .error-page {
        padding-top: var(--af-space-16);
    }

    .error-page__grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: var(--af-space-gap);
    }

    .error-page__visual {
        grid-row: 1;
        grid-column: 7 / -1;
        justify-self: end;
    }

    .error-page__text-block {
        grid-row: 1;
        grid-column: 1 / span 6;
    }
}

/*
 * À l'arrivée, une fois, le code décroche comme une télé (tv-glitch) ; au
 * survol, il décroche de nouveau (une animation de plus dans la liste,
 * retirée à la sortie). Mouvement réduit : le code seul, immobile.
 */
@media (prefers-reduced-motion: no-preference) {
    .error-page__digits {
        animation: tv-glitch 0.9s steps(1, end) 0.15s;
    }

    .error-page__visual:hover .error-page__digits {
        animation: tv-glitch 0.9s steps(1, end) 0.15s, tv-glitch 0.9s steps(1, end);
    }

    /*
     * le mème suit les à-coups du décrochage du code (ses 0,9 premières
     * secondes), qui s'efface à demi pour le laisser voir ; puis il reste
     * affiché, et error-meme.js éteint ses caractères un à un, au hasard ;
     * sans script, il disparaît d'un coup à la fin (3 s)
     */
    .error-page__ascii {
        animation: error-ascii 3s steps(1, end) 0.15s;
    }

    .error-page:has(.error-page__visual:hover) .error-page__ascii {
        animation: error-ascii 3s steps(1, end) 0.15s, error-ascii 3s steps(1, end);
    }

    .error-page:has(.error-page__ascii) .error-page__digits {
        animation: tv-glitch 0.9s steps(1, end) 0.15s, error-digits-dim 0.9s steps(1, end) 0.15s;
    }

    .error-page:has(.error-page__ascii) .error-page__visual:hover .error-page__digits {
        animation:
            tv-glitch 0.9s steps(1, end) 0.15s,
            error-digits-dim 0.9s steps(1, end) 0.15s,
            tv-glitch 0.9s steps(1, end),
            error-digits-dim 0.9s steps(1, end);
    }
}

/* le code s'efface à demi aux à-coups où le mème surgit */
@keyframes error-digits-dim {
    0% {
        opacity: 0.35;
    }

    8% {
        opacity: 1;
    }

    14% {
        opacity: 0.3;
    }

    22% {
        opacity: 0.2;
    }

    32% {
        opacity: 1;
    }

    44% {
        opacity: 0.5;
    }

    52% {
        opacity: 1;
    }

    72% {
        opacity: 0.7;
    }

    78%,
    100% {
        opacity: 1;
    }
}

/* apparitions calées sur les à-coups de tv-glitch (0,9 s sur 3 s : ses étapes × 0,3), puis affiché jusqu'à la fin */
@keyframes error-ascii {
    0% {
        opacity: 0.95;
        filter: drop-shadow(3px 0 rgb(255 60 110 / 0.7)) drop-shadow(-3px 0 rgb(60 200 255 / 0.7));
        transform: translateX(-0.6em);
    }

    2.4% {
        opacity: 0;
        filter: none;
        transform: none;
    }

    4.2% {
        opacity: 0.85;
        filter: drop-shadow(-3px 0 rgb(255 60 110 / 0.6)) drop-shadow(3px 0 rgb(60 200 255 / 0.6));
        transform: translateX(0.8em) skewX(-6deg);
    }

    6.6% {
        opacity: 1;
        filter: brightness(1.3);
        transform: translateX(-0.3em);
    }

    9.6% {
        opacity: 0;
        filter: none;
        transform: none;
    }

    13.2% {
        opacity: 0.7;
        filter: drop-shadow(2px 0 rgb(255 60 110 / 0.5)) drop-shadow(-2px 0 rgb(60 200 255 / 0.5));
        transform: skewX(5deg);
    }

    15.6% {
        opacity: 0;
        filter: none;
        transform: none;
    }

    21.6% {
        opacity: 0.5;
        filter: none;
        transform: translateX(0.4em);
    }

    23.4%,
    100% {
        opacity: 1;
        filter: none;
        transform: none;
    }
}

/* ---------- Pied de page ---------- */
/*
 * Bloc nuit du pied de page : le logo et la signature de l'agence, un
 * filet, puis trois colonnes dont le plan du
 * site en ligne de métro (stations reliées par un trait, comme le plan de
 * l'accueil). Liens sans soulignement au repos dans ces listes (repérables
 * par leur place, en colonne sous un intitulé) : il apparaît au survol et
 * au focus. Intitulés en casse normale, sans capitales espacées.
 */
.site-footer__main {
    padding-block: var(--af-space-16) var(--af-space-8);
}

.site-footer__top {
    display: grid;
    gap: var(--af-space-10);
    padding-bottom: var(--af-space-12);
    border-bottom: var(--af-border-hairline) solid var(--af-color-border-on-inverse);
}

.site-footer__logo {
    display: block;
    width: auto;
    height: 2.5rem;
}

.site-footer__motto {
    max-width: 24em;
    margin-top: var(--af-space-5);
    color: var(--af-color-text-on-inverse-muted);
    text-wrap: pretty;
}

/* soulignement absent au repos, il apparaît en fondu */
.site-footer__link {
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
    text-decoration-color: currentColor;
}

.site-footer__cols {
    display: grid;
    gap: var(--af-space-10);
    padding-top: var(--af-space-12);
}

.site-footer__heading {
    color: var(--af-color-text-on-inverse-muted);
    /* intitulé, pas titre de section : Poppins 600 droit, casse normale */
    font-family: var(--af-font-ui);
    font-style: normal;
    font-weight: var(--af-weight-ui);
    font-size: var(--af-text-sm);
    line-height: var(--af-leading-snug);
}

.site-footer__address {
    margin-top: var(--af-space-4);
    font-style: normal;
}

.site-footer__address + p {
    margin-top: var(--af-space-2);
}

.site-footer__links,
.site-footer__line {
    margin: var(--af-space-2) 0 0;
    padding: 0;
    list-style: none;
}

.site-footer__main .site-footer__link {
    display: inline-flex;
    align-items: center;
    gap: var(--af-space-2);
    min-height: var(--af-target-min);
    color: var(--af-color-text-on-inverse);
}

.site-footer__main .site-footer__link:hover {
    color: var(--af-color-link-on-inverse-hover);
}

.site-footer__icon {
    flex-shrink: 0;
}

/*
 * Liens vers d'autres sites : la flèche oblique les signale, au même bleu que
 * le téléphone. En ligne (pas en flex) : sur deux lignes, la flèche suit le
 * dernier mot ; la hauteur de cible vient du remplissage.
 */
.site-footer__main .site-footer__link--out {
    display: inline-block;
    padding-block: calc((var(--af-target-min) - 1lh) / 2);
}

.site-footer__out {
    width: 1em;
    height: 1em;
    color: var(--af-color-link-on-inverse);
    vertical-align: -0.125em;
}

.site-footer__link:hover .site-footer__out {
    color: currentColor;
}

/* plan du site : le trait relie le centre de la première et de la dernière station */
.site-footer__line {
    position: relative;
}

.site-footer__line::before {
    content: "";
    position: absolute;
    top: calc(var(--af-target-min) / 2);
    bottom: calc(var(--af-target-min) / 2);
    left: 4px;
    width: 3px;
    background-color: var(--af-blue-500);
}

.site-footer__stop {
    position: relative;
    padding-left: var(--af-space-6);
}

.site-footer__stop::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 11px;
    height: 11px;
    border: 2px solid var(--af-blue-500);
    border-radius: 6px;
    background-color: var(--af-color-bg-inverse);
    translate: 0 -50%;
}

/* la station de la page en cours, et celle survolée : pleines, en jaune */
.site-footer__stop[aria-current]::before,
.site-footer__stop:hover::before,
.site-footer__stop:focus-visible::before {
    border-color: var(--af-yellow-400);
    background-color: var(--af-yellow-400);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--af-space-2) var(--af-space-6);
    margin-top: var(--af-space-12);
    padding-top: var(--af-space-6);
    border-top: var(--af-border-hairline) solid var(--af-color-border-on-inverse);
    color: var(--af-color-text-on-inverse-muted);
    font-size: var(--af-text-sm);
}

@media (prefers-reduced-motion: no-preference) {
    .site-footer__link {
        transition: text-decoration-color 0.2s ease, color 0.2s ease;
    }

    .site-footer__stop::before {
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }
}

@media (min-width: 48em) {
    .site-footer__cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--af-space-gap);
    }
}

/* grand écran : 12 colonnes ; les deux dernières colonnes alignées à droite */
@media (min-width: 64em) {
    .site-footer__main {
        padding-top: var(--af-space-20);
    }

    .site-footer__top,
    .site-footer__cols {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: var(--af-space-gap);
    }

    .site-footer__top {
        align-items: end;
    }

    .site-footer__brand,
    .site-footer__col--place {
        grid-column: 1 / span 5;
    }

    .site-footer__col--site {
        grid-column: 7 / span 3;
    }

    .site-footer__col--elsewhere {
        grid-column: 10 / span 3;
    }
}

/*
 * Badge des avis Google (front/_google_badge.html.twig), flottant en bas à
 * gauche : les codes des badges Google (logo G et étoiles dans leurs
 * couleurs, note sur 5, nombre d'avis), en petit, comme ceux des plateformes
 * d'avis. Deux zones séparées d'un filet : la source et le nombre d'avis, les
 * étoiles et la note. Fond blanc, filet gris de Google ; exception voulue à
 * la charte (ombre floue réservée aux panneaux) : une ombre très légère, qui
 * le détache du texte qu'il survole, comme tous les badges d'avis.
 * Au niveau de la barre d'appel de l'accueil et après elle dans la page : il
 * passe devant elle, mais sous l'en-tête, ses panneaux et le menu plein
 * écran. Tant que la barre n'est pas collée en haut (premier écran, mobile),
 * il se pose au-dessus d'elle plutôt que sur son texte. Le bas du pied de
 * page et la cible du focus ne passent jamais dessous (2.4.11) : réserve en
 * bas de la page et scroll-padding-bottom.
 */
:root:has(.google-badge) {
    --google-badge-reserve: calc(3.25rem + 2 * var(--af-space-3));
    --google-badge-fold: 420ms; /* repli et dépli du volet */
    scroll-padding-bottom: var(--google-badge-reserve);
}

.site-footer:has(.google-badge) .site-footer__main {
    padding-bottom: var(--google-badge-reserve);
}

.google-badge {
    position: fixed;
    bottom: var(--af-space-3);
    left: var(--af-space-3);
    z-index: calc(var(--af-z-header) - 1);
    display: flex;
    align-items: center;
    min-height: 3.25rem;
    padding: var(--af-space-2) var(--af-space-3);
    border: var(--af-border-hairline) solid #dadce0;
    border-radius: var(--af-radius-md);
    background-color: var(--af-white);
    box-shadow: 0 1px 3px rgb(7 7 49 / 0.12), 0 2px 8px -2px rgb(7 7 49 / 0.08);
    color: var(--af-color-text-strong);
    font-size: var(--af-text-xs);
    line-height: 1.25;
    text-decoration: none;
}

.google-badge__logo {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

/*
 * Volet « Avis Google » et nombre d'avis, entre le logo et la note : une
 * colonne de grille qui passe de 1fr à 0fr pour le replier. Son contenu est
 * calé à droite et rogné à gauche : en se refermant, poussé par la note qui
 * glisse vers la gauche, il disparaît sous le logo.
 */
.google-badge__details {
    display: grid;
    grid-template-columns: 1fr;
}

.google-badge__panel {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
    overflow: clip;
    white-space: nowrap;
}

.google-badge__text,
.google-badge__rating {
    display: grid;
    flex-shrink: 0;
}

.google-badge__text {
    margin-left: var(--af-space-2);
    padding-right: var(--af-space-3);
    border-right: var(--af-border-hairline) solid #dadce0;
}

.google-badge__name,
.google-badge__score {
    font-family: var(--af-font-ui);
    font-weight: var(--af-weight-ui);
}

.google-badge__count,
.google-badge__scale {
    color: var(--af-color-text-muted);
}

.google-badge__count {
    font-size: 0.75rem;
}

.google-badge__rating {
    justify-items: center;
    padding-left: var(--af-space-3);
}

.google-badge__stars {
    display: inline-flex;
    gap: 1px;
}

.google-badge__star {
    width: 0.875rem;
    height: 0.875rem;
    fill: #fbbc04;
}

.google-badge__star--off {
    fill: #dadce0;
}

.google-badge__scale {
    font-family: var(--af-font-body);
    font-weight: normal;
}

.google-badge:hover .google-badge__name {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

html:has(.cta-bar:not(.is-stuck)) .google-badge {
    translate: 0 calc(-1 * var(--cta-bar-height, 0px));
}

/*
 * Page défilée (assets/google-badge.js ; accueil : quand la barre d'appel se
 * colle en haut et que le badge se cale en bas) : le badge se replie sur le
 * logo, les étoiles et la note, toujours cliquable ; « Avis Google » et le
 * nombre d'avis s'effacent sous le logo. Il se déplie au survol et au focus.
 * Masqué à l'œil seulement : le lien garde tout son texte pour les lecteurs
 * d'écran.
 */
.google-badge.is-folded:not(:hover, :focus-visible) .google-badge__details {
    grid-template-columns: 0fr;
}

.google-badge.is-folded:not(:hover, :focus-visible) .google-badge__text {
    opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .google-badge {
        transition: translate var(--af-duration-base) var(--af-ease-standard);
    }

    .google-badge__details {
        transition: grid-template-columns var(--google-badge-fold) var(--af-ease-standard);
    }

    /* au repli, le texte s'éteint en fin de glissement ; au dépli, il revient d'emblée */
    .google-badge__text {
        transition: opacity 160ms linear;
    }

    .google-badge.is-folded:not(:hover, :focus-visible) .google-badge__text {
        transition-delay: calc(var(--google-badge-fold) - 200ms);
    }
}

/* anneau sombre doublé de blanc : visible sur les sections claires comme sur la nuit */
.google-badge:focus-visible {
    outline: var(--af-focus-width) solid var(--af-navy-950);
    outline-offset: var(--af-focus-offset);
    box-shadow: 0 0 0 var(--af-focus-offset) var(--af-white);
}

/* ---------- Mouvement réduit : ni animation ni déplacement au survol ---------- */
@media (prefers-reduced-motion: reduce) {
    .button:hover .button__arrow {
        transform: none;
    }

    .button:hover .button__icon,
    .button:focus-visible .button__icon,
    .cta-bar__link:hover .cta-bar__icon,
    .cta-bar__link:focus-visible .cta-bar__icon,
    .arrow-link:hover .arrow-link__icon {
        translate: none;
    }

    .card:hover .card__media img,
    .card:focus-within .card__media img {
        scale: none;
    }

    .shot:hover {
        rotate: var(--shot-tilt, 0deg);
    }
}

/* ---------- Contraste forcé : les aplats deviennent des cadres ---------- */
@media (forced-colors: active) {
    .button,
    .notice {
        border: 2px solid CanvasText;
    }

    .marker::before {
        background-color: Mark;
    }
}

/* ---------- Impression ---------- */
@media print {
    .site-header,
    .skip-link,
    .cta-bar,
    .intro__pause,
    .google-badge {
        display: none;
    }

    .intro {
        min-height: 0;
        padding-top: 0;
    }
}
