/* ==========================================================================
   SINAL — Division Scientifique
   Système de design : « carnet de laboratoire »
   --------------------------------------------------------------------------
   1. Jetons (couleurs, typographie, espacements)
   2. Base et réinitialisation
   3. Typographie
   4. Mise en page (conteneur, sections, grille)
   5. Motifs signature (règle graduée, tracé, surligneur, figure)
   6. Composants (boutons, liens, étiquettes, fil d'Ariane, formulaires…)
   7. En-tête, navigation, menu mobile
   8. Pied de page
   9. Mouvement (révélations, chargement, transitions de page)
   10. Impression
   ========================================================================== */

/* 1. Jetons ---------------------------------------------------------------- */
:root {
    /* Couleurs de marque, relevées sur le logotype SINAL */
    --brand: #0f75bc;          /* bleu SINAL : aplats, bandeau, sections fortes */
    --blue: #0f75bc;           /* même bleu, employé comme accent sur fond clair */
    --blue-deep: #0a5c97;      /* bleu assombri pour les petits textes (contraste AA) */
    --blue-tint: #e3eff8;
    --yellow: #ffe800;         /* jaune SINAL */

    /* Encre (bleu nuit dérivé du bleu de marque) et fonds clairs */
    --ink: #0b2a45;
    --ink-2: #17405f;
    --ink-soft: #35536d;
    --muted: #4a5f72;          /* gris bleuté, assombri pour rester lisible (AA) sur le fond bleu */
    --paper: #ffffff;          /* papier : blanc, comme le fond du logotype */
    --paper-2: #edf4fa;        /* tuiles et remplissages : bleu SINAL très dilué */
    --page: #d9e8f5;           /* fond de page : bleu SINAL clair, les tuiles s'y détachent */
    --band: #c5dcf0;           /* bandes alternées : un cran plus soutenu que la page */
    --white: #ffffff;
    --line: #c9d6e2;
    --line-soft: #dde6ee;
    --line-dark: rgba(255, 255, 255, 0.22);

    --success: #1f7a4d;
    --danger: #b3261e;
    --warning: #9a6700;

    /* Typographie : une seule famille, Plus Jakarta Sans — titres en gras, texte courant,
       étiquettes en capitales espacées. Les trois jetons sont conservés : changer de police
       se fait ici (et dans le lien Google Fonts du gabarit), nulle part ailleurs.
       Ancien système, pour mémoire : Newsreader (titres), IBM Plex Sans (texte), IBM Plex Mono (étiquettes). */
    --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: var(--font-sans);
    --font-text: var(--font-sans);
    --font-mono: var(--font-sans);

    --step--1: clamp(0.9375rem, 0.92rem + 0.1vw, 1rem);
    --step-0: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
    --step-1: clamp(1.25rem, 1.15rem + 0.35vw, 1.4375rem);
    --step-2: clamp(1.5rem, 1.3rem + 0.7vw, 1.9375rem);
    --step-3: clamp(1.75rem, 1.45rem + 1.5vw, 2.75rem);
    --step-4: clamp(2rem, 1.55rem + 2.3vw, 3.75rem);
    --step-5: clamp(2.25rem, 1.4rem + 4.2vw, 5.5rem);

    /* Espacements */
    --gutter: clamp(1.25rem, 0.6rem + 2.8vw, 3rem);
    --section: clamp(4.5rem, 3rem + 7vw, 9rem);
    --container: 85rem;

    /* Mouvement */
    --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --fast: 180ms;
    --base: 420ms;
    --slow: 900ms;

    /* --header-h (encombrement de l'en-tête flottant) : voir « 7. En-tête » */
    --radius: 2px;
    /* Rayon des grandes tuiles (bento, cartes illustrées) ; les commandes sont des capsules */
    --tile-radius: clamp(1.25rem, 0.9rem + 1.4vw, 2.25rem);
    --pill: 999px;
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: var(--step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

img,
svg,
video,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

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

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

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

::selection {
    background: var(--yellow);
    color: var(--ink);
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: var(--step--1);
    transition: top var(--fast) var(--ease);
}

.skip-link:focus {
    top: 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

main:focus {
    outline: none;
}

/* 3. Typographie ----------------------------------------------------------- */
h1, h2, h3, .display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-wrap: balance;
    /* Coupure française automatique : un long mot en gras ne fait plus déborder la page sur mobile */
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

h1, .h1 { font-size: var(--step-5); letter-spacing: -0.04em; line-height: 1.04; font-weight: 700; }
h2, .h2 { font-size: var(--step-4); letter-spacing: -0.035em; line-height: 1.06; }
h3, .h3 { font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
h4, .h4 { font-family: var(--font-text); font-size: var(--step-0); font-weight: 600; line-height: 1.3; }

/* Mot d'accent d'un titre : la couleur, plus l'italique (qui n'existe pas en gras net) */
h1 em, h2 em, h3 em, .display em {
    font-style: normal;
    font-weight: inherit;
    color: var(--blue);
}

p {
    text-wrap: pretty;
}

/* Titre géant : accueil et ouvertures de page. Le mot en <em> prend la couleur de marque. */
.display-xl {
    font-size: clamp(2.25rem, 1.3rem + 4.2vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.display-xl em {
    font-style: normal;
    color: var(--blue);
}

.section--ink .display-xl em {
    color: var(--yellow);
}

/* Grand chiffre au contour (numéros de tuiles, filigranes) */
.outline-num {
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 2px var(--outline, var(--brand));
}

.lede {
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 38em;
}

.mono {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: var(--step--1);
    letter-spacing: 0.02em;
}

.muted {
    color: var(--muted);
}

/* Étiquette de section : « 02 — Départements » */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.eyebrow__num {
    display: inline-grid;
    place-items: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.55rem;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}

.eyebrow--light {
    color: rgba(255, 255, 255, 0.72);
}

/* Contenu éditorial issu du back-office */
.prose {
    max-width: 44em;
    color: var(--ink-2);
}

.prose > * + * {
    margin-top: 1.1em;
}

.prose h2,
.prose h3,
.prose h4,
.prose h5 {
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 1.8em;
    color: var(--ink);
}

.prose ul,
.prose ol {
    padding-left: 1.25em;
}

.prose li + li {
    margin-top: 0.4em;
}

.prose ul li::marker {
    color: var(--blue);
}

.prose a {
    color: var(--blue-deep);
    text-decoration: underline;
}

.prose a:hover {
    color: var(--ink);
    background: var(--yellow);
    text-decoration: none;
}

.prose strong,
.prose b {
    font-weight: 600;
    color: var(--ink);
}

.prose img {
    margin-block: 1.5em;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--step--1);
}

.prose th,
.prose td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: left; }

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

.container--narrow {
    max-width: 62rem;
}

.section {
    padding-block: var(--section);
    position: relative;
}

.section--tight {
    padding-block: calc(var(--section) * 0.6);
}

/* Ancienne bande blanche : elle prend désormais le fond de page */
.section--white {
    background: transparent;
}

/* Bande alternée : bleu plus soutenu que la page, les tuiles blanches s'y détachent */
.section--paper2,
.section--tint {
    background: var(--band);
}

/* Deux sections blanches consécutives sont séparées par un filet */
.section:not([class*="section--"]) + .section:not([class*="section--"]),
.section:not([class*="section--"]) + .section--white,
.section--white + .section:not([class*="section--"]),
.section--white + .section--white {
    border-top: 1px solid var(--line);
}

/* Section forte : aplat bleu SINAL, texte blanc, accents jaunes.
   Les accents « bleus » y deviennent jaunes ou blancs pour rester lisibles. */
.section--ink {
    background: var(--brand);
    color: var(--white);
    --line: rgba(255, 255, 255, 0.3);
    --line-soft: rgba(255, 255, 255, 0.2);
    --muted: rgba(255, 255, 255, 0.86);
    --ink-soft: rgba(255, 255, 255, 0.92);
    --blue: var(--yellow);
    --blue-deep: var(--white);
    --paper: var(--white);
}

.section--ink .eyebrow {
    color: rgba(255, 255, 255, 0.9);
}

.section--ink ::selection {
    background: var(--yellow);
    color: var(--ink);
}

.section--yellow {
    background: var(--yellow);
    color: var(--ink);
    --line: rgba(11, 42, 69, 0.25);
}

.section__head {
    display: grid;
    gap: 1.5rem 3rem;
    margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
}

.section__head .eyebrow {
    margin-bottom: 0.5rem;
}

@media (min-width: 900px) {
    .section__head {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        align-items: end;
    }

    .section__head > .eyebrow {
        grid-column: 1 / -1;
    }
}

.section__aside {
    color: var(--ink-soft);
    max-width: 30em;
}

.section__aside .link-arrow {
    margin-top: 1.25rem;
}

.grid {
    display: grid;
    gap: var(--gutter);
}

@media (min-width: 900px) {
    .grid--12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

/* 5. Motifs signature ------------------------------------------------------ */

/* Règle graduée : une graduation tous les 8 px, une longue tous les 40 px */
.ruler {
    display: block;
    height: 14px;
    color: var(--ink);
    border-top: 1px solid currentColor;
    background:
        repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 40px) left top / 100% 14px no-repeat,
        repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px) left top / 100% 6px no-repeat;
    opacity: 0.55;
}

.section--ink .ruler {
    color: var(--white);
    opacity: 0.55;
}

/* Tracé de chromatogramme (SVG) — se dessine à l'apparition */
.trace {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.trace__line {
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.trace__base {
    stroke: var(--line);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.js .trace[data-trace] .trace__line {
    stroke-dasharray: var(--trace-length, 4000);
    stroke-dashoffset: var(--trace-length, 4000);
}

.js .trace[data-trace].is-drawn .trace__line {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 2.4s var(--ease-in-out);
}

/* Surligneur jaune : un mot clé par titre, pas davantage */
.mark {
    background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding-inline: 0.06em;
    margin-inline: -0.06em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.js [data-reveal] .mark,
.js .mark[data-reveal] {
    background-size: 0% 100%;
    transition: background-size 0.9s var(--ease) 0.35s;
}

.js [data-reveal].is-visible .mark,
.js .mark[data-reveal].is-visible {
    background-size: 100% 100%;
}

/* Figure légendée, façon publication scientifique */
.figure {
    position: relative;
}

.figure__media {
    position: relative;
    overflow: hidden;
    background: var(--paper-2);
}

.figure__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.figure__cap {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--muted);
}

.figure__cap b {
    flex: none;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section--ink .figure__cap b {
    color: var(--paper);
}

/* Repères d'angle, comme sur un cliché de microscope */
.crop-marks {
    position: relative;
}

.crop-marks::before,
.crop-marks::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--ink);
    pointer-events: none;
    z-index: 2;
}

.crop-marks::before {
    top: -7px;
    left: -7px;
    border-right: 0;
    border-bottom: 0;
}

.crop-marks::after {
    bottom: -7px;
    right: -7px;
    border-left: 0;
    border-top: 0;
}

/* 6. Composants ------------------------------------------------------------ */

/* Icônes */
.icon {
    flex: none;
}

/* Bouton capsule — LE bouton du site.
   <a class="btn" href="…"><span>Libellé</span>[icône]</a>
   L'icône placée après le libellé devient une pastille ronde. Au survol, une vague
   jaune naît sous la pastille et gagne toute la capsule ; l'icône sort d'un côté et
   rentre de l'autre ; le bouton se soulève, puis s'enfonce au clic.
   Variantes : --ghost (contour), --yellow, --ink, --sm, --xl, --block.
   Sans pastille (libellé seul), la vague part du point d'entrée du pointeur (main.js)
   ou, à défaut, du centre. */
.btn {
    --btn-h: 3.5rem;
    --btn-badge: 2.5rem;
    --btn-pad: 1.75rem;
    --btn-inset: calc((var(--btn-h) - var(--btn-badge)) / 2);
    --btn-bg: var(--brand);
    --btn-fg: var(--white);
    --btn-fill: var(--yellow);
    --btn-fill-fg: var(--ink);
    --btn-badge-bg: var(--white);
    --btn-badge-fg: var(--brand);
    --btn-badge-on-bg: var(--ink);
    --btn-badge-on-fg: var(--yellow);
    --btn-ring: transparent;
    --btn-shadow: 0 14px 28px -16px rgba(15, 117, 188, 0.95);
    --btn-shadow-on: 0 22px 34px -18px rgba(11, 42, 69, 0.7);

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: var(--btn-h);
    padding: var(--btn-inset) var(--btn-pad);
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 0;
    border-radius: 999px;
    font-family: var(--font-text);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    text-wrap: balance;
    isolation: isolate;
    overflow: hidden;
    box-shadow: var(--btn-shadow), inset 0 0 0 1.5px var(--btn-ring);
    translate: var(--mag-x, 0) var(--mag-y, 0); /* aimantation légère, pilotée par main.js */
    -webkit-tap-highlight-color: transparent;
    transition:
        color 0.45s var(--ease),
        transform 0.45s var(--ease),
        translate 0.35s var(--ease),
        box-shadow 0.45s var(--ease);
}

/* La vague : un disque assez grand pour couvrir la capsule quelle que soit sa largeur */
.btn::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: var(--wave-x, 50%);
    top: var(--wave-y, 50%);
    width: 230%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--btn-fill);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.75s var(--ease);
    pointer-events: none;
}

/* Pastille : l'icône qui suit le libellé */
.btn > .icon:last-child:not(:only-child) {
    box-sizing: border-box;
    width: var(--btn-badge);
    height: var(--btn-badge);
    padding: calc((var(--btn-badge) - 1.15rem) / 2);
    margin-right: calc(var(--btn-inset) - var(--btn-pad));
    border-radius: 50%;
    background: var(--btn-badge-bg);
    color: var(--btn-badge-fg);
    stroke-width: 2.1;
    overflow: visible;
    clip-path: circle(50%);
    transition: background-color 0.45s var(--ease), color 0.45s var(--ease), transform 0.55s var(--ease);
}

/* Avec pastille, la vague part de dessous la pastille */
.btn:has(> .icon:last-child:not(:only-child))::before {
    left: calc(100% - var(--btn-inset) - var(--btn-badge) / 2);
    top: 50%;
}

/* Icône placée avant le libellé : simple pictogramme */
.btn > .icon:first-child:not(:only-child) {
    width: 1.2rem;
    height: 1.2rem;
    margin-left: -0.2rem;
    stroke-width: 2;
}

.btn:hover,
.btn:focus-visible {
    color: var(--btn-fill-fg);
}

.btn:hover::before,
.btn:focus-visible::before {
    transform: translate(-50%, -50%) scale(1);
}

@media (hover: hover) {
    .btn:hover {
        transform: translateY(-3px);
        box-shadow: var(--btn-shadow-on), inset 0 0 0 1.5px var(--btn-ring);
    }
}

.btn:hover > .icon:last-child:not(:only-child),
.btn:focus-visible > .icon:last-child:not(:only-child) {
    background: var(--btn-badge-on-bg);
    color: var(--btn-badge-on-fg);
    transform: scale(1.06);
}

.btn:hover > .icon:last-child:not(:only-child) > *,
.btn:focus-visible > .icon:last-child:not(:only-child) > * {
    animation: icon-swap 0.6s var(--ease) both;
}

/* L'icône quitte la pastille par la droite et revient par la gauche */
@keyframes icon-swap {
    0% { transform: translateX(0); }
    45% { transform: translateX(240%); }
    45.01% { transform: translateX(-240%); }
    100% { transform: translateX(0); }
}

.btn:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.12s;
}

.btn:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 4px;
}

/* Tailles */
.btn--sm {
    --btn-h: 2.75rem;
    --btn-badge: 1.9rem;
    --btn-pad: 1.3rem;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.btn--sm > .icon:last-child:not(:only-child) {
    padding: calc((var(--btn-badge) - 0.95rem) / 2);
}

.btn--xl {
    --btn-h: clamp(4rem, 3.4rem + 2vw, 5.25rem);
    --btn-badge: clamp(3rem, 2.5rem + 1.6vw, 4rem);
    --btn-pad: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
    gap: 1.5rem;
    font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.625rem);
    letter-spacing: -0.02em;
}

.btn--xl > .icon:last-child:not(:only-child) {
    padding: calc((var(--btn-badge) - 1.5rem) / 2);
}

.btn--block {
    display: flex;
    width: 100%;
}

/* Variantes de couleur */
.btn--ghost {
    --btn-bg: var(--white);
    --btn-fg: var(--ink);
    --btn-ring: var(--ink);
    --btn-badge-bg: var(--ink);
    --btn-badge-fg: var(--white);
    --btn-shadow: 0 0 0 0 transparent;
    --btn-shadow-on: 0 18px 28px -18px rgba(11, 42, 69, 0.6);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    --btn-ring: var(--yellow);
}

.btn--yellow {
    --btn-bg: var(--yellow);
    --btn-fg: var(--ink);
    --btn-fill: var(--white);
    --btn-badge-bg: var(--ink);
    --btn-badge-fg: var(--yellow);
    --btn-badge-on-bg: var(--brand);
    --btn-badge-on-fg: var(--white);
    --btn-shadow: 0 14px 28px -16px rgba(255, 232, 0, 0.8);
}

.btn--ink {
    --btn-bg: var(--ink);
    --btn-badge-fg: var(--ink);
    --btn-shadow: 0 14px 28px -16px rgba(11, 42, 69, 0.9);
}

.btn--blue {
    --btn-bg: var(--brand);
}

/* Sur l'aplat bleu : capsule blanche, pastille bleue */
.section--ink .btn:not(.btn--ghost):not(.btn--yellow) {
    --btn-bg: var(--white);
    --btn-fg: var(--ink);
    --btn-badge-bg: var(--brand);
    --btn-badge-fg: var(--white);
    --btn-shadow: 0 16px 30px -18px rgba(6, 24, 42, 0.8);
}

.section--ink .btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--white);
    --btn-ring: rgba(255, 255, 255, 0.85);
    --btn-fill: var(--white);
    --btn-badge-bg: var(--white);
    --btn-badge-fg: var(--ink);
}

