/* BAT E-CONSULT — site final (issu de la version 1 « Volume ») : feuille de style unique.
   Dérivée de la direction « Minéral clair » (v7) : mêmes composants, caractère du prototype B (sigle en monument, Archivo étendu, angles nets).
   Sommaire : 1 jetons · 2 base · 3 en-tête et marque · 4 boutons · 5 structure · 6 composants
              7 pages · 8 pied de page · 9 mouvement · 10 impression · 11 version « Volume » · 12 page continue, références, fiche projet */

/* ---------- 1. Jetons : tout réglage global se fait ici ---------- */
:root {
  /* fonds : une seule famille de gris clairs à peine réchauffés */
  --bg: #f1f0ed;            /* fond de page */
  --surface: #ffffff;       /* cartes, en-tête, pied */
  --stone: #e9e8e4;         /* bandes pleine largeur, pastilles */
  --sand: #e6e5e0;          /* tuiles */
  --clay: #dddcd6;          /* bande de contact, filets appuyés */
  /* textes : gris soutenus, jamais de noir */
  --ink: #2a2927;           /* titres */
  --text: #4a4946;          /* texte courant */
  --muted: #6a6863;         /* texte secondaire */
  --em: inherit;            /* mots mis en valeur dans les titres */
  --accent: #55524d;        /* bouton principal */
  --accent-dark: #3f3d39;
  --line: rgba(51, 50, 47, .12);
  /* couleurs du logo */
  --logo-gray: #747474;
  --orange: #ff914d;        /* liserés et petits repères uniquement */
  --yellow: #ffcf5c;

  /* typographie : une échelle, utilisée partout */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.3rem, 3.25vw, 5.2rem);   /* titre de l'accueil */
  --fs-h1: clamp(2.1rem, 3vw, 4.2rem);        /* titre des autres pages */
  --fs-h2: clamp(1.7rem, 2.4vw, 2.9rem);            /* titres de section */
  --fs-h3: 1.3rem;                             /* titres de carte */
  --fs-lede: clamp(1.2rem, 1.3vw, 1.44rem);      /* chapeau */
  --fs-body: 1.16rem;                          /* texte courant */
  --fs-small: 1rem;                           /* légendes, mentions */
  --fs-label: 1rem;                           /* intitulés de section */

  /* largeur : le contenu suit l'écran, mais moins vite que lui au-delà de 1500 px */
  --wrap: clamp(1100px, 640px + 58vw, 2880px);
  --gutter: clamp(20px, 4vw, 72px);
  --section: clamp(64px, 7vw, 128px);
  --gap: clamp(28px, 4.2vw, 88px);

  /* formes : arrondi plus doux sur les grands contenants, plus serré sur les petits éléments */
  --r-panel: 6px;
  --r-card: 4px;
  --r-ctl: 4px;
  --r-chip: 3px;
  /* encadrements : un filet fin tient lieu de contour ; l'ombre légère est réservée au survol et aux éléments flottants */
  --edge: inset 0 0 0 1px var(--line);
  --lift: 0 12px 24px -18px rgba(51, 50, 47, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* en-tête : hauteur au repos et hauteur réduite pendant la lecture (voir section 3) */
  --header-h: 5.8rem;
  --header-h-compact: var(--header-h);
  --sigle-h: calc(var(--header-h) * .64);    /* hauteur du sigle rangé dans l'en-tête (même rapport dans animations.js) */
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Taille générale du site : 16 px jusqu'à 2500 px de large environ, 21 px au maximum au-delà. */
html { font-size: clamp(100%, 0.3vw + 8.5px, 21px); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-compact) + 2rem); }
body {
  margin: 0; padding-top: var(--header-h); background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/1.7 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--clay); color: var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: var(--r-ctl); }
.skip:focus { top: 12px; }

