/* L’Atelier Plantard — version finale. Typographie de la variante 1 : Instrument Serif (titres), Geist (texte), Geist Mono (repères).
   Fond blanc, texte bleu ou noir. Polices servies depuis le site (SIL OFL 1.1, voir assets/fonts/). */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/geist-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/geist-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/geist-mono-latin-500-normal.woff2) format("woff2"); }
:root {
  /* Rôles typographiques partagés avec les trois variantes de maquette. */
  --type-page: clamp(2.5rem, calc(.573333rem + 8.562963vw), 11rem);
  --type-page-short: clamp(2.5rem, calc(.933333rem + 6.962963vw), 9.375rem);
  --type-body: 1rem;
  --type-meta: .75rem;
  --type-lead: clamp(1.25rem, calc(1.177419rem + .322581vw), 1.5rem);
  --type-emphasis: clamp(1.5rem, calc(1.354839rem + .645161vw), 2rem);
  --type-card: clamp(1.5rem, calc(1.209677rem + 1.290323vw), 2.5rem);
  --type-heading: clamp(2rem, calc(1.709677rem + 1.290323vw), 3rem);
  --type-section: clamp(2.5rem, calc(2.064516rem + 1.935484vw), 4rem);
  --type-statement: clamp(2.5rem, calc(1.774194rem + 3.225806vw), 5rem);
  --type-display: clamp(3rem, calc(2.129032rem + 3.870968vw), 6rem);
  --space-label: .75rem;
  --space-text: 1rem;
  --space-heading: 1.5rem;
  --space-group: 2rem;
  --space-block: 3rem;
  --space-section: 6rem;
  --space-section-airy: 7rem;

  --bleu: #091B69;
  --bleu-nuit: #050F3D;
  --papier: #F4F1EA;
  --blanc: #FFFFFF;
  --encre: #14161C;
  --texte: #3B3E48;
  --gris: #6B6E78;
  --filet: rgba(20, 22, 28, .14);
  --laiton: #B69D5D;
  --or: #8A733A; /* or des textes, états et contours sur fond clair (4.6:1 sur blanc) ; l'or laiton reste sur les fonds sombres */
  --erreur: #A3301F; /* rouge brique des erreurs de formulaire : 7:1 sur blanc */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --g: 24px; /* gouttière et marges latérales de la grille commune : 12 colonnes partout (ordinateur), une colonne sous 861 px */
  --grille: repeat(12, minmax(0, 1fr));
  /* Barre d'état du téléphone : la page passe dessous (viewport-fit=cover) ; 0 sur ordinateur et dans les navigateurs qui ne le font pas */
  --sur: env(safe-area-inset-top, 0px);
  --sous: env(safe-area-inset-bottom, 0px);
  --tete: calc(96px + var(--sur)); /* hauteur réservée à l'en-tête, barre d'état comprise */
  --ease: cubic-bezier(.7, 0, .2, 1);
  --sortie: cubic-bezier(.2, .7, .2, 1);
  /* Boutons communs : texte bleu sans fond ; survol fond bleu clair ; état sélectionné sans fond, texte or (laiton) ; clic fond bleu, texte blanc (hors section Contact et menu plein écran) */
  --btn-pad: 0 12px;
  --btn-rayon: 99px;
  --btn-survol: rgba(9, 27, 105, .08);
  --btn-survol-sombre: rgba(255, 255, 255, .16);
  --btn-survol-actif: rgba(182, 157, 93, .16); /* survol d'un bouton sélectionné : or clair */
  --btn-c: var(--bleu); /* texte du bouton ; blanc sur fond sombre */
  --btn-presse: var(--bleu); /* clic : fond bleu, texte blanc ; inversé sur fond sombre */
  --btn-presse-texte: #fff;
  /* Flèche des liens : même dessin que ico("droite") ; → au repos, tournée en ↗ au survol, au focus clavier et au clic */
  --fleche: polygon(13.54% 46.88%, 75.79% 46.88%, 53.92% 25%, 58.33% 20.58%, 87.75% 50%, 58.33% 79.42%, 53.92% 75%, 75.79% 53.13%, 13.54% 53.13%); /* tracé ico('droite') : M4 12h15M14 6l6 6-6 6, trait 1,5 */
  --fleche-anim: transform .8s var(--ease);
}
@media (min-width: 48rem) { :root { --space-section: 8rem; --space-section-airy: 10rem; } }
@media (min-width: 80rem) { :root { --space-section: 10rem; --space-section-airy: 12rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; } /* pas de fond bleu au toucher sur mobile */
/* Fond du document : couleur des rebonds de défilement, et des barres de Safari 26 quand rien ne passe dessous.
   --teinte part de la couleur du haut de la page (tete.php : bleu nuit sous une vidéo ou une photo d'ouverture, blanc sinon) et passe une seule fois,
   à mi-page, à celle du pied (app.js) : bleu nuit sous la section contact, blanc sur la page Contact. Safari suit mal les changements fréquents. */
/* Safari mêle les fonds de <html> et <body> : les deux prennent la teinte, le blanc de la page passe sur <main> (pied et barre d'évitement ont leur propre fond). */
html, body { background: var(--teinte, var(--blanc)); }
main { background: var(--blanc); }
/* Paysage sur iPhone : contenu hors de l'encoche ; les blocs sombres prolongent leur fond dans les bandes latérales (0 ailleurs) */
body { padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
:is(.hero, .ouverture, .suivant, .appel:not(.appel-court)) { border-image: linear-gradient(var(--bleu-nuit) 0 0) fill 0 / 0 / 0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; color: var(--encre);
  font: 400 var(--type-body)/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-wrap: pretty;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Barre d'évitement : premier arrêt du clavier, repliée (hauteur nulle, jamais masquée) puis dépliée dans le flux tant qu'un de ses liens a le focus.
   Elle pousse le contenu ; l'en-tête fixe descend de sa hauteur (--evitement, mesurée par app.js). */
/* Fond selon le premier bloc de la page : bleu clair sur les pages claires (toutes, pied de page compris), bleu quand la page s'ouvre sur un bloc sombre [data-sombre] (accueil, projets). Boutons : jeu d'états commun (--btn-*). */
.evitement { position: relative; z-index: 100; height: 0; overflow: hidden; background: #E8ECF6; color: var(--bleu); --btn-survol: rgba(9, 27, 105, .1); }
body:has(#contenu > [data-sombre]:first-child) > .evitement { background: var(--bleu); color: #fff; --or: var(--laiton); --btn-c: #fff; --btn-survol: var(--btn-survol-sombre); --btn-presse: #fff; --btn-presse-texte: var(--bleu); }
.evitement:focus-within { height: auto; }
html:has(.evitement:focus-within) { --evitement: 56px; } /* sans script */
.evitement ul { display: flex; flex-wrap: wrap; gap: 0 4px; list-style: none; margin: 0; padding: 8px var(--g); }
.evitement a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--btn-rayon); color: var(--btn-c); font: 500 .875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; -webkit-tap-highlight-color: transparent; }
.evitement a[href]:is(:hover, :focus-visible) { background: var(--btn-survol); color: var(--btn-c); }
.evitement a[href]:active { opacity: 1;  background: var(--btn-presse); color: var(--btn-presse-texte); }
.evitement a:focus-visible { outline-offset: -2px; }
@media (max-width: 480px) { .evitement ul { padding: 8px 12px; gap: 0; } .evitement a { padding: 0 8px; font-size: .75rem; letter-spacing: .06em; } }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
/* Fonds sombres et en-tête (inversé par mix-blend-mode) : l'or laiton, lisible sur le bleu */
:is([data-sombre], .menu, .entete, .sur-hero .ancres, .ancres.sur-sombre, .haut:not(.pied .haut)) { --or: var(--laiton); }
section { position: relative; }

/* Repères typographiques */
.mono { font: 500 var(--type-meta)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: .92; margin: 0; }
.display em, .bloc-titre em { font-style: italic; }
.lead { font-size: var(--type-lead); line-height: 1.45; max-width: 34ch; margin: 0; }
.lead a { color: var(--bleu); text-decoration: none; }
.lead a .mono { display: inline-block; margin-right: .4em; font-size: .6em; vertical-align: .35em; text-decoration: none; }
.lien {
  display: inline-flex; align-items: center; gap: var(--space-text); font: 500 1.0625rem/1 var(--sans); color: var(--bleu);
  padding: var(--btn-pad); margin-inline: -12px; border-radius: var(--btn-rayon); min-height: 44px; transition: background .3s, color .3s;
}
.lien span { transition: var(--fleche-anim); }
/* Icônes (build.py, ico) : un seul dessin SVG, trait 1,5 à bouts carrés, taille liée au texte */
.ico { display: block; width: 1.125em; height: 1.125em; flex: none; overflow: visible; }
.lien span, .bouton span, .lien-bouton span, .haut span { display: inline-flex; }

/* Titres découpés ligne à ligne (app.js) */
[data-lignes] > span { display: block; overflow: hidden; padding: .06em .1em .14em 0; margin-bottom: -.2em; }
[data-lignes] > span > b { display: block; font-weight: inherit; }
/* Avant l'animation : contenus masqués, rendus visibles par app.js (secours après 6 s si le script échoue) */
.js:not(.pret) :is([data-lignes], [data-fondu], [data-sous], [data-devoile]) { opacity: 0; animation: secours 0s 6s forwards; }
@keyframes secours { to { opacity: 1; } }

/* Légende des images qui ne montrent pas un chantier de L’Atelier Plantard */
.legende { position: absolute; z-index: 3; left: 12px; bottom: 12px; background: rgba(5, 15, 61, .78); color: var(--papier); padding: 8px; font-size: var(--type-meta); pointer-events: none; }

/* ---------- Rideau : logo laser à chaque chargement direct ; entre deux pages, un voile bleu uni en fondu ---------- */
.rideau {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--bleu-nuit);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .8s var(--ease), visibility 0s .8s;
}
.rideau-logo { position: relative; display: block; width: 140px; height: 140px; opacity: 0; transition: opacity .4s; }
html:is(.premiere, .arrivee, .sortie), html:is(.premiere, .arrivee, .sortie) body { overflow: hidden; overscroll-behavior: none; } /* pas de défilement pendant le chargement */
html:is(.premiere, .arrivee) .rideau { opacity: 1; visibility: visible; transition: none; animation: rideau-secours .6s 6s forwards; }
html.premiere .rideau-logo { opacity: 1; transition: none; }
/* Départ : le bleu apparaît en fondu */
html.sortie .rideau { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .4s var(--ease), visibility 0s; }
/* Arrivée : le bleu se dissipe */
html.leve .rideau { transition: opacity .6s var(--ease) .1s, visibility 0s .7s; }
/* Première visite : le logo s'efface, puis le bleu se dissipe */
html.leve.sortie-logo .rideau { transition: opacity .7s var(--ease) .25s, visibility 0s .95s; }
html.leve.sortie-logo .rideau-logo { opacity: 0; transform: scale(.97); transition: opacity .25s var(--ease), transform .35s var(--ease); }
@keyframes rideau-secours { to { opacity: 0; visibility: hidden; } }

/* ---------- En-tête : logo à gauche, sommaire de l'accueil, bouton Menu ---------- */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: var(--space-heading);
  padding: calc(20px + var(--sur)) max(var(--g), env(safe-area-inset-right, 0px)) 20px max(var(--g), env(safe-area-inset-left, 0px)); color: var(--bleu); transition: color .4s var(--ease), background .4s var(--ease), box-shadow .4s,
    transform .8s cubic-bezier(.16, 1, .3, 1), opacity .6s cubic-bezier(.16, 1, .3, 1);
}
.entete.cache, .sur-hero:not(.menu-ouvert) .entete.plein { transform: translateY(-100%); }
.entete.cache { opacity: 0; transition: color .4s var(--ease), transform .4s cubic-bezier(.7, 0, .84, 0), opacity .3s ease-in; }
.entete:has(:focus-visible) { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .entete, .entete.cache { transition: color .4s, background .4s, box-shadow .4s, opacity .3s; } }
.entete.plein { background: transparent; box-shadow: none; }
/* Safari 26 prend tout bloc fixe de pleine largeur touchant le haut de l'écran pour une barre et peint l'heure de sa couleur (fond de page s'il est transparent).
   L'en-tête et son voile laissent passer le toucher : Safari les ignore et montre la page (vidéo, photos) sous l'heure ; logo, sommaire et bouton restent cliquables. */
.entete { pointer-events: none; }
.entete > * { pointer-events: auto; }
/* Couleur inversée automatiquement selon le fond (comme la variante 2) ; normale menu ouvert */
.entete { color: #fff; mix-blend-mode: difference; }
.menu-ouvert .entete, .sur-hero .entete { mix-blend-mode: normal; }
.menu-ouvert .entete { color: var(--papier); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Flou discret sur toute la hauteur de l'en-tête, dégradé en dessous (absent sur le hero ; caché sous le menu ouvert) */
.entete-flou {
  position: fixed; inset: 0 0 auto; height: calc(150px + var(--sur)); z-index: 49; pointer-events: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  /* Voile blanc : le texte qui passe dessous s'efface au lieu de baver */
  background: rgb(255 255 255 / .82);
  --fondu: linear-gradient(#000 0%, rgba(0,0,0,.95) 40%, rgba(0,0,0,.8) 50%, rgba(0,0,0,.6) 60%, rgba(0,0,0,.4) 70%, rgba(0,0,0,.22) 80%, rgba(0,0,0,.08) 90%, transparent 100%);
  -webkit-mask-image: var(--fondu); mask-image: var(--fondu);
  transition: background-color .3s var(--ease), -webkit-backdrop-filter .4s var(--ease), backdrop-filter .4s var(--ease), transform .8s cubic-bezier(.16, 1, .3, 1), z-index 0s .8s;
}
/* Menu ouvert : le voile passe sous le menu (z-index 40) et n'en ressort qu'une fois le menu replié (.8s), sinon il blanchit le haut du menu pendant la fermeture */
.menu-ouvert .entete-flou { z-index: 39; transition: background-color .3s var(--ease), -webkit-backdrop-filter .4s var(--ease), backdrop-filter .4s var(--ease), transform .8s cubic-bezier(.16, 1, .3, 1), z-index 0s; }
body:has(.entete.cache) .entete-flou { transform: translateY(-100%); transition: -webkit-backdrop-filter .4s var(--ease), backdrop-filter .4s var(--ease), transform .4s cubic-bezier(.7, 0, .84, 0); }
/* Fond clair : fondu blanc seul, sans flou (le flou fait un halo autour des grands titres) */
.entete-flou:not(.sur-sombre) { -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
.entete-flou.sur-sombre, .sur-hero .entete-flou { background: transparent; }
.sur-hero .entete-flou { -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
@media (max-width: 760px) { .entete-flou { height: calc(128px + var(--sur)); } }
@media (prefers-reduced-motion: reduce) { body:has(.entete.cache) .entete-flou { transform: none; opacity: 0; transition: opacity .3s; } }
.marque { display: block; flex: none; transition: color .4s var(--ease), opacity .5s var(--ease), visibility 0s; }
.marque svg { display: block; height: 40px; width: auto; }
/* Survol du logo : l'en-tête est en mix-blend-mode difference, on donne donc le complément de l'or (#FFF − laiton) pour obtenir l'or sur fond clair */
body:not(.menu-ouvert) .entete .marque:is(:hover, :focus-visible, :active) { color: #4962A2; }

.ancres ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.ancres a {
  display: flex; align-items: center; min-height: 40px; padding: var(--btn-pad); border-radius: var(--btn-rayon);
  font: 500 .875rem/1 var(--sans); transition: background .3s, color .3s;
}
/* Ancres : même typographie que le bouton Menu ; blanches sur le hero et les fonds sombres, bleues ailleurs */
.ancres a { font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ancres {
  position: fixed; top: calc(20px + var(--sur)); left: 50%; z-index: 50; transform: translateX(-50%);
  transition: visibility 0s .8s, transform .8s cubic-bezier(.16, 1, .3, 1), opacity .6s cubic-bezier(.16, 1, .3, 1);
}
/* Sommaire hors de l'en-tête : couleurs de la DA (pas d'inversion), suit l'apparition de l'en-tête */
body:has(.entete.cache) .ancres:not(:focus-within), .sur-hero:not(.menu-ouvert) .entete.plein ~ .ancres:not(:focus-within) {
  transform: translate(-50%, calc(-100% - 20px)); opacity: 0;
  transition: visibility 0s .8s, transform .4s cubic-bezier(.7, 0, .84, 0), opacity .3s ease-in;
}
.menu-ouvert .ancres { visibility: hidden; transition-delay: 0s; }

.btn-menu {
  font: 500 .875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: inherit; flex: none;
  background: none; border: 1px solid transparent; border-radius: var(--btn-rayon); min-height: 40px; padding: var(--btn-pad); cursor: pointer;
  display: inline-flex; gap: var(--space-text); align-items: center; transition: background .3s, color .3s, border-color .4s var(--ease);
}
.menu-ouvert .btn-menu { border-color: transparent; }
.btn-menu span { display: block; overflow: hidden; }
.btn-menu span b { display: block; font-weight: inherit; }
.btn-menu i { width: 20px; height: 8px; position: relative; }
.btn-menu i::before, .btn-menu i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.btn-menu i::before { top: 0; } .btn-menu i::after { bottom: 0; }
.menu-ouvert .btn-menu i::before { transform: translateY(3.25px) rotate(45deg); }
.menu-ouvert .btn-menu i::after { transform: translateY(-3.25px) rotate(-45deg); }
.menu-ouvert .btn-menu:focus-visible { outline: 2px solid var(--or); outline-offset: 4px; }

/* Menu plein écran */
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bleu); color: var(--papier);
  display: grid; grid-template-columns: var(--grille); column-gap: var(--g); grid-template-rows: minmax(0, 1fr) auto; row-gap: 56px; padding: calc(128px + var(--sur)) max(var(--g), env(safe-area-inset-right, 0px)) calc(24px + var(--sous)) max(var(--g), env(safe-area-inset-left, 0px));
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu-ouvert .menu { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.menu ol { grid-column: 1 / 9; list-style: none; margin: 0; padding: 0; align-self: center; }
.menu li { overflow: hidden; }
.menu li a {
  display: flex; align-items: baseline; gap: var(--space-heading); font: 400 clamp(52px, 10vh, 120px)/1 var(--serif);
  letter-spacing: -.02em; padding: .04em 0; transition: color .4s, padding .6s var(--ease);
}
.menu li a .mono { color: var(--laiton); width: 2.5em; flex: none; font-size: .875rem; }
.menu ol a:hover { padding-left: 2.5vw; }
.menu a:focus-visible { outline: 2px solid var(--or); outline-offset: -2px; }
.menu-apercu { grid-column: 9 / 13; position: relative; align-self: stretch; overflow: hidden; }
.menu-apercu img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .6s, transform 1.2s var(--ease); }
.menu-apercu img.on { opacity: 1; transform: scale(1); }
.menu-apercu img[src*="tanguy"] { object-position: 50% 0; transform-origin: 50% 0; }
.menu-pied { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: var(--space-heading); flex-wrap: wrap; border-top: 1px solid rgba(244, 241, 234, .2); padding-top: var(--space-text); font-size: .875rem; text-transform: none; letter-spacing: normal; }
.menu-pied :is(a, span) { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Ouverture vidéo ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: #fff; background: var(--bleu-nuit); display: grid; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* iPhone en mode économie d'énergie : iOS refuse la lecture automatique et affiche son bouton lecture ; on le masque (l'image d'attente reste, la vidéo démarre au premier toucher). */
.hero video::-webkit-media-controls, .hero video::-webkit-media-controls-start-playback-button, .hero video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .45) 30%, transparent 65%), linear-gradient(180deg, rgba(5, 15, 61, .45), rgba(5, 15, 61, .2) 45%, rgba(5, 15, 61, .62)); }
.hero-c { position: relative; z-index: 2; align-self: center; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(24px, 5vh, 56px); padding: var(--tete) var(--g) 120px; }
.hero-legende { left: auto; right: var(--g); bottom: auto; top: calc(var(--tete) + 8px); }
.hero-logo { margin: 0; }
.hero-logo svg { display: block; width: clamp(220px, 34vw, 540px); height: auto; }
.hero-titre { margin: 0; font: 400 var(--type-statement)/.98 var(--serif); letter-spacing: -.02em; }
/* Ouverture B : composition de la variante 1 (grand titre en trois lignes décalées) */
.hero-bas { position: absolute; z-index: 2; inset: auto var(--g) 28px; display: flex; justify-content: space-between; align-items: end; gap: var(--space-heading); }
.hero-bas p { margin: 0; max-width: 34ch; font-size: var(--type-lead); line-height: 1.4; }
.hero-a .hero-bas { justify-content: flex-start; }
.hero-a .hero-bas p { font-size: 1.125rem; }
.hero-a .hero-bas .defiler { margin-left: auto; }
.hero-bas .hero-titre { text-align: left; font-size: clamp(1.75rem, calc(1.1rem + 1.6vw), 3rem); line-height: 1; }
.defiler { display: flex; align-items: center; gap: var(--space-label); min-height: 48px; font-size: .875rem; }
.defiler i { width: 1px; height: 46px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.defiler i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: goutte 2.2s var(--ease) infinite; }
@keyframes goutte { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- Accueil : écran-titre plein écran, puis le contenu monte par-dessus ---------- */
.ecran {
  position: sticky; top: 0; z-index: 0; height: 100svh; min-height: 520px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: var(--tete) 0 64px;
  /* Safari 26 prend tout bloc collé de pleine largeur qui touche le haut ou le bas de l'écran pour une barre et peint la sienne d'une couleur pleine.
     Le bloc collé, sans fond ni toucher (le blanc vient de <main>), ne fait que 76 % de la largeur (Safari l'ignore sous 80 %) ;
     ses textes débordent de part et d'autre pour retrouver la largeur d'origine, page moins les marges : (24 % / 76 %) / 2 = 15,7895 %. */
  width: 76%; margin-inline: auto; pointer-events: none;
}
.ecran > :is(.ecran-titre, .ecran-sous) { margin-inline: calc(var(--g) - 15.7895%); }
.ecran-titre { margin: 0; font: 400 var(--type-page-short)/.92 var(--serif); letter-spacing: -.025em; color: var(--bleu); }
.ecran-sous { margin: clamp(16px, 3vh, 32px) 0 0; font: 400 var(--type-card)/1.1 var(--sans); letter-spacing: -.01em; color: var(--encre); max-width: 22ch; }
.chap-corps { position: relative; z-index: 1; background: var(--blanc); }
/* Fondu en tête du contenu : l'écran-titre se dissout au lieu d'être coupé net */
.chap-corps::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: clamp(120px, 28vh, 320px); background: linear-gradient(to bottom, rgb(255 255 255 / 0), var(--blanc) 85%); pointer-events: none; }

/* Expertise : deux offres empilées, image et texte alternés */
.offres { padding: var(--tete) var(--g) var(--space-section); }
.offre { display: grid; grid-template-columns: var(--grille); align-items: center; }
.offre + .offre { margin-top: var(--space-section); }
.offre-img { grid-column: 1 / 7; }
.offre-img .cadre-in { aspect-ratio: 5 / 4; }
.offre-txt { grid-column: 8 / 13; max-width: 34rem; }
@media (min-width: 861px) {
  .offre:first-of-type .offre-img { grid-column: 7 / 13; }
  .offre:first-of-type .offre-txt { grid-column: 1 / 6; grid-row: 1; }
}
.offre-n { color: var(--gris); margin: 0 0 var(--space-heading); }
.offre-titre { margin: 0 0 var(--space-text); font: 400 clamp(2.75rem, calc(1.6rem + 3.2vw), 5rem)/.95 var(--serif); letter-spacing: -.02em; color: var(--bleu); }
.accroche { margin: 0 0 var(--space-heading); font: 400 var(--type-lead)/1.2 var(--sans); letter-spacing: -.01em; }
.offre-txt > p:not([class]) { margin: 0 0 var(--space-group); color: var(--texte); font-size: 1.0625rem; max-width: 42ch; }
/* Bouton vers les réalisations filtrées sur l'expertise, puis lien vers la page Expertises */
.offre-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px var(--space-text); }
/* Bouton et lien de même gabarit : même texte, même hauteur, même retrait ; libellés et flèches partent du même bord */
.offre-actions :is(.bouton, .lien) { font: 500 1.0625rem/1 var(--sans); letter-spacing: 0; text-transform: none; min-height: 52px; margin-inline: 0; padding-inline: var(--space-heading); gap: var(--space-text); }

/* Réalisations : barre d'affichage et de filtres collante en haut, planche à deux colonnes dessous.
   Boutons en mono, à la taille du pied de page. La barre colle en haut quand on descend ; quand on remonte, l'en-tête revient et la barre se masque. */
.catalogue { display: grid; grid-template-columns: var(--grille); gap: 0 var(--g); padding: var(--tete) var(--g) var(--space-section); align-items: start; }
.cat-repere { grid-column: 1 / -1; height: 0; }
.cat-barre {
  grid-column: 1 / -1; position: relative; top: 0; z-index: 5; display: flex; align-items: center; gap: var(--space-label) 4px;
  margin: 0 calc(var(--g) * -1) 16px; padding: var(--space-label) var(--g); background: var(--blanc);
  transition: transform .8s cubic-bezier(.16, 1, .3, 1), opacity .4s;
}
body:not(:has(.entete.cache)) .cat-barre.colle { transform: translateY(-100%); opacity: 0; pointer-events: none; transition: transform .4s cubic-bezier(.7, 0, .84, 0), opacity .3s; }
@media (prefers-reduced-motion: reduce) { .cat-barre, body:not(:has(.entete.cache)) .cat-barre.colle { transition: opacity .2s; transform: none; } }
/* Collante seulement une fois passée sous le haut de l'écran (classe posée par app.js) : en entrant par le bas, une barre blanche collante
   de pleine largeur serait prise par Safari 26 pour la couleur de sa barre du bas, qui deviendrait blanche au-dessus des photos. */
.cat-barre.colle { position: sticky; }
/* Navigateurs qui affichent la page sous la barre du téléphone : la barre collée descend d'autant (0 ailleurs) */
.cat-barre.colle { padding-top: calc(var(--space-label) + env(safe-area-inset-top, 0px)); }
.cat-sep { width: 1px; height: 24px; margin-inline: 8px; background: var(--filet); flex: none; }
/* Libellés rembourrés comme les boutons : même écart de texte à texte partout (le premier reste aligné sur la marge) */
.cat-lab { margin: 0; padding: 0 12px; color: var(--gris); font-size: .8125rem; white-space: nowrap; }
.cat-barre > .cat-lab:first-child { margin-left: -12px; }
.filtres, .vues { display: flex; gap: 4px; }
.filtres button, .vues button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: var(--btn-pad); border: 0; border-radius: var(--btn-rayon);
  background: none; cursor: pointer; font: 500 .8125rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bleu); white-space: nowrap;
  transition: background .3s, color .3s;
}
.vues .ico { width: 14px; height: 14px; }
.cat-compte { margin: 0 0 0 auto; color: var(--gris); font-size: .8125rem; white-space: nowrap; }
.cat-compte b { color: inherit; font-weight: inherit; }
/* Mobile (sous 861 px, catalogue .feuilles posé par app.js si <dialog> est pris en charge) : deux boutons Affichage et Filtre,
   chacun ouvre un bottom sheet où app.js déplace le groupe de boutons correspondant. Le bouton Affichage montre l'icône de la vue courante ;
   le bouton Filtre affiche le filtre choisi, en or, quand ce n'est pas « Tous ». Fermeture : glisser vers le bas, voile, croix, Échap ou retour Android. */
.cat-ouvrir {
  display: none; align-items: center; gap: 8px; min-height: 40px; padding: var(--btn-pad); border: 1px solid var(--filet); border-radius: var(--btn-rayon);
  background: none; color: var(--btn-c); cursor: pointer; font: 500 .8125rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; transition: background .3s, color .3s, border-color .3s;
}
.cat-ouvrir .ico { width: 14px; height: 14px; }
.cat-ouvrir:not([data-valeur="index"]) .ico-index, .cat-ouvrir[data-valeur="index"] .ico-grille { display: none; }
.cat-ouvrir[data-actif] { color: var(--or); border-color: rgba(182, 157, 93, .55); }
@media (hover: hover) {
  .cat-ouvrir:hover { background: var(--btn-survol); }
  .cat-ouvrir[data-actif]:hover { background: var(--btn-survol-actif); }
}
.cat-ouvrir:focus-visible, .cat-ouvrir[aria-expanded="true"] { background: var(--btn-survol); }
.cat-ouvrir[data-actif]:is(:focus-visible, [aria-expanded="true"]) { background: var(--btn-survol-actif); }
.cat-ouvrir:active { background: var(--btn-presse); border-color: var(--btn-presse); color: var(--btn-presse-texte); }
.cat-ouvrir[data-actif]:active { background: var(--or); border-color: var(--or); color: #fff; }
html.feuille-ouverte { overflow: hidden; }
/* Le <dialog> couvre l'écran (couche supérieure, au-dessus de l'en-tête et du sélecteur) ; voile et panneau sont animés à l'intérieur,
   ce qui donne la même animation à l'ouverture et à la fermeture sur Safari, Chrome et Firefox. */
.feuille {
  --feuille-ease: cubic-bezier(.32, .72, 0, 1); /* courbe des feuilles iOS : départ vif, arrivée longue */
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  /* clip et non hidden : showModal() met le focus dans la feuille ; un conteneur hidden défilerait vers lui et annulerait la montée */
  background: none; color: var(--encre); overflow: hidden; overflow: clip; overscroll-behavior: contain;
}
/* Safari 26 prend ce calque plein écran pour la couleur de ses barres : fond blanc déclaré (celui du panneau), mais peint seulement
   sous les lettres, déjà couvertes par le panneau blanc : rien de visible. */
.feuille { background-color: var(--blanc); -webkit-background-clip: text; background-clip: text; }
.feuille::backdrop { background: transparent; }
.feuille-voile { position: absolute; inset: 0; background: rgba(5, 15, 61, .48); opacity: 0; touch-action: none; -webkit-tap-highlight-color: transparent; transition: opacity .32s var(--feuille-ease); }
.feuille-panneau {
  position: absolute; inset: auto 0 0; max-width: 560px; max-height: calc(100% - 48px); margin-inline: auto; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 var(--g) calc(var(--space-heading) + env(safe-area-inset-bottom, 0px));
  /* Second ombrage : bande blanche sous le panneau, visible quand on le tire vers le haut */
  background: var(--blanc); border-radius: 16px 16px 0 0; box-shadow: 0 48px 0 var(--blanc), 0 -12px 40px rgba(5, 15, 61, .16);
  transform: translate3d(0, 100%, 0); transition: transform .32s var(--feuille-ease);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
/* Contenu plus haut que l'écran (téléphone à l'horizontale) : le corps défile, on tire par la poignée ou le titre */
.feuille.defile .feuille-panneau { touch-action: pan-y; }
.feuille.defile :is(.feuille-poignee, .feuille-tete) { touch-action: none; }
.feuille.ouverte .feuille-voile { opacity: 1; transition-duration: .5s; }
.feuille.ouverte .feuille-panneau { transform: translate3d(0, 0, 0); transition-duration: .5s; }
.feuille.tire :is(.feuille-voile, .feuille-panneau) { transition: none; }
.feuille-poignee { display: flex; justify-content: center; padding: 8px 0 4px; cursor: grab; }
.feuille-poignee i { width: 36px; height: 4px; border-radius: 2px; background: rgba(20, 22, 28, .3); transition: background .2s; }
.feuille.tire .feuille-poignee { cursor: grabbing; }
.feuille.tire .feuille-poignee i { background: rgba(20, 22, 28, .5); }
.feuille-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--space-text); padding: 4px 0 var(--space-label) 12px; }
.feuille-titre { margin: 0; font: 400 var(--type-card)/1 var(--serif); letter-spacing: -.01em; color: var(--bleu); }
.feuille-fermer {
  display: grid; place-items: center; width: 44px; height: 44px; margin-right: -2px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--bleu); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .3s, color .3s;
}
.feuille-fermer .ico { width: 20px; height: 20px; }
@media (hover: hover) { .feuille-fermer:hover { background: var(--btn-survol); } }
.feuille-fermer:focus-visible { background: var(--btn-survol); outline-offset: 0; }
.feuille-fermer:active { background: var(--btn-presse); color: var(--btn-presse-texte); }
.feuille-corps :is(.vues, .filtres) { flex-direction: column; gap: 2px; }
.feuille-corps :is(.vues, .filtres) button { width: 100%; min-height: 52px; padding: 0 12px; border-radius: var(--btn-rayon); font-size: .875rem; text-align: left; }
.feuille-corps :is(.vues, .filtres) button:focus-visible { outline-offset: -2px; }
.feuille-corps .vues .ico { width: 16px; height: 16px; }
/* Noms d'expertise longs : retour à la ligne plutôt que coche coupée */
.feuille-corps .filtres button { white-space: normal; line-height: 1.3; gap: 12px; }
/* Pendant le glisser, l'option touchée au départ ne garde pas son état pressé */
.feuille.tire .feuille-corps :is(.vues, .filtres) button:active { background: none; color: var(--btn-c); }
.feuille.tire .feuille-corps :is(.vues, .filtres) button[aria-pressed="true"]:active { color: var(--or); }
/* Coche du choix courant (trait 1,5 à bouts carrés, comme les icônes) */
.feuille-corps :is(.vues, .filtres, .feuille-choix) button::after {
  content: ""; flex: none; width: 12px; height: 6px; margin: -4px 4px 0 auto; border: solid currentColor; border-width: 0 0 1.5px 1.5px;
  transform: rotate(-45deg) scale(.6); opacity: 0; transition: opacity .2s, transform .3s var(--sortie);
}
.feuille-corps :is(.vues, .filtres, .feuille-choix) button[aria-pressed="true"]::after { opacity: 1; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .feuille-panneau, .feuille.ouverte .feuille-panneau { transform: none; opacity: 0; transition: opacity .2s; }
  .feuille.ouverte .feuille-panneau { opacity: 1; }
  .feuille-voile, .feuille.ouverte .feuille-voile { transition-duration: .2s; }
  .feuille-corps :is(.vues, .filtres, .feuille-choix) button::after { transform: rotate(-45deg); transition: opacity .2s; }
}
/* Contact mobile : besoin et devise dans une feuille, une option par ligne dans la typographie de la saisie,
   mêmes états que les boutons texte (choix courant en or, coché) ; la devise affiche son nom en gris à droite */
.feuille-choix { display: flex; flex-direction: column; gap: 2px; }
.feuille-choix button {
  display: flex; align-items: center; gap: var(--space-text); width: 100%; min-height: 56px; padding: 0 12px; border: 0; border-radius: var(--btn-rayon);
  background: none; color: var(--btn-c); cursor: pointer; font: 400 1.0625rem/1.3 var(--sans); text-align: left;
  -webkit-tap-highlight-color: transparent; transition: background .3s, color .3s;
}
.feuille-corps .feuille-choix button::after { margin-left: 0; }
.feuille-nom { flex: 1; }
.feuille-detail { color: var(--gris); font-size: .9375rem; transition: color .3s; }
.feuille-choix button[aria-pressed="true"] { color: var(--or); }
.feuille-choix button:is([aria-pressed="true"], :active) .feuille-detail { color: inherit; }
@media (hover: hover) {
  .feuille-choix button:hover { background: var(--btn-survol); }
  .feuille-choix button[aria-pressed="true"]:hover { background: var(--btn-survol-actif); }
}
.feuille-choix button:focus-visible { background: var(--btn-survol); outline-offset: -2px; }
.feuille-choix button[aria-pressed="true"]:focus-visible { background: var(--btn-survol-actif); }
.feuille-choix button:active { background: var(--btn-presse); color: var(--btn-presse-texte); }
.feuille-choix button[aria-pressed="true"]:active { background: var(--or); color: #fff; }
.feuille.tire .feuille-choix button:active { background: none; color: var(--btn-c); }
.feuille.tire .feuille-choix button[aria-pressed="true"]:active { color: var(--or); }
/* Contact mobile : calendrier dans sa feuille, sans cadre ; sept colonnes sur toute la largeur, cibles de 44 px,
   hauteur fixe (six semaines) pour que la feuille ne saute pas d'un mois à l'autre */
.feuille .calendrier { position: static; z-index: auto; margin: 0; padding: 0 0 4px; border: 0; box-shadow: none; background: none; min-height: 372px; }
.feuille .cal-tete { margin-bottom: var(--space-label); }
.feuille .calendrier .cal-nav { width: 44px; height: 44px; }
.feuille .calendrier .cal-titre { height: 44px; padding: 0 12px; }
.feuille .calendrier table { width: 100%; table-layout: fixed; }
.feuille .calendrier th { padding-bottom: 8px; font-size: .75rem; }
.feuille .calendrier td button { width: 44px; height: 44px; margin: 2px auto; font-size: 1.0625rem; }
.feuille .cal-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 64px; }
.feuille .calendrier .cal-liste button { height: 48px; font-size: 1.0625rem; }
.cat-main { grid-column: 1 / -1; }
.cat-main:has(> .fiches[data-vue="index"]) { margin-top: 24px; }
.fiches { list-style: none; margin: 0; padding: 0; }
.fiche[hidden] { display: none; }
.fiche a { display: block; }
.vis { position: relative; display: block; overflow: hidden; background: #E9EAEE; }
.vis img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--sortie); }
.fiches[data-vue="grille"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vh, 72px) var(--g); }
.fiches[data-vue="grille"] .vis { aspect-ratio: 4 / 5; }
.fiches[data-vue="grille"] .fiche a:hover img { transform: scale(1.04); }
/* Titre de projet : soulignement qui se trace et flèche qui glisse au survol ; recul net au clic */
.fiche .nom { display: inline-flex; align-items: baseline; gap: .3em; }
.fiches[data-vue="grille"] .fiche .nom { display: flex; justify-content: space-between; gap: var(--space-text); }
.fiche .fl { display: inline-flex; width: calc(1.0625rem * 1.125); /* même taille que la flèche des .lien */ transition: var(--fleche-anim); }
.fiche .fl .ico { width: 100%; height: auto; }
.fiche a:is(:hover, :focus-visible, :active) .fl { transform: rotate(-45deg); }
.fiches[data-vue="grille"] .fiche .fl { align-self: center; }
.fiches[data-vue="grille"] .fiche a:is(:hover, :focus-visible) .nom { color: var(--or); }
.fiches[data-vue="grille"] .fiche a:active img { transform: scale(1.02); }
.fiches[data-vue="grille"] :is(.n, .lieu, .an), .fiches[data-vue="grille"] :is(.lieu, .an)::before { transition: color .3s; }
.fiches[data-vue="grille"] .fiche a:is(:hover, :focus-visible) :is(.n, .lieu, .an),
.fiches[data-vue="grille"] .fiche a:is(:hover, :focus-visible) .lieu::before,
.fiches[data-vue="grille"] .fiche a:is(:hover, :focus-visible) .an::before { color: var(--or); }
@media (prefers-reduced-motion: reduce) { .fiche .fl { transition: none; } }
/* Projets en cours : sans page, « En cours » à la place de l'année, photo en noir et blanc, non cliquables */
.fiche.en-cours img { filter: grayscale(1); }
.fiche-in { cursor: not-allowed; }
.fiches[data-vue] .fiche.en-cours .nom { color: var(--gris); }
.fiches[data-vue="grille"] .ligne { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--space-label); padding-top: var(--space-text); }
.fiches[data-vue="grille"] .nom { font: 400 var(--type-card)/1.05 var(--serif); color: var(--bleu); letter-spacing: -.01em; flex-basis: 100%; order: -1; transition: color .3s; }
.fiches[data-vue="grille"] .n { color: var(--gris); }
.fiches[data-vue="grille"] :is(.n, .lieu, .an) { font-size: 1rem; }
.fiches[data-vue="grille"] :is(.lieu, .an) { color: var(--gris); }
.fiches[data-vue="grille"] .an { font-family: var(--sans); font-weight: 400; letter-spacing: 0; text-transform: none; }
.fiches[data-vue="grille"] .lieu::before, .fiches[data-vue="grille"] .an::before { content: "·"; margin-right: var(--space-label); color: var(--gris); }
.fiches[data-vue="grille"] :is(.ouv, .cat) { display: none; }
.fiches[data-vue="index"] { border-bottom: 1px solid var(--filet); }
.fiches[data-vue="index"] .vis { display: none; }
.fiches[data-vue="index"] .ligne {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 3fr) minmax(0, 1.4fr) minmax(0, 3fr) 88px; gap: var(--space-text); align-items: baseline;
  padding: var(--space-heading) 0; border-top: 1px solid var(--filet);
}
.fiches[data-vue="index"] .nom { font: 400 var(--type-heading)/1.05 var(--serif); color: var(--bleu); letter-spacing: -.01em; }
.fiches[data-vue="index"] .lieu { color: var(--texte); }
.fiches[data-vue="index"] :is(.n, .an) { color: var(--gris); }
.fiches[data-vue="index"] :is(.ouv, .cat) { display: none; }
.fiches[data-vue="index"] .an { grid-column: 5; text-align: right; white-space: nowrap; }
.fiches[data-vue="index"] .ligne > * { transition: color .3s; }
.fiches[data-vue="index"] .fiche a:is(:hover, :focus-visible) .ligne > * { color: var(--or); }
.cat-tout { margin: var(--space-block) 0 0; }
/* La grille borne le déplacement horizontal de l’aperçu. */
.survol { display: none; }
.fiches[data-vue="index"] .survol.on {
  display: block; position: absolute; grid-column: 4 / 5; inset: 0; z-index: 4;
  pointer-events: none;
}
.fiches[data-vue="index"] .survol.on.survol-libre { z-index: 6; }
.survol img {
  display: block; width: min(260px, 85%); height: auto; max-height: min(80vh, var(--apercu-hauteur, 80vh));
  aspect-ratio: 4 / 5; object-fit: contain;
}