.section--ink .btn--ghost:hover,
.section--ink .btn--ghost:focus-visible {
    --btn-ring: var(--white);
}

.section--ink .btn:focus-visible,
.site-footer .btn:focus-visible {
    outline-color: var(--white);
}

/* Sur l'aplat jaune : la vague est bleu nuit */
.section--yellow .btn {
    --btn-fill: var(--ink);
    --btn-fill-fg: var(--white);
    --btn-badge-on-bg: var(--yellow);
    --btn-badge-on-fg: var(--ink);
    --btn-shadow: 0 16px 30px -18px rgba(11, 42, 69, 0.75);
}

.section--yellow .btn--ghost {
    --btn-bg: transparent;
}

.section--yellow .btn--ghost:hover,
.section--yellow .btn--ghost:focus-visible {
    --btn-ring: var(--ink);
}

/* États */
.btn[disabled],
.btn[aria-disabled="true"] {
    opacity: 0.45;
    pointer-events: none;
    box-shadow: inset 0 0 0 1.5px var(--btn-ring);
}

.btn.is-loading {
    pointer-events: none;
}

.btn.is-loading > .icon:last-child:not(:only-child) > * {
    animation: icon-swap 0.9s var(--ease-in-out) infinite;
}

/* Lien fléché : libellé en gras et pastille-flèche au contour fin.
   Au survol, la pastille se remplit de jaune, la flèche fait un tour, un trait se trace sous le texte. */