h1, h2 { color: var(--ink); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { color: var(--ink); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
em { font-style: normal; color: var(--em); }
p { text-wrap: pretty; }
.lede { font-size: var(--fs-lede); line-height: 1.6; max-width: 36em; color: var(--text); }
.muted { color: var(--muted); }

/* Intitulé de section : tiret orange + texte */
.label { display: flex; align-items: center; gap: .8em; flex-wrap: wrap; font-size: var(--fs-label); font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.label::before { content: ""; width: 28px; height: 2px; background: var(--orange); flex: none; }
.label b { font-weight: 700; color: var(--ink); }
.k { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }

/* très petits téléphones : titres principaux un peu moins grands, pour des coupures de ligne moins serrées */
@media (max-width: 599px) { :root { --fs-display: clamp(1.75rem, 8.6vw, 2.5rem); --fs-h1: clamp(1.65rem, 8vw, 2.3rem); --fs-h2: clamp(1.5rem, 7vw, 1.9rem); } }


/* ---------- 3. En-tête et marque ----------
   En-tête fixe, de hauteur constante. Le logo est celui d'origine : sigle (marque.svg) + nom (nom.svg) + signature.
   Quand les animations sont actives, le sigle de l'en-tête est fourni par le grand sigle de la page, qui vient s'y ranger (animations.js). */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .35s; }
.site-header.is-scrolled { box-shadow: 0 8px 18px -16px rgba(42, 41, 39, .25); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 2vw, 40px); height: var(--header-h); position: relative; }

.brand { display: flex; align-items: center; min-width: 0; text-decoration: none; flex: none; }
.brand__sigle { flex: none; width: calc(var(--sigle-h) * .8489); margin-right: calc(var(--sigle-h) * .26); overflow: hidden; }
.brand__sigle img { height: var(--sigle-h); width: auto; max-width: none; }
.brand__txt { display: grid; gap: .5rem; min-width: 0; }
.brand__txt strong { display: block; line-height: 0; }
.brand__name { height: 1.9rem; width: auto; max-width: none; }
.brand__txt small { font-size: .86rem; font-weight: 500; line-height: 1; letter-spacing: .012em; white-space: nowrap; color: var(--logo-gray); }

.nav { display: flex; align-items: center; gap: clamp(0px, .4vw, 10px); }
.nav a:not(.btn) { position: relative; text-decoration: none; font-size: 1.05rem; font-weight: 500; color: var(--text); padding: .8rem .85rem; white-space: nowrap; transition: color .25s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { font-weight: 600; }
.nav a:not(.btn):hover::after, .nav a:not(.btn):focus-visible::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav .btn { margin-left: clamp(8px, 1vw, 22px); }
.nav-toggle { display: none; }

/* ordinateurs portables : menu complet conservé, logo et espacements resserrés */
@media (min-width: 1360px) and (max-width: 1559px) {
  .brand__name { height: 1.6rem; }
  .brand__txt small { font-size: .73rem; }
  .nav a:not(.btn) { font-size: 1rem; padding-inline: .55rem; }
  .nav a:not(.btn)::after { left: .55rem; right: .55rem; }
  .nav .btn { margin-left: 6px; padding: 0 1.05em; }
}
/* tablette et téléphone : menu repliable */
@media (max-width: 1359px) {
  :root { --header-h: 5rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 12px; flex: none; background: var(--stone); border: 0; border-radius: var(--r-ctl);
    padding: 0 18px; min-height: 48px; font: 700 1rem var(--font); color: var(--ink); cursor: pointer;
  }
  .nav-toggle span { width: 18px; height: 8px; border-block: 2px solid currentColor; transition: height .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span { height: 0; border-bottom: 0; }
  .nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    max-height: calc(100svh - var(--header-h) - 24px); overflow-y: auto;
    background: var(--surface); border-radius: var(--r-panel); padding: 12px; box-shadow: var(--edge), 0 24px 44px -26px rgba(42, 41, 39, .4);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; }
  .nav a:not(.btn) { font-size: 1.3rem; padding: 15px 18px; border-radius: var(--r-ctl); color: var(--ink); }
  .nav a:not(.btn)::after { left: 18px; right: auto; width: 28px; bottom: 8px; }
  .nav a[aria-current] { background: var(--stone); }
  .nav .btn { margin: 8px 0 0; min-height: 3.6em; }
}
@media (max-width: 699px) {
  :root { --header-h: 4.6rem; }
  .brand__name { height: auto; width: clamp(8.4rem, 44vw, 13rem); }
  .brand__txt small { display: none; }
}
/* téléphones : le bouton de menu ne garde que son pictogramme (le mot reste lu par les lecteurs d'écran) */
@media (max-width: 479px) { .nav-toggle { font-size: 0; gap: 0; padding: 0; width: 48px; justify-content: center; } }

/* ---------- 4. Boutons ----------
   Principal : plein, avec sa flèche dans une pastille. Secondaire (.btn--ghost) : simple contour. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .8em; text-decoration: none; cursor: pointer; border: 0;
  font: 700 1.03rem/1 var(--font); letter-spacing: .005em; min-height: 3.55em; padding: 0 1.55em; border-radius: var(--r-ctl);
  background: var(--accent); color: #fff; box-shadow: 0 8px 16px -12px rgba(51, 50, 47, .42);
  transition: background .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn::after {
  content: "→"; display: grid; place-items: center; width: 1.8em; height: 1.8em; margin-right: -.5em; border-radius: 50%;
  background: rgba(255, 255, 255, .15); color: #ffd0b0; font-weight: 500; transition: background .3s, color .3s, transform .3s var(--ease);
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 12px 20px -12px rgba(51, 50, 47, .46); }
.btn:hover::after { background: var(--orange); color: var(--ink); transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn--ghost { background: transparent; color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(51, 50, 47, .26); }
.btn--ghost::after { width: auto; height: auto; margin-right: 0; background: none; color: var(--orange); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.btn--ghost:hover::after { background: none; color: var(--orange); }
.btn--tel { font-variant-numeric: tabular-nums; letter-spacing: .03em; min-height: 3.1em; padding: 0 1.35em; box-shadow: none; }
.btn--tel::after { content: none; }
.btn--sm { font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---------- 5. Structure ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .55); }
.rule { padding-top: 0; }                       /* section qui en suit une autre sans rupture */
.dark { background: var(--stone); }             /* bande pleine largeur (nom de classe historique) */

.split { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.split__head { position: sticky; top: calc(var(--header-h-compact) + 2rem); display: grid; gap: 1.2rem; }
.split__head p:not(.label) { max-width: 30em; }
.head { display: grid; gap: 1.2rem; margin-bottom: clamp(32px, 4vw, 60px); max-width: 52rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__head { position: static; } }

/* ---------- 6. Composants ---------- */
/* Liseré orange qui se déploie au survol des cartes */
.cells > *, .publics > article, .ledger > li { position: relative; overflow: hidden; }
.cells > *::after, .publics > article::after, .ledger > li::after, .rows > li::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--yellow)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.cells > *:hover::after, .publics > article:hover::after, .ledger > li:hover::after, .rows > li:hover::after { transform: scaleX(1); }

/* Liste numérotée */
.ledger { counter-reset: l; display: grid; gap: 14px; }
.ledger > li {
  counter-increment: l; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1.4rem; row-gap: .45rem;
  background: var(--surface); border-radius: var(--r-card); padding: clamp(22px, 2.2vw, 34px); box-shadow: var(--edge);
  transition: translate .4s var(--ease), box-shadow .4s;
}
.ledger > li:hover { translate: 0 -3px; box-shadow: var(--edge), var(--lift); }
.ledger > li::before {
  content: counter(l); grid-row: span 2; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 1rem; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--orange);
}
.ledger h3 { align-self: center; }
.ledger p { grid-column: 2; max-width: 46em; }
.dark .ledger > li, .dark .ledger > li:hover { box-shadow: none; }

/* Cartes */
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cells > * {
  background: var(--surface); border-radius: var(--r-card); padding: clamp(24px, 2.2vw, 36px); box-shadow: var(--edge);
  display: grid; gap: .8rem; align-content: start; transition: translate .4s var(--ease), box-shadow .4s;
}
.cells > *:hover { translate: 0 -3px; box-shadow: var(--edge), var(--lift); }
.cells p { max-width: 38em; }
.cells .k, .publics .k { width: fit-content; background: var(--stone); padding: .4em .85em; border-radius: var(--r-chip); color: var(--text); margin-bottom: .2rem; }
.cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .cells { grid-template-columns: 1fr; } }
@media (min-width: 641px) and (max-width: 960px) { .cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ticks { display: grid; gap: .9rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 9px; height: 2px; background: var(--orange); }
.ticks b { color: var(--ink); font-weight: 700; }

/* ---------- 7. Pages ---------- */
/* Accueil — premier écran : le sigle en monument à gauche, le texte et les vignettes à droite */
.hero { display: grid; align-items: center; min-height: calc(100svh - var(--header-h)); padding-block: clamp(1.6rem, 4.5vh, 4.4rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(2rem, 4.5vw, 7rem); }
.hero__text { display: grid; gap: clamp(1rem, 2.4vh, 1.9rem); justify-items: start; }
.hero h1 { font-size: var(--fs-display); line-height: 1.03; }
.hero .lede { max-width: 38em; }
.projets { display: grid; gap: .7rem; width: min(100%, 48rem); margin-top: clamp(.2rem, 1.4vh, 1.1rem); }
.projets__rangee { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.projets figure { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-card); background: var(--clay); }
.projets img { width: 100%; height: 100%; object-fit: cover; }
.hero__note { font-size: var(--fs-small); color: var(--muted); }
.hero__note a { white-space: nowrap; color: var(--ink); font-weight: 600; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* Le sigle en grand : mêmes proportions et mêmes couleurs que le logo */
.monument { position: relative; z-index: 1; justify-self: center; height: min(60svh, 31vw); aspect-ratio: 426.88 / 502.88; }
.monument__vol { width: 100%; height: 100%; }
.monument__sigle { display: block; width: 100%; height: 100%; overflow: visible; }
.anim .monument { z-index: 55; }              /* animé : le sigle passe devant l'en-tête pour venir s'y ranger ; sinon il défile dessous */
.menu-ouvert .monument { z-index: 1; }
@media (max-width: 1099px) {
  .hero { min-height: 0; align-items: start; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .monument { justify-self: start; height: min(30svh, 54vw); }
  .hero .actions .btn { flex: 1 1 14rem; }
}
@media (max-width: 599px) { .projets__rangee { gap: .4rem; } }

/* Bandeau de titre des autres pages */
.page-hero { padding-block: clamp(40px, 4.3vw, 82px) clamp(28px, 3.2vw, 52px); }
.page-hero .wrap { display: grid; gap: clamp(18px, 1.9vw, 28px); }
.page-hero h1 { max-width: 16em; }

/* Repères */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.facts > div { border-radius: var(--r-card); padding: clamp(24px, 2.4vw, 40px); display: grid; gap: .5rem; align-content: start; background: var(--sand); }
.facts > div::before { content: ""; width: 28px; height: 2px; background: var(--orange); margin-bottom: .5rem; }
.facts strong { color: var(--ink); font-weight: 600; font-size: clamp(1.7rem, 2.4vw, 2.4rem); line-height: 1.05; letter-spacing: -.04em; }
.facts span { font-size: 1rem; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } }

/* Publics */
.publics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.publics > article { background: var(--surface); border-radius: var(--r-card); padding: clamp(24px, 2.2vw, 36px); display: grid; gap: 1.1rem; align-content: start; }
.publics h3 { font-size: 1.4rem; letter-spacing: -.02em; }
@media (max-width: 1000px) { .publics { grid-template-columns: 1fr; } }

/* Arguments : quatre blocs identiques (même largeur, même fond discret), hauteur selon le contenu */
.points { display: grid; gap: 10px; }
.points > li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 1rem; row-gap: .3rem; align-items: baseline; padding: 1.3rem 1.6rem; border-radius: var(--r-card); background: var(--sand); }
.points .k { grid-row: span 2; }
.points h3 { font-size: 1.3rem; }
.points p { grid-column: 2; max-width: 46em; }
@media (max-width: 560px) { .points > li { grid-template-columns: 2rem minmax(0, 1fr); column-gap: .6rem; padding: 1.15rem 1.2rem; } }

/* Témoignage */
.quote { display: grid; gap: 1.8rem; background: var(--surface); border-radius: var(--r-panel); padding: clamp(28px, 4vw, 72px); box-shadow: var(--edge); }
.quote blockquote { color: var(--ink); font-weight: 500; font-size: clamp(1.25rem, 1.7vw, 1.65rem); line-height: 1.5; letter-spacing: -.02em; max-width: 34em; }
.quote blockquote::before { content: "«\00a0"; color: var(--orange); }
.quote blockquote::after { content: "\00a0»"; color: var(--orange); }
.quote figcaption { display: flex; align-items: center; gap: .9rem; font-size: var(--fs-small); font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.quote .g { width: 22px; height: 22px; flex: none; }
.stars { color: #f4b400; letter-spacing: .16em; font-size: 1.05rem; }

/* Bande de prise de contact : titre à gauche ; à droite le texte, puis les coordonnées et l'action regroupées sous un filet */
.cta { background: var(--clay); }
.cta .wrap { display: grid; gap: 1.2rem; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 2.4vw, 32px) var(--gap); align-items: start; }
.cta__body { display: grid; gap: clamp(22px, 2.2vw, 32px); justify-items: start; container-type: inline-size; }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px clamp(22px, 2.2vw, 36px); width: 100%; padding-top: clamp(22px, 2.2vw, 32px); border-top: 1px solid rgba(51, 50, 47, .16); }
.cta__row .actions { gap: 14px clamp(18px, 2vw, 30px); }
.cta__tel { color: var(--ink); font-weight: 700; font-size: clamp(1.55rem, 2vw, 1.95rem); line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.cta__mail { color: var(--ink); font-weight: 600; font-size: 1.08rem; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .32em; overflow-wrap: anywhere; }
.cta__tel:hover, .cta__mail:hover { color: var(--accent); }
/* quand la colonne est assez large pour tout tenir sur une ligne : un filet vertical sépare « appeler » de « écrire » */
@container (min-width: 52rem) { .cta__row .actions { padding-left: clamp(22px, 2.2vw, 36px); border-left: 1px solid rgba(51, 50, 47, .16); } }
@media (max-width: 1000px) { .cta__grid { grid-template-columns: 1fr; } }

/* Prestations — zone des phases. La frise est collée sous l'en-tête tant que l'on est dans .phases-zone, puis part avec elle.
   --phase-pad : marge verticale des phases ; --phase-nav-h : hauteur réelle de la frise, mesurée par site.js. */
.phases-zone { --phase-pad: clamp(34px, 3.8vw, 68px); }
.phase-nav { position: sticky; top: var(--header-h-compact); z-index: 30; padding-block: 14px 14px; background: rgba(241, 240, 237, .93); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.phase-nav ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.phase-nav ol::before, .phase-nav ol::after { content: ""; position: absolute; left: 0; top: 4px; height: 2px; border-radius: 2px; }
.phase-nav ol::before { right: 0; background: var(--clay); }
.phase-nav ol::after { width: var(--fill, 0%); background: linear-gradient(90deg, var(--orange), var(--yellow)); transition: width .7s var(--ease); }
.phase-nav a { display: grid; gap: 2px; padding: 1.5rem .8rem .1rem 0; text-decoration: none; position: relative; color: var(--muted); transition: color .3s; }
.phase-nav a::before { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--clay); z-index: 1; transition: box-shadow .4s, background .4s; }
.phase-nav a.is-done::before, .phase-nav a.is-active::before { box-shadow: inset 0 0 0 2px var(--orange); }
.phase-nav a.is-active::before { background: var(--orange); }
.phase-nav strong { font-weight: 700; font-size: clamp(.95rem, 1.15vw, 1.15rem); letter-spacing: -.01em; }
.phase-nav a:hover, .phase-nav a.is-active { color: var(--ink); }
@media (max-width: 560px) { .phase-nav .k { display: none; } .phase-nav strong { font-size: .86rem; } .phase-nav a { padding-right: .3rem; } }
@media (max-width: 400px) { .phase-nav strong { font-size: .78rem; letter-spacing: -.02em; } }

/* Prestations — phases : intitulé à gauche, points à droite.
   Option .phase--img (sur <article>) : ajoute une image en quinconce, voir IMAGES_A_GENERER.md */
/* ancres : le titre de la phase arrive juste sous la frise, à la même hauteur pour les quatre liens */
.phase { padding-block: var(--phase-pad); scroll-margin-top: calc(var(--phase-nav-h, 6.9rem) - 2rem); }
.phase + .phase { scroll-margin-top: calc(var(--phase-nav-h, 6.9rem) - 2rem - var(--phase-pad) - 1px); }
.phase + .phase > .wrap::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: var(--phase-pad); }
.phase__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; }
.phase__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 1.8vw, 28px); align-items: center; }
.phase__body .phase__head { position: sticky; top: calc(var(--header-h-compact) + var(--phase-nav-h, 6.9rem) + 1.5rem); }
.phase__n { width: clamp(60px, 5vw, 88px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--ink); font-weight: 600; font-size: clamp(1.25rem, 1.8vw, 1.7rem); letter-spacing: -.03em; }
.phase__head h2 { font-size: clamp(1.7rem, 2.4vw, 2.5rem); }
.phase__head .label { margin-bottom: .6rem; }
.phase__head .label b { color: var(--muted); font-weight: 600; }
.rows > li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; padding: clamp(20px, 1.8vw, 30px) 0; position: relative; }
.rows > li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform: scaleX(var(--t, 1)); transform-origin: left; }
.rows > li::after { top: 0; }
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.rows .k { padding-top: .42em; }
.rows h3 { font-weight: 700; }
.rows p { margin-top: .4rem; max-width: 46em; }
@media (min-width: 1700px) {
  .rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 2.4vw, 56px); }
  .rows > li { grid-template-columns: 1fr; row-gap: .7rem; align-content: start; border-bottom: 0 !important; padding-bottom: 0; }
  .rows .k { padding-top: 0; }
}
@media (max-width: 900px) {
  .phase__body { grid-template-columns: 1fr; }
  .phase__body .phase__head { position: static; }
}
@media (max-width: 560px) { .rows > li { grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: .5rem; } }
/* variante avec image */
.phase--img > .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: var(--gap); align-items: center; }
.phase--img:nth-child(even) > .wrap { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.phase--img:nth-child(even) .phase__img { order: 2; }
.phase--img > .wrap::before { display: none !important; }
.phase--img .phase__body { display: block; }
.phase--img .phase__body .phase__head { position: static; margin-bottom: clamp(22px, 2.6vw, 36px); }
.phase__img { position: relative; aspect-ratio: 4 / 5; max-height: 62vh; width: 100%; }
.phase__clip { height: 100%; overflow: hidden; border-radius: var(--r-panel); background: var(--stone); }
.phase__clip img { width: 100%; height: 100%; object-fit: cover; }
.phase__img figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .88); color: var(--ink); font-size: .85rem; font-weight: 600; padding: 7px 12px; border-radius: var(--r-chip); }
@media (max-width: 900px) {
  .phase--img > .wrap, .phase--img:nth-child(even) > .wrap { grid-template-columns: 1fr; }
  .phase--img:nth-child(even) .phase__img { order: 0; }
  .phase__img { aspect-ratio: 16 / 10; max-height: none; }
}

