/* ===================================================================
   G&L WEB STUDIO — SURFACE CINÉMATIQUE
   Tous les tokens ci-dessous sont définis dans DESIGN.md.
   Aucune valeur brute ne doit apparaître hors de ce bloc :root.
   =================================================================== */
:root {
    /* §2 — Couleur (thème clair) */
    --paper: #F4F3EF;
    --paper-raised: #FFFFFF;
    --surface: #FFFFFF;
    --surface-hover: #FFFFFF;
    --sunken: #E7E5DE;
    --ghost: #DFDDD5;
    --text-1: #0B0E14;
    --text-2: #4A5262;
    --text-3: #5F6879;
    --line: rgba(11, 14, 20, .13);
    --line-soft: rgba(11, 14, 20, .07);
    --blue-900: #001E63;
    --blue-700: #0033A0;
    --blue-500: #1E5AE8;
    --blue-400: #4C8DFF;
    --blue-200: #9CC2FF;
    --blue-050: #E8EFFD;
    --clay: #7A5233;

    /* §3 — Typographie */
    --font-display: 'Archivo', 'Helvetica Neue', sans-serif;
    --font-body: 'Space Grotesk', 'Helvetica Neue', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* §4 — Espacement */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-6: 24px;
    --s-8: 32px;
    --s-12: 48px;
    --s-16: 64px;
    --s-24: 96px;
    --s-32: 128px;
    --content: 1240px;
    --gutter: clamp(1.25rem, 5vw, 4.5rem);
    --rail-w: 88px;

    /* §6 — Motion */
    --ease-std: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --t-micro: 140ms;
    --t-std: 240ms;
    --t-emph: 700ms;

    /* §7 — Profondeur (le clair porte par l'ombre, pas par le ton) */
    --rim: inset 0 1px 0 #FFFFFF;
    --shadow-deep: 0 2px 4px -2px rgba(11, 20, 45, .10), 0 26px 52px -30px rgba(11, 20, 45, .34);
}

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

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

body {
    background: var(--paper);
    color: var(--text-2);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* §7 — grain global : retire la stérilité numérique */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: .022;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
picture {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--blue-500);
    color: #fff;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--s-4);
    z-index: 200;
    padding: var(--s-3) var(--s-6);
    background: var(--blue-500);
    color: #fff;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    transition: top var(--t-std) var(--ease-std);
}

.skip-link:focus {
    top: var(--s-4);
}

/* ---------- Typographie ---------- */
.label {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--clay);
    line-height: 1.4;
}

.label::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--clay);
    opacity: .5;
}

.label--plain::before {
    display: none;
}

.display {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 6.5vw, 5.5rem);
    line-height: .94;
    letter-spacing: -.035em;
    color: var(--text-1);
}

h2.sub,
.sub {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--text-1);
}

h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--text-1);
}

.lead {
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-2);
    max-width: 46ch;
}

.small {
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--text-3);
}

/* ---------- Structure ---------- */
.shell {
    max-width: calc(var(--content) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.chapter {
    position: relative;
    padding-block: var(--s-32);
    border-top: 1px solid var(--line-soft);
    /* La barre supérieure est fixe : sans cette marge, une ancre amène
       le titre de chapitre sous l'en-tête. */
    scroll-margin-top: 88px;
}

.chapter--raised {
    background: var(--paper-raised);
}

.chapter-head {
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
    margin-bottom: var(--s-24);
    max-width: 62ch;
}

.grid-edito {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

/* ---------- Rail de chapitres (§5) ---------- */
.rail {
    position: fixed;
    top: 50%;
    left: 0;
    width: var(--rail-w);
    transform: translateY(-50%);
    z-index: 40;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: var(--s-4);
}

.rail-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--line-soft);
}

.rail-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--blue-700), var(--clay));
    transform: scaleY(0);
    transform-origin: top;
}

.rail-link {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 34px;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .12em;
    color: var(--text-3);
    /* translucide : la ligne de progression reste continue derrière les
       numéros, et le rail ne « perce » pas les cartes de la galerie */
    background: rgba(244, 243, 239, .78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: color var(--t-std) var(--ease-std), transform var(--t-std) var(--ease-std);
}

.rail-link:hover {
    color: var(--text-1);
    transform: scale(1.08);
}

.rail-link.is-active {
    color: var(--clay);
}

.rail-link.is-active::after {
    content: '';
    position: absolute;
    right: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--clay);
}