.link-arrow {
    --la-badge: 2.25rem;
    --la-gap: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: var(--la-gap);
    font-family: var(--font-text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1.2;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) left calc(50% + 0.8em) / 0 2px no-repeat;
    transition: background-size 0.5s var(--ease);
}

.link-arrow > .icon {
    box-sizing: border-box;
    width: var(--la-badge);
    height: var(--la-badge);
    padding: calc((var(--la-badge) - 1rem) / 2);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px currentColor;
    stroke-width: 2;
    overflow: visible;
    clip-path: circle(50%);
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.5s var(--ease);
}

/* Flèche placée avant le texte (liens « retour ») : le trait part de la droite */
.link-arrow:has(> .icon:first-child) {
    background-position: right calc(50% + 0.8em);
}

.link-arrow:hover,
.link-arrow:focus-visible {
    background-size: calc(100% - var(--la-badge) - var(--la-gap)) 2px;
}

.link-arrow:hover > .icon,
.link-arrow:focus-visible > .icon {
    background: var(--yellow);
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--yellow);
    transform: scale(1.08);
}

.link-arrow:hover > .icon > *,
.link-arrow:focus-visible > .icon > * {
    animation: icon-swap 0.6s var(--ease) both;
}

.link-arrow:hover > .icon--arrow-left > *,
.link-arrow:focus-visible > .icon--arrow-left > * {
    animation-direction: reverse;
}

.section--yellow .link-arrow:hover > .icon,
.section--yellow .link-arrow:focus-visible > .icon {
    background: var(--ink);
    color: var(--yellow);
    box-shadow: inset 0 0 0 1.5px var(--ink);
}

/* Lien de texte courant */
.link {
    text-decoration: underline;
    text-decoration-color: var(--blue);
    transition: background-color var(--fast), color var(--fast);
}

.link:hover {
    background: var(--yellow);
    text-decoration-color: transparent;
}

/* Étiquettes */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    text-decoration: none;
    color: var(--ink-soft);
    background: transparent;
    transition: background-color var(--fast), color var(--fast), border-color var(--fast);
}

a.tag:hover,
a.tag:focus-visible,
.tag.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.tag--solid {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.tag--blue {
    border-color: var(--blue);
    color: var(--blue-deep);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* État de stock */
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

.status--limite::before { background: #d99a00; }
.status--rupture::before { background: var(--danger); }

/* Fil d'Ariane */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.6rem;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    color: var(--muted);
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.breadcrumb li + li::before {
    content: "/";
    color: var(--line);
}

.breadcrumb a {
    text-decoration: none;
    color: var(--ink-soft);
}

.breadcrumb a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.breadcrumb [aria-current] {
    color: var(--ink);
}

/* En-tête de page intérieure */
/* L'en-tête flotte au-dessus de l'ouverture de page : l'aplat passe dessous, le contenu se dégage */
.page-head {
    padding-top: calc(var(--header-h) + clamp(2rem, 1.5rem + 2.5vw, 4rem));
    padding-bottom: clamp(2rem, 1.5rem + 3vw, 4.5rem);
}

.page-head__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: clamp(2rem, 1.5rem + 3vw, 4.5rem);
}

.page-head__title {
    font-size: var(--step-5);
    max-width: 14em;
}

.page-head__grid {
    display: grid;
    gap: 2rem 4rem;
    align-items: end;
}

@media (min-width: 900px) {
    .page-head__grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }
}

.page-head__lede {
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 32em;
}

.page-head__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.page-head__meta strong {
    color: var(--ink);
    font-weight: 500;
}

.page-head + .ruler,
.page-head .ruler {
    margin-top: clamp(2rem, 1.5rem + 3vw, 4rem);
}

/* Papier millimétré + projecteur : fond des aplats bleus (ouverture de l accueil, en-têtes de page).
   À placer en premier enfant d un bloc « position: relative; isolation: isolate » portant data-spotlight. */
.grid-lines {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(34rem circle at var(--spot-x, 72%) var(--spot-y, 28%), rgba(255, 255, 255, 0.16), transparent 62%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 4rem),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 4rem);
    pointer-events: none;
}

/* En-tête de page « bandeau » : aplat bleu SINAL, titre géant blanc.
   <header class="page-head page-head--band section--ink" data-spotlight><div class="grid-lines" aria-hidden="true"></div>…</header> */
.page-head--band {
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

.page-head--band .page-head__title {
    font-size: clamp(2.75rem, 1.2rem + 7vw, 8rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.05em;
    color: var(--white);
}

.page-head--band .page-head__title em {
    font-style: normal;
    color: var(--yellow);
}

.page-head--band .page-head__lede {
    color: rgba(255, 255, 255, 0.92);
}

.page-head--band .page-head__meta {
    color: rgba(255, 255, 255, 0.86);
}

.page-head--band .page-head__meta strong {
    color: var(--yellow);
}

.section--ink .breadcrumb,
.section--ink .breadcrumb a {
    color: rgba(255, 255, 255, 0.86);
}

.section--ink .breadcrumb [aria-current],
.section--ink .breadcrumb a:hover {
    color: var(--white);
}

.section--ink .breadcrumb li + li::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Données chiffrées */
.datum {
    min-width: 0;
    overflow-wrap: anywhere;
    display: grid;
    gap: 0.4rem;
}

.datum__value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--step-4);
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums lining-nums;
}

.datum__label {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.5;
}

/* Carte produit : tuile arrondie. Plaque d'image, marque en pastille, nom en gras,
   pastille-flèche qui pivote et jaunit au survol, anneau bleu.
   <div class="product-grid"> … partial('product-card') … </div>
   Le soulèvement de la tuile, le bouton « liste de devis » et la vue en liste
   du catalogue sont dans ux.css (section 6).
   Deux jetons règlent les fonds : sur page blanche, tuile teintée et plaque blanche ;
   sur une bande teintée, l'inverse. */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
    gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
}