/* Références : images et fiche synthétique (cartes de la page principale et fiche projet : voir section 12) */
.project__media { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.project__media figure { position: relative; overflow: hidden; background: var(--stone); border-radius: var(--r-panel); }
.project__media img { width: 100%; height: auto; }
.project__media figcaption {
  position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); display: flex; flex-wrap: wrap; gap: .1em .9em; background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); font-size: .85rem; font-weight: 600; line-height: 1.4; padding: 8px 13px; border-radius: var(--r-chip);
}
.project__media figcaption .credit { font-weight: 500; color: var(--text); }
.project__body .prose { display: grid; gap: 1.1em; max-width: 44em; }
.project__body .prose p:first-child { font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.fiche { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--edge); padding: clamp(20px, 2vw, 32px); }
.fiche__title { display: flex; align-items: center; gap: .7rem; font-size: var(--fs-small); font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.fiche__title::before { content: ""; width: 3px; height: 1.1em; background: var(--orange); border-radius: 2px; }
.fiche__title span:last-child { margin-left: auto; background: var(--stone); padding: .35em .8em; border-radius: var(--r-chip); font-weight: 600; }
.fiche dl > div { display: grid; gap: 2px; padding: .9rem 0; border-top: 1px solid var(--line); }
.fiche dt { font-size: .9rem; font-weight: 500; color: var(--muted); }
.fiche dd { font-size: 1.06rem; font-weight: 600; color: var(--ink); line-height: 1.45; }
.status { display: inline-flex; align-items: center; gap: .6rem; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.coords { display: grid; gap: 14px; }
.coords > div { padding: clamp(20px, 2vw, 30px); border-radius: var(--r-card); display: grid; gap: .35rem; background: var(--surface); box-shadow: var(--edge); position: relative; overflow: hidden; }
.coords dt { font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.coords dd { color: var(--ink); font-weight: 600; font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.35; letter-spacing: -.015em; overflow-wrap: anywhere; }
.coords dd.big { font-size: clamp(1.7rem, 2.4vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.coords a { text-decoration: none; }
.coords a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.form { background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--edge); padding: clamp(24px, 3.2vw, 52px); display: grid; gap: 1.35rem; }
.form h2 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
.field { display: grid; gap: .5rem; }
.field label { font-size: var(--fs-small); font-weight: 700; color: var(--ink); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-ctl);
  padding: .85rem 1rem; width: 100%; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 10rem; }
.field input:focus, .field textarea:focus { outline: none; background: var(--surface); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 145, 77, .32); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form small { color: var(--muted); font-size: var(--fs-small); line-height: 1.55; }
.form small a { color: var(--ink); font-weight: 600; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.form button { justify-self: start; }
.form__status { font-size: 1.02rem; padding: 1rem 1.15rem; border-radius: var(--r-ctl); background: var(--stone); color: var(--ink); border-left: 3px solid var(--orange); }
.form__status[hidden] { display: none; }
/* champ piège anti-robots : hors de l'écran, sans masquer par display:none (certains robots l'ignorent alors) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__status.is-error { background: #f3dcd8; border-left-color: #b3261e; }

/* Texte long (confidentialité) */
.legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--gap); align-items: start; }
.legal nav { position: sticky; top: calc(var(--header-h-compact) + 2rem); display: grid; gap: 2px; background: var(--surface); border-radius: var(--r-card); padding: 12px; box-shadow: var(--edge); }
.legal nav a { padding: .6rem .9rem; border-radius: var(--r-chip); text-decoration: none; font-size: 1rem; font-weight: 600; transition: background .2s, color .2s; }
.legal nav a:hover { background: var(--stone); color: var(--ink); }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal nav { position: static; } }
.prose-long { display: grid; gap: clamp(28px, 3vw, 44px); max-width: 42rem; }
.prose-long section { display: grid; gap: .9rem; align-content: start; }
.prose-long section + section { padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); }
.prose-long h2 { font-size: clamp(1.45rem, 1.9vw, 1.85rem); letter-spacing: -.025em; }
.prose-long ul { display: grid; gap: .65rem; }
.prose-long li { position: relative; padding-left: 1.6rem; }
.prose-long li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 9px; height: 2px; background: var(--orange); }
.prose-long a { color: var(--ink); font-weight: 600; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.todo { background: #fbe9a8; color: var(--ink); padding: 2px 8px; border-radius: 6px; font-weight: 700; }

/* ---------- 8. Pied de page ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(48px, 5vw, 92px) 28px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: max(var(--gutter), (100% - var(--wrap)) / 2); width: 64px; height: 2px; background: linear-gradient(90deg, var(--orange), var(--yellow)); }
.cartouche { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); gap: clamp(28px, 3.6vw, 72px); }
.cartouche > div { display: grid; gap: .6rem; align-content: start; font-size: 1rem; line-height: 1.65; }
.cartouche > div:first-child { grid-template-columns: auto minmax(0, 1fr); column-gap: 1.2rem; align-items: center; row-gap: .5rem; }
.cartouche__logo { grid-row: span 2; height: 5.6rem; width: auto; }
.cartouche .name { align-self: end; line-height: 0; }
.cartouche .name img { height: 2.1rem; width: auto; }
.cartouche > div:first-child p:last-child { align-self: start; color: var(--muted); }
.cartouche h2 { font-size: var(--fs-label); font-weight: 700; letter-spacing: .01em; color: var(--ink); margin-bottom: .2rem; }
.cartouche a { text-decoration: none; }
.cartouche a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.cartouche .tel { color: var(--ink); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.cartouche small { font-size: var(--fs-small); line-height: 1.75; color: var(--muted); }
.cartouche ul { display: grid; gap: .35rem; }
.site-footer .foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 56px); padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 1100px) { .cartouche { grid-template-columns: 1fr 1fr; } .cartouche > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .cartouche { grid-template-columns: 1fr; } .cartouche__logo { height: 4.4rem; } .cartouche .name img { height: 1.6rem; } }
@media (max-width: 720px) { .site-footer { padding-bottom: 104px; } }

/* Barre d'appel fixe sur téléphone */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-radius: var(--r-card); padding: 6px; box-shadow: var(--edge), 0 10px 22px -14px rgba(51, 50, 47, .3); transition: transform .4s var(--ease);
  }
  .callbar a { display: grid; place-items: center; min-height: 52px; text-decoration: none; border-radius: var(--r-ctl); font-weight: 700; font-size: 1.02rem; color: var(--ink); background: var(--stone); }
  .callbar a:first-child { background: var(--accent); color: #fff; }
  .callbar.hide { transform: translateY(170%); }
}

/* ---------- 9. Mouvement ----------
   Les animations sont pilotées par GSAP et ScrollTrigger (assets/js/animations.js). La classe .anim n'est posée sur <html>
   que si le visiteur n'a pas demandé à réduire les animations ; sans elle, tout le contenu est affiché directement. */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; background: linear-gradient(90deg, var(--orange), var(--yellow)); transform: scaleX(0); transform-origin: left; }