/* ---------- Navigation ---------- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-4) var(--gutter);
    background: linear-gradient(180deg, rgba(244, 243, 239, .94), rgba(244, 243, 239, 0));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: -.01em;
    color: var(--text-1);
    white-space: nowrap;
}

/* Sous 560px le nom complet écrase le CTA : on garde la marque
   visuelle (le logo) et on libère la largeur. */
@media (max-width: 559px) {
    .brand span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

.brand img {
    width: 30px;
    height: 27px;
    object-fit: contain;
}

.topbar-links {
    display: none;
    align-items: center;
    gap: var(--s-8);
}

.topbar-link {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-3);
    transition: color var(--t-std) var(--ease-std);
}

.topbar-link:hover {
    color: var(--text-1);
}

/* ---------- Boutons (§5) ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    min-height: 48px;
    padding: var(--s-3) var(--s-6);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--t-micro) var(--ease-std), background-color var(--t-std) var(--ease-std), border-color var(--t-std) var(--ease-std), box-shadow var(--t-std) var(--ease-std);
}

.btn svg {
    width: 15px;
    height: 15px;
    flex: none;
    transition: transform var(--t-std) var(--ease-out);
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn:active {
    transform: scale(.98);
}

.btn--primary {
    background: var(--blue-500);
    color: #fff;
}

.btn--primary:hover {
    background: var(--blue-700);
    box-shadow: 0 0 0 3px var(--blue-050), 0 16px 34px -16px rgba(0, 51, 160, .55);
}

.btn--ghost {
    border-color: var(--line);
    color: var(--text-1);
}

.btn--ghost:hover {
    border-color: var(--blue-700);
    background: var(--blue-050);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding-block: calc(var(--s-32) + var(--s-16)) var(--s-24);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: -12% 0 0;
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .5;
    filter: grayscale(.35) contrast(1.02) brightness(1.08);
}

/* Voile de papier : l'image reste lisible en arrière-plan mais le texte
   encre passe partout. Le halo bleu remplace la lumière du projecteur. */
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 28%, rgba(0, 51, 160, .14), transparent 66%),
        linear-gradient(180deg, rgba(244, 243, 239, .62) 0%, rgba(244, 243, 239, .84) 44%, var(--paper) 94%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.9rem, 8.4vw, 8rem);
    line-height: .88;
    letter-spacing: -.045em;
    color: var(--text-1);
    margin-block: var(--s-8) var(--s-12);
    max-width: 15ch;
}

.word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.word > span {
    display: inline-block;
}

.hero-title .accent {
    color: var(--blue-500);
}

.hero-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s-12);
    margin-top: var(--s-16);
    padding-top: var(--s-8);
    border-top: 1px solid var(--line);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
}

.scroll-cue {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--text-3);
}

.scroll-cue svg {
    width: 14px;
    height: 14px;
}

/* ---------- Fiche d'identité (§5) ---------- */
.identity {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}

.identity > div {
    background: var(--paper);
    padding: var(--s-6);
}

.chapter--raised .identity > div {
    background: var(--paper-raised);
}

.identity dt {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: var(--s-3);
}

.identity dd {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--text-1);
    line-height: 1.4;
}

.identity a {
    color: var(--blue-700);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-std) var(--ease-std), color var(--t-std) var(--ease-std);
}

.identity a:hover {
    color: var(--blue-500);
    border-bottom-color: var(--blue-500);
}

/* ---------- Panneau générique (§5 — recette 5 couches) ---------- */
.panel {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--rim), var(--shadow-deep);
    overflow: hidden;
    transition: transform var(--t-std) var(--ease-std), box-shadow var(--t-std) var(--ease-std), border-color var(--t-std) var(--ease-std), background-color var(--t-std) var(--ease-std);
}

.panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(0, 51, 160, .045), transparent 44%);
}

a.panel:hover {
    background: var(--surface-hover);
    border-color: rgba(0, 51, 160, .22);
    transform: translateY(-4px);
    box-shadow: var(--rim), 0 4px 8px -4px rgba(11, 20, 45, .12), 0 34px 62px -32px rgba(11, 20, 45, .42);
}

a.panel:active {
    transform: translateY(-1px);
}