.product-card {
    --pc-bg: var(--paper-2);
    --pc-plate: var(--white);
    --pc-pad: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--pc-pad);
    border-radius: var(--tile-radius);
    background: var(--pc-bg);
    color: var(--ink);
    text-decoration: none;
    transition: box-shadow 0.5s var(--ease);
}

.section--tint .product-card,
.section--paper2 .product-card {
    --pc-bg: var(--white);
    --pc-plate: var(--paper-2);
}

.product-card__media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
    overflow: hidden;
    border-radius: calc(var(--tile-radius) - var(--pc-pad));
    background: var(--pc-plate);
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.75s var(--ease);
}

.product-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
    padding: 1.1rem 0.6rem 0.5rem 0.75rem;
}

.product-card__brand {
    max-width: 100%;
    padding: 0.3rem 0.75rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--pc-plate);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--blue-deep);
}

.product-card__name {
    font-size: 1.3125rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: pretty;
    overflow-wrap: anywhere;
}

.product-card__text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--muted);
}

/* Pied de tuile : libellé à gauche, pastille-flèche à droite */
.product-card__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    align-self: stretch;
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
}

.product-card__more .icon {
    box-sizing: border-box;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.7rem;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    stroke-width: 2;
    transition: background-color 0.45s var(--ease), color 0.45s var(--ease), transform 0.6s var(--ease);
}

.product-card:hover,
.product-card:focus-visible {
    box-shadow: 0 0 0 2px var(--brand), 0 28px 40px -28px rgba(15, 117, 188, 0.8);
}

.product-card:hover .product-card__media img,
.product-card:focus-visible .product-card__media img {
    transform: scale(1.06);
}

.product-card:hover .product-card__more .icon,
.product-card:focus-visible .product-card__more .icon {
    background: var(--yellow);
    color: var(--ink);
    transform: rotate(45deg) scale(1.08);
}

.product-card:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 4px;
}

/* Petit écran : la tuile devient une ligne — vignette à gauche, texte à droite.
   Le bouton « liste de devis » (ux.css) occupe le coin bas droit, face au libellé. */
@media (max-width: 559px) {
    .product-card {
        flex-direction: row;
    }

    .product-card__media {
        flex: none;
        align-self: stretch;
        width: 6.25rem;
        min-height: 6.25rem;
        aspect-ratio: auto;
        padding: 0.6rem;
    }

    .product-card__media img {
        height: auto;
        max-height: 5.5rem;
    }

    .product-card__media .no-image {
        font-size: 0.75rem;
        line-height: 1.3;
        text-align: center;
    }

    .product-card__body {
        gap: 0.4rem;
        padding: 0.4rem 0.25rem 0 0.85rem;
    }

    .product-card__name {
        font-size: 1.125rem;
    }

    .product-card__text {
        display: none;
    }

    .product-card__more {
        min-height: 2.75rem;
        padding: 0 3.25rem 0 0;
        color: var(--blue-deep);
    }

    .product-card__more .icon {
        display: none;
    }
}

/* Image de substitution */
.no-image {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--paper-2);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ink);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.9375rem;
}

.pagination__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.pagination__link {
    display: grid;
    place-items: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color var(--fast), border-color var(--fast), color var(--fast);
}

a.pagination__link:hover {
    border-color: var(--ink);
}

.pagination__link.is-current {
    background: var(--ink);
    color: var(--white);
}

.pagination__link.is-disabled {
    color: var(--line);
}

.pagination__info {
    color: var(--muted);
}

/* Formulaires : champs pleins arrondis, libellés en gras, anneau bleu à la saisie.
   Trois variables règlent le contexte : --field-bg (fond du champ), --field-label
   (couleur des libellés), --field-focus / --field-ring (bordure et halo de saisie). */
.section--tint,
.section--paper2,
.section--yellow {
    --field-bg: var(--white);
}

.section--ink {
    --field-bg: var(--white);
    --field-label: var(--white);
    --field-focus: var(--ink);
    --field-ring: var(--yellow);
}

.form__grid {
    display: grid;
    gap: 1.1rem 1.5rem;
}

@media (min-width: 640px) {
    .form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field--full {
        grid-column: 1 / -1;
    }
}

.field {
    display: grid;
    gap: 0.5rem;
    align-content: start;
    min-width: 0;
}

.field__label {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.005em;
    line-height: 1.3;
    color: var(--field-label, var(--ink));
}

/* Astérisque des champs obligatoires */
.field__label span {
    color: var(--blue);
}

.field__input,
.field__select,
.field__textarea {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.8rem 1.1rem;
    background-color: var(--field-bg, var(--paper-2));
    border: 1.5px solid transparent;
    border-radius: 0.9rem;
    color: var(--ink);
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.4;
    appearance: none;
    transition: background-color var(--fast), border-color var(--fast), box-shadow var(--fast);
}

.field__textarea {
    min-height: 9rem;
    padding-block: 1rem;
    line-height: 1.55;
    resize: vertical;
}

.field__select {
    padding-right: 2.9rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230b2a45' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.05rem center;
    background-size: 1rem;
    text-overflow: ellipsis;
    cursor: pointer;
}

.field__input::placeholder,
.field__textarea::placeholder {
    color: var(--ink);
    opacity: 0.68;
}

.field__input:hover,
.field__select:hover,
.field__textarea:hover {
    border-color: var(--line);
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
    outline: none;
    background-color: var(--white);
    border-color: var(--field-focus, var(--brand));
    box-shadow: 0 0 0 4px var(--field-ring, rgba(15, 117, 188, 0.22));
}

/* Saisie automatique du navigateur : on garde le fond de la maison */
.field__input:-webkit-autofill {
    -webkit-text-fill-color: var(--ink);
    box-shadow: inset 0 0 0 100px var(--blue-tint);
}

.field__input:-webkit-autofill:focus {
    box-shadow: inset 0 0 0 100px var(--blue-tint), 0 0 0 4px var(--field-ring, rgba(15, 117, 188, 0.22));
}

.field__error {
    min-height: 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--danger);
}

.field.has-error .field__input,
.field.has-error .field__select,
.field.has-error .field__textarea {
    background-color: #f8e9e8;
    border-color: var(--danger);
}

/* Case à cocher : carré arrondi, coche blanche sur bleu SINAL */
.field--check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.75rem;
}

.field--check input {
    appearance: none;
    flex: none;
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    background: var(--white);
    border: 1.5px solid var(--ink);
    border-radius: 0.45rem;
    cursor: pointer;
    transition: background-color var(--fast), border-color var(--fast);
}

.field--check input::after {
    content: "";
    width: 0.4rem;
    height: 0.75rem;
    margin-top: -0.15rem;
    border: solid var(--white);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform var(--fast) var(--ease);
}

.field--check input:checked {
    background: var(--brand);
    border-color: var(--brand);
}

.field--check input:checked::after {
    transform: rotate(45deg) scale(1);
}

.field--check input:focus-visible {
    outline: 3px solid var(--field-focus, var(--ink));
    outline-offset: 3px;
}

.field--check label {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--field-label, var(--ink));
    cursor: pointer;
}

/* Champ leurre anti-robots */
.field--trap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Message de retour (succès, erreur) : une tuile arrondie cerclée */
.form__status {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: var(--paper-2);
    box-shadow: inset 0 0 0 1.5px var(--line);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.form__status.is-success {
    background: #e7f2ec;
    box-shadow: inset 0 0 0 1.5px var(--success);
    color: #124a2e;
}

.form__status.is-error {
    background: #f8e9e8;
    box-shadow: inset 0 0 0 1.5px var(--danger);
    color: #7c1a15;
}

.form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin-top: 1.75rem;
}

.form__note {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted);
}

/* Champ de recherche : une capsule cerclée, un bouton d'envoi rond.
   <form class="search">[icône]<input type="search"><button type="submit">Rechercher</button></form>
   Le libellé du bouton d'envoi reste lu par les lecteurs d'écran ; à l'écran, c'est une flèche.
   Un bouton type="button" (« Effacer ») reste une petite pastille de texte. */
.search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    min-height: 3.25rem;
    padding: 0 0.2rem 0 1.15rem;
    background: var(--white);
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    transition: border-color var(--fast), box-shadow var(--fast);
}

.search > .icon {
    flex: none;
    color: var(--ink);
    stroke-width: 2;
}

