@font-face { font-family: "IBM Plex Sans"; src: url("polices/IBMPlexSans-variable-latin.e2291e.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("polices/BricolageGrotesque-variable-latin.a79fdb.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@layer base, socle, composants, ecrans, site;
@layer base {
/* Le peu de Bootstrap dont la home se sert : le reste de sa feuille serait un poids mort ici. */
*, *::before, *::after { box-sizing: border-box; }

/* WHY l'échelle « lecture » sur :root : elements.css écrit `font: 400 var(--t-base) / var(--interligne) …` sur body, et
   jetons.css ne déclare ces variables que sous [data-densite], un attribut que le layout de l'application pose sur <body>.
   La landing n'a pas ce layout ; sans ces valeurs, le raccourci `font` tombe entier et le texte sortait en empattements. */
:root {
    --t-micro: .6875rem;
    --t-mini: .75rem;
    --t-petit: .875rem;
    --t-base: 1rem;
    --t-moyen: 1.125rem;
    --t-grand: 1.375rem;
    --t-titre: clamp(1.5rem, 1.15rem + 1.1vw, 2.125rem);
    --interligne: 1.55;
}

.btn {
    display: inline-block;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    border: var(--bs-btn-border-width, 1px) solid var(--bs-btn-border-color);
    border-radius: var(--bs-btn-border-radius);
    background-color: var(--bs-btn-bg);
    font-family: var(--bs-btn-font-family);
    font-size: var(--bs-btn-font-size);
    font-weight: var(--bs-btn-font-weight);
    line-height: var(--bs-btn-line-height);
    text-align: center;
    cursor: pointer;
}
.btn:hover {
    border-color: var(--bs-btn-hover-border-color);
    background-color: var(--bs-btn-hover-bg);
}
.btn:focus-visible {
    outline: 2px solid var(--h-focus);
    outline-offset: 2px;
}
}
@layer socle {
/*
 * Les jetons : le seul endroit où une couleur, une taille, un espacement, un rayon ou une ombre
 * s'écrit en dur.
 *
 * Une couleur se déclare une fois pour les deux thèmes : `light-dark(clair, sombre)`, résolu par le
 * `color-scheme` de <html>. Sans choix (pas de `data-theme`), la page suit le système ; le sélecteur du
 * pied (assets/modules/theme.js) pose `data-theme="light"` ou `"dark"` et l'emporte.
 *
 * La palette est celle de l'app au 2026-10-05, dont les contrastes texte/fond sont mesurés au seuil
 * WCAG (heuria-app, tests/Capteur/ContrastesTest.php) ; les teintes ajoutées ici le sont par
 * bin/contrastes.php de l'atelier.
 */
:root {
    color-scheme: light dark;
}
:root[data-theme="light"] {
    color-scheme: light;
}
:root[data-theme="dark"] {
    color-scheme: dark;
}

:root {
    /* Fonds : la page, puis ce qui se pose dessus. */
    --h-fond: light-dark(#F5F7F5, #0F1A1E);
    --h-surface: light-dark(#FFFFFF, #16252B);
    --h-surface-2: light-dark(#EEF2F0, #1B2C33);
    --h-surface-3: light-dark(#DFE6E2, #24393F);

    /* Encres : le texte, le texte d'appoint, le texte discret (4,5:1 sur surface-2). */
    --h-encre: light-dark(#1B2A33, #E6ECEA);
    --h-encre-2: light-dark(#40525A, #B9C6C8);
    --h-discret: light-dark(#5B6B71, #94A7AB);

    /* Filets : la séparation, et le contour d'un champ ou d'un composant (3:1). */
    --h-filet: light-dark(#DCE3DF, #26383F);
    --h-filet-fort: light-dark(#C5D0CB, #33484F);
    --h-filet-champ: light-dark(#808F94, #62787D);

    /* La marque : l'accent sarcelle, sa teinte douce, son encre ; ce qui s'écrit dessus. */
    --h-accent: light-dark(#0E6E6E, #3FB0A6);
    --h-accent-doux: light-dark(#DDEFED, #163A3B);
    --h-accent-encre: light-dark(#0A5555, #8ADBD3);
    --h-sur-accent: light-dark(#FFFFFF, #0F1A1E);

    /* L'or : ce que Heuria retrouve ou complète, ce qui demande attention sans alarmer. */
    --h-or: light-dark(#B38D27, #E0B84A);
    --h-or-doux: light-dark(#F6EDD3, #3A3018);
    /* Un caractère que la chaîne a réparé dans le texte de l'acheteur : un violet, loin de l'or de la
       provenance, du soulignement des sigles et du jaune d'une recherche. */
    --h-repare: light-dark(#7246BD, #B89AF0);
    --h-repare-doux: light-dark(#EFE7FB, #2D2440);
    --h-or-encre: light-dark(#6E520C, #E9C766);
    /* La colonne de l'administration reste sombre dans les deux thèmes : le même ton de chaque côté. */
    --h-colonne-fond: light-dark(#10202A, #10202A);
    --h-colonne-encre: light-dark(#C6D2D3, #C6D2D3);
    --h-colonne-discret: light-dark(#8FA3A7, #8FA3A7);
    --h-colonne-survol: light-dark(#1A2E37, #1A2E37);
    --h-colonne-actif: light-dark(#21414A, #21414A);
    --h-colonne-filet: light-dark(#20343C, #20343C);
    --h-colonne-accent: light-dark(#4FC2B8, #4FC2B8);
    --h-colonne-titre: light-dark(#FFFFFF, #FFFFFF);
    --h-colonne-sur-accent: light-dark(#0F1A1E, #0F1A1E);
    /* Les panneaux de nuit (l'aperçu de l'inscription, l'appel à l'essai de l'accueil) restent sombres
       dans les deux thèmes, comme la colonne. */
    --h-nuit-fond: light-dark(#10242A, #10242A);
    --h-nuit-titre: light-dark(#FFFFFF, #FFFFFF);
    --h-nuit-encre: light-dark(#E6ECEA, #E6ECEA);
    --h-nuit-encre-2: light-dark(#B9C6C8, #B9C6C8);
    --h-nuit-accent: light-dark(#3FB0A6, #3FB0A6);
    --h-nuit-accent-encre: light-dark(#8ADBD3, #8ADBD3);
    --h-nuit-sur-accent: light-dark(#0F1A1E, #0F1A1E);
    --h-nuit-or: light-dark(#E0B84A, #E0B84A);
    /* Le QR code reste noir sur blanc dans les deux thèmes : un appareil photo le lit mieux. */
    --h-qr-fond: light-dark(#FFFFFF, #FFFFFF);

    /* Les états : `-doux` est un fond, la couleur pleine y écrit. */
    --h-succes: light-dark(#256B4D, #5CC493);
    --h-succes-doux: light-dark(#DCEFE4, #16342A);
    --h-avertissement: light-dark(#8A5210, #E0A24E);
    --h-avertissement-doux: light-dark(#F6E9D5, #3A2B14);
    --h-danger: light-dark(#B23A3A, #E07070);
    --h-danger-doux: light-dark(#F5DEDE, #3B1F1F);
    --h-sur-danger: light-dark(#FFFFFF, #0F1A1E);

    /* Les familles d'avis : leur point de couleur, toujours doublé de leur nom. */
    --h-famille-eforms: light-dark(#0E6E6E, #3FB0A6);
    --h-famille-fns: light-dark(#8A6A14, #D9B45A);
    --h-famille-mapa: light-dark(#6A5ACD, #9B8DE8);
    --h-famille-dsp: light-dark(#B23A3A, #E07070);
    --h-famille-autre: light-dark(#5B6B71, #A7B6BA);

    /* Liens et focus. */
    --h-lien: light-dark(#0A5555, #8ADBD3);
    --h-lien-survol: light-dark(#0E6E6E, #B5EAE4);
    --h-focus: light-dark(#0E6E6E, #3FB0A6);

    /* La bulle : une explication posée sur la page, en encre inversée. */
    --h-bulle: light-dark(#1B2A33, #E6ECEA);
    --h-sur-bulle: light-dark(#F5F7F5, #0F1A1E);

    /* Ombres, et le reflet d'un bouton plein. */
    --h-reflet: rgb(255 255 255 / .12);
    --h-ombre-1: 0 1px 2px light-dark(rgb(27 42 51 / .06), rgb(0 0 0 / .35));
    --h-ombre-2: 0 1px 2px light-dark(rgb(27 42 51 / .05), rgb(0 0 0 / .3)), 0 10px 30px -8px light-dark(rgb(27 42 51 / .12), rgb(0 0 0 / .45));
    --h-ombre-3: 0 2px 4px light-dark(rgb(27 42 51 / .06), rgb(0 0 0 / .35)), 0 18px 48px -12px light-dark(rgb(27 42 51 / .22), rgb(0 0 0 / .6));

    /* Polices. */
    --police-texte: "IBM Plex Sans", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --police-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --police-edito: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;

    /* Espacements : une échelle de 4 px. */
    --e-1: .25rem;
    --e-2: .5rem;
    --e-3: .75rem;
    --e-4: 1rem;
    --e-5: 1.5rem;
    --e-6: 2rem;
    --e-7: 3rem;
    --e-8: 4.5rem;

    /* Rayons. */
    --rayon-s: .25rem;
    --rayon: .375rem;
    --rayon-l: .5rem;
    --rayon-xl: .625rem;
    --rayon-pilule: 999px;

    /* Mise en page : la largeur utile et la gouttière, qui se resserre sur petit écran. */
    --largeur: 82rem;
    --gouttiere: clamp(1rem, .5rem + 2vw, 2.5rem);
    --hauteur-barre: 3.75rem;

    --duree: .16s;

    /* Superpositions, de la plus basse à la plus haute. Le relief ne vaut que dans le composant qui
       l'ouvre (en-tête collant, coin d'un tableau) ; les autres couches valent pour toute la page. */
    --z-fond: -1;
    --z-relief: 1;
    --z-relief-2: 2;
    --z-barre-ecran: 5;
    --z-bulle: 20;
    --z-barre: 30;
    --z-menu: 40;
    --z-menu-global: 45;
    --z-notification: 50;
    --z-evitement: 100;

    /* Points de rupture : une variable ne se lit pas dans @media, l'échelle s'écrit donc ici et chaque
       requête en reprend un pas, en syntaxe d'intervalle (`width < 64rem`, jamais `63.99rem`).
       24rem très petit téléphone · 40rem téléphone · 48rem petite tablette · 64rem tablette et
       ordinateur · 80rem grand écran · 90rem très grand écran ; en hauteur, 34rem. */
}

/*
 * La densité suit l'écran : `lecture` pour ce qu'un client lit, `technique` pour un écran de données
 * (posée sur <body> par le layout).
 */
[data-densite="lecture"] {
    --t-micro: .6875rem;
    --t-mini: .75rem;
    --t-petit: .875rem;
    --t-base: 1rem;
    --t-moyen: 1.125rem;
    --t-grand: 1.375rem;
    --t-titre: clamp(1.5rem, 1.15rem + 1.1vw, 2.125rem);
    --interligne: 1.55;
}
[data-densite="technique"] {
    --t-micro: .625rem;
    --t-mini: .6875rem;
    --t-petit: .75rem;
    --t-base: .8125rem;
    --t-moyen: .9375rem;
    --t-grand: 1.125rem;
    --t-titre: 1.375rem;
    --interligne: 1.45;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --duree: 0s;
    }
}
}
@layer socle {
/*
 * Les éléments nus, sur les jetons ; les variables de Bootstrap se règlent dans bootstrap-theme.css.
 *
 * WHY certaines règles d'éléments ici : Bootstrap écrit la couleur d'un lien en `rgba(var(--bs-link-color-rgb))`,
 * un triplet qu'un jeton `light-dark()` ne fournit pas ; on la redonne en clair.
 */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--hauteur-barre) + var(--e-4));
}

body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--h-fond);
    color: var(--h-encre);
    font: 400 var(--t-base) / var(--interligne) var(--police-texte);
    font-feature-settings: "kern", "liga";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.contenu {
    flex: 1 0 auto;
    outline: none;
}

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

h1, h2, h3, h4 {
    color: var(--h-encre);
    font-weight: 600;
    line-height: 1.25;
    text-wrap: balance;
}

ul[class], ol[class] {
    padding: 0;
    list-style: none;
}

a {
    color: var(--h-lien);
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
    transition: color var(--duree);
}
a:hover {
    color: var(--h-lien-survol);
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 2px solid var(--h-focus);
    outline-offset: 2px;
    border-radius: var(--rayon-s);
}

::selection {
    background: color-mix(in srgb, var(--h-accent) 28%, transparent);
}

strong, b {
    font-weight: 600;
}

time, .nombre {
    font-variant-numeric: tabular-nums lining-nums;
}

/* Un identifiant qu'on recopie : numéro d'avis, SIREN, code. */
.mono {
    font-family: var(--police-mono);
    font-size: .92em;
    font-variant-numeric: tabular-nums slashed-zero;
    letter-spacing: -.01em;
}

/* Un code d'une liste (CPV, NUTS) : une étiquette qu'on lit comme un identifiant. */
.code {
    display: inline-block;
    padding: .0625rem .375rem;
    border-radius: var(--rayon-s);
    background: var(--h-surface-2);
    color: var(--h-encre);
    font: 500 .85em / 1.5 var(--police-mono);
    font-variant-numeric: tabular-nums slashed-zero;
    white-space: nowrap;
}

/* L'étiquette d'une valeur : petite, capitale, espacée — celle d'une fiche technique. */
.etiquette {
    margin: 0 0 var(--e-2);
    color: var(--h-discret);
    font: 600 var(--t-micro) / 1.3 var(--police-texte);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Le lien d'évitement : invisible jusqu'au premier Tab. */
.evitement {
    position: absolute;
    top: var(--e-2);
    left: var(--e-2);
    z-index: var(--z-evitement);
    padding: var(--e-2) var(--e-4);
    border-radius: var(--rayon);
    background: var(--h-encre);
    color: var(--h-fond);
    font-weight: 600;
    transform: translateY(-200%);
}
.evitement:focus {
    transform: none;
}

/* Une note : ce que l'écran signale à côté de la donnée. */
.note {
    display: flex;
    gap: var(--e-2);
    align-items: baseline;
    padding: var(--e-3) var(--e-4);
    border-radius: var(--rayon);
    background: var(--h-surface-2);
    color: var(--h-encre);
    font-size: var(--t-petit);
}
.note--avertissement {
    background: var(--h-avertissement-doux);
}
.note--avertissement > .bi {
    color: var(--h-avertissement);
}

.note--or {
    background: var(--h-or-doux);
}
.note--or > .bi {
    color: var(--h-or-encre);
}
.note--danger {
    background: var(--h-danger-doux);
}
.note--danger > .bi {
    color: var(--h-danger);
}
.note--info {
    background: var(--h-accent-doux);
}
.note--info > .bi {
    color: var(--h-accent-encre);
}
.note a {
    font-weight: 600;
}

/* La zone hors champ où assets/modules/copie.js sélectionne une valeur à copier, faute de presse-papiers. */
.copie-hors-champ {
    position: fixed;
    top: 0;
    left: -9999px;
    opacity: 0;
}

.alerte-ligne {
    color: var(--h-avertissement);
    font-weight: 600;
}

/* Les barres de défilement : fines, couleur de filet sur une piste transparente. WHY la piste
   transparente : une piste pleine posait ses coins carrés sur les blocs arrondis qui défilent. La couleur
   s'hérite ; la colonne de l'admin pose la sienne. */
:root {
    scrollbar-color: var(--h-filet-champ) transparent;
}
* {
    scrollbar-width: thin;
}
}
/*
 * Le thème de Bootstrap : le seul endroit où une variable `--bs-*` se déclare, et elle y dérive d'un
 * jeton (socle/jetons.css). Bootstrap lit ses couleurs, rayons et espacements dans ces variables : ses
 * composants natifs (boutons, formulaires, tableaux, alertes, étiquettes) suivent sans être réécrits. Le
 * thème sombre de Bootstrap (`data-bs-theme`) n'est pas utilisé : les jetons portent les deux thèmes.
 *
 * WHY une couche par bloc : chaque réglage garde la couche de la feuille qui le portait, si bien que la
 * cascade ne change pas ; ui.css importe ce fichier sans couche.
 */
@layer socle {
    /* socle/elements.css */
    :root {
        --bs-body-bg: var(--h-fond);
        --bs-body-color: var(--h-encre);
        --bs-body-font-family: var(--police-texte);
        --bs-body-font-size: var(--t-base);
        --bs-body-line-height: var(--interligne);
        --bs-font-sans-serif: var(--police-texte);
        --bs-font-monospace: var(--police-mono);
        --bs-emphasis-color: var(--h-encre);
        --bs-secondary-color: var(--h-discret);
        --bs-tertiary-color: var(--h-discret);
        --bs-secondary-bg: var(--h-surface-2);
        --bs-tertiary-bg: var(--h-surface-2);
        --bs-border-color: var(--h-filet);
        --bs-border-color-translucent: var(--h-filet);
        --bs-border-radius: var(--rayon);
        --bs-border-radius-sm: var(--rayon-s);
        --bs-border-radius-lg: var(--rayon-l);
        --bs-border-radius-xl: var(--rayon-xl);
        --bs-border-radius-pill: var(--rayon-pilule);
        --bs-link-color: var(--h-lien);
        --bs-link-hover-color: var(--h-lien-survol);
        --bs-heading-color: var(--h-encre);
        --bs-code-color: var(--h-encre);
        --bs-highlight-bg: var(--h-or-doux);
        --bs-focus-ring-width: 3px;
        --bs-focus-ring-color: color-mix(in srgb, var(--h-focus) 40%, transparent);
        --bs-success: var(--h-succes);
        --bs-danger: var(--h-danger);
        --bs-warning: var(--h-avertissement);
        --bs-primary: var(--h-accent);
    }
}
@layer composants {
    /* composants/boutons.css */
    .btn {
        --bs-btn-padding-x: 1rem;
        --bs-btn-padding-y: .5625rem;
        --bs-btn-font-family: var(--police-texte);
        --bs-btn-font-size: .9375rem;
        --bs-btn-font-weight: 600;
        --bs-btn-line-height: 1.35;
        --bs-btn-border-radius: var(--rayon);
        --bs-btn-focus-box-shadow: 0 0 0 3px color-mix(in srgb, var(--h-focus) 35%, transparent);
    }
    .btn-sm {
        --bs-btn-padding-x: .75rem;
        --bs-btn-padding-y: .375rem;
        --bs-btn-font-size: .8125rem;
        --bs-btn-border-radius: var(--rayon-s);
    }
    .btn-lg {
        --bs-btn-padding-x: 1.375rem;
        --bs-btn-padding-y: .75rem;
        --bs-btn-font-size: 1rem;
        --bs-btn-border-radius: var(--rayon-l);
    }
    .btn-primary {
        --bs-btn-color: var(--h-sur-accent);
        --bs-btn-bg: var(--h-accent);
        --bs-btn-border-color: var(--h-accent);
        --bs-btn-hover-color: var(--h-sur-accent);
        --bs-btn-hover-bg: var(--h-accent-encre);
        --bs-btn-hover-border-color: var(--h-accent-encre);
        --bs-btn-active-color: var(--h-sur-accent);
        --bs-btn-active-bg: var(--h-accent-encre);
        --bs-btn-active-border-color: var(--h-accent-encre);
        --bs-btn-disabled-color: var(--h-sur-accent);
        --bs-btn-disabled-bg: var(--h-accent);
        --bs-btn-disabled-border-color: var(--h-accent);
    }
    .btn-secondary,
    .btn-outline-secondary {
        --bs-btn-color: var(--h-encre);
        --bs-btn-bg: var(--h-surface);
        --bs-btn-border-color: var(--h-filet-fort);
        --bs-btn-hover-color: var(--h-encre);
        --bs-btn-hover-bg: var(--h-surface-2);
        --bs-btn-hover-border-color: var(--h-filet-champ);
        --bs-btn-active-color: var(--h-encre);
        --bs-btn-active-bg: var(--h-surface-3);
        --bs-btn-active-border-color: var(--h-filet-champ);
        --bs-btn-disabled-color: var(--h-discret);
        --bs-btn-disabled-bg: var(--h-surface);
        --bs-btn-disabled-border-color: var(--h-filet);
    }
    .btn-link {
        --bs-btn-color: var(--h-lien);
        --bs-btn-hover-color: var(--h-lien-survol);
        --bs-btn-active-color: var(--h-lien-survol);
        --bs-btn-padding-x: 0;
    }
    /* Retirer, annuler, supprimer : le danger plein pour le geste qui confirme, en contour pour celui qui l'ouvre. */
    .btn-danger {
        --bs-btn-color: var(--h-sur-danger);
        --bs-btn-bg: var(--h-danger);
        --bs-btn-border-color: var(--h-danger);
        --bs-btn-hover-color: var(--h-sur-danger);
        --bs-btn-hover-bg: color-mix(in srgb, var(--h-danger) 85%, var(--h-encre));
        --bs-btn-hover-border-color: color-mix(in srgb, var(--h-danger) 85%, var(--h-encre));
        --bs-btn-active-color: var(--h-sur-danger);
        --bs-btn-active-bg: color-mix(in srgb, var(--h-danger) 75%, var(--h-encre));
        --bs-btn-active-border-color: color-mix(in srgb, var(--h-danger) 75%, var(--h-encre));
        --bs-btn-disabled-color: var(--h-sur-danger);
        --bs-btn-disabled-bg: var(--h-danger);
        --bs-btn-disabled-border-color: var(--h-danger);
    }
    .btn-outline-danger {
        --bs-btn-color: var(--h-danger);
        --bs-btn-bg: var(--h-surface);
        --bs-btn-border-color: color-mix(in srgb, var(--h-danger) 50%, var(--h-filet));
        --bs-btn-hover-color: var(--h-danger);
        --bs-btn-hover-bg: var(--h-danger-doux);
        --bs-btn-hover-border-color: var(--h-danger);
        --bs-btn-active-color: var(--h-danger);
        --bs-btn-active-bg: var(--h-danger-doux);
        --bs-btn-active-border-color: var(--h-danger);
        --bs-btn-disabled-color: var(--h-discret);
        --bs-btn-disabled-bg: var(--h-surface);
        --bs-btn-disabled-border-color: var(--h-filet);
    }
    /* composants/formulaires.css */
    .form-control,
    .form-select {
        --bs-border-color: var(--h-filet-champ);
    }
    /* composants/tableau.css */
    .tableau .table {
        --bs-table-bg: transparent;
        --bs-table-color: var(--h-encre);
        --bs-table-border-color: var(--h-filet);
        --bs-table-hover-bg: var(--h-surface-2);
    }
}
@layer ecrans {
    /* ecrans/boamp.css */
    .badge {
        --bs-badge-padding-x: .4375rem;
        --bs-badge-padding-y: .1875rem;
        --bs-badge-font-size: .6875rem;
        --bs-badge-font-weight: 600;
        --bs-badge-color: var(--h-encre-2);
        --bs-badge-border-radius: var(--rayon-pilule);
    }
    .alert {
        --bs-alert-padding-x: var(--e-3);
        --bs-alert-padding-y: var(--e-2);
        --bs-alert-margin-bottom: var(--e-3);
        --bs-alert-border-radius: var(--rayon);
    }
    .alert-info {
        --bs-alert-bg: var(--h-accent-doux);
        --bs-alert-color: var(--h-accent-encre);
        --bs-alert-border-color: transparent;
    }
    .alert-warning {
        --bs-alert-bg: var(--h-avertissement-doux);
        --bs-alert-color: var(--h-avertissement);
        --bs-alert-border-color: transparent;
    }
    .alert-danger {
        --bs-alert-bg: var(--h-danger-doux);
        --bs-alert-color: var(--h-danger);
        --bs-alert-border-color: transparent;
    }
    .bp-filtres .btn {
        --bs-btn-padding-y: .3125rem;
        --bs-btn-padding-x: .75rem;
        --bs-btn-font-size: .8125rem;
    }
    /* ecrans/public.css */
    /* Sur le panneau sombre, le bouton primaire garde l'accent clair des deux thèmes. */
    .accueil__essai .btn-primary {
        --bs-btn-bg: var(--h-nuit-accent);
        --bs-btn-border-color: var(--h-nuit-accent);
        --bs-btn-color: var(--h-nuit-sur-accent);
        --bs-btn-hover-bg: var(--h-nuit-accent-encre);
        --bs-btn-hover-border-color: var(--h-nuit-accent-encre);
        --bs-btn-hover-color: var(--h-nuit-sur-accent);
    }
}
@layer composants {
/*
 * Le layout de l'espace client : la barre, son repli sous 62 rem, le menu du compte, le pied, le panneau
 * des notifications et les messages.
 *
 * Le repli n'existe qu'avec JavaScript (classe `js` sur <html>, posée par avant-rendu.js) : sans lui,
 * la barre reste dépliée et utilisable. navigation.js bascule `est-ouvert` sur la zone.
 */

/* ---------- La barre ---------- */
.barre {
    position: sticky;
    top: 0;
    z-index: var(--z-barre);
    background: color-mix(in srgb, var(--h-surface) 92%, transparent);
    border-bottom: 1px solid var(--h-filet);
    backdrop-filter: saturate(1.4) blur(10px);
}
.barre__dedans {
    display: flex;
    align-items: center;
    gap: var(--e-5);
    max-width: var(--largeur);
    min-height: var(--hauteur-barre);
    margin-inline: auto;
    padding-inline: var(--gouttiere);
}

.marque {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex: none;
    color: var(--h-encre);
    font: 700 1.3125rem / 1 var(--police-edito);
    letter-spacing: -.02em;
    text-decoration: none;
}
.marque:hover {
    color: var(--h-encre);
}
.marque__point {
    width: .625rem;
    height: .625rem;
    border-radius: 50%;
    background: var(--h-accent);
    box-shadow: 0 0 0 3px var(--h-accent-doux);
}

.barre__replis {
    display: flex;
    flex: 1;
    align-items: center;
    gap: var(--e-4);
    min-width: 0;
}

.barre__entrees {
    display: flex;
    gap: .125rem;
}
.barre__entree {
    display: block;
    padding: .4375rem .75rem;
    border-radius: var(--rayon);
    color: var(--h-encre-2);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.barre__entree:hover {
    background: var(--h-surface-2);
    color: var(--h-encre);
    text-decoration: none;
}
.barre__entree[aria-current] {
    background: var(--h-accent-doux);
    color: var(--h-accent-encre);
    font-weight: 600;
}

.barre__bascule {
    display: none;
}

.barre__nav--fin {
    margin-left: auto;
}

/* La recherche : un champ à loupe, qui s'élargit au focus. */
.recherche {
    position: relative;
    flex: 0 1 24rem;
    margin-left: auto;
}
.recherche__loupe {
    position: absolute;
    top: 50%;
    left: .8125rem;
    color: var(--h-discret);
    font-size: .875rem;
    transform: translateY(-50%);
    pointer-events: none;
}
.recherche__champ.form-control {
    height: 2.375rem;
    padding-left: 2.25rem;
    border-color: var(--h-filet-champ);
    background: var(--h-surface-2);
    font-size: .9375rem;
}
.recherche__champ.form-control:hover {
    border-color: var(--h-encre-2);
}
/* Le bouton d'envoi ne s'affiche qu'au focus (visually-hidden-focusable) : un arrêt de tabulation
   doit se voir (WCAG 2.4.7). */
.recherche__envoi:focus {
    position: absolute;
    top: 50%;
    right: .375rem;
    z-index: var(--z-relief);
    padding: .125rem .5rem;
    border: 1px solid var(--h-filet-champ);
    border-radius: var(--rayon-s);
    background: var(--h-surface);
    color: var(--h-encre);
    font-size: .8125rem;
    transform: translateY(-50%);
}
.recherche__champ.form-control:focus {
    border-color: var(--h-accent);
    background: var(--h-surface);
}

/* Les propositions de la recherche (recherche/omnibox.js les remplit). */
.propositions {
    position: absolute;
    top: calc(100% + .375rem);
    right: 0;
    left: 0;
    z-index: var(--z-menu);
    max-height: 22rem;
    margin: 0;
    padding: var(--e-1);
    overflow-y: auto;
    border: 1px solid var(--h-filet);
    border-radius: var(--rayon-l);
    background: var(--h-surface);
    box-shadow: var(--h-ombre-3);
    list-style: none;
}
.propositions [role="option"] {
    padding: var(--e-2) var(--e-3);
    border-radius: var(--rayon);
    cursor: pointer;
}
.propositions [role="option"][aria-selected="true"],
.propositions [role="option"]:hover {
    background: var(--h-accent-doux);
    color: var(--h-accent-encre);
}

.barre__compte {
    display: flex;
    align-items: center;
    gap: var(--e-2);
    flex: none;
}

/* Un bouton qui n'est qu'une icône : la cloche, la fermeture d'un panneau. */
.bouton-icone {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.375rem;
    height: 2.375rem;
    padding: 0;
    border: 0;
    border-radius: var(--rayon);
    background: transparent;
    color: var(--h-encre-2);
    font-size: 1.0625rem;
    cursor: pointer;
    transition: background var(--duree), color var(--duree);
}
.bouton-icone:hover {
    background: var(--h-surface-2);
    color: var(--h-encre);
}
/* Sans JavaScript, la cloche n'ouvre rien : elle ne s'affiche pas. */
html:not(.js) [data-cloche] {
    display: none;
}
.bouton-icone__compteur {
    position: absolute;
    top: .1875rem;
    right: .125rem;
    min-width: 1.0625rem;
    padding: 0 .25rem;
    border-radius: var(--rayon-pilule);
    background: var(--h-accent);
    color: var(--h-sur-accent);
    font: 600 .625rem / 1.0625rem var(--police-texte);
    text-align: center;
}

/* Le menu du compte : un <details>, fermé par Échap (menu-compte.js). */
.compte {
    position: relative;
}
.compte__resume {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .5rem .25rem .25rem;
    border-radius: var(--rayon-pilule);
    color: var(--h-encre);
    font-size: .9375rem;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
}
.compte__resume::-webkit-details-marker {
    display: none;
}
.compte__resume:hover,
.compte[open] .compte__resume {
    background: var(--h-surface-2);
}
.compte__avatar {
    display: grid;
    place-items: center;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
    background: var(--h-accent-doux);
    color: var(--h-accent-encre);
    font: 600 .6875rem / 1 var(--police-texte);
    letter-spacing: .02em;
}
.compte__chevron {
    color: var(--h-discret);
    font-size: .6875rem;
    transition: transform var(--duree);
}
.compte[open] .compte__chevron {
    transform: rotate(180deg);
}
.compte__menu {
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    z-index: var(--z-menu);
    min-width: 16rem;
    padding: var(--e-2);
    border: 1px solid var(--h-filet);
    border-radius: var(--rayon-l);
    background: var(--h-surface);
    box-shadow: var(--h-ombre-3);
}
.compte__adresse {
    margin-bottom: var(--e-1);
    padding: var(--e-2) var(--e-3) var(--e-3);
    border-bottom: 1px solid var(--h-filet);
    color: var(--h-discret);
    font-size: var(--t-petit);
    overflow-wrap: anywhere;
}
.compte__lien {
    display: block;
    width: 100%;
    padding: var(--e-2) var(--e-3);
    border: 0;
    border-radius: var(--rayon);
    background: none;
    color: var(--h-encre);
    font: inherit;
    font-size: .9375rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.compte__lien:hover {
    background: var(--h-surface-2);
    color: var(--h-encre);
    text-decoration: none;
}

/* ---------- Le repli, sous 62 rem et avec JavaScript ---------- */
@media (width < 64rem) {
    html.js .barre__bascule {
        display: inline-flex;
        align-items: center;
        gap: .375rem;
        margin-left: auto;
        padding: .375rem .75rem;
        border: 1px solid var(--h-filet-fort);
        border-radius: var(--rayon);
        background: var(--h-surface);
        color: var(--h-encre);
        font-size: .9375rem;
        font-weight: 600;
    }
    html.js .barre__replis {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        /* Dans une fenêtre basse (zoom 400 % : 320 × 256), le panneau dépassait sans aucun défilement
           possible, la barre étant collante ; l'administration a la même parade (WCAG 1.4.10). */
        max-height: calc(100dvh - var(--hauteur-barre));
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: var(--e-4);
        padding: var(--e-4) var(--gouttiere) var(--e-5);
        border-bottom: 1px solid var(--h-filet);
        background: var(--h-surface);
        box-shadow: var(--h-ombre-2);
    }
    html.js .barre__replis.est-ouvert {
        display: flex;
    }
    html:not(.js) .barre__dedans {
        flex-wrap: wrap;
        padding-block: var(--e-2);
    }
    html:not(.js) .barre__replis {
        flex-wrap: wrap;
    }
    .barre__entrees {
        flex-direction: column;
    }
    .barre__entree {
        padding: .625rem .75rem;
        font-size: 1rem;
    }
    .recherche {
        flex: none;
        margin-left: 0;
    }
    .barre__compte {
        justify-content: space-between;
        padding-top: var(--e-3);
        border-top: 1px solid var(--h-filet);
    }
    /* Dans le repli de la barre, le compte est à gauche : son menu s'aligne à gauche. Ailleurs
       (l'administration, à 320 px) il reste calé à droite, sinon il sortait de l'écran. */
    .barre__replis .compte__menu {
        right: auto;
        left: 0;
    }
}

/* ---------- Le pied ---------- */
.pied {
    margin-top: var(--e-8);
    border-top: 1px solid var(--h-filet);
    color: var(--h-discret);
    font-size: .8125rem;
}
.pied__dedans {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--e-3) var(--e-5);
    max-width: var(--largeur);
    margin-inline: auto;
    padding: var(--e-5) var(--gouttiere);
}
.pied__fraicheur {
    display: flex;
    flex-wrap: wrap;
    gap: 0 .5rem;
    margin-right: auto;
}
@media (width < 40rem) {
    .pied__fraicheur {
        flex-direction: column;
    }
    .pied__point {
        display: none;
    }
}
.pied__marque {
    color: var(--h-encre-2);
    font-weight: 500;
}
.pied__alerte {
    color: var(--h-avertissement);
    font-weight: 600;
}
.pied__liens {
    display: flex;
    flex-wrap: wrap;
    gap: var(--e-1) var(--e-4);
}
.pied__liens a {
    color: var(--h-discret);
    text-decoration: none;
}
.pied__liens a:hover {
    color: var(--h-encre);
    text-decoration: underline;
}

/* Le choix du thème : trois pastilles, révélées par theme.js. */
.theme {
    display: inline-flex;
    gap: 2px;
    min-width: 0;
    margin: 0;
    padding: 2px;
    border: 1px solid var(--h-filet);
    border-radius: var(--rayon-pilule);
}
.theme__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.theme__choix {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.625rem;
    border-radius: var(--rayon-pilule);
    color: var(--h-discret);
    font-size: .8125rem;
    cursor: pointer;
}
.theme__choix:hover {
    color: var(--h-encre);
}
.theme__radio:checked + .theme__choix {
    background: var(--h-surface-2);
    color: var(--h-encre);
    /* Le fond seul ne distingue pas l'état choisi (1,05:1 en clair) : un filet 3:1 le dit (WCAG 1.4.11). */
    box-shadow: inset 0 0 0 1px var(--h-filet-champ);
}
.theme__radio:focus-visible + .theme__choix {
    outline: 2px solid var(--h-focus);
    outline-offset: 1px;
}

/* ---------- La colonne des notifications (notifications.js) ----------
   Une colonne escamotable, pleine hauteur sous la barre, posée contre le bord droit : elle glisse à
   l'ouverture et se range à la fermeture. Fermée, elle porte `hidden` : rien à survoler ni à atteindre
   au clavier. Le module pose chaque notification en éléments accolés (type, texte, lien, heure) : la
   grille de `.notification` les met chacun sur sa ligne. */
.notifications {
    position: fixed;
    inset: var(--hauteur-barre) 0 0 auto;
    z-index: var(--z-notification);
    display: flex;
    flex-direction: column;
    width: min(24rem, 100vw);
    border-inline-start: 1px solid var(--h-filet);
    background: var(--h-surface);
    box-shadow: var(--h-ombre-3);
    transition: translate var(--duree) ease-out;
}
@starting-style {
    .notifications:not([hidden]) {
        translate: 100% 0;
    }
}
.notifications__tete {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--e-2);
    padding: var(--e-3) var(--e-4);
    border-bottom: 1px solid var(--h-filet);
}
.notifications__titre {
    font: 700 1rem / 1.3 var(--police-edito);
}
.notifications__gestes {
    display: flex;
    align-items: center;
    gap: var(--e-1);
}
.notifications__liste {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
}
/* Vide, la liste ne prend pas la hauteur : « rien pour l'instant » reste sous l'en-tête. */
.notifications__liste:empty {
    flex: none;
}
.notification {
    display: grid;
    gap: var(--e-1);
    padding: var(--e-3) var(--e-4);
    border-bottom: 1px solid var(--h-filet);
    border-inline-start: 3px solid var(--h-filet-fort);
    font-size: var(--t-petit);
}
.notification--info { border-inline-start-color: var(--h-accent); }
.notification--succes { border-inline-start-color: var(--h-succes); }
.notification--avert { border-inline-start-color: var(--h-avertissement); }
.notification--erreur { border-inline-start-color: var(--h-danger); }
/* Lue : l'encre secondaire la distingue, le filet de son type reste. */
.notification--lue {
    color: var(--h-encre-2);
}
.notification__texte {
    overflow-wrap: anywhere;
}
.notification__lien {
    justify-self: start;
}
.notification time {
    color: var(--h-discret);
    font: var(--t-mini) var(--police-mono);
}
.notifications__vide {
    padding: var(--e-5) var(--e-4);
    color: var(--h-discret);
    font-size: var(--t-petit);
    text-align: center;
}

/* ---------- Les messages d'une redirection ---------- */
.flashs {
    display: grid;
    gap: var(--e-2);
    max-width: var(--largeur);
    margin: var(--e-4) auto 0;
    padding-inline: var(--gouttiere);
}
/* Sans message, le conteneur ne prend aucune place (la recette au pixel de l'app le mesure). */
.flashs:not(:has(.flashs__message)) {
    display: none;
}
/* Le module (notifications.js) le décolle en haut au centre là où la cloche peut le rattraper
   (`flashs--vivants`) ; sans lui, le message reste dans le flux, lisible, et rien ne l'efface. */
.flashs--vivants {
    position: fixed;
    /* Sous la barre, jamais dessus : un message fixe recouvrait le champ de recherche et les entrées
       de la barre quand ils recevaient le focus (WCAG 2.4.11). */
    top: calc(var(--hauteur-barre) + var(--e-3));
    left: 50%;
    z-index: var(--z-menu);
    width: min(34rem, calc(100vw - 2 * var(--gouttiere)));
    margin: 0;
    padding: 0;
    translate: -50% 0;
}
.flashs--vivants .flashs__message {
    box-shadow: var(--h-ombre-3);
}
/* Tant qu'un message fixe est affiché, un élément amené au focus défile sous lui, pas derrière. */
html:has(.flashs--vivants .flashs__message) {
    scroll-padding-top: calc(var(--hauteur-barre) + var(--e-3) + 5rem);
}
.flashs__message {
    display: flex;
    align-items: center;
    gap: var(--e-3);
    margin: 0;
}
.flashs__texte {
    flex: 1;
}
.flashs__fermer {
    border: 0;
    background: none;
    color: inherit;
    opacity: .7;
}

/* ---------- La délégation : un administrateur voit l'application avec l'identité d'un client ----------
   Sur un petit écran, le retour passe sous la phrase plutôt que de couper l'adresse empruntée. */
.delegation {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--e-1) var(--e-3);
    padding: .5rem var(--gouttiere);
    background: var(--h-or-doux);
    color: var(--h-or-encre);
    font-size: .875rem;
    font-weight: 500;
}
.delegation__texte {
    flex: 1 1 16rem;
    margin: 0;
    overflow-wrap: anywhere;
}
.delegation__retour {
    color: var(--h-or-encre);
    font-weight: 600;
}
}
@layer composants {
/*
 * Les boutons de Bootstrap, aux couleurs d'Heuria : leurs variables `--bs-btn-*` se règlent dans
 * socle/bootstrap-theme.css, la règle `.btn` de Bootstrap fait le reste (états, désactivé, focus).
 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    letter-spacing: -.005em;
    /* WHY : la règle `a` du socle est dans une couche au-dessus de Bootstrap ; un lien-bouton reprend ici sa couleur. */
    color: var(--bs-btn-color);
    text-decoration: none;
    transition: background-color var(--duree), border-color var(--duree), color var(--duree), box-shadow var(--duree);
}
.btn:hover {
    color: var(--bs-btn-hover-color);
    text-decoration: none;
}
.btn:active {
    color: var(--bs-btn-active-color);
}
.btn-primary {
    box-shadow: 0 1px 0 var(--h-reflet) inset, var(--h-ombre-1);
}
.btn-link {
    text-underline-offset: .18em;
}

}
@layer ecrans {
/*
 * Le site public (templates/ui/public, cms, erreur) : l'accueil, le contact, la prose d'une page du
 * CMS, les pages d'erreur.
 */

/* ---------- L'accueil ---------- */
.accueil {
    max-width: var(--largeur);
    margin-inline: auto;
    padding: 0 var(--gouttiere);
}
.accueil__une {
    position: relative;
    padding: clamp(3rem, 2rem + 6vw, 7rem) 0 clamp(2.5rem, 1.5rem + 3vw, 4rem);
    isolation: isolate;
}
/* La trame de fiche technique, qui s'efface vers la droite et vers le bas. */
.accueil__une::before {
    content: "";
    position: absolute;
    inset: 0 calc(50% - 50vw);
    z-index: var(--z-fond);
    background:
        radial-gradient(42rem 26rem at 85% 20%, color-mix(in srgb, var(--h-accent) 12%, transparent), transparent 70%),
        linear-gradient(color-mix(in srgb, var(--h-encre) 5%, transparent) 1px, transparent 1px) 0 0 / 36px 36px,
        linear-gradient(90deg, color-mix(in srgb, var(--h-encre) 5%, transparent) 1px, transparent 1px) 0 0 / 36px 36px;
    mask-image: radial-gradient(60rem 30rem at 70% 30%, black 25%, transparent 80%);
}
.accueil__surtitre {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: var(--e-5);
    padding: .3125rem .875rem .3125rem .75rem;
    border: 1px solid var(--h-filet-fort);
    border-radius: var(--rayon-pilule);
    background: var(--h-surface);
    color: var(--h-encre-2);
    font-size: .875rem;
    font-weight: 600;
}
.accueil__point {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--h-accent);
    box-shadow: 0 0 0 3px var(--h-accent-doux);
}
.accueil__titre {
    max-width: 14ch;
    color: var(--h-encre);
    font: 800 clamp(3rem, 1.6rem + 6vw, 6.5rem) / .95 var(--police-edito);
    letter-spacing: -.035em;
}
.accueil__accroche {
    max-width: 40rem;
    margin-top: var(--e-5);
    color: var(--h-encre);
    font-size: clamp(1.125rem, 1rem + .6vw, 1.4375rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -.01em;
}
.accueil__promesse {
    max-width: 38rem;
    margin-top: var(--e-3);
    color: var(--h-encre-2);
    line-height: 1.6;
}
.accueil__gestes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--e-3);
    margin-top: var(--e-6);
}

/* La démonstration : le profil saisi à gauche, l'exemple à droite, puis ce que le profil a loupé sur toute
   la largeur. WHY le replay sous les deux et non à côté : l'adresse se partage, qui l'ouvre lit d'abord le
   profil joué, puis ce qu'il a rendu. */
.accueil__demonstration {
    display: grid;
    gap: var(--e-6);
    padding: var(--e-6);
    border: 1px solid var(--h-filet);
    border-radius: var(--rayon-xl);
    background: var(--h-surface);
    box-shadow: var(--h-ombre-2);
}
.accueil__demonstration-titre {
    color: var(--h-encre);
    font: 700 1.375rem / 1.2 var(--police-edito);
    letter-spacing: -.02em;
}
.accueil__demonstration-intro {
    max-width: 44rem;
    margin-top: var(--e-2);
    color: var(--h-encre-2);
    line-height: 1.6;
}
.accueil__profil {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
    gap: var(--e-6);
    align-items: start;
}

/* Le profil, en trois lignes et des mots-clés : les jetons des critères client (composants/formulaires.css). */
.profil-public {
    display: grid;
    gap: var(--e-4);
}
.profil-public__etiquette {
    margin-bottom: 0;
}
.profil-public__facultatif {
    color: var(--h-discret);
    font-weight: 400;
}
.profil-public__zone {
    display: grid;
    gap: var(--e-2);
}
/* La visée : deux choix courts, côte à côte tant que la place le permet. */
.profil-public__visee > div {
    display: flex;
    flex-wrap: wrap;
    gap: var(--e-1) var(--e-5);
}
.profil-public__visee .form-check {
    margin-bottom: 0;
}
.profil-public__gestes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--e-3) var(--e-4);
    margin-top: var(--e-2);
}
.profil-public__garantie {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    color: var(--h-discret);
    font-size: var(--t-petit);
}

/* L'exemple : la marque de l'exemple fictif de la maquette de vision, or et pointillé, toujours avec son mot. */
.exemple-profil {
    display: grid;
    gap: var(--e-3);
    justify-items: start;
    padding: var(--e-5);
    border: 1.5px dotted var(--h-or);
    border-radius: var(--rayon-l);
    background: color-mix(in srgb, var(--h-or-doux) 45%, var(--h-surface));
}
.exemple-profil__pastille {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .0625rem .5rem .0625rem .375rem;
    border: 1.5px dotted var(--h-or);
    border-radius: var(--rayon-pilule);
    background: var(--h-or-doux);
    color: var(--h-or-encre);
    font: 600 .75rem / 1.5 var(--police-texte);
    white-space: nowrap;
}
.exemple-profil__pastille::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border: 1.5px dotted currentColor;
    border-radius: 50%;
}
.exemple-profil__titre {
    color: var(--h-encre);
    font: 700 1.0625rem / 1.3 var(--police-edito);
    letter-spacing: -.01em;
}
.exemple-profil__criteres {
    display: grid;
    gap: var(--e-3);
    margin: 0;
    font-size: var(--t-petit);
}
.exemple-profil__criteres dt {
    color: var(--h-discret);
    font-size: var(--t-micro);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.exemple-profil__criteres dd {
    margin: .125rem 0 0;
    color: var(--h-encre-2);
    line-height: 1.5;
}
.exemple-profil__liste {
    margin: 0;
    padding: 0;
    list-style: none;
}
.exemple-profil__noms {
    display: block;
    color: var(--h-discret);
}

/* Ce que le profil a loupé : les niveaux et les cartes d'« Aujourd'hui » (ecrans/aujourdhui.css). */
.replay-public {
    display: grid;
    gap: var(--e-5);
    padding-top: var(--e-6);
    border-top: 1px solid var(--h-filet);
    scroll-margin-top: calc(var(--hauteur-barre) + var(--e-4));
}
.replay-public:focus {
    outline: none;
}
.replay-public__tete {
    display: grid;
    gap: var(--e-2);
}
.replay-public__titre {
    color: var(--h-encre);
    font: 700 1.25rem / 1.25 var(--police-edito);
    letter-spacing: -.015em;
}
.replay-public__fenetre {
    color: var(--h-encre-2);
    line-height: 1.6;
}
.replay-public__total {
    color: var(--h-encre);
    font-variant-numeric: tabular-nums lining-nums;
}
.replay-public__source,
.replay-public__fraicheur {
    color: var(--h-discret);
    font-size: var(--t-petit);
}
.replay-public .niveau + .niveau {
    margin-top: 0;
}
.replay-public .avis-semaine {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
    align-items: start;
}
.replay-public__pied {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--e-2) var(--e-4);
}
.replay-public__pied a {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-weight: 600;
}
.replay-public__reserve {
    color: var(--h-discret);
    font-size: var(--t-petit);
}

.accueil__faits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: var(--e-6);
    margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}
.fait__icone {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: var(--e-4);
    border-radius: var(--rayon);
    background: var(--h-accent-doux);
    color: var(--h-accent-encre);
    font-size: 1.125rem;
}
.fait__titre {
    margin-bottom: var(--e-2);
    color: var(--h-encre);
    font: 700 1.1875rem / 1.25 var(--police-edito);
    letter-spacing: -.015em;
}
.fait__texte {
    color: var(--h-encre-2);
    line-height: 1.6;
}

.accueil__essai {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--e-5);
    margin-top: clamp(3rem, 2rem + 3vw, 5rem);
    padding: clamp(1.75rem, 1rem + 3vw, 3rem);
    border-radius: var(--rayon-xl);
    background:
        radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--h-nuit-accent) 30%, transparent), transparent 60%),
        var(--h-nuit-fond);
    color: var(--h-nuit-encre);
}
.accueil__essai-titre {
    max-width: 28ch;
    color: var(--h-nuit-titre);
    font: 800 clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem) / 1.1 var(--police-edito);
    letter-spacing: -.03em;
}
.accueil__essai-texte {
    margin-top: var(--e-2);
    color: var(--h-nuit-encre-2);
}

@media (width < 64rem) {
    .accueil__profil {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (width < 48rem) {
    .accueil__demonstration {
        gap: var(--e-5);
        padding: var(--e-5) var(--e-4);
    }
}

/* ---------- Le contact ---------- */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 40rem);
    justify-content: center;
    padding: clamp(2rem, 1rem + 3vw, 4rem) var(--gouttiere) 0;
}
.contact__tete {
    margin-bottom: var(--e-6);
}
.contact__titre {
    color: var(--h-encre);
    font: 800 clamp(2rem, 1.4rem + 2vw, 2.875rem) / 1.05 var(--police-edito);
    letter-spacing: -.035em;
}
.contact__intro {
    margin-top: var(--e-4);
    color: var(--h-encre-2);
    font-size: 1.0625rem;
    line-height: 1.55;
}
.contact__formulaire {
    padding: clamp(1.25rem, .75rem + 2vw, 2.25rem);
    border: 1px solid var(--h-filet);
    border-radius: var(--rayon-xl);
    background: var(--h-surface);
    box-shadow: var(--h-ombre-2);
}
.contact__champs {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.contact__paire {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    column-gap: var(--e-4);
}
.contact__traitement {
    display: flex;
    gap: .5rem;
    margin-bottom: var(--e-3);
    color: var(--h-discret);
    font-size: .8125rem;
    line-height: 1.5;
}
.contact__traitement .bi {
    color: var(--h-accent);
}

/* ---------- Une page du CMS : la prose ---------- */
.page-cms {
    max-width: 44rem;
    margin-inline: auto;
    padding: clamp(2rem, 1rem + 3vw, 4rem) var(--gouttiere) 0;
}
.page-cms__titre {
    margin-bottom: var(--e-6);
    color: var(--h-encre);
    font: 800 clamp(2rem, 1.4rem + 2vw, 3rem) / 1.05 var(--police-edito);
    letter-spacing: -.035em;
}
.page-cms__apercu {
    margin-bottom: var(--e-5);
}
.prose {
    color: var(--h-encre-2);
    font-size: 1.0625rem;
    line-height: 1.75;
}
.prose > * + * {
    margin-top: 1.1em;
}
.prose h2 {
    margin-top: 2.2em;
    color: var(--h-encre);
    font: 700 1.5rem / 1.25 var(--police-edito);
    letter-spacing: -.02em;
}
.prose h3 {
    margin-top: 1.8em;
    color: var(--h-encre);
    font: 700 1.1875rem / 1.3 var(--police-edito);
}
.prose ul,
.prose ol {
    padding-left: 1.25em;
}
.prose li + li {
    margin-top: .35em;
}
.prose li::marker {
    color: var(--h-accent);
}
.prose a {
    font-weight: 500;
}
.prose blockquote {
    margin-inline: 0;
    padding: .25em 0 .25em 1.25em;
    border-left: 3px solid var(--h-accent);
    color: var(--h-encre);
    font-size: 1.125rem;
    font-style: italic;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9375rem;
}
.prose th {
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--h-filet-fort);
    color: var(--h-discret);
    font-size: var(--t-micro);
    font-weight: 600;
    letter-spacing: .07em;
    text-align: left;
    text-transform: uppercase;
}
.prose td {
    padding: .625rem .75rem;
    border-bottom: 1px solid var(--h-filet);
}

/* ---------- Les pages d'erreur ---------- */
.barre--seule .barre__dedans {
    justify-content: flex-start;
}
.erreur {
    position: relative;
    display: grid;
    justify-items: center;
    max-width: 36rem;
    margin-inline: auto;
    padding: clamp(3rem, 2rem + 8vh, 8rem) var(--gouttiere) var(--e-7);
    text-align: center;
    isolation: isolate;
}
.erreur__code {
    position: absolute;
    top: clamp(1rem, 4vh, 3rem);
    z-index: var(--z-fond);
    color: transparent;
    font: 800 clamp(8rem, 5rem + 14vw, 15rem) / 1 var(--police-edito);
    letter-spacing: -.06em;
    -webkit-text-stroke: 1.5px var(--h-filet-fort);
    user-select: none;
}
.erreur__icone {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: var(--e-5);
    border-radius: var(--rayon-l);
    background: var(--h-surface);
    border: 1px solid var(--h-filet);
    box-shadow: var(--h-ombre-2);
    color: var(--h-accent);
    font-size: 1.5rem;
}
.erreur__titre {
    color: var(--h-encre);
    font: 800 clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem) / 1.1 var(--police-edito);
    letter-spacing: -.03em;
}
.erreur__explication {
    margin-top: var(--e-4);
    color: var(--h-encre-2);
    font-size: 1.0625rem;
    line-height: 1.6;
}
.erreur__geste,
.erreur__retour {
    margin-top: var(--e-6);
}
.erreur__geste + .erreur__retour {
    margin-top: var(--e-3);
}
}
@layer site {
/* La landing de heuria.fr : une affiche de lancement qui tient dans la fenêtre, sur la charte de l'application (jetons,
   polices, point sarcelle, or, trame de fiche technique). Les feuilles de l'app donnent la barre, le pied, les boutons
   et la prose ; le reste est ici. L'idée : trois fiches rangées, et ce sont les trois capacités
   elles-mêmes. Rien ne bouge en continu : Mathieu a écarté le flux animé et les points animés (2026-11-04). */

/* ---------- Coque : évitement, bascule du thème, prose des mentions ---------- */
.evitement { position: absolute; left: -999rem; }
.evitement:focus { left: var(--e-3); top: var(--e-3); z-index: calc(var(--z-barre) + 1); padding: var(--e-2) var(--e-3); background: var(--h-surface); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.barre__site { display: flex; align-items: center; gap: var(--e-3); margin-inline-start: auto; }
.barre .marque { padding-block: .375rem; }
#theme { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid var(--h-filet-fort); border-radius: 50%; background: transparent; color: var(--h-encre-2); cursor: pointer; }
#theme:hover { color: var(--h-lien); border-color: var(--h-lien); }
#theme svg { width: 1rem; height: 1rem; }
#theme .soleil, :root[data-theme="dark"] #theme .lune { display: none; }
:root[data-theme="dark"] #theme .soleil { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) #theme .soleil { display: block; }
    :root:not([data-theme="light"]) #theme .lune { display: none; }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* Le pied, court : l'affiche tient dans la fenêtre avec lui. */
.pied { margin-top: 0; }
.pied__dedans { padding-block: var(--e-3); }
.pied__liens a { display: inline-block; padding-block: .25rem; }
.prose dl { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: var(--e-1) var(--e-5); }
.prose dt { color: var(--h-discret); }
.prose dd { color: var(--h-encre-2); }
@media (width < 38rem) {
    .prose dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .prose dd { margin-bottom: var(--e-2); }
}

/* ---------- La page : centrée dans ce que la barre et le pied laissent ---------- */
.contenu { display: grid; align-content: center; }
.lp { overflow-x: clip; }
.lp .btn { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.lp .btn-lg { --bs-btn-padding-x: 1.125rem; --bs-btn-padding-y: .625rem; --bs-btn-font-size: .9375rem; }
.lp .btn svg { flex: none; width: 1rem; height: 1rem; transition: transform var(--duree); }
.lp .btn:hover svg { transform: translateX(3px); }

/* ---------- L'affiche : le texte à gauche, la scène à droite ---------- */
.une {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
    grid-template-rows: auto auto;
    gap: 0 clamp(2rem, 1rem + 4vw, 5rem);
    align-items: center;
    max-width: var(--largeur);
    width: 100%;
    margin-inline: auto;
    padding: clamp(1.5rem, 3vh, 3rem) var(--gouttiere);
}
/* La trame de fiche technique et une lueur sarcelle derrière la scène, sur toute la largeur. */
.une::before {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--hauteur-barre)) calc(50% - 50vw) -6rem;
    z-index: var(--z-fond);
    background:
        radial-gradient(44rem 30rem at 76% 50%, color-mix(in srgb, var(--h-accent) 16%, transparent), transparent 70%),
        radial-gradient(20rem 16rem at 96% 95%, color-mix(in srgb, var(--h-or) 8%, transparent), transparent 70%),
        linear-gradient(color-mix(in srgb, var(--h-encre) 5%, transparent) 1px, transparent 1px) 0 0 / 36px 36px,
        linear-gradient(90deg, color-mix(in srgb, var(--h-encre) 5%, transparent) 1px, transparent 1px) 0 0 / 36px 36px;
    mask-image: radial-gradient(70rem 44rem at 62% 45%, black 25%, transparent 80%);
}
.une__texte { grid-column: 1; grid-row: 1; align-self: end; max-width: 34rem; }
.une__scene { grid-column: 2; grid-row: 1 / 3; }
.une__etat {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: var(--e-4);
    padding: .25rem .875rem .25rem .625rem;
    border: 1px solid var(--h-filet-fort);
    border-radius: var(--rayon-pilule);
    background: color-mix(in srgb, var(--h-surface) 80%, transparent);
    color: var(--h-encre-2);
    font-size: .875rem;
    font-weight: 600;
}
.une__point {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--h-accent);
    box-shadow: 0 0 0 3px var(--h-accent-doux);
}
/* Le nom : la taille de la home de l'application, et le seul très grand élément de la page. */
.une__titre {
    margin-left: -.04em;
    color: var(--h-encre);
    font: 800 clamp(3rem, 1.6rem + 6vw, 6.5rem) / .9 var(--police-edito);
    letter-spacing: -.04em;
    text-wrap: nowrap;
}
.une__accroche {
    max-width: 26ch;
    margin-top: var(--e-5);
    color: var(--h-encre);
    font: 600 clamp(1.25rem, 1rem + .7vw, 1.5rem) / 1.25 var(--police-edito);
    letter-spacing: -.02em;
    text-wrap: pretty;
}
.une__public {
    margin-top: var(--e-3);
    color: var(--h-encre-2);
    font-size: var(--t-base);
    line-height: 1.5;
}

/* La démo privée, sous l'accroche : un filet, le titre, la phrase, les deux gestes. */
.demo {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    max-width: 32rem;
    margin-top: clamp(1.25rem, 3vh, 2.25rem);
    padding-top: clamp(1rem, 2.5vh, 1.75rem);
    border-top: 1px solid var(--h-filet-fort);
}
.demo__titre {
    color: var(--h-encre);
    font: 700 1.25rem / 1.2 var(--police-edito);
    letter-spacing: -.02em;
}
.demo__phrase {
    margin-top: var(--e-2);
    color: var(--h-encre-2);
    font-size: var(--t-base);
    line-height: 1.5;
    text-wrap: pretty;
}
.demo__phrase a { font-weight: 600; }
.demo__gestes { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-3); margin-top: var(--e-4); }

/* ---------- La scène : les trois cartes ---------- */
.une__scene { position: relative; min-width: 0; }
.cartes { display: grid; gap: clamp(.75rem, 1.8vh, 1.25rem); padding-left: clamp(1rem, 4vw, 3.5rem); }
.carte {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: var(--e-4);
    align-items: start;
    padding: clamp(.875rem, 1.8vh, 1.25rem) clamp(1rem, 1.5vw, 1.5rem);
    border: 1px solid var(--h-filet-fort);
    border-radius: var(--rayon-xl);
    background: var(--h-surface);
    box-shadow: var(--h-ombre-3);
    opacity: 0;
    animation: allumer 1s cubic-bezier(.2, .7, .2, 1) forwards;
}
.carte--1 { animation-delay: .2s; }
.carte--2 { animation-delay: .7s; }
.carte--3 { animation-delay: 1.2s; }
@keyframes allumer {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: none; }
}
.carte__niveau {
    position: relative;
    display: grid;
    place-items: center;
    grid-row: 1 / 3;
    width: 2rem;
    height: 2rem;
    margin-top: .125rem;
    border-radius: .5rem;
    background: var(--h-accent-doux);
}
.carte__niveau > * { grid-area: 1 / 1; }
.carte__point { width: .625rem; height: .625rem; border-radius: 50%; background: var(--h-accent); }
.carte__halo {
    width: .625rem;
    height: .625rem;
    border-radius: 50%;
    background: var(--h-accent);
    opacity: .4;
}
.carte__titre {
    color: var(--h-encre);
    font: 700 1.375rem / 1.2 var(--police-edito);
    letter-spacing: -.02em;
}
.carte__texte {
    grid-column: 2 / 4;
    margin-top: var(--e-1);
    color: var(--h-encre-2);
    font-size: .9375rem;
    line-height: 1.5;
    text-wrap: pretty;
}

/* ---------- Écrans ---------- */
/* WHY 60rem et non 64 : une fenêtre de 1024 px avec sa barre de défilement laisse 1010 px, et l'affiche doit y rester en deux colonnes. */
@media (width < 60rem) {
    .contenu { align-content: start; }
    .une { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: var(--e-6); align-items: start; padding-block: var(--e-6); }
    .une__texte, .une__scene, .demo { grid-column: 1; grid-row: auto; max-width: 38rem; }
    .demo { margin-top: 0; }
    .cartes { padding-left: 0; }
}
@media (width < 40rem) {
    .une__titre { font-size: clamp(3rem, 1rem + 13vw, 4.5rem); }
    .lp .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .lp .btn svg { transition: none; }
    .carte { animation: none; opacity: 1; }
}
}