/* ---------- Chapitre 02 — expertise ---------- */
.expertise {
    display: grid;
    gap: 1px;
    background: var(--line-soft);
    border-block: 1px solid var(--line-soft);
}

.expertise-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-6);
    padding: var(--s-12) 0;
    background: var(--paper-raised);
    transition: background-color var(--t-std) var(--ease-std);
}

.expertise-row:hover {
    background: var(--paper);
}

.expertise-num {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--ghost);
    transition: color var(--t-std) var(--ease-std);
}

.expertise-row:hover .expertise-num {
    color: var(--blue-700);
}

.expertise-body p {
    max-width: 58ch;
    margin-top: var(--s-4);
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-top: var(--s-6);
}

.tag {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-3);
    border: 1px solid var(--line-soft);
    padding: 6px 10px;
}

.expertise-link {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    margin-top: var(--s-6);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--blue-700);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color var(--t-std) var(--ease-std), border-color var(--t-std) var(--ease-std);
}

.expertise-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--t-std) var(--ease-out);
}

.expertise-link:hover {
    color: var(--blue-500);
    border-bottom-color: var(--blue-500);
}

.expertise-link:hover svg {
    transform: translate(3px, -3px);
}

.expertise-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line-soft);
}

.expertise-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .92;
    filter: grayscale(.18);
    transition: transform var(--t-emph) var(--ease-out), opacity var(--t-std) var(--ease-std);
}

.expertise-row:hover .expertise-media img {
    transform: scale(1.05);
    opacity: 1;
}

/* ---------- Chapitre 03 — galerie ---------- */
.gallery-pin {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: var(--s-8);
    padding-inline: var(--gutter);
    will-change: transform;
}

.work-card {
    flex: 0 0 auto;
    width: min(430px, 78vw);
    display: flex;
    flex-direction: column;
}

.work-card figure {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--sunken);
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: transform var(--t-emph) var(--ease-out), opacity var(--t-std) var(--ease-std);
}

.work-card:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.work-meta {
    position: relative;
    padding: var(--s-6);
}

.work-meta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--blue-500);
    transition: width var(--t-emph) var(--ease-out);
}

.work-card:hover .work-meta::before {
    width: 100%;
}

.work-meta h3 {
    margin: var(--s-3) 0 var(--s-2);
}

.work-meta p {
    font-size: .9375rem;
    color: var(--text-3);
}

.gallery-hint {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin-top: var(--s-8);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ---------- Chapitre 04 — offres ---------- */
.offers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--s-6);
}

.offer {
    display: flex;
    flex-direction: column;
    padding: var(--s-8);
    min-height: 340px;
}

.offer h3 {
    font-size: 1.6rem;
    margin: var(--s-6) 0 var(--s-4);
}

.offer p {
    font-size: .9375rem;
    color: var(--text-2);
    flex: 1;
}

.offer ul {
    list-style: none;
    margin: var(--s-6) 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.offer li {
    position: relative;
    padding-left: var(--s-6);
    font-size: .9375rem;
    color: var(--text-3);
}

.offer li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .62em;
    width: 10px;
    height: 1px;
    background: var(--blue-700);
}

/* Même puce que dans les cartes d'offre, hors carte. */
.offer-li {
    position: relative;
    padding-left: var(--s-6);
    color: var(--text-2);
}

.offer-li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .82em;
    width: 10px;
    height: 1px;
    background: var(--blue-700);
}

.offer-foot {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    margin-top: var(--s-8);
    padding-top: var(--s-6);
    border-top: 1px solid var(--line-soft);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--blue-700);
}

.offer-foot svg {
    width: 14px;
    height: 14px;
    transition: transform var(--t-std) var(--ease-out);
}

.offer:hover .offer-foot svg {
    transform: translate(3px, -3px);
}

/* ---------- Chapitre 05 — méthode ---------- */
.method {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--s-16);
    padding-left: var(--s-8);
}

.method-line {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 1px;
    background: var(--line-soft);
}

.method-line span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--blue-700), var(--clay));
    transform: scaleY(0);
    transform-origin: top;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-4);
}

.step::before {
    content: '';
    position: absolute;
    left: calc(var(--s-8) * -1);
    top: 10px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--blue-700);
    transform: translateX(-4px);
}

.step p {
    max-width: 54ch;
}