.search input {
    flex: 1;
    width: 100%; /* sans cela, la largeur par défaut du champ (size=20) élargit la colonne sur mobile */
    min-width: 0;
    padding: 0.7rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--ink);
    font-size: 1.0625rem;
    font-weight: 500;
    appearance: none;
}

.search input::placeholder {
    color: var(--ink);
    opacity: 0.68;
}

.search input:focus {
    outline: none;
}

.search:focus-within {
    border-color: var(--field-focus, var(--brand));
    box-shadow: 0 0 0 4px var(--field-ring, rgba(15, 117, 188, 0.22));
}

.search button {
    flex: none;
    min-height: 2.75rem;
    padding: 0 1rem;
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 700;
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.search button:hover,
.search button:focus-visible {
    background: var(--yellow);
    color: var(--ink);
}

.search button:active {
    transform: scale(0.94);
}

/* Bouton d'envoi : disque bleu, flèche blanche (le texte est repoussé hors du disque) */
.search button:not([type="button"]) {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: 50%;
    background: var(--brand);
    color: var(--white);
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
}

.search button:not([type="button"])::after {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / 1.15rem no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / 1.15rem no-repeat;
    transition: transform 0.45s var(--ease);
}

.search button:not([type="button"]):hover,
.search button:not([type="button"]):focus-visible {
    background: var(--yellow);
    color: var(--ink);
}

.search button:not([type="button"]):hover::after,
.search button:not([type="button"]):focus-visible::after {
    transform: translateX(3px);
}

/* Fenêtre modale (élément <dialog>) : une grande tuile arrondie.
   <dialog class="dialog"><form>
       <header class="dialog__head [section--ink]">… <button class="dialog__close"></button></header>
       <div class="dialog__body">… <footer class="dialog__foot">…</footer></div>
   </form></dialog> */
.dialog {
    width: min(46rem, calc(100vw - 1.5rem));
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    padding: 0;
    border: 0;
    border-radius: var(--tile-radius);
    background: var(--white);
    color: var(--ink);
    overflow: auto;
    overscroll-behavior: contain;
    box-shadow: 0 40px 80px -30px rgba(6, 24, 42, 0.7);
}

.dialog::backdrop {
    background: rgba(11, 42, 69, 0.72);
}

.dialog[open] {
    animation: dialog-in 0.5s var(--ease);
}

.dialog[open]::backdrop {
    animation: fade-in var(--base) ease;
}

@keyframes dialog-in {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
}

@keyframes fade-in {
    from { opacity: 0; }
}

/* Tête de fenêtre : sur l'aplat bleu (section--ink), avec le papier millimétré en fond */
.dialog__head {
    position: relative;
    isolation: isolate;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
    overflow: clip;
}

.dialog__title {
    margin-top: 0.9rem;
    font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.dialog__lede {
    margin-top: 0.9rem;
    max-width: 30em;
    color: var(--ink-soft);
}

.dialog__close {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.5s var(--ease);
}

.dialog__close .icon {
    stroke-width: 2;
}

.dialog__close:hover,
.dialog__close:focus-visible {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ink);
    transform: rotate(90deg);
}

.section--ink .dialog__close:focus-visible {
    outline-color: var(--white);
}

.dialog__body {
    padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
}

.dialog__foot {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Visionneuse d'images : fond bleu nuit, commandes rondes, compteur en pastille */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: rgba(6, 24, 42, 0.96);
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--base) ease, visibility var(--base);
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--gutter);
}

.lightbox__dl[hidden] {
    display: none;
}

.lightbox__bar [data-lb-counter] {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

/* Une cellule de hauteur définie : sans elle, max-height: 100% ne s'applique pas
   et une image en hauteur (document A3) déborde de l'écran. */
.lightbox__stage {
    position: relative;
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    place-items: center;
    min-height: 0;
    padding: 0 var(--gutter);
}

.lightbox__stage img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 1rem;
    transform: scale(0.96);
    transition: opacity var(--base) ease, transform 0.6s var(--ease);
}

.lightbox.is-open .lightbox__stage img {
    transform: none;
}

.lightbox__stage img.is-swapping {
    opacity: 0;
}

.lightbox__caption {
    min-height: 3.5rem;
    padding: 1rem var(--gutter) 1.5rem;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.86);
}

.lightbox__btn {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: var(--white);
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), scale 0.35s var(--ease);
}

.lightbox__btn svg {
    stroke-width: 2;
}

.lightbox__btn:hover,
.lightbox__btn:focus-visible {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ink);
    scale: 1.08;
}

.lightbox__btn:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 3px;
}

/* Précédent / suivant : disques blancs posés sur l'image */
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.25rem;
    height: 3.25rem;
    background: var(--white);
    border-color: var(--white);
    color: var(--ink);
    box-shadow: 0 16px 30px -16px rgba(6, 24, 42, 0.9);
}

.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }

[data-lightbox] {
    cursor: zoom-in;
}

/* Notifications brèves : capsules bleu nuit, point jaune */
.toast-region {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 250;
    display: grid;
    gap: 0.5rem;
    max-width: min(26rem, calc(100vw - 2rem));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.4rem 0.85rem 1.15rem;
    border-radius: 1.75rem;
    background: var(--ink);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 22px 40px -20px rgba(6, 24, 42, 0.75);
    animation: toast-in 0.5s var(--ease);
}

.toast::before {
    content: "";
    flex: none;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--yellow);
}

.toast.is-leaving {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition: opacity var(--base), transform var(--base);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(16px) scale(0.92); }
}


/* Bandeau d'appel final (un seul par page) */
.cta {
    display: grid;
    gap: 2.5rem 4rem;
    align-items: end;
}

@media (min-width: 900px) {
    .cta {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }
}

.cta__title {
    font-size: var(--step-5);
}

/* Variante géante (accueil) : le titre occupe toute la largeur */
.cta--xl {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 1.5rem + 3vw, 4rem);
}

.cta--xl .cta__title {
    font-size: clamp(2.4rem, 0.2rem + 10vw, 10.5rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.cta--xl .cta__title em {
    font-style: normal;
    color: var(--brand);
}

.cta--xl .cta__side {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 2px solid var(--ink);
}

@media (min-width: 900px) {
    .cta--xl .cta__side {
        grid-template-columns: minmax(0, 5fr) auto auto;
        align-items: center;
        gap: 2rem 3rem;
    }
}

.cta__side {
    display: grid;
    gap: 1.5rem;
    justify-items: start;
}

.cta__contacts {
    display: grid;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 1rem;
}

.cta__contacts a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.cta__contacts a:hover {
    text-decoration: underline;
}

/* État vide : une tuile arrondie, un grand zéro au contour, un titre en gras */
.empty {
    padding: clamp(2.25rem, 1.75rem + 4vw, 5rem) clamp(1.25rem, 1rem + 2vw, 3rem);
    border-radius: var(--tile-radius);
    background: var(--paper-2);
    text-align: center;
    color: var(--ink-soft);
}

.section--tint .empty,
.section--paper2 .empty {
    background: var(--white);
}

.empty::before {
    content: "0";
    content: "0" / "";
    display: block;
    margin-bottom: 0.75rem;
    font-size: clamp(4.5rem, 3rem + 6vw, 8rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 2px var(--brand);
}

.empty__title {
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
    font-size: var(--step-3);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--ink);
    text-wrap: balance;
}

.empty > p:not(.empty__title) {
    max-width: 34em;
    margin-inline: auto;
}

.empty .btn,
.empty .link-arrow {
    margin-top: 1.5rem;
}


/* 7. En-tête et navigation -------------------------------------------------
   Une capsule blanche flottante, posée au-dessus de la page (position fixe) : l'aplat bleu
   des ouvertures de page passe dessous. Logotype · navigation à lampe · outils.
   --header-h = encombrement total (marge + capsule) : les ouvertures de page et les
   colonnes collantes s'en servent pour se dégager. */
:root {
    --header-gap: clamp(0.5rem, 0.25rem + 0.8vw, 0.9rem);
    --bar-h: 4rem;
    --header-h: calc(var(--header-gap) + var(--bar-h));
}

@media (max-width: 479.98px) {
    :root {
        --bar-h: 3.5rem;
    }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-top: var(--header-gap);
    pointer-events: none;
    transition: transform 0.5s var(--ease);
}

.site-header.is-hidden {
    transform: translateY(calc(-100% - 1.5rem));
}

/* La capsule déborde un peu la grille du contenu : marges latérales proches de l'écart du haut */
.site-header__wrap {
    max-width: calc(var(--container) + 6rem);
    padding-inline: clamp(0.6rem, 0.1rem + 1.4vw, 1.5rem);
}

.site-header__bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--bar-h);
    padding: 0 0.45rem 0 1.35rem;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgba(11, 42, 69, 0.08);
    border-radius: var(--pill);
    box-shadow: 0 18px 40px -24px rgba(11, 42, 69, 0.55);
    pointer-events: auto;
    transition: box-shadow var(--base) var(--ease), background-color var(--base) var(--ease);
}