.anim .reveal { opacity: 0; }
.anim [data-a] { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  html:not(.anim) { scroll-behavior: auto; }
  html:not(.anim) *, html:not(.anim) *::before, html:not(.anim) *::after { animation: none !important; transition: none !important; }
}

/* ---------- 10. Impression ---------- */
@media print {
  .site-header, .callbar, .progress, .phase-nav { display: none; }
  body { padding-top: 0; }
  }

/* ---------- 11. Version « Volume » : caractère typographique et pages ajoutées ---------- */
/* titres larges et bâtis (Archivo en largeur étendue) ; aucun mot n'est mis en exergue dans les titres */
h1, h2 { font-weight: 700; font-stretch: 125%; letter-spacing: -.035em; line-height: 1.06; }
h3 { font-weight: 700; }
.facts strong { font-weight: 700; font-stretch: 112%; }
.phase__n { font-stretch: 112%; font-weight: 700; }
.lede { max-width: 38em; }

.dark + .rule { padding-top: var(--section); }     /* une section qui suit une bande pleine retrouve sa marge haute */
.hero__note { text-wrap: balance; }

/* boutons francs, sans pictogramme */
.btn { font-weight: 600; box-shadow: none; }
.btn::after { content: none; }
.btn:hover { transform: none; box-shadow: none; }
.btn--ghost { font-weight: 500; box-shadow: inset 0 0 0 1.5px rgba(42, 41, 39, .32); }
.btn--ghost:hover { background: var(--stone); box-shadow: inset 0 0 0 1.5px var(--accent); }