/* Curseur au survol des images de projets (souris uniquement) */
.curseur {
  position: fixed; left: 0; top: 0; z-index: 60; width: 44px; height: 44px; margin: -22px 0 0 -22px; pointer-events: none;
  color: var(--laiton);
  transform: scale(0); transition: transform .45s var(--sortie);
}
.curseur svg { display: block; width: 100%; height: 100%; }
.curseur.on { transform: scale(1); }
.avec-curseur [data-curseur] { cursor: none; }

/* Méthode : quatre étapes, numéros à gauche */
.methode { padding: var(--tete) var(--g) var(--space-section); display: grid; grid-template-columns: var(--grille); gap: 0 var(--g); }
.methode-lead { grid-column: 4 / 11; margin: 0 0 var(--space-block); font: 400 var(--type-emphasis)/1.3 var(--sans); letter-spacing: -.01em; }
.etapes { grid-column: 1 / -1; list-style: none; margin: 0 0 var(--space-block); padding: 0; display: grid; gap: clamp(24px, 3.5vh, 40px); justify-items: center; }
.etapes li { position: relative; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: clamp(12px, 1.4vw, 24px); transition: opacity .4s; }
.etapes .n { font: 400 var(--type-heading)/1 var(--sans); letter-spacing: -.03em; color: var(--gris); }
.etapes b { font: 400 clamp(44px, 6vw, 104px)/1.05 var(--serif); letter-spacing: -.02em; color: var(--bleu); }
.etapes p { position: absolute; left: calc(100% + 28px); top: 50%; width: clamp(24ch, 24vw, 32ch); text-wrap: balance; margin: 0; text-align: left; color: var(--texte); font-size: var(--type-body, 1rem); line-height: 1.4; opacity: 0; translate: -10px -50%; transition: opacity .4s, translate .5s var(--ease); pointer-events: none; }
.etapes li:hover p { opacity: 1; translate: 0 -50%; }
.etapes:has(li:hover) li:not(:hover) { opacity: .35; }
.methode > p:last-child { grid-column: 1 / -1; justify-self: center; }
.methode > p:last-child { margin: 0; }