.site-header.is-stuck .site-header__bar {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 22px 46px -22px rgba(11, 42, 69, 0.6), 0 0 0 1px rgba(11, 42, 69, 0.04);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: none;
    text-decoration: none;
}

.brand__logo {
    width: auto;
    height: 2.35rem;
}

/* Navigation : la lampe (span.nav__lamp, pilotée par main.js) glisse sous le lien visé */
.nav {
    display: flex;
    align-items: center;
    align-self: stretch;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.nav__link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    height: 2.6rem;
    padding: 0 0.95rem;
    border-radius: var(--pill);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    white-space: nowrap;
    text-decoration: none;
    color: var(--ink);
    transition: color var(--fast), background-color var(--fast);
}

.nav__link:hover,
.nav__link:focus-visible,
.nav__link.is-current,
.nav__link[aria-expanded="true"] {
    color: var(--blue-deep);
}

.nav__link .icon {
    transition: transform var(--base) var(--ease);
}

.nav__link[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

/* Sans JavaScript : la page courante porte la pastille teintée */
.nav__link.is-current {
    background: var(--blue-tint);
}

.nav.has-lamp .nav__link.is-current {
    background: transparent;
}

.nav__lamp {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--lamp-w, 0px);
    height: var(--lamp-h, 2.6rem);
    border-radius: var(--pill);
    background: var(--blue-tint);
    opacity: 0;
    pointer-events: none;
    transform: translate(var(--lamp-x, 0px), var(--lamp-y, 0px));
    transition:
        transform 0.6s cubic-bezier(0.3, 1.3, 0.45, 1),
        width 0.6s cubic-bezier(0.3, 1.3, 0.45, 1),
        opacity 0.25s var(--ease);
}

.nav__lamp.is-lit {
    opacity: 1;
}

.nav__lamp.no-anim {
    transition: none;
}

/* Le tube : un trait bleu SINAL accroché à l'arête de la capsule… */
.nav__lamp::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--lamp-gap, 0.7rem));
    left: 50%;
    width: 2.25rem;
    height: 0.25rem;
    margin-left: -1.125rem;
    border-radius: 0 0 999px 999px;
    background: var(--brand);
    box-shadow: 0 5px 12px -1px rgba(15, 117, 188, 0.6);
}

/* … et son faisceau, qui éclaire la pastille */
.nav__lamp::after {
    content: "";
    position: absolute;
    top: calc(-1 * var(--lamp-gap, 0.7rem));
    left: 50%;
    width: 4.5rem;
    height: calc(var(--lamp-gap, 0.7rem) + 1.4rem);
    margin-left: -2.25rem;
    background: radial-gradient(60% 100% at 50% 0%, rgba(15, 117, 188, 0.32), rgba(15, 117, 188, 0) 100%);
    filter: blur(3px);
}

/* Panneau « Départements » : menu déroulant vertical, accroché sous son bouton.
   Une ligne par département — vignette, numéro, nom, résumé. Au survol, la ligne se teinte
   de bleu clair, le nom passe au bleu SINAL et la pastille-flèche se remplit. */
.nav__item--panel {
    position: relative;
}

.nav-panel {
    position: absolute;
    top: calc(100% + 1.35rem);
    left: -0.6rem;
    width: min(27rem, calc(100vw - 2rem));
    padding: 0.5rem;
    background: var(--white);
    border-radius: 1.75rem;
    box-shadow: 0 30px 60px -28px rgba(11, 42, 69, 0.55), 0 0 0 1px rgba(11, 42, 69, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), visibility var(--base);
}

/* Pont invisible entre le bouton et le menu : le pointeur ne « tombe » pas en chemin */
.nav-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 1.5rem;
}

.nav__item--panel.is-open .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.nav-panel__list {
    display: grid;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-panel__link {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.55rem 0.7rem 0.55rem 0.55rem;
    border-radius: 1.25rem;
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.25s var(--ease);
}

.nav-panel__img {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.9rem;
    object-fit: cover;
    background: var(--paper-2);
}

.nav-panel__text {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
}

.nav-panel__index {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
    color: var(--blue-deep);
}

.nav-panel__name {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    transition: color 0.25s var(--ease);
}

.nav-panel__summary {
    overflow: hidden;
    font-size: 0.8125rem;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--muted);
}

.nav-panel__go {
    display: grid;
    place-items: center;
    width: 2.25rem;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--line);
    color: var(--ink);
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.35s var(--ease);
}

.nav-panel__link:hover,
.nav-panel__link:focus-visible {
    background: var(--paper-2);
}

.nav-panel__link:hover .nav-panel__name,
.nav-panel__link:focus-visible .nav-panel__name {
    color: var(--blue-deep);
}

.nav-panel__link:hover .nav-panel__go,
.nav-panel__link:focus-visible .nav-panel__go {
    background: var(--brand);
    box-shadow: none;
    color: var(--white);
    transform: translateX(2px);
}

.nav-panel__link:focus-visible {
    outline-offset: -3px;
}

/* Page courante : fond teinté, pastille jaune */
.nav-panel__link[aria-current="page"] {
    background: var(--paper-2);
}

.nav-panel__link[aria-current="page"] .nav-panel__go {
    background: var(--yellow);
    box-shadow: none;
    color: var(--ink);
}

/* Pied : lien vers tout le catalogue, séparé par un filet */
.nav-panel__all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.4rem 0.15rem 0.1rem;
    padding: 0.85rem 0.55rem 0.4rem 0.7rem;
    border-top: 1.5px solid var(--line-soft);
    color: var(--blue-deep);
    font-size: 0.9375rem;
    font-weight: 800;
    text-decoration: none;
}

.nav-panel__all .icon {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.55rem;
    border-radius: 50%;
    background: var(--brand);
    color: var(--white);
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.35s var(--ease);
}

.nav-panel__all:hover .icon,
.nav-panel__all:focus-visible .icon {
    background: var(--yellow);
    color: var(--ink);
    transform: translateX(2px);
}

/* Politique qualité dans la barre : trois vignettes en éventail (FR, EN, AR), chacune un bouton
   qui ouvre la page en grand dans la visionneuse. Au survol, l'éventail se redresse et la vignette
   visée se soulève. Seules des transformations bougent : la barre ne change jamais de largeur. */
.hdocs {
    display: flex;
    align-items: center;
    flex: none;
    padding: 0 0.35rem;
}

.hdoc {
    position: relative;
    display: block;
    flex: none;
    width: 1.85rem;
    aspect-ratio: 132 / 186;
    padding: 2px;
    border-radius: 0.45rem;
    background: var(--ink);
    box-shadow: 0 6px 12px -6px rgba(11, 42, 69, 0.6);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.hdoc + .hdoc {
    margin-left: -0.45rem;
}

.hdoc:nth-child(1) { transform: rotate(-9deg) translateY(1px); z-index: 1; }
.hdoc:nth-child(2) { transform: rotate(0deg) translateY(-2px); z-index: 2; }
.hdoc:nth-child(3) { transform: rotate(9deg) translateY(1px); z-index: 1; }

.hdoc img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0.3rem;
    object-fit: cover;
    object-position: top;
    background: var(--white);
}

.hdoc__code {
    position: absolute;
    left: 50%;
    bottom: -0.35rem;
    padding: 0.05rem 0.3rem;
    border-radius: var(--pill);
    background: var(--yellow);
    color: var(--ink);
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.3;
    transform: translateX(-50%);
    box-shadow: 0 0 0 1.5px var(--white);
}

.hdocs:hover .hdoc:nth-child(1),
.hdocs:focus-within .hdoc:nth-child(1) { transform: rotate(0deg) translateX(-0.35rem); }
.hdocs:hover .hdoc:nth-child(2),
.hdocs:focus-within .hdoc:nth-child(2) { transform: rotate(0deg); }
.hdocs:hover .hdoc:nth-child(3),
.hdocs:focus-within .hdoc:nth-child(3) { transform: rotate(0deg) translateX(0.35rem); }