.step-kicker {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ---------- Chapitre 06 — équipe ---------- */
.people {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: var(--s-6);
    margin-bottom: var(--s-16);
}

.person {
    padding: var(--s-8);
}

.person-initials {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: var(--s-6);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -.02em;
    color: #FFFFFF;
    background: radial-gradient(circle at 30% 25%, var(--blue-700), var(--blue-900));
    box-shadow: var(--rim);
}

.person .small {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    margin-top: var(--s-2);
}

.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}

.value {
    background: var(--paper);
    padding: var(--s-8);
}

.value h3 {
    margin: var(--s-4) 0 var(--s-3);
}

.value h3 a {
    color: var(--blue-700);
    border-bottom: 1px solid transparent;
    transition: color var(--t-std) var(--ease-std), border-color var(--t-std) var(--ease-std);
}

.value h3 a:hover {
    color: var(--blue-500);
    border-bottom-color: var(--blue-500);
}

.value p {
    font-size: .9375rem;
    color: var(--text-3);
}

/* ---------- Chapitre 07 — contact ---------- */
.contact {
    position: relative;
    padding-block: var(--s-32);
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(0, 51, 160, .12), transparent 66%);
    pointer-events: none;
}

.contact-inner {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-8);
}

.contact-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.6rem, 8vw, 7rem);
    line-height: .9;
    letter-spacing: -.04em;
    color: var(--text-1);
    max-width: 16ch;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-4);
}

.contact-lines {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-6) var(--s-12);
    margin-top: var(--s-8);
    padding-top: var(--s-8);
    border-top: 1px solid var(--line);
    width: 100%;
}

.contact-line {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    font-size: .9375rem;
    color: var(--text-2);
    transition: color var(--t-std) var(--ease-std);
}

.contact-line svg {
    width: 16px;
    height: 16px;
    color: var(--blue-700);
    flex: none;
}

a.contact-line:hover {
    color: var(--text-1);
}

/* ---------- Footer ---------- */
.foot {
    border-top: 1px solid var(--line);
    padding-block: var(--s-16) var(--s-12);
    background: var(--sunken);
}

.foot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: var(--s-12);
    margin-bottom: var(--s-16);
}

.foot h4 {
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: var(--s-6);
}

.foot ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.foot a {
    font-size: .9375rem;
    color: var(--text-2);
    transition: color var(--t-std) var(--ease-std);
}

.foot a:hover {
    color: var(--blue-500);
}

.foot-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4) var(--s-8);
    justify-content: space-between;
    align-items: center;
    padding-top: var(--s-8);
    border-top: 1px solid var(--line);
    font-size: .875rem;
    color: var(--text-2);
}

.foot-legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-6);
}

/* ===================================================================
   COMPOSANTS DE SITE
   Ajoutés à la grammaire de la page-manifeste pour couvrir les 15 pages
   intérieures : navigation mobile, en-tête de page, formulaires, FAQ,
   grilles tarifaires, bandeau cookies. Mêmes tokens, mêmes règles :
   arêtes vives, profondeur par l'ombre, motion sur transform/opacity.
   =================================================================== */

/* ---------- Navigation mobile (drawer) ----------
   Sous 900px, .topbar-links est masqué : sans ce panneau le site n'a
   aucune navigation. Le bouton reste dans le flux, le panneau est un
   frère de la topbar pour ne pas hériter de son backdrop-filter. */
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    flex: none;
    background: none;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: border-color var(--t-std) var(--ease-std);
}

.nav-toggle:hover {
    border-color: var(--blue-700);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text-1);
    transition: transform var(--t-std) var(--ease-std), opacity var(--t-micro) var(--ease-std);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--s-2);
    padding: calc(var(--s-16) + var(--s-8)) var(--gutter) var(--s-16);
    background: var(--paper);
    overflow-y: auto;
    /* Fermé : hors flux tactile et hors ordre de tabulation. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t-std) var(--ease-std), transform var(--t-std) var(--ease-out), visibility 0s linear var(--t-std);
}

.drawer.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.drawer-link {
    display: flex;
    align-items: baseline;
    gap: var(--s-4);
    padding-block: var(--s-3);
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--text-1);
    transition: color var(--t-std) var(--ease-std);
}

.drawer-link::before {
    content: attr(data-num);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .2em;
    color: var(--clay);
}

.drawer-link:hover,
.drawer-link.is-current {
    color: var(--blue-700);
}

.drawer-foot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
    margin-top: var(--s-8);
}

/* Le scroll de la page est verrouillé pendant l'ouverture du panneau. */
body.nav-open {
    overflow: hidden;
}