/* pages intérieures : le sigle en format moyen à gauche du titre */
.page-hero .wrap { grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: clamp(2rem, 4vw, 6rem); }
.page-hero__texte { display: grid; gap: clamp(18px, 1.9vw, 28px); min-width: 0; }
.monument--page { justify-self: start; height: clamp(7.5rem, 13vw, 17rem); }
@media (max-width: 899px) {
  .page-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .monument--page { height: clamp(5.5rem, 22vw, 8rem); }
}

/* grands écrans : colonnes de texte bornées pour garder des lignes confortables */
@media (min-width: 2200px) {
  .hero .wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}

.page-hero--fiche h1 { max-width: 18em; }

/* ---------- 12. Site final : page principale continue, références, fiche projet ---------- */

/* Rubriques de la page principale (Accueil, Présentation, Prestations, Références, Contact) : ce sont les cibles du menu.
   La marge négative annule la marge de confort des ancres : le haut de la rubrique vient exactement sous l'en-tête. */
.rubrique { position: relative; scroll-margin-top: calc(-2rem - 1px); }

/* Menu : le repère orange est un seul trait, qui glisse vers la rubrique affichée (base.js). Sans script, chaque lien garde son soulignement. */
.nav a[aria-current] { font-weight: 500; }           /* pas de changement de graisse : la largeur du menu ne bouge pas quand la rubrique change */
.nav__repere { display: none; }
@media (min-width: 1360px) {
  .nav { position: relative; }
  .nav__repere {
    display: block; position: absolute; left: 0; top: 0; width: 1px; height: 2px; background: var(--orange); pointer-events: none;
    transform-origin: 0 50%; transform: translate(var(--x, 0px), var(--y, 0px)) scaleX(var(--l, 0));
  }
  .nav__repere.glisse { transition: transform .5s var(--ease); }
  .nav.repere-actif a[aria-current]::after { transform: scaleX(0); }
}