.hdocs .hdoc:hover,
.hdocs .hdoc:focus-visible {
    z-index: 3;
    box-shadow: 0 12px 20px -8px rgba(11, 42, 69, 0.7), 0 0 0 2px var(--yellow);
}

.hdocs .hdoc:nth-child(1):hover,
.hdocs .hdoc:nth-child(1):focus-visible { transform: translateX(-0.35rem) translateY(-3px) scale(1.12); }
.hdocs .hdoc:nth-child(2):hover,
.hdocs .hdoc:nth-child(2):focus-visible { transform: translateY(-3px) scale(1.12); }
.hdocs .hdoc:nth-child(3):hover,
.hdocs .hdoc:nth-child(3):focus-visible { transform: translateX(0.35rem) translateY(-3px) scale(1.12); }

.hdoc:focus-visible {
    outline: none;
}

/* Téléphones étroits : la place manque dans la capsule, les vignettes passent dans le menu */
@media (max-width: 479.98px) {
    .hdocs {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hdoc,
    .hdocs:hover .hdoc,
    .hdocs .hdoc:hover {
        transition: none;
    }
}

/* Outils et bouton de menu */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: none;
}

/* « Nous contacter » : capsule jaune SINAL, pastille bleu nuit ; au survol la vague est bleu nuit
   (la vague blanche du bouton jaune disparaîtrait sur la capsule blanche de l'en-tête). */
.site-header__cta {
    --btn-pad: 1.15rem;
    --btn-fill: var(--ink);
    --btn-fill-fg: var(--white);
    --btn-badge-on-bg: var(--yellow);
    --btn-badge-on-fg: var(--ink);
    --btn-shadow: 0 10px 22px -14px rgba(11, 42, 69, 0.55);
}

.site-header__cta-short {
    display: none;
}

/* Navigation complète sur écran moyen : le bouton se contente de « Contact » */
@media (min-width: 1300px) and (max-width: 1599.98px) {
    .site-header__cta-long {
        display: none;
    }

    .site-header__cta-short {
        display: inline;
    }
}

/* Menu : un disque bleu nuit, deux barres qui se croisent à l'ouverture.
   Le libellé (« Menu » / « Fermer », tenu à jour par main.js) reste lu par les lecteurs d'écran. */
.burger {
    position: relative;
    display: none;
    flex: none;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.burger:hover,
.burger:focus-visible,
.burger[aria-expanded="true"] {
    background: var(--yellow);
    color: var(--ink);
}

.burger:active {
    transform: scale(0.94);
}

.burger__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.burger__icon {
    position: relative;
    display: block;
    width: 1.15rem;
    height: 0.5rem;
}

.burger__icon i {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--base) var(--ease), top var(--base) var(--ease);
}

.burger__icon i:first-child { top: 0; }
.burger__icon i:last-child { top: calc(100% - 2px); }

.burger[aria-expanded="true"] .burger__icon i:first-child {
    top: calc(50% - 1px);
    transform: rotate(45deg);
}

.burger[aria-expanded="true"] .burger__icon i:last-child {
    top: calc(50% - 1px);
    transform: rotate(-45deg);
}

/* 1299.98px : pas de « trou » avec le seuil min-width: 1300px quand la largeur est fractionnaire (zoom du navigateur) */
@media (max-width: 1299.98px) {
    .nav {
        display: none;
    }

    .burger {
        display: grid;
    }
}

/* Navigation complète mais place comptée : les libellés se resserrent */
@media (min-width: 1300px) and (max-width: 1439.98px) {
    .nav__list {
        gap: 0;
    }

    .nav__link {
        padding: 0 0.52rem;
        font-size: 0.875rem;
    }

    .hdocs {
        padding: 0 0.2rem;
    }

    .site-header__bar {
        gap: 0.75rem;
        padding-left: 1.1rem;
    }

    .brand__logo {
        height: 2.1rem;
    }
}

/* Grand écran : la capsule plafonne à la largeur du conteneur ; les liens se resserrent
   pour laisser la place aux vignettes de la politique qualité */
@media (min-width: 1440px) {
    .nav__list {
        gap: 0;
    }

    .nav__link {
        padding: 0 0.72rem;
    }
}

/* Écrans étroits : le lien « Contact » reste dans le menu */
@media (max-width: 759.98px) {
    .site-header__cta {
        display: none;
    }
}

@media (max-width: 479.98px) {
    .site-header__bar {
        padding: 0 0.35rem 0 1rem;
    }

    .brand__logo {
        height: 1.95rem;
    }

    .site-header__actions {
        gap: 0.3rem;
    }

    .burger {
        width: 2.6rem;
        height: 2.6rem;
    }
}

/* Menu mobile : plein écran bleu SINAL, départements en lettres géantes.
   La capsule reste au-dessus (z-index) et sert de barre de fermeture. */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    isolation: isolate;
    padding-top: var(--header-h);
    background: var(--brand);
    color: var(--white);
    overflow-y: auto;
    overscroll-behavior: contain;
    clip-path: inset(0 0 100% 0 round 0 0 2.5rem 2.5rem);
    transition: clip-path 0.65s var(--ease-in-out);
}

.mobile-menu.is-open {
    clip-path: inset(0 0 0 0 round 0);
}

.mobile-menu .grid-lines {
    position: fixed;
}

.mobile-menu__inner {
    display: grid;
    align-content: start;
    gap: clamp(1.25rem, 1rem + 2vw, 2.25rem);
    min-height: 100%;
    padding-block: clamp(1.75rem, 1rem + 3vw, 3rem) 2.5rem;
}

.mobile-menu__inner > .eyebrow {
    margin: 0 0 -0.5rem;
}

.mobile-menu__depts {
    border-top: 2px solid var(--yellow);
}

.mobile-menu__depts a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 0;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.22);
    color: var(--white);
    text-decoration: none;
}

.mobile-menu__index {
    align-self: start;
    padding-top: 0.35em;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--yellow);
}

.mobile-menu__name {
    font-size: clamp(1.6rem, 0.9rem + 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
    transition: color 0.35s var(--ease);
}

.mobile-menu__go {
    display: grid;
    place-items: center;
    width: 2.75rem;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px currentColor;
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.5s var(--ease);
}

.mobile-menu__depts a:hover .mobile-menu__name,
.mobile-menu__depts a:focus-visible .mobile-menu__name,
.mobile-menu__depts a[aria-current="page"] .mobile-menu__name {
    color: var(--yellow);
}

.mobile-menu__depts a:hover .mobile-menu__go,
.mobile-menu__depts a:focus-visible .mobile-menu__go {
    background: var(--yellow);
    color: var(--ink);
    box-shadow: none;
    transform: rotate(45deg);
}

/* Pages : une rangée de pastilles */
.mobile-menu__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mobile-menu__list a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 1.15rem;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--pill);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.mobile-menu__list a:hover,
.mobile-menu__list a:focus-visible {
    background: var(--white);
    border-color: var(--white);
    color: var(--ink);
}

.mobile-menu__list a[aria-current="page"] {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ink);
}

.mobile-menu__foot {
    display: grid;
    gap: 1rem;
    justify-items: start;
    padding-top: 0.5rem;
}

.mobile-menu__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.mobile-menu__contacts a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    color: var(--white);
    text-decoration: none;
}

.mobile-menu__contacts a:hover,
.mobile-menu__contacts a:focus-visible {
    color: var(--yellow);
}