/* Le bandeau cookies passerait par-dessus le panneau et masquerait ses
   deux boutons d'action : il s'efface le temps de la navigation. */
body.nav-open .cookie-banner {
    display: none;
}

/* La barre supérieure doit rester AU-DESSUS du panneau, sinon le bouton
   de fermeture est recouvert et devient inatteignable à la souris. */
body.nav-open .topbar {
    z-index: 58;
}

/* Le lien de la page courante, dans la barre comme dans le panneau. */
.topbar-link.is-current {
    color: var(--text-1);
}

/* Sans JavaScript, l'en-tête et le pied injectés n'existent pas :
   ce bloc garantit que chaque page reste navigable. */
.noscript-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4) var(--s-6);
    padding: var(--s-4) var(--gutter);
    background: var(--sunken);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.noscript-nav a {
    color: var(--blue-700);
}

/* ---------- En-tête de page (pages intérieures) ----------
   Variante compacte du hero : pas de média plein cadre, le halo bleu
   (§7) porte seul la profondeur. Le rail de chapitres reste réservé
   à l'accueil — c'est la signature des sept chapitres (§1). */
.page-hero {
    position: relative;
    padding-block: calc(var(--s-24) + var(--s-16)) var(--s-24);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 22% 12%, rgba(0, 51, 160, .13), transparent 62%);
}

.page-hero .shell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
}

.page-hero .lead {
    max-width: 56ch;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
    margin-top: var(--s-4);
}

.page-hero--center .shell {
    align-items: center;
    text-align: center;
}

.page-hero--center .lead {
    max-width: 48ch;
}

/* ---------- Fil d'Ariane ---------- */
.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-3);
}

.crumbs a {
    color: var(--blue-700);
}

.crumbs a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.crumbs span[aria-hidden] {
    opacity: .55;
}

/* ---------- Texte long (pages légales) ---------- */
.prose {
    max-width: 68ch;
}

.prose > * + * {
    margin-top: var(--s-6);
}

.prose h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--text-1);
    margin-top: var(--s-16);
    padding-top: var(--s-8);
    border-top: 1px solid var(--line-soft);
}

.prose h3 {
    margin-top: var(--s-12);
}

.prose ul,
.prose ol {
    padding-left: var(--s-6);
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.prose li {
    color: var(--text-2);
}

.prose a {
    color: var(--blue-700);
    border-bottom: 1px solid var(--line);
    transition: border-color var(--t-std) var(--ease-std), color var(--t-std) var(--ease-std);
}

.prose a:hover {
    color: var(--blue-500);
    border-bottom-color: var(--blue-500);
}

.prose dl {
    display: grid;
    gap: var(--s-3);
}

.prose dt {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--text-3);
}

.prose-updated {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ---------- Formulaires ---------- */
.form {
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
}

.field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-6);
}

.field {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.field > label,
.fieldset-legend {
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--text-3);
}

.field .req {
    color: var(--clay);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    min-height: 48px;
    padding: var(--s-3) var(--s-4);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-1);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--rim);
    transition: border-color var(--t-std) var(--ease-std), box-shadow var(--t-std) var(--ease-std);
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field select {
    appearance: none;
    /* Chevron dessiné en data-URI : pas d'icône réseau à charger. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6879' stroke-width='1.8' 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 var(--s-4) center;
    background-size: 16px;
    padding-right: var(--s-12);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-3);
    opacity: 1;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--blue-700);
    box-shadow: var(--rim), 0 0 0 3px var(--blue-050);
}

.field-hint {
    font-size: .875rem;
    color: var(--text-3);
}

/* Le honeypot anti-spam : jamais affiché, jamais atteint au clavier. */
.field--trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.fieldset {
    border: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

/* ---------- Cartes de choix (radio / checkbox) ---------- */
.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: var(--s-4);
}

.choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    padding: var(--s-6);
    cursor: pointer;
}

.choice-card input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.choice-card h3 {
    font-size: 1.0625rem;
}

.choice-card p {
    position: relative;
    font-size: .9375rem;
    color: var(--text-3);
}