/* Fondateur, puis repères de réassurance sur fond blanc */
.fondateur { display: grid; grid-template-columns: var(--grille); gap: 0 var(--g); padding: var(--tete) var(--g) 0; align-items: end; }
.fond-img { grid-column: 2 / 6; }
.fond-img .cadre-in { aspect-ratio: 3 / 4; }
.fond-img .cadre-in img { height: 100%; object-position: 50% 0; }
.fond-txt .fond-label { margin: 0 0 var(--space-label); color: var(--texte); font-size: .8125rem; }
.fond-txt { grid-column: 7 / 12; }
.fond-txt .lien { display: flex; width: fit-content; }
.fond-txt p:not(.fond-label) { margin: 0 0 var(--space-group); font: 400 var(--type-emphasis)/1.3 var(--sans); letter-spacing: -.01em; }
.reperes { padding: var(--space-section) var(--g); }
.reperes dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.reperes dt { font: 400 var(--type-display)/.9 var(--serif); letter-spacing: -.02em; color: var(--bleu); margin-bottom: var(--space-text); }
.reperes dd { margin: 0; font-size: var(--type-lead); line-height: 1.35; max-width: 22ch; }

/* ---------- Images insérées ---------- */
.cadre { position: relative; margin: 0; }
.cadre-in { position: relative; overflow: hidden; height: 100%; background: #E9EAEE; }
.cadre-in img { width: 100%; height: 112%; object-fit: cover; }
.cadre figcaption { margin-top: var(--space-label); color: var(--gris); }
.vide { margin: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; text-align: center; background: #F1F2F5; border: 1px dashed rgba(9, 27, 105, .3); color: var(--gris); padding: var(--space-heading); }

/* ---------- Appel final et pied ---------- */
.appel { background: var(--bleu-nuit); color: var(--papier); padding: var(--space-section-airy) var(--g) calc(var(--g) + var(--sous)); overflow: hidden; min-height: 100vh; min-height: 100lvh; /* grand viewport : couvre l'écran quand la barre d'adresse mobile se replie en bas de page */ display: flex; flex-direction: column; justify-content: space-between; }
.appel > .mono { color: var(--laiton); margin: 0; font-size: .875rem; }
.appel a.grand { display: block; font: 400 clamp(64px, 12.5vw, 240px)/.9 var(--serif); letter-spacing: -.03em; margin: 4vh 0 14vh; transition: color .6s var(--ease); }
.appel a.grand .fleche { display: inline-block; vertical-align: -.02em; transition: var(--fleche-anim); }
.appel a.grand:is(:hover, :focus-visible, :active) .fleche { transform: rotate(-45deg); }
.appel a.grand .fleche .ico { width: .72em; height: .72em; }
.pied { display: grid; grid-template-columns: var(--grille); gap: var(--g); align-items: start; border-top: 1px solid rgba(244, 241, 234, .18); padding: var(--g) 0 0; font: 500 .8125rem/1.6 var(--mono); color: rgba(244, 241, 234, .78); }
.pied p { margin: 0; grid-column: span 2; }
.pied p:first-child { grid-column: 1 / 4; }
.pied p:last-child { grid-column: 12 / 13; justify-self: end; white-space: nowrap; }
.pied a { display: inline-block; padding: 2px 0; white-space: nowrap; } /* 24,8 px de haut : cible tactile d'au moins 24 px entre deux liens empilés */
.pied .haut { position: static; display: inline-flex; min-height: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; font: inherit;
  opacity: 1; visibility: visible; transform: none; transition: color .3s; }
.pied .haut { flex-direction: row-reverse; justify-content: flex-end; }
.pied .haut::after { margin: 0 .3em 0 0; transform: rotate(-90deg); }
.pied a.haut:is(:hover, :focus-visible, :active)::after { transform: translateY(-3px) rotate(-90deg); }
:where(.appel:not(.appel-court)) .pied .haut { color: #F4F1EAC7; }
.appel-court { min-height: 0; padding-top: 0; background: var(--blanc); color: var(--encre); }
.appel-court .pied { border-top-color: var(--filet); color: var(--texte); }

/* ---------- Pages intérieures ---------- */
.page-tete { padding: calc(var(--tete) + var(--space-section)) var(--g) var(--space-section); display: grid; grid-template-columns: var(--grille); gap: 0 var(--g); }
.page-tete > .mono { grid-column: 1 / -1; color: var(--gris); margin: 0 0 5vh; display: flex; gap: var(--space-text); font-size: .875rem; }
.page-tete > .mono span { color: var(--bleu); }
.page-tete h1 { grid-column: 1 / -1; font-size: var(--type-page); color: var(--bleu); }
.page-tete .l2 { padding-left: 16vw; }
.page-tete .l3 { text-align: right; }
.page-tete .lead { grid-column: 7 / 12; margin-top: 8vh; color: var(--texte); }
.page-tete.court h1 { font-size: var(--type-page-short); }
/* Têtes des pages principales : plein écran, contenu calé en bas */
.page-tete.plein { min-height: 100vh; min-height: 100svh; box-sizing: border-box; padding-top: calc(var(--tete) + 4vh); padding-bottom: clamp(24px, 6vh, 72px); align-content: end; }
.page-tete.plein > .mono { margin-bottom: clamp(16px, 3vh, 40px); }
.page-tete.plein .lead { margin-top: clamp(20px, 4vh, 56px); }
.bloc-cat .catalogue { padding-top: 0; }

/* Fiche projet (gabarit de la variante 2) */
.ouverture { position: relative; height: 100svh; min-height: 560px; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden; background: var(--bleu-nuit); }
.ouverture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ouverture::after, .zoom-calque i { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .45) 30%, transparent 65%), linear-gradient(180deg, rgba(5, 15, 61, .45), rgba(5, 15, 61, .2) 50%, rgba(5, 15, 61, .6)); }
/* Exception (11/11/2026) : d'une réalisation à sa page, l'image s'agrandit jusqu'à l'ouverture (app.js, zoomer()) ;
   à l'arrivée, pas de voile : l'image est en place, le texte et l'en-tête apparaissent ensuite */
.zoom-calque { position: fixed; z-index: 95; overflow: hidden; pointer-events: none; background: var(--bleu-nuit); }
.zoom-calque img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zoom-calque i { opacity: 0; }
.zoom-calque b { position: absolute; inset: 0; }
html.zoom .ouverture > :not(img), html.zoom .entete { opacity: 0; transition: none; }
.ouv-titre { position: relative; z-index: 1; font-size: var(--type-page-short); padding: 0 var(--g); }
.ouv-sous { position: relative; z-index: 1; margin: var(--space-heading) 0 0; font-size: clamp(1.125rem, calc(1.06rem + .29vw), 1.3125rem); }
.ouv-bas { position: absolute; z-index: 1; inset: auto var(--g) 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--g); margin: 0; text-align: left; }
.ouv-bas dt { opacity: .78; }
.ouv-bas dd { margin: 4px 0 0; font-size: 1rem; }
.ouv-bas div:last-child { text-align: right; }
.projet-intro { display: grid; grid-template-columns: var(--grille); gap: 0 var(--g); padding: var(--space-section) var(--g); }
.etiquette { grid-column: 1 / 4; margin: .6em 0 0; color: var(--gris); font-size: .875rem; }
.etiquette a { color: var(--bleu); }
.projet-texte { grid-column: 4 / 11; margin: 0; font: 400 var(--type-emphasis)/1.3 var(--sans); letter-spacing: -.01em; }
.fiche-projet { grid-column: 4 / 13; margin: var(--space-block) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--g); }
.fiche-projet div { border-top: 1px solid var(--filet); padding: var(--space-text) 0 var(--space-heading); }
.fiche-projet dt { color: var(--gris); }
.fiche-projet dd { margin: 6px 0 0; font-size: 1.0625rem; }
.grille-projet { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); padding: 0 var(--g) var(--space-section); }
.grille-projet > figure { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.grille-projet > figure img { width: 100%; height: 100%; object-fit: cover; }
.grille-projet .gp-large { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gp-texte { grid-column: 1 / -1; display: grid; grid-template-columns: var(--grille); gap: var(--g); padding: clamp(48px, 10vh, 120px) 0; }
.gp-texte .mono { grid-column: 1 / 4; margin: .5em 0 0; color: var(--gris); }
.gp-texte p:last-child { grid-column: 4 / 11; margin: 0; font: 400 var(--type-heading)/1.1 var(--serif); color: var(--bleu); letter-spacing: -.01em; }
.gp-liens { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-group); margin: var(--space-block) 0 0; }
.suivant { position: relative; height: 100svh; min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-heading); color: #fff; text-align: center; overflow: hidden; background: var(--bleu-nuit); }
.suivant img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--sortie); }
.suivant::after { content: ""; position: absolute; inset: 0; background: rgba(5, 15, 61, .4); transition: background .6s; }
.suivant > span, .suivant > b { position: relative; z-index: 1; }
.suivant > span { font-size: .875rem; }
.suivant b { font-weight: 400; font-size: var(--type-page-short); }
.suivant:hover img { transform: scale(1.05); }
.suivant:hover::after { background: rgba(9, 27, 105, .6); }