.mobile-menu__iso {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.mobile-menu a:focus-visible {
    outline-color: var(--yellow);
}

@media (max-width: 479.98px) {
    .mobile-menu__go {
        display: none;
    }

    .mobile-menu__depts a {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .mobile-menu__foot .btn {
        display: flex;
        width: 100%;
    }
}

/* Politique qualité dans le menu mobile : trois vignettes avec leur langue */
.mobile-menu__docs {
    display: grid;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu__docs-title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mobile-menu__docs-title span {
    margin-left: 0.35rem;
    padding: 0.1rem 0.5rem;
    border-radius: var(--pill);
    background: var(--yellow);
    color: var(--ink);
    letter-spacing: 0.04em;
}

.mobile-menu__docs ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mdoc {
    display: grid;
    gap: 0.5rem;
    justify-items: center;
    color: var(--white);
    text-decoration: none;
}

.mdoc img {
    width: 100%;
    max-width: 5.5rem;
    height: auto;
    aspect-ratio: 132 / 186;
    padding: 3px;
    border-radius: 0.75rem;
    background: var(--ink);
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s var(--ease);
}

.mdoc:hover img,
.mdoc:focus-visible img {
    transform: translateY(-3px) rotate(-2deg);
}

.mdoc__label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: center;
}

.mdoc__label b {
    padding: 0.05rem 0.35rem;
    border-radius: var(--pill);
    background: var(--yellow);
    color: var(--ink);
    font-size: 0.6875rem;
}

/* Entrée en cascade (--i est posé par main.js) */
.mobile-menu .mobile-menu__depts li,
.mobile-menu .mobile-menu__list li,
.mobile-menu .mobile-menu__foot {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--base) var(--ease), transform var(--base) var(--ease);
}

.mobile-menu.is-open .mobile-menu__depts li,
.mobile-menu.is-open .mobile-menu__list li,
.mobile-menu.is-open .mobile-menu__foot {
    opacity: 1;
    transform: none;
    transition-delay: calc(0.18s + var(--i, 0) * 45ms);
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .site-header {
    transform: none;
}

@media (min-width: 1300px) {
    .mobile-menu {
        display: none !important;
    }
}

/* 8. Pied de page ---------------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.78);
    padding-top: clamp(4rem, 3rem + 5vw, 7rem);
    font-size: 1.0625rem;
}

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

.site-footer a:hover {
    color: var(--yellow);
}

.site-footer__lead {
    display: grid;
    gap: 2rem 4rem;
    padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
    border-bottom: 1px solid var(--line-dark);
}

@media (min-width: 900px) {
    .site-footer__lead {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        align-items: end;
    }
}

.site-footer__statement {
    margin-top: 1.25rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--step-4);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--paper);
    max-width: 12em;
}

.site-footer__statement em {
    font-style: normal;
    font-weight: inherit;
    color: var(--yellow);
}

.site-footer__lead-action {
    display: grid;
    gap: 1.5rem;
    justify-items: start;
    max-width: 28em;
}

.site-footer__grid {
    display: grid;
    gap: 3rem 2.5rem;
    padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}

@media (min-width: 640px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .site-footer__grid {
        grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.2fr) minmax(0, 2.2fr) minmax(0, 4.4fr);
    }
}

.site-footer__logo {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--paper);
    margin-bottom: 1.5rem;
}

.site-footer__logo img {
    height: 2.25rem;
    width: auto;
}

.site-footer__col--brand p {
    max-width: 22em;
}

.site-footer__meta {
    margin-top: 1.25rem;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.site-footer__social a {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line-dark);
    transition: background-color var(--fast), color var(--fast), border-color var(--fast);
}

.site-footer__social a:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ink);
}

.site-footer__heading {
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.site-footer__col ul:not([class]) {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.site-footer__col ul:not([class]) a {
    color: var(--paper);
}

.site-footer__offices {
    display: grid;
    gap: 1.5rem 2rem;
}

@media (min-width: 480px) {
    .site-footer__offices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.site-footer__offices li {
    display: grid;
    gap: 0.2rem;
    align-content: start;
    font-size: 1rem;
    line-height: 1.5;
}

.site-footer__offices strong {
    font-weight: 500;
    color: var(--paper);
    margin-bottom: 0.15rem;
}

.site-footer__offices a {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.9375rem;
}

/* Le nom de la maison, en lettres géantes au contour : signature du pied de page */
.site-footer__wordmark {
    margin: 0 0 clamp(0.5rem, 2vw, 1.75rem);
    font-size: clamp(5rem, 1rem + 25vw, 26rem);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.06em;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.22);
    white-space: nowrap;
    user-select: none;
    transition: color 0.8s var(--ease), -webkit-text-stroke-color 0.8s var(--ease);
}

.site-footer__wordmark:hover {
    color: var(--brand);
    -webkit-text-stroke-color: var(--brand);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 2rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--line-dark);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-footer__top .icon {
    transform: rotate(-90deg);
}

/* 9. Mouvement ------------------------------------------------------------- */

/* Révélation au défilement. Sans JavaScript, tout reste visible. */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.9s var(--ease) calc(var(--i, 0) * 80ms),
        transform 0.9s var(--ease) calc(var(--i, 0) * 80ms);
    will-change: opacity, transform;
}

.js [data-reveal="fade"] {
    transform: none;
}

.js [data-reveal="left"] {
    transform: translateX(-26px);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* Image dévoilée par un volet.
   Le masque porte sur l'enfant : un élément entièrement masqué par son propre
   clip-path n'est jamais « visible » pour IntersectionObserver. */
.js [data-reveal="clip"] {
    opacity: 1;
    transform: none;
    transition: background-color 0.4s linear;
}

.js [data-reveal="clip"]:not(.is-visible) {
    background-color: transparent;
}

.js [data-reveal="clip"] > * {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.2s var(--ease-in-out) calc(var(--i, 0) * 80ms);
}

.js [data-reveal="clip"] img {
    scale: 1.12;
    transition:
        clip-path 1.2s var(--ease-in-out) calc(var(--i, 0) * 80ms),
        scale 1.6s var(--ease) calc(var(--i, 0) * 80ms),
        transform 1.4s var(--ease);
}

.js [data-reveal="clip"].is-visible > * {
    clip-path: inset(0);
}

.js [data-reveal="clip"].is-visible img {
    scale: 1;
}

/* Filet qui se trace */
.js [data-reveal="line"] {
    opacity: 1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s var(--ease-in-out) calc(var(--i, 0) * 80ms);
}

.js [data-reveal="line"].is-visible {
    transform: scaleX(1);
}

/* Titre découpé en mots (data-split) */
.split-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
}

.split-word > span {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 1s var(--ease) calc(var(--w, 0) * 45ms + 0.1s);
}

.is-split-visible .split-word > span {
    transform: none;
}

/* Parallaxe : le script pilote --parallax (en px) */
[data-parallax] {
    transform: translate3d(0, var(--parallax, 0px), 0);
    will-change: transform;
}

/* Écran de chargement (première visite de la session) */
.preloader {
    display: none;
}

.js.is-loading .preloader {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    background: var(--paper);
    animation: preloader-out 0.7s var(--ease-in-out) 2.6s forwards; /* filet de sécurité */
}

.js.is-loading.is-loaded .preloader {
    animation: preloader-out 0.7s var(--ease-in-out) forwards;
}

.preloader__inner {
    display: grid;
    gap: 1.5rem;
    justify-items: center;
    width: min(20rem, 70vw);
}

.preloader__logo {
    width: 10.75rem;
    height: auto;
    animation: fade-in 0.6s ease both;
}

.preloader__scale {
    position: relative;
    width: 100%;
    height: 10px;
    border-top: 1px solid var(--ink);
    background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 8px) left top / 100% 5px no-repeat;
}

.preloader__bar {
    position: absolute;
    left: 0;
    top: -2px;
    height: 3px;
    width: 100%;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    animation: preloader-bar 1.1s var(--ease-in-out) 0.1s forwards;
}

.preloader__label {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.preloader__label span {
    color: var(--muted);
}

@keyframes preloader-bar {
    to { transform: scaleX(1); }
}

@keyframes preloader-out {
    to { clip-path: inset(0 0 100% 0); visibility: hidden; }
}

/* Transitions entre pages (navigateurs compatibles View Transitions) */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: vt-out 0.28s var(--ease-in-out) both;
}

::view-transition-new(root) {
    animation: vt-in 0.5s var(--ease) both;
}

@keyframes vt-out {
    to { opacity: 0; transform: translateY(-10px); }
}

@keyframes vt-in {
    from { opacity: 0; transform: translateY(14px); }
}

.site-header {
    view-transition-name: site-header;
}

/* Respect de la préférence « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-delay: 0s !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
    }

    .js [data-reveal],
    .js [data-reveal="clip"] > *,
    .js [data-reveal="clip"] img,
    .js [data-reveal="line"],
    .split-word > span {
        opacity: 1;
        transform: none;
        scale: 1;
        clip-path: none;
    }

    .js .trace[data-trace] .trace__line {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }

    [data-parallax] {
        transform: none;
    }

    @view-transition {
        navigation: none;
    }
}

/* 10. Impression ----------------------------------------------------------- */
@media print {
    .site-header,
    .site-footer,
    .mobile-menu,
    .preloader,
    .toast-region,
    .btn,
    .lightbox {
        display: none !important;
    }

    body {
        background: #fff;
        font-size: 11pt;
    }

    .section {
        padding-block: 1.5rem;
    }

    .js [data-reveal],
    .js [data-reveal="clip"] > * {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }
}