/* En-tête de rubrique : un filet sur toute la largeur, un repère orange, l'intitulé et le grand titre */
.chapitre { position: relative; padding-block: var(--section) clamp(28px, 3.2vw, 52px); }
.chapitre::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--line); transform: scaleX(var(--trait, 1)); transform-origin: left; }
.chapitre::after {
  content: ""; position: absolute; top: -1px; left: max(var(--gutter), (100% - var(--wrap)) / 2); width: 64px; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--yellow)); transform: scaleX(var(--repere, 1)); transform-origin: left;
}
.chapitre .wrap { display: grid; gap: clamp(18px, 1.9vw, 28px); }
.chapitre__titre { font-size: var(--fs-h1); max-width: 16em; }
.chapitre .cells { margin-top: clamp(8px, 1vw, 18px); }

/* Contact : la dernière rubrique reprend la bande grise qui fermait chaque page */
.rubrique--contact { background: var(--clay); padding-bottom: var(--section); }
.rubrique--contact .chapitre::before { display: none; }
.rubrique--contact .chapitre::after { top: 0; }
.rubrique--contact .label, .rubrique--contact .muted { color: var(--text); }
.rubrique--contact .contact-zone { padding-bottom: 0; }

/* Trait orange qui traverse le haut d'une carte quand elle arrive à l'écran (animations.js ; invisible au repos) */
.cells > *::before, .publics > article::before, .ref::before, .coords > div::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, var(--orange), var(--yellow)); transform: scaleX(var(--s, 0)); transform-origin: var(--o, left);
}
/* le chiffre cerclé des listes numérotées peut grossir à l'arrivée */
.ledger > li::before { transform: scale(var(--n, 1)); }