.choice-card:hover {
    border-color: rgba(0, 51, 160, .22);
    transform: translateY(-2px);
}

.choice-card:has(input:checked) {
    border-color: var(--blue-700);
    box-shadow: var(--rim), 0 0 0 2px var(--blue-700), var(--shadow-deep);
}

.choice-card:has(input:checked) .choice-mark {
    background: var(--blue-700);
    border-color: var(--blue-700);
}

.choice-card:has(input:focus-visible) {
    outline: 2px solid var(--blue-700);
    outline-offset: 3px;
}

.choice-mark {
    position: relative;
    width: 18px;
    height: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: background-color var(--t-micro) var(--ease-std), border-color var(--t-micro) var(--ease-std);
}

.choice-mark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #FFFFFF;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform var(--t-micro) var(--ease-out);
}

.choice-card:has(input:checked) .choice-mark::after {
    transform: rotate(45deg) scale(1);
}

.choice-card input[type="radio"] ~ .choice-mark {
    border-radius: 50%;
}

/* ---------- Parcours de devis en étapes ---------- */
.stepper {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-6);
    margin-bottom: var(--s-12);
    padding-bottom: var(--s-6);
    border-bottom: 1px solid var(--line);
    list-style: none;
}

.stepper li {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-3);
    transition: color var(--t-std) var(--ease-std);
}

.stepper li::before {
    content: attr(data-num);
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
    border: 1px solid var(--line);
    color: var(--text-3);
    transition: background-color var(--t-std) var(--ease-std), border-color var(--t-std) var(--ease-std), color var(--t-std) var(--ease-std);
}

.stepper li[aria-current="step"] {
    color: var(--text-1);
}

.stepper li[aria-current="step"]::before {
    background: var(--blue-500);
    border-color: var(--blue-500);
    color: #FFFFFF;
}

.stepper li.is-done {
    color: var(--clay);
}

.stepper li.is-done::before {
    border-color: var(--clay);
    color: var(--clay);
}

.step-panel[hidden] {
    display: none;
}

.form-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
    justify-content: space-between;
    margin-top: var(--s-8);
    padding-top: var(--s-8);
    border-top: 1px solid var(--line-soft);
}

.form-status {
    padding: var(--s-4) var(--s-6);
    border-left: 2px solid var(--blue-700);
    background: var(--blue-050);
    font-size: .9375rem;
    color: var(--text-1);
}

.form-status--error {
    border-left-color: var(--clay);
    background: var(--sunken);
}

.form-status[hidden] {
    display: none;
}

/* ---------- FAQ ----------
   <details> natif : dépliable au clavier et sans JavaScript. */
.faq {
    display: grid;
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}

.faq details {
    background: var(--paper);
}

.chapter--raised .faq details {
    background: var(--paper-raised);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
    padding: var(--s-6);
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.4;
    color: var(--text-1);
    transition: color var(--t-std) var(--ease-std);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary:hover {
    color: var(--blue-700);
}

.faq summary svg {
    width: 16px;
    height: 16px;
    flex: none;
    color: var(--blue-700);
    transition: transform var(--t-std) var(--ease-out);
}

.faq details[open] summary svg {
    transform: rotate(180deg);
}

.faq-body {
    padding: 0 var(--s-6) var(--s-6);
    max-width: 68ch;
    font-size: .9375rem;
    color: var(--text-2);
}

.faq-body > * + * {
    margin-top: var(--s-4);
}

/* ---------- Grilles tarifaires ---------- */
.rate-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--rim), var(--shadow-deep);
}

.rate-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: .9375rem;
}

.rate-table caption {
    padding: var(--s-6) var(--s-6) 0;
    text-align: left;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--clay);
}

.rate-table th,
.rate-table td {
    padding: var(--s-4) var(--s-6);
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line-soft);
}

.rate-table thead th {
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-3);
    white-space: nowrap;
}

.rate-table tbody th {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-1);
}

.rate-table td {
    color: var(--text-2);
}

.rate-table .price {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-1);
    white-space: nowrap;
}

.rate-table tbody tr:last-child th,
.rate-table tbody tr:last-child td {
    border-bottom: 0;
}

/* ---------- Grille de réalisations ----------
   La piste horizontale pinnée reste à l'accueil ; la page dédiée
   présente les mêmes cartes en grille, dans l'ordre du DOM. */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: var(--s-6);
}