/* Expertises (gabarit de la variante 2) */
.sous-nav { display: flex; flex-wrap: wrap; gap: var(--space-label); padding: 0 calc(var(--g) - 12px); margin-top: calc(var(--space-section) * -.5); }
.sous-nav a { display: inline-flex; align-items: center; gap: var(--space-label); min-height: 48px; padding: var(--btn-pad); border-radius: var(--btn-rayon); font-weight: 500; transition: background .3s, color .3s; }
.bloc { padding: var(--space-section-airy) var(--g); scroll-margin-top: var(--tete); }
.bloc + .bloc { padding-top: clamp(40px, 8vh, 104px); }
.bloc-lab { margin: 0; color: var(--gris); }
#formulaire-projet { scroll-margin-top: calc(var(--tete) + 24px); } /* liens « …#formulaire-projet » : « Étape 1 sur 2 » arrive à la hauteur de « Commençons par un échange » (colonne collante, app.js) */
.bloc-lab[id] { scroll-margin-top: calc(64px - 1.2em + var(--sur)); } /* ancres des expertises : 64 px au-dessus de l’étiquette (le grand titre garde de l’air) */
.bloc-tete { display: grid; grid-template-columns: var(--grille); gap: 0 var(--g); }
.bloc-tete > .bloc-lab { grid-column: 1 / 5; } /* même découpage 4 / 4 / 4 que .texte-duo et .trio */
.bloc-tete > div { grid-column: 5 / 13; }
.bloc-tete .bloc-lab { padding-top: 1.2em; }
.bloc-titre { margin: 0; font: 400 var(--type-display)/.95 var(--serif); letter-spacing: -.02em; color: var(--bleu); max-width: 16em; }
.bloc-lead { margin: var(--space-group) 0 0; max-width: 32em; font-size: var(--type-lead); line-height: 1.45; color: var(--texte); }
.bloc-corps { margin: 0 0 var(--space-text); max-width: 34em; font-size: 1.0625rem; line-height: 1.55; color: var(--texte); }
/* Grands visuels calés sur la grille : colonnes 4 à 12 (aligné sur les titres) ou 2 à 11 (centré) */
.cadre-large { margin: var(--space-section) 0 0 calc((100% - 11 * var(--g)) / 4 + 3 * var(--g)); }
.cadre-large .cadre-in { aspect-ratio: 16 / 9; }
.cadre-large.cadre-aligne { margin-left: calc((100% - 11 * var(--g)) / 3 + 4 * var(--g)); } /* départ colonne 5 */
.cadre-centre { width: calc((100% - 11 * var(--g)) * 10 / 12 + 9 * var(--g)); margin-left: auto; margin-right: auto; }
.bloc-centre { display: flex; flex-direction: column; align-items: center; text-align: center; }
.bloc-centre .bloc-titre { margin-top: var(--space-group); }
.bloc-centre .duo-liens { justify-content: center; }
.duo-liens { display: flex; flex-wrap: wrap; gap: var(--space-label) var(--space-group); margin-top: var(--space-group); }
/* Étiquette et titre empilés dans le premier tiers, contenu dans les deux tiers suivants */
.fil { display: grid; grid-template-columns: var(--grille); gap: var(--space-block) var(--g); align-items: start; }
.fil-g { grid-column: 1 / 5; grid-row: 1; }
.fil-g > .bloc-titre { margin-top: var(--space-heading); }
.fil-d { grid-column: 5 / 13; grid-row: 1; }
.fil-liste { list-style: none; margin: 0 0 clamp(56px, 9vh, 96px); padding: 0; }
.fil-liste li { display: grid; grid-template-columns: 56px 1fr; align-items: baseline; padding: clamp(16px, 2.4vh, 24px) 0; border-top: 1px solid var(--filet); font: 400 var(--type-heading)/1 var(--serif); color: var(--bleu); }
.fil-liste li .mono { color: var(--gris); }
.fil-texte { margin: 0; max-width: 32em; font-size: var(--type-lead); line-height: 1.5; color: var(--texte); }
.compo { display: grid; grid-template-columns: var(--grille); gap: var(--g); margin-top: var(--space-section); align-items: end; }
.compo-a { grid-column: 5 / 9; } /* colonnes 5-8 et 9-12, comme le titre et le texte de .texte-duo */
.compo-a .cadre-in { aspect-ratio: 4 / 3; }
.compo-b { grid-column: 9 / 13; margin-bottom: clamp(-160px, -14vh, -64px); }
.compo-b .cadre-in { aspect-ratio: 3 / 4; }
.intentions { padding-top: var(--space-section-airy); }
.bloc.intentions { padding-bottom: 128px; }
.trio { list-style: none; margin: clamp(48px, 8vh, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); align-items: start; } /* trois fois quatre colonnes */
.trio li:nth-child(2) { margin-top: clamp(40px, 10vh, 120px); }
.trio li:nth-child(3) { margin-top: clamp(24px, 5vh, 64px); }
.cadre-trio { margin-bottom: var(--space-heading); }
.cadre-trio .cadre-in { aspect-ratio: 4 / 5; }
.trio > li > .mono { color: var(--gris); }
.trio h3 { margin: 8px 0 var(--space-label); font: 400 var(--type-card)/1.05 var(--serif); color: var(--bleu); }
.trio p { margin: 0; max-width: 34em; color: var(--texte); }
/* Même découpage en tiers que le trio qui suit : colonnes 1-4, 5-8, 9-12 */
.texte-duo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--g); align-items: start; }
.texte-duo .bloc-lab { padding-top: 1.2em; }
.texte-duo .bloc-titre { font-size: var(--type-section); }
.prospective { text-align: center; display: flex; flex-direction: column; align-items: center; }
.bloc.texte-duo { padding-bottom: 0; } /* l’écart avec le trio vient du padding haut de .bloc + .bloc */
.prospective .bloc-titre { margin-top: var(--space-group); }
.prospective .bloc-lead { margin-bottom: 40px; }
.provisoire { color: #8A733A; border-left: 2px solid var(--laiton); padding-left: var(--space-text); }

/* Méthode : parcours horizontal figé, règle graduée en bas */
.parcours-in { position: relative; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; padding: calc(var(--tete) + 16px) 0 clamp(32px, 5vh, 48px); }
.parcours-lab { grid-area: 1 / 1; margin: 0; padding: 0 var(--g); color: var(--gris); }
.parcours-piste { grid-area: 2 / 1; display: flex; align-items: center; width: max-content; padding: 0 18vw 0 var(--g); will-change: transform; }
.parcours-in::after { content: ""; grid-area: 2 / 1; justify-self: end; width: 18vw; z-index: 1; pointer-events: none; background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--blanc) 85%); }
.temps { position: relative; flex: none; width: min(74vw, 1180px); padding-right: clamp(64px, 8vw, 140px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(32px, 4vw, 72px); align-items: start; /* image calée sur le haut du titre */ }
.temps-nom { margin: 0 0 clamp(24px, 3vh, 32px); font: 400 clamp(48px, 6vw, 104px)/.95 var(--serif); letter-spacing: -.02em; color: var(--bleu); }
.temps-corps h3 { margin: 0 0 var(--space-text); font: 400 var(--type-lead)/1.2 var(--sans); letter-spacing: -.01em; } /* même typo que .accroche (accueil) */
.temps-corps > p { margin: 0; max-width: 30em; color: var(--texte); }
.temps-corps .temps-res { display: grid; gap: 8px; margin-top: clamp(24px, 4vh, 40px); color: var(--encre); }
.temps-res .mono { color: var(--bleu); }
.temps-img { width: min(100%, 660px, calc((100svh - 300px) * .8)); } /* portrait qui tient entre le libellé et la règle */
.temps-img .cadre-in { aspect-ratio: 4 / 5; } /* même format portrait pour les quatre temps */
.regle { grid-area: 3 / 1; list-style: none; margin: 0; padding: 0 var(--g); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); } /* quatre fois trois colonnes */
.regle a { display: grid; gap: var(--space-label); min-height: 48px; align-content: center; color: var(--gris); transition: color .3s; font-size: .875rem; }
.regle i { position: relative; height: 2px; background: var(--filet); }
.regle s { position: absolute; inset: 0; background: var(--bleu); transform-origin: left; transform: scaleX(0); transition: background .3s; }
.regle .on s, .regle a:is(:hover, :focus-visible) s { background: var(--or); } /* le trait prend l'or du texte */
.regle .mono { font-size: .8125rem; }
.regle .fait a { color: var(--bleu); } /* temps déjà passés */
/* Sans animation : les temps se lisent en défilement horizontal natif */
.parcours.libre .parcours-piste { overflow-x: auto; width: auto; }
.parcours.libre .regle s { transform: scaleX(1); }