/* Références — les cartes : image principale, titre, accroche, fiche synthétique, accès à la fiche projet.
   Une colonne sur téléphone, deux sur tablette et ordinateur, trois sur grand écran. */
.references { padding-bottom: var(--section); }
.refs { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 1.5vw, 28px); padding-top: clamp(6px, 1vw, 16px); }
@media (min-width: 760px) { .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1700px) { .refs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ref {
  --ref-pad: clamp(18px, 1.5vw, 28px);
  position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--edge);
  transition: translate .4s var(--ease), box-shadow .4s;
}
.ref:hover { translate: 0 -3px; box-shadow: var(--edge), var(--lift); }
/* les cartes d'une même rangée alignent leurs quatre parties (image, texte, fiche, bouton) */
@supports (grid-template-rows: subgrid) { .ref { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; } }
/* cadre 16/9 ; l'image y tient en entier (jamais recadrée) et n'est jamais affichée plus large que son fichier (--nat) */
.ref__img { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.ref__img img { width: 100%; height: 100%; max-width: var(--nat, none); object-fit: contain; transition: scale 1.2s var(--ease); }
.ref:hover .ref__img img { scale: 1.03; }
.ref__media figcaption { display: flex; flex-wrap: wrap; gap: 0 .9em; padding: .6rem var(--ref-pad) 0; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.ref__texte { display: grid; gap: .7rem; align-content: start; padding: 1.1rem var(--ref-pad) 0; }
.ref__texte .label { font-size: .95rem; }
.ref__texte h3 { font-size: clamp(1.22rem, 1.25vw, 1.45rem); line-height: 1.22; letter-spacing: -.02em; text-wrap: balance; }
.ref__texte h3 a { text-decoration: none; }
.ref__texte h3 a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .16em; }
.ref__fiche { display: grid; align-content: start; margin: 1.15rem var(--ref-pad) 0; }
.ref__fiche > div { display: grid; grid-template-columns: 8.4em minmax(0, 1fr); gap: 0 1rem; align-items: baseline; padding: .55rem 0; border-top: 1px solid var(--line); }
.ref__fiche dt { font-size: .9rem; font-weight: 500; color: var(--muted); }
.ref__fiche dd { font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.ref__fiche .is-mission dd { font-weight: 700; }
.ref__fiche .is-mission dd::before { content: ""; display: inline-block; width: 9px; height: 2px; margin-right: .6em; vertical-align: middle; background: var(--orange); }
.ref__plus { display: flex; align-items: end; margin-top: auto; padding: 1.25rem var(--ref-pad) var(--ref-pad); }
/* cartes étroites (téléphone, et deux colonnes sur tablette) : l'intitulé passe au-dessus de la valeur, qui garde toute la largeur */
@media (max-width: 479px), (min-width: 760px) and (max-width: 1099px) { .ref__fiche > div { grid-template-columns: minmax(0, 1fr); row-gap: 1px; } }

/* Fiche projet (page séparée) : l'image principale et les vues complémentaires à gauche, le descriptif et la fiche à droite.
   Sur téléphone : image principale, descriptif, fiche, vues complémentaires. */
.project--fiche { display: grid; gap: clamp(24px, 3vw, 48px); padding-bottom: var(--section); }
.project--fiche figure { max-width: var(--nat, none); }         /* jamais plus large que le fichier : pas d'agrandissement */
.project--fiche .project__body { display: grid; gap: clamp(24px, 2.6vw, 40px); align-content: start; }
.project--fiche .fiche .is-mission dd { font-size: 1.14rem; }
@media (min-width: 600px) { .project__galerie--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* vues complémentaires : la légende passe sous l'image, pour ne pas la masquer */
.project__galerie figure { background: none; border-radius: 0; }
.project__galerie img { border-radius: var(--r-panel); }
.project__galerie figcaption { position: static; max-width: none; padding: .55rem 0 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; font-weight: 500; color: var(--muted); }
.project__galerie figcaption .credit { color: var(--muted); }
@media (min-width: 1000px) {
  .project--fiche { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr auto; column-gap: var(--gap); align-items: start; }
  .project__principale { grid-column: 1; grid-row: 1; }
  .project--fiche .project__body { grid-column: 2; grid-row: 1 / span 2; }
  .project__galerie { grid-column: 1; grid-row: 2; }
  .project--fiche .project__retour { grid-column: 1 / -1; grid-row: 3; }
}

/* État de départ des animations (posé seulement quand elles sont actives ; animations.js conduit chaque élément à son état final) */
.anim .chapitre { --trait: 0; --repere: 0; }
.anim .chapitre__titre { clip-path: inset(0 0 100% 0); }
.anim .ref__img, .anim .project--fiche figure, .anim .quote { clip-path: inset(0 100% 0 0); }
.anim .facts strong { clip-path: inset(0 0 100% 0); }
.anim .rows > li { --t: 0; }

@media print { .anim .reveal { opacity: 1; } .anim [data-a] { visibility: visible; } .anim .chapitre__titre, .anim .ref__img, .anim .project--fiche figure, .anim .quote, .anim .facts strong { clip-path: none; } }