.work-grid .work-card {
    width: auto;
}

.work-grid .work-card[hidden] {
    display: none;
}

/* Barre de filtres — posée par le script, donc absente sans JS.
   La grille reste alors complète, ce qui est le comportement voulu. */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-12);
}

.filter-bar[hidden] {
    display: none;
}

.filter-bar button {
    min-height: 40px;
    padding: var(--s-2) var(--s-4);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-3);
    background: none;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: color var(--t-std) var(--ease-std), border-color var(--t-std) var(--ease-std), background-color var(--t-std) var(--ease-std);
}

.filter-bar button:hover {
    color: var(--text-1);
    border-color: var(--blue-700);
}

.filter-bar button[aria-pressed="true"] {
    color: #FFFFFF;
    background: var(--blue-500);
    border-color: var(--blue-500);
}

.filter-count {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ---------- Estimateur de devis ----------
   Posé par js/components/estimator.js : le bloc reste `hidden` tant que
   le script n'a pas pris la main, la page garde alors ses seules grilles
   de repère statiques. */
.estimator[hidden] {
    display: none;
}

.est-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
    gap: 1px;
    margin-bottom: var(--s-8);
    background: var(--line-soft);
    border: 1px solid var(--line);
    box-shadow: var(--rim), var(--shadow-deep);
}

.est-box {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    padding: var(--s-6);
    background: var(--surface);
}

.est-box > span:first-child,
.est-box > label {
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--text-3);
}

.est-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -.02em;
    color: var(--text-1);
}

.est-box--strong {
    background: var(--blue-050);
}

.est-box--strong .est-value {
    font-size: 1.7rem;
    color: var(--blue-700);
}

.est-box input {
    width: 100%;
    max-width: 120px;
    min-height: 44px;
    padding: var(--s-2) var(--s-3);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-1);
    background: var(--paper);
    border: 1px solid var(--line);
}

.est-box input:focus {
    border-color: var(--blue-700);
}

.est-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-4);
    margin-bottom: var(--s-8);
    padding-bottom: var(--s-6);
    border-bottom: 1px solid var(--line);
}

.est-search {
    flex: 1 1 260px;
    min-height: 48px;
    padding: var(--s-3) var(--s-4);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-1);
    background: var(--surface);
    border: 1px solid var(--line);
}

.est-search:focus {
    border-color: var(--blue-700);
}

.est-switch {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-3);
    cursor: pointer;
}

.est-group {
    border: 1px solid var(--line);
    border-top: 0;
    background: var(--surface);
}

.est-group:first-of-type {
    border-top: 1px solid var(--line);
}

.est-group[hidden] {
    display: none;
}

.est-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-6);
    cursor: pointer;
    list-style: none;
    background: var(--sunken);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-1);
}

.est-group > summary::-webkit-details-marker {
    display: none;
}

.est-group > summary svg {
    width: 16px;
    height: 16px;
    flex: none;
    color: var(--blue-700);
    transition: transform var(--t-std) var(--ease-out);
}

.est-group[open] > summary svg {
    transform: rotate(180deg);
}

.est-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-3);
    padding: var(--s-4) var(--s-6);
    border-top: 1px solid var(--line-soft);
    transition: background-color var(--t-std) var(--ease-std);
}

.est-row[hidden] {
    display: none;
}

.est-row.is-selected {
    background: var(--blue-050);
}

.est-info h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-1);
}

.est-info p {
    font-size: .9375rem;
    color: var(--text-2);
    margin-top: var(--s-1);
}

.est-meta {
    display: block;
    margin-top: var(--s-2);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.est-pu,
.est-line > span:first-child {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-1);
    white-space: nowrap;
}

.est-qty {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.est-step {
    width: 44px;
    height: 44px;
    flex: none;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-1);
    background: var(--paper);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: border-color var(--t-std) var(--ease-std), background-color var(--t-std) var(--ease-std);
}

.est-step:hover {
    border-color: var(--blue-700);
    background: var(--blue-050);
}

.est-qty input {
    width: 66px;
    min-height: 44px;
    padding: var(--s-2);
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-1);
    background: var(--surface);
    border: 1px solid var(--line);
}

.est-qty input:focus {
    border-color: var(--blue-700);
}