/* Contact (variante 1) */
.contact { display: grid; grid-template-columns: var(--grille); gap: 0 var(--g); padding: 0 var(--g) var(--space-section-airy); align-items: start; }
.contact-direct { grid-column: 1 / 5; position: sticky; top: calc(var(--tete) + 24px); }
.contact-direct > .mono { color: var(--gris); margin: 0 0 var(--space-heading); }
.contact-direct .gros { display: block; font: 400 var(--type-card)/1.1 var(--serif); color: var(--bleu); margin-bottom: var(--space-label); overflow-wrap: anywhere; width: fit-content; max-width: 100%; }
.contact-direct dl { margin: var(--space-block) 0 0; display: grid; grid-template-columns: auto 1fr; }
.contact-direct dt, .contact-direct dd { margin: 0; padding: var(--space-text) 0; border-top: 1px solid var(--filet); }
.contact-direct dt { color: var(--gris); padding-right: var(--space-heading); padding-top: calc(var(--space-text) + 3px); } /* haut des capitales aligné sur le texte voisin */
.formulaire { grid-column: 6 / 13; }
.formulaire fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.formulaire legend { font: 400 var(--type-section)/1 var(--serif); letter-spacing: -.02em; color: var(--bleu); padding: 0 0 24px; margin-bottom: 0; }
.formulaire legend em { font-style: italic; }
.progression { color: var(--bleu); margin: 0 0 var(--space-text); }
.aide { color: var(--gris); margin: -12px 0 56px; }
.champ { display: block; margin-bottom: 40px; }
.champ > :is(span, label) { display: block; color: var(--gris); margin-bottom: 8px; font-size: .8125rem; transition: color .3s; }
.champ i { font-style: normal; text-transform: none; letter-spacing: 0; }
.champ input, .champ select, .champ textarea {
  width: 100%; font: 400 var(--type-lead)/1.4 var(--sans); color: var(--encre); background: transparent; border: 0;
  border-bottom: 1px solid var(--gris); border-radius: 0; padding: 8px 0 var(--space-label); transition: border-color .3s, box-shadow .3s;
}
.champ select { appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23091B69' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E") no-repeat right 4px center; }
.champ textarea { resize: vertical; min-height: 120px; }
.champ :is(input, textarea)::placeholder { color: var(--gris); opacity: 1; } /* exemple de saisie : 5,1:1 sur blanc, plus clair que la valeur saisie (encre) */
.champ:hover > :is(span, label), .champ:focus-within > :is(span, label) { color: var(--bleu); }
/* Date : bouton calendrier à droite du champ, calendrier ouvert juste sous le bouton (absolu : il suit le défilement) */
.saisie-date { position: relative; }
.saisie-date input[name] { padding-right: 48px; }
.retirer { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 99px; background: transparent; color: var(--bleu); cursor: pointer; transition: background .3s, color .3s; }
.ouvrir-date { position: absolute; right: 0; bottom: 6px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 99px; background: transparent; color: var(--bleu); cursor: pointer; transition: background .3s, color .3s; }
.ouvrir-date .ico { width: 22px; height: 22px; }
.retirer .ico { width: 18px; height: 18px; }
@media (hover: hover) { :is(.ouvrir-date, .retirer, .ajouter, .liste-devise .liste-bouton):hover { background-color: var(--btn-survol); } .depot:hover { border-color: var(--bleu); background: rgba(9, 27, 105, .03); } }
:is(.ouvrir-date, .retirer, .liste-devise .liste-bouton):focus-visible, .depot input:focus-visible + .ajouter { background-color: var(--btn-survol); outline: 2px solid var(--or); outline-offset: 2px; }
:is(.ouvrir-date, .retirer, .ajouter):active { background: var(--bleu); color: #fff; }
.calendrier { position: absolute; top: 100%; right: 0; z-index: 20; margin-top: 4px; padding: var(--space-label); background: var(--blanc); border: 1px solid var(--filet); border-radius: 0; box-shadow: 0 8px 24px rgba(20, 22, 28, .12); color: var(--encre); }
.calendrier[hidden] { display: none; }
.cal-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-tete p { margin: 0; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bleu); }
.calendrier table { border-collapse: collapse; }
.calendrier th { font-size: .6875rem; font-weight: 400; text-transform: uppercase; color: var(--gris); padding: 0 0 4px; }
.calendrier td { padding: 0; }
.calendrier button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 99px; background: transparent; color: inherit; font: 400 .9375rem/1 var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.cal-tete p { display: flex; gap: 2px; }
.calendrier .cal-titre { width: auto; padding: 0 6px; font: 500 .8125rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bleu); }
.cal-liste { display: grid; grid-template-columns: repeat(3, 84px); grid-auto-rows: 52px; }
.calendrier .cal-liste button { width: 100%; height: 40px; align-self: center; }
.calendrier .cal-nav { font-size: 1.375rem; color: var(--bleu); }
.calendrier button:disabled { color: var(--gris); opacity: .45; cursor: default; }
/* Bouton actif (choisi) : texte or sur or clair ; les autres : bleuté au survol, bleu plein au clic ; aujourd'hui : texte or, survol et clic dorés */
.calendrier button:not(:disabled):hover { background: rgba(9, 27, 105, .12); color: var(--bleu); }
.calendrier button:not(:disabled):active { background: var(--bleu); color: #fff; }
.calendrier [aria-current="date"] { color: var(--or); font-weight: 500; }
.calendrier [aria-current="date"]:not(:disabled):hover { background: rgba(182, 157, 93, .22); color: #7D6831; }
.calendrier [aria-pressed="true"] { background: rgba(182, 157, 93, .22); color: #7D6831; font-weight: 500; } /* or foncé : lisible sur l'or clair */
.calendrier [aria-pressed="true"]:not(:disabled):hover { background: rgba(182, 157, 93, .38); color: #6B5927; }
.calendrier :is([aria-current="date"], [aria-pressed="true"]):not(:disabled):active { background: var(--or); color: #fff; }
.calendrier button:focus-visible { outline: 2px solid var(--or); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .calendrier button { transition: none; } }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-bottom-color: rgba(9, 27, 105, .6); }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-bottom-color: var(--bleu); }
/* Pièces : bouton, état et liste dans le même cadre pointillé ; le vrai champ fichier est invisible mais garde le focus */
.depot { position: relative; border: 1px dashed var(--gris); padding: var(--space-text); transition: border-color .3s, background .3s; }
.depot.survol { border-color: var(--bleu); background: rgba(9, 27, 105, .03); }
.depot-tete { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-label) var(--space-text); }
.champ .depot input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.ajouter {
  font: 500 .8125rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bleu); background: transparent;
  border: 1px solid var(--bleu); border-radius: var(--btn-rayon); padding: var(--space-label) var(--space-text); cursor: pointer; transition: background .3s, color .3s;
}
#etat-fichiers { margin: 0; color: var(--gris); font-size: .9375rem; }
.liste-fichiers { list-style: none; margin: var(--space-text) 0 0; padding: 0; }
.liste-fichiers li { display: flex; align-items: center; gap: var(--space-text); padding: 2px 0; border-top: 1px solid var(--filet); }
.liste-fichiers .nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--encre); }
.liste-fichiers .taille { color: var(--gris); font-size: .8125rem; text-transform: none; white-space: nowrap; }
/* Budget : devise au bout du champ, dans la typographie de la saisie */
.saisie-montant { position: relative; }
.saisie-montant input { padding-right: 96px; }
.saisie-montant:has(option[value="EUR"]:checked) input { padding-right: 64px; }
/* Devise : même liste déroulante que « Votre besoin » (app.js), bouton compact au bout du champ, panneau aligné à droite */
.saisie-montant .liste-devise { position: absolute; right: 0; top: 0; bottom: 0; --decalage: calc(8px + var(--type-lead) * .7 - 20px); } /* boîte à la hauteur du champ : le panneau part du trait */
.liste-devise .liste-bouton { width: auto; height: 40px; padding: 0 34px 0 12px; border: 0; border-radius: var(--btn-rayon); margin-top: var(--decalage); line-height: 40px; color: var(--bleu); white-space: nowrap; }
.liste-devise .liste-bouton[aria-invalid="true"] { box-shadow: none; }
.liste.liste-devise::after { right: 12px; top: calc(var(--decalage) + 16px); }
.liste-devise .liste-options { left: auto; min-width: 120px; }
/* Erreurs : message persistant sous le champ, trait du champ doublé ; zones vides sans hauteur */
.formulaire :focus-visible { outline-color: var(--or); }
.erreur { margin: 0; color: var(--erreur); font-size: .9375rem; }
.erreur:not(:empty) { margin: -24px 0 var(--space-group); }
.case + .erreur:not(:empty) { margin-top: -32px; margin-bottom: 40px; }
.champ.fichier + .erreur:not(:empty) { margin-top: -20px; margin-bottom: 24px; }
.erreur b { font-weight: 600; }
.champ :is(input, select, textarea)[aria-invalid="true"] { border-bottom-color: var(--erreur); box-shadow: 0 1px 0 var(--erreur); }
.depot:has(input[aria-invalid="true"]) { border-color: var(--erreur); border-style: solid; }
.deux { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; grid-auto-flow: column; gap: 0 var(--g); }
.deux > .champ { align-self: end; }
.case { display: flex; gap: var(--space-text); align-items: flex-start; color: var(--texte); margin: 8px 0 40px; }
.case input { width: 20px; height: 20px; accent-color: var(--bleu); margin: 2px 0 0; flex: none; }
.case input[aria-invalid="true"] { outline: 2px solid var(--erreur); outline-offset: 2px; }
.formulaire .case input:focus-visible { outline-color: var(--or); outline-offset: 3px; }
.case a { text-decoration: none; }
.bouton {
  font: 500 1rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--bleu); color: var(--papier);
  border: 0; border-radius: var(--btn-rayon); min-height: 52px; padding: 0 var(--space-heading); cursor: pointer; display: inline-flex; gap: var(--space-text); align-items: center; transition: background .3s, transform .15s;
}
.bouton span, .lien-bouton span { transition: transform .5s var(--ease); }
/* Bouton secondaire du formulaire : même bouton texte que les liens fléchés */
.lien-bouton {
  background: none; border: 0; font: 500 1rem/1 var(--sans); cursor: pointer; min-height: 44px; padding: var(--btn-pad); margin-inline: -12px;
  border-radius: var(--btn-rayon); display: inline-flex; align-items: center; gap: var(--space-label); transition: background .3s, color .3s;
}
.actions { display: flex; justify-content: space-between; align-items: center; gap: var(--space-heading); flex-wrap: wrap; }
.actions .bouton { margin-left: auto; }
/* Mobile : boutons du formulaire pleine largeur, Retour sous le bouton principal */
@media (max-width: 860px) {
  #formulaire-projet .actions { flex-direction: column-reverse; align-items: stretch; gap: var(--space-text); }
  #formulaire-projet .actions :is(.bouton, .lien-bouton) { width: 100%; margin: 0; justify-content: center; }
  #formulaire-projet .ajouter { display: flex; width: 100%; justify-content: center; }
}
#resultat:focus { outline: none; }
#resultat h2 { font: 400 var(--type-section)/1 var(--serif); letter-spacing: -.02em; color: var(--bleu); margin: 0 0 var(--space-heading); }
#resultat h2 em { font-style: italic; }
#resultat > p { color: var(--texte); }
#recapitulatif { display: grid; grid-template-columns: auto 1fr; margin: 40px 0; }
#recapitulatif div { display: contents; }
#recapitulatif dt, #recapitulatif dd { margin: 0; padding: var(--space-label) 0; border-top: 1px solid var(--filet); }
#recapitulatif dt { font: 500 var(--type-meta)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gris); padding: var(--space-text) var(--space-heading) var(--space-label) 0; }
#recapitulatif dd { white-space: pre-line; overflow-wrap: anywhere; }