/* Étiquette réservée aux lecteurs d'écran : chaque champ de quantité
   doit être nommé, sans alourdir la ligne visuellement. */
.est-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.est-line {
    display: flex;
    align-items: baseline;
    gap: var(--s-3);
}

.est-line .est-meta {
    margin-top: 0;
}

.est-empty {
    padding: var(--s-12);
    text-align: center;
    color: var(--text-3);
}

/* ---------- Bandeau cookies ---------- */
/* Ancré en bas à droite plutôt qu'en pleine largeur : centré, il
   recouvrait le CTA principal du hero et le haut de l'estimateur. */
.cookie-banner {
    position: fixed;
    left: var(--s-4);
    right: var(--s-4);
    bottom: var(--s-4);
    z-index: 70;
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    max-width: 460px;
    margin-left: auto;
    padding: var(--s-6);
    transform: translateY(calc(100% + var(--s-8)));
    transition: transform var(--t-emph) var(--ease-out);
}

.cookie-banner.is-visible {
    transform: none;
}

.cookie-copy {
    position: relative;
    max-width: 58ch;
    font-size: .9375rem;
    color: var(--text-2);
}

.cookie-copy a {
    color: var(--blue-700);
    border-bottom: 1px solid var(--line);
}

.cookie-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}

/* ---------- Bloc d'appel final ---------- */
.cta-band {
    position: relative;
    padding-block: var(--s-24);
    overflow: hidden;
    border-top: 1px solid var(--line-soft);
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 120%, rgba(0, 51, 160, .12), transparent 66%);
}

.cta-band .shell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-6);
    text-align: center;
}

.cta-band .sub {
    max-width: 20ch;
}
/* ---------- Responsive (§4) ---------- */
@media (min-width: 640px) {
    .step {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: var(--s-8);
    }
}

@media (min-width: 900px) {
    .topbar-links {
        display: flex;
    }

    .expertise-row {
        grid-template-columns: 120px minmax(0, 1fr) minmax(0, 340px);
        gap: var(--s-12);
        align-items: center;
    }
}

@media (max-width: 899px) {
    .gallery-pin {
        min-height: 0;
        display: block;
    }

    .gallery-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: var(--s-6);
        -webkit-overflow-scrolling: touch;
    }

    .work-card {
        scroll-snap-align: start;
    }
}

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

/* ---------- Gating motion (§6) ----------
   Aucun contenu n'est masqué tant que le JS n'a pas confirmé
   que GSAP est chargé. Si le CDN tombe, la page reste complète. */
.has-motion .reveal {
    opacity: 0;
}

/* État initial posé par GSAP (gsap.set), pas par le CSS : un
   translateY en % écrit ici serait relu en pixels par GSAP et
   `yPercent: 0` ne l'annulerait pas — les mots resteraient masqués. */
.has-motion .hero-title .word > span {
    visibility: hidden;
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .has-motion .reveal,
    .has-motion .hero-title .word > span {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

/* ---------- Responsive des composants de site ---------- */
@media (min-width: 640px) {
    .field-row--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cookie-banner {
        left: auto;
        right: var(--s-6);
        bottom: var(--s-6);
    }
}

@media (min-width: 900px) {
    /* Une ligne de catalogue tient sur un rang : poste, prix unitaire,
       quantité, total. En dessous elle s'empile. */
    .est-row {
        grid-template-columns: minmax(0, 1fr) 120px auto 140px;
        gap: var(--s-6);
        align-items: center;
    }

    .est-line {
        flex-direction: column;
        align-items: flex-end;
        gap: var(--s-1);
    }
}

@media (min-width: 900px) {
    /* Au-delà du point de bascule, .topbar-links reprend la main :
       le panneau sort du DOM interactif pour ne pas piéger le focus. */
    .nav-toggle,
    .drawer {
        display: none;
    }
}

/* Le rail de chapitres n'existe qu'à l'accueil : la gouttière qu'il
   réserve doit donc être conditionnée à sa présence, sinon les pages
   intérieures se décalent de 88px sans raison. */
@media (min-width: 1100px) {
    .with-rail .rail {
        display: flex;
    }

    .with-rail .shell,
    .with-rail .gallery-track,
    .with-rail .topbar {
        padding-left: calc(var(--gutter) + var(--rail-w));
    }
}