/* Pages légales, 404 */
.texte-legal { padding: 0 var(--g) var(--space-section-airy); display: grid; grid-template-columns: var(--grille); gap: 0 var(--g); }
.texte-legal > * { grid-column: 4 / 10; }
.texte-legal h2 { font: 400 var(--type-card)/1.05 var(--serif); color: var(--bleu); margin: 56px 0 var(--space-text); }
.texte-legal p { color: var(--texte); margin: 0 0 var(--space-text); max-width: 62ch; font-size: 1.0625rem; }
.texte-legal .liens { display: flex; flex-wrap: wrap; gap: var(--space-group); }

/* ---------- Haut de page et panneau de propositions (maquette) ---------- */
.haut {
  position: fixed; right: max(var(--g), env(safe-area-inset-right, 0px)); bottom: calc(24px + var(--sous)); z-index: 35; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 99px; background: var(--bleu); color: #fff; font-weight: 500; box-shadow: 0 6px 24px rgba(5, 15, 61, .18);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .4s, transform .4s var(--sortie), visibility 0s .4s, background .3s;
}
.haut.on { opacity: 1; visibility: visible; transform: none; transition: opacity .4s, transform .4s var(--sortie), visibility 0s, background .3s; }
.haut.inverse { background: #fff; color: var(--bleu); }
/* Dans le pied, « Haut de page » est un lien comme les autres : pas de pastille ni de couleur inversée */
.pied .haut.inverse { background: none; color: inherit; }
.pied a.haut:is(:hover, :focus-visible, :active) { color: var(--or); }
.proto { position: fixed; left: var(--g); top: calc(var(--tete) + 8px); z-index: 35; font-size: .9375rem; }
.proto summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 99px;
  background: #fff; color: var(--bleu); border: 1px solid var(--bleu); box-shadow: 0 6px 24px rgba(5, 15, 61, .12);
}
.proto summary::-webkit-details-marker { display: none; }
.proto summary::before { content: "+"; font-size: 1rem; }
.proto[open] summary::before { content: "−"; }
.proto-c { position: absolute; left: 0; top: calc(100% + 8px); width: 300px; display: grid; gap: 4px; padding: 16px; background: #fff; border: 1px solid var(--filet); box-shadow: 0 12px 40px rgba(5, 15, 61, .16); }
.proto-c .mono { margin: 8px 0 4px; color: var(--gris); }
.proto-c .mono:first-child { margin-top: 0; }
.proto-c a, .proto-c button { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--filet); border-radius: 8px; background: none; cursor: pointer; text-align: left; color: var(--encre); }
.proto-c :is(a, button):hover { border-color: var(--bleu); }
.proto-c button:hover { color: var(--bleu); }
.proto-c [aria-current], .proto-c [aria-pressed="true"] { background: var(--bleu); border-color: var(--bleu); color: #fff; }

/* ---------- Liens texte : or au survol, au focus clavier, au clic et sur la page courante ; flèche → qui tourne en ↗ ----------
   Liens fléchés par leur propre icône : .lien, fiches projets, « Parlons de votre projet ». Sans flèche : logo, lien d'évitement, cinq liens principaux du menu,
   « Haut de page » (sa flèche monte au survol), « Défiler », règle de la méthode, sommaire et sous-navigation (boutons, plus bas). */
a[href]:is(:hover, :focus-visible, :active),
a[href][aria-current]:not([aria-current="false"]),
.regle .on a {
  color: var(--or);
}
a[href]:active { opacity: .85; }
:is(.menu-pied a, .pied a, .etiquette a, .case a, .contact-direct .gros, .texte-legal p a, .suivant b)::after {
  content: ""; display: inline-block; flex: none; width: .9em; height: .9em; margin-left: .3em; vertical-align: -.1em;
  background: currentColor; clip-path: var(--fleche);
  transition: var(--fleche-anim);
}
:is(.menu-pied a, .pied a, .etiquette a, .case a, .contact-direct .gros, .texte-legal p a):is(:hover, :focus-visible, :active)::after,
.suivant:is(:hover, :focus-visible, :active) b::after { transform: rotate(-45deg); }
.suivant b::after { width: .45em; height: .45em; vertical-align: .05em; }

/* ---------- Boutons : un seul jeu d'états partout ----------
   Bouton texte (liens fléchés, sommaire et Menu de l'en-tête, filtres, Grille / Index, sous-navigation, Retour du formulaire) :
   repos texte bleu sans fond · survol et focus clavier fond bleu clair · clic fond bleu, texte blanc ·
   sélectionné texte or, fond or clair au survol, fond or et texte blanc au clic · désactivé estompé.
   Sur fond sombre (en-tête sur image ou bleu, menu ouvert, sections data-sombre) : texte blanc, voile blanc au survol, clic fond blanc, texte bleu.
   Bouton plein (formulaire) : fond bleu ; survol et focus bleu nuit ; clic bleu nuit enfoncé. Bouton fichier : contour bleu, mêmes fonds que le bouton texte.
   Le survol n'est appliqué qu'aux appareils qui survolent : pas d'état collé après un toucher. */
:is(.lien, .lien-bouton, .ancres a, .btn-menu, .filtres button, .vues button, .sous-nav a) { color: var(--btn-c); -webkit-tap-highlight-color: transparent; }
.entete :is(.marque, .btn-menu), .sur-hero .ancres a, .ancres.sur-sombre a, [data-sombre] :is(.lien, .lien-bouton) { --btn-c: #fff; --btn-survol: var(--btn-survol-sombre); --btn-presse: #fff; --btn-presse-texte: var(--bleu); }
/* Menu sur fond clair : complément (#FFF − couleur) des couleurs d'une ancre inactive, pour les retrouver après la différence */
.entete.menu-clair .btn-menu { --btn-c: #F6E496; --btn-survol: rgba(246, 228, 150, .08); --btn-presse: #F6E496; --btn-presse-texte: #000; }
.menu-ouvert .entete .btn-menu { --btn-c: var(--papier); --btn-survol: var(--btn-survol-sombre); --btn-presse: #fff; --btn-presse-texte: var(--bleu); }
/* Écran tactile : après un toucher, :hover reste collé ; on empêche l'or des liens texte (a[href]:hover) de s'appliquer aux boutons */
@media not (hover: hover) {
  :is(.lien, .lien-bouton, .ancres a, .btn-menu, .filtres button, .vues button, .sous-nav a):hover { color: var(--btn-c); }
}
@media (hover: hover) {
  :is(.lien, .lien-bouton, .ancres a, .btn-menu, .filtres button, .vues button, .sous-nav a):hover { background: var(--btn-survol); color: var(--btn-c); }
  :is(.ancres a[aria-current], .filtres button[aria-pressed="true"], .vues button[aria-pressed="true"]):hover { background: var(--btn-survol-actif); color: var(--or); }
  .lien:hover span { transform: rotate(-45deg); }
  .bouton:hover { background: var(--bleu-nuit); }
  .bouton:hover span { transform: translateX(6px); }
  .lien-bouton:hover span { transform: translateX(-6px); }
}
:is(.lien, .lien-bouton, .ancres a, .btn-menu, .filtres button, .vues button, .sous-nav a):focus-visible { background: var(--btn-survol); color: var(--btn-c); }
:is(.ancres a[aria-current], .filtres button[aria-pressed="true"], .vues button[aria-pressed="true"]) { background: none; color: var(--or); }
:is(.ancres a[aria-current], .filtres button[aria-pressed="true"], .vues button[aria-pressed="true"]):focus-visible { background: var(--btn-survol-actif); }
:is(.lien, .lien-bouton, .ancres a, .btn-menu, .filtres button, .vues button, .sous-nav a):is(:active, :active[aria-pressed]) { background: var(--btn-presse); color: var(--btn-presse-texte); opacity: 1; }
:is(.ancres a[aria-current], .filtres button[aria-pressed="true"], .vues button[aria-pressed="true"]):active { background: var(--or); color: #fff; }
.lien:is(:focus-visible, :active) span { transform: rotate(-45deg); }
.bouton:focus-visible { background: var(--bleu-nuit); }
.bouton:focus-visible span { transform: translateX(6px); }
.lien-bouton:focus-visible span { transform: translateX(-6px); }
.bouton:active { background: var(--bleu-nuit); transform: scale(.97); }
/* Bouton plein en lien (<a>) : le texte reste clair au survol, au focus et au clic (pas l'or des liens texte) */
a.bouton[href]:is(:hover, :focus-visible, :active) { color: var(--papier); opacity: 1; }
:is(.lien-bouton, .btn-menu, .filtres button, .vues button, .bouton):disabled,
:is(.lien, .ancres a, .sous-nav a, .lien-bouton, .bouton)[aria-disabled="true"] { opacity: .4; cursor: not-allowed; background: none; color: var(--btn-c); transform: none; }
.bouton:disabled, .bouton[aria-disabled="true"] { background: var(--bleu); color: var(--papier); }
@media (prefers-reduced-motion: reduce) {
  .bouton { transition: background .3s; }
  .bouton:active { transform: none; }
  :is(.menu-pied a, .pied a, .etiquette a, .case a, .contact-direct .gros, .texte-legal p a, .suivant b)::after,
  :is(.lien, .bouton, .lien-bouton) span, .appel a.grand .fleche { transition: none; }
}

/* ---------- Intermédiaire et mobile ---------- */
@media (max-width: 860px) {
  .ancres { display: none; }
}
/* Pied sur grand écran : chaque colonne prend la largeur de son contenu (liens et flèches sur une ligne), l'espace restant se répartit entre elles, jamais moins que l'écart de la grille */
@media (min-width: 1181px) {
  .pied { grid-template-columns: repeat(6, max-content); justify-content: space-between; }
  .pied p:nth-child(n) { grid-column: auto; }
}
/* Très petits écrans : le compte garde son chiffre, « projets » reste lu par les lecteurs d'écran */
@media (max-width: 359px) {
  .feuilles .cat-compte-mot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .pied p:nth-child(n) { grid-column: span 4; justify-self: start; }
  .cat-barre .cat-lab { display: none; }
}
@media (max-width: 860px) {
  :root { --g: 16px; --tete: calc(80px + var(--sur)); }
  #formulaire-projet { scroll-margin-top: calc(var(--g) * 3 + var(--sur)); } /* 48 px sur mobile */
  .bloc-lab[id] { scroll-margin-top: calc(48px + var(--sur)); } /* ancres des expertises : 48 px au-dessus de l’étiquette sur mobile */
  .entete { padding-block: calc(14px + var(--sur)) 14px; }
  .marque svg { height: 40px; }
  .menu { grid-template-columns: 1fr; padding-block: calc(104px + var(--sur)) calc(24px + var(--sous)); }
  .menu ol { grid-column: 1 / -1; }
  .menu-apercu { display: none; }
  .menu { row-gap: 32px; }
  .menu li a { font-size: clamp(3.25rem, 15vw, 4.5rem); gap: 16px; }
  .menu li a .mono { width: 2em; font-size: .75rem; }
  /* Pied du menu empilé à gauche (e-mail, téléphone, zone en libellé discret), hors de la bulle du sélecteur ; même hauteur de ligne pour un espacement uniforme */
  .menu-pied { flex-direction: column; align-items: flex-start; gap: 0; padding-top: var(--g); font-size: .8125rem; line-height: 1.6; }
  /* Même espacement que le pied de la section contact : e-mail et téléphone serrés comme un paragraphe, la zone séparée d'une gouttière */
  .menu-pied :is(a, span) { display: inline-flex; align-items: center; min-height: 0; }
  .menu-pied span { margin-top: var(--g); }
  .menu-pied span { opacity: .6; }
  .hero-c { padding-bottom: 180px; }
        .hero-legende { top: calc(var(--tete) + 64px); }
  .hero-bas { flex-direction: column; align-items: start; }
  .hero-bas p { font-size: 1.125rem; }
  .hero-a .hero-bas p { font-size: 1rem; }
  .hero-a .hero-bas .defiler { margin-left: 0; }
  .hero-a .hero-bas .hero-titre { margin-bottom: -8px; }
  .ecran { min-height: 440px; }
  .offre, .catalogue, .methode, .etapes li, .fondateur, .page-tete, .projet-intro, .gp-texte, .contact, .texte-legal { grid-template-columns: minmax(0, 1fr); }
  .offre > *, .catalogue > *, .methode > *, .etapes li > *, .fondateur > *, .page-tete > *, .projet-intro > *, .gp-texte > *, .contact > *, .texte-legal > * { grid-column: 1 / -1 !important; }
  .offre-txt { padding-top: var(--space-group); }
  .cat-barre { flex-wrap: wrap; gap: 4px var(--space-label); padding-block: 8px; }
  .cat-barre .cat-lab { display: none; }
  .cat-barre .filtres { order: 1; flex-basis: calc(100% + var(--g) * 2); margin-inline: calc(var(--g) * -1); padding-inline: var(--g); overflow-x: auto; scrollbar-width: none; }
  .cat-barre .filtres::-webkit-scrollbar { display: none; }
  .cat-sep { display: none; }
  .cat-barre .vues button { padding: 0 10px; }
  .feuilles .cat-barre { flex-wrap: nowrap; gap: 8px; }
  .cat-barre.colle { padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 16px; margin-bottom: 0; } /* marge réduite d’autant : le contenu ne saute pas quand la barre se colle */
  .feuilles .cat-ouvrir { display: inline-flex; flex: none; }
  /* Trop étroit : « 06 proj… » plutôt qu’un débordement ; le nombre n’est jamais coupé */
  .feuilles .cat-compte { display: flex; min-width: 0; }
  .feuilles .cat-compte b { flex: none; }
  .feuilles .cat-compte-mot { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: pre; }
  .fiches[data-vue="grille"] { grid-template-columns: minmax(0, 1fr); }
  .fiches[data-vue="index"] .ligne { grid-template-columns: 36px 1fr; gap: 4px var(--space-label); }
  .fiches[data-vue="index"] .lieu { grid-column: 2; }
  .fiches[data-vue="index"] :is(.ouv, .cat, .an) { display: none; }
  .fiches[data-vue="index"] .survol.on { display: none; }
  .methode-lead { margin-bottom: var(--space-group); }
  .etapes li { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 12px; text-align: center; }
  .etapes li > .n { grid-column: 1 !important; }
  .etapes li > b { grid-column: 2 !important; }
  .etapes p { position: static; flex-basis: 100%; width: auto; max-width: 30ch; margin: 8px auto 0; text-align: center; opacity: 1; translate: none; color: var(--gris); }
  .etapes:has(li:hover) li:not(:hover), .etapes li:hover p { opacity: 1; translate: none; }
  .fond-img { margin-bottom: var(--space-group); }
  .reperes dl { grid-template-columns: minmax(0, 1fr); gap: var(--space-group); }
  .pied { display: flex; flex-wrap: wrap; gap: var(--g); }
  .pied p:nth-child(n) { flex: 1 1 100%; white-space: normal; }
  .pied p a { min-height: 0; }
  .appel { padding-bottom: calc(var(--g) + var(--sous)); justify-content: flex-start; }
  /* Appel centré dans l'espace libre entre l'en-tête et le pied (et non collé sous l'en-tête) */
  .appel > .mono { margin-top: auto; }
  .appel a.grand { margin: 24px 0 var(--space-block); }
  .appel .pied { margin-top: auto; }
  .page-tete .l2 { padding-left: 8vw; }
  .page-tete .l3 { text-align: left; padding-left: 16vw; }
  .page-tete .lead { margin-top: var(--space-group); }
  .ouv-bas { grid-template-columns: 1fr; gap: var(--space-label); }
  .ouv-bas div:last-child { text-align: left; }
  .etiquette { margin-bottom: var(--space-heading); }
  .fiche-projet { grid-template-columns: 1fr 1fr; }
  .grille-projet { grid-template-columns: 1fr; }
  .grille-projet .gp-large { aspect-ratio: 4 / 3; }
  .sous-nav { margin-top: 0; }
  .bloc { padding-top: 96px; padding-bottom: 96px; }
  .bloc-tete, .fil, .texte-duo { grid-template-columns: minmax(0, 1fr); gap: var(--space-heading); }
  .bloc-tete > *, .bloc-tete > .bloc-lab, .bloc-tete > div, .fil > * { grid-column: 1 / -1; grid-row: auto; }
  .bloc-tete .bloc-lab, .texte-duo .bloc-lab { padding-top: 0; }
  .cadre-large, .cadre-large.cadre-aligne { width: 100%; margin-left: 0; margin-top: 56px; }
  .fil-liste li { grid-template-columns: 36px 1fr; }
  .compo { margin-top: 56px; }
  .compo-a { grid-column: 1 / -1; }
  .compo-b { grid-column: 5 / -1; margin: 0; }
  .trio { grid-template-columns: 1fr; row-gap: 80px; }
  .trio li:nth-child(n) { margin-top: 0; }
  .parcours-in { height: auto; overflow: visible; display: block; padding: 0 0 56px; }
  .parcours-lab { margin-bottom: 40px; }
  .parcours-piste, .parcours.libre .parcours-piste { display: grid; width: auto; gap: 72px; overflow: visible; padding: 0; }
  .temps { width: auto; padding: 0 var(--g); grid-template-columns: 1fr; gap: var(--space-heading); }
  .parcours-in::after, .regle { display: none; }
  .temps-img { width: 100%; }
  .contact-direct { position: static; margin-bottom: 64px; }
  .deux { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .haut { right: var(--g); bottom: 64px; padding: 0 16px; }
  .proto { left: var(--g); }
  .proto-c { width: min(300px, calc(100vw - 2 * var(--g))); }
}
@media (max-width: 520px) {
  .marque svg { height: 34px; }
  .btn-menu { letter-spacing: .06em; }
  .fiche-projet { grid-template-columns: 1fr; }
}

/* Mouvement réduit : rien ne bouge, les écrans-titres restent à leur place */
@media (prefers-reduced-motion: reduce) {
  .defiler i::after { animation: none; }
  .ecran { position: relative; height: auto; min-height: 70svh; }
  .chap-corps::before { display: none; }
  .ancres, .menu, .rideau, .offre-txt > *, .vis img, .suivant img { transition: none !important; }
  .btn-menu i::before, .btn-menu i::after { transition: none; } /* menu → croix sans pivot */
}
/* Étapes de l'accueil (ordinateur) : la phrase apparaît en fondu, sans glisser */
@media (prefers-reduced-motion: reduce) and (min-width: 861px) {
  .etapes p { translate: 0 -50%; transition: opacity .4s; }
}

/* Section qui suit une tête de page plein écran : même départ partout */
.page-tete.plein + * { padding-top: 64px !important; }

/* Section placée juste au-dessus de l’appel #contact */
:has(+ #contact):not(.suivant) { padding-bottom: 160px; } /* valeur fixe, quelle que soit la largeur d’écran */
:has(+ #contact):not(.suivant) > :last-child,
:has(+ #contact):not(.suivant) > :last-child > :last-child { padding-bottom: 0; margin-bottom: 0; }

/* Expertises : espacement fixe au-dessus de la villa et de la composition */
.cadre-large.cadre-aligne, .compo { margin-top: 64px; }
/* Besoin : liste déroulante maison (app.js) ; même trait que les autres champs, panneau blanc sobre sous le champ */
.liste { position: relative; }
.liste select { position: absolute; inset: auto 0 0; height: 1px; opacity: 0; pointer-events: none; }
.liste-bouton {
  display: flex; justify-content: flex-start; align-items: baseline; width: 100%; text-align: left; -webkit-appearance: none; appearance: none; font: 400 var(--type-lead)/1.4 var(--sans); color: var(--encre); cursor: pointer; background: transparent;
  border: 0; border-bottom: 1px solid var(--gris); border-radius: 0; padding: 8px 32px var(--space-label) 0; transition: border-color .3s, box-shadow .3s;
}
.liste::after {
  content: ""; position: absolute; right: 4px; top: calc(8px + var(--type-lead) * .7 - 4px); width: 14px; height: 8px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23091B69' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E") no-repeat center;
  transition: transform .5s var(--ease);
}
.liste:has([aria-expanded="true"])::after { transform: rotate(-180deg); }
.liste-bouton.vide { color: var(--gris); }
.liste-bouton:hover { border-bottom-color: rgba(9, 27, 105, .6); }
.liste-bouton:focus, .liste-bouton[aria-expanded="true"] { border-bottom-color: var(--bleu); }
.liste-bouton[aria-invalid="true"] { border-bottom-color: var(--erreur); box-shadow: 0 1px 0 var(--erreur); }
.liste-options {
  position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 0; padding: 4px 0; list-style: none;
  background: var(--blanc); border: 1px solid var(--filet); box-shadow: 0 16px 32px -20px rgba(20, 22, 28, .25);
  animation: liste-ouvre .35s var(--sortie);
}
.liste-options li { display: flex; align-items: baseline; gap: var(--space-text); padding: 12px var(--space-text); color: var(--encre); font: 400 1.0625rem/1.4 var(--sans); cursor: pointer; transition: background .2s; }
.liste-options li.sans-choix, .feuille-choix button.sans-choix .feuille-nom { color: var(--gris); }
.liste-options li.actif { background: rgba(20, 22, 28, .04); }
.liste-options li[aria-selected="true"]::after { content: ""; margin-left: auto; align-self: center; width: 14px; height: 10px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' fill='none'%3E%3Cpath d='M1 5l4 4 8-8' stroke='%2314161C' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E") no-repeat center; }
@keyframes liste-ouvre { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .liste-options { animation: none; } .liste::after { transition: none; } }

/* Accueil, vue index : pas de filet au-dessus du premier projet visible (Villa Cologny sans filtre ; classe posée par app.js) */
.hero-a .fiches[data-vue="index"] .fiche:first-child .ligne,
.hero-a .fiches[data-vue="index"] .fiche.premiere-visible .ligne { border-top: 0; }

/* Barre d'évitement dépliée : l'en-tête, son voile et le sommaire descendent de sa hauteur */
.entete, .entete-flou { top: var(--evitement, 0px); }
.ancres { top: calc(20px + var(--sur) + var(--evitement, 0px)); }

/* Image non chargée : fond bleu clair, texte alternatif centré (classe posée par app.js) */
.img-ko { position: relative; background: #DCE3F5; min-height: 8rem; }
.img-ko > img { visibility: hidden; }
.img-ko::after { content: attr(data-alt); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; font-size: var(--type-meta); color: var(--bleu); z-index: 1; }
