/* ════════════════════════════════════════════════════════════════
   DE SIGNE Concept — site.css
   ────────────────────────────────────────────────────────────────
   Système visuel du site, calqué sur firmagroup.com.au :
     crème + charbon + rouge de marque + sauge, une seule famille (Archivo),
     listes à filets, liens fléchés soulignés, pastilles, beaucoup d'air.

   Règles :
   · tout le texte est dans le HTML et lisible sans JavaScript ;
     les états « masqués » n'existent que sous html.js-mouvement ;
   · mouvement = transform, opacity, clip-path ;
   · prefers-reduced-motion : tout est figé dans son état final.
   ════════════════════════════════════════════════════════════════ */


/* ─── 1. CARACTÈRE ───────────────────────────────────────────── */

@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/archivo-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/archivo-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url('/fonts/archivo-latin-wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lexend Deca'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/lexend-deca-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lexend Deca'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/lexend-deca-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ─── 2. JETONS ──────────────────────────────────────────────── */

/* Palette DE SIGNE : reprise des jetons de marque de styles.css et des
   couleurs du logo (rouge #B72A2C mesuré sur le fichier fourni par le client
   le 2026-09-30, charbon, sauge).
   La composition reste celle de Firma, les couleurs sont celles de la marque.
   Les noms de variables n'ont pas changé : seules les valeurs ont bougé. */
:root {
  --creme:     #F5F2EE;   /* fond de marque (ancien --bg) */
  --blanc:     #FFFFFF;
  --encre:     #41423D;   /* texte et titres de marque, 8,8:1 sur crème */
  --graphite:  #55564F;
  --gris:      #6B6C64;   /* texte secondaire, 4,8:1 sur crème */
  --filet:     rgba(65, 66, 61, .20);
  --filet-fort:rgba(65, 66, 61, .50);
  --brique:    #B72A2C;   /* le rouge du logo, 5,6:1 sur crème (l'ancien site utilisait #A83B38) */
  --brique-fonce: #982325; /* le même, assombri, pour les survols */
  --sanguine:  #2A2B27;   /* bloc profond : le charbon de marque, pas un bordeaux */
  --sanguine-2:#1E1F1B;
  --corail:    var(--brique); /* titres sur charbon : le rouge de marque, plus de rouge éclairci (2026-09-30) */
  --encre-forte: #2A2B27; /* texte en charbon sur fond clair ; s'inverse la nuit, contrairement à --sanguine */
  --pierre:    #A6B37E;   /* sauge de marque (ancien --sauge) pour le bloc missions */

  --f: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-libelle: 'Lexend Deca', 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* la police de titres de Firma */

  --t-geant:  clamp(3.4rem, 10vw, 9.5rem);
  --t-titre:  clamp(2rem, 3.8vw, 3.4rem);
  --t-sous:   clamp(1.35rem, 2.2vw, 1.9rem);
  --t-intro:  clamp(1.15rem, 1.6vw, 1.45rem);
  --t-corps:  1.0625rem;
  --t-petit:  .9375rem;
  --t-libelle: clamp(1.5rem, 2.6vw, 2.25rem);

  --marge:  clamp(1.25rem, 5vw, 5.5rem);
  --large:  1320px;
  --mesure: 64ch;
  --air:    clamp(6rem, 13vw, 11rem);     /* respiration entre sections */
  --nav-h:  84px;

  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Mode nuit — jetons repris du bloc [data-theme="dark"] de styles.css.
   Le rouge reste celui de la marque, comme sur l'ancien site : décision
   du 2026-09-30, il n'est plus éclairci (2,8:1 sur ce fond). */
[data-theme="dark"] {
  --creme:     #1A1916;
  --blanc:     #232120;
  --encre:     #EEEAE4;
  --graphite:  rgba(238, 234, 228, .78);
  --gris:      rgba(238, 234, 228, .62);
  --filet:     rgba(238, 234, 228, .16);
  --filet-fort:rgba(238, 234, 228, .42);
  --sanguine:  #0F0E0C;
  --sanguine-2:#080807;
  --encre-forte: #EEEAE4;
  --pierre:    #8E9A6A;
}
/* Les photos sont prises de jour : on baisse d'un cran leur éclat la nuit. */
[data-theme="dark"] .une-photo img,
[data-theme="dark"] .plein-cadre-vue > img,
[data-theme="dark"] .projet-image img,
[data-theme="dark"] .article-image img,
[data-theme="dark"] .galerie-projet img { filter: brightness(.86) contrast(1.02); }


/* ─── 3. SOCLE ───────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--creme); color: var(--encre);
  font-family: var(--f); font-size: var(--t-corps); line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brique); outline-offset: 3px; }
::selection { background: var(--sanguine); color: #fff; }
.lecteur-seul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--sanguine); color: #fff; padding: .75rem 1rem; }
.evitement:focus { top: 1rem; }


/* ─── 4. TYPOGRAPHIE ─────────────────────────────────────────── */

/* Le libellé de section (« Notre histoire », « Ce que nous construisons ») :
   en Lexend Deca comme chez Firma, et grand — demande du 2026-09-30.
   Il reste sous le titre (--t-titre) dans la hiérarchie. */
.label { font-family: var(--f-libelle); font-size: var(--t-libelle); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; color: var(--brique); margin-bottom: 1.5rem; }
.label-gris { color: var(--gris); }

.titre { font-size: var(--t-titre); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.titre-corail { color: var(--brique); }
.sous-titre { font-size: var(--t-sous); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.intro { font-size: var(--t-intro); line-height: 1.45; letter-spacing: -.005em; max-width: 38ch; }
.texte { max-width: var(--mesure); color: var(--graphite); }
.texte + .texte { margin-top: 1rem; }


/* ─── 5. GRILLE ──────────────────────────────────────────────── */

.bloc { padding: var(--air) var(--marge); }
.bloc-serre { padding-block: calc(var(--air) * .6); }
.contenu { max-width: var(--large); margin-inline: auto; }
.deux-col {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.deux-col-bas { align-items: end; }
.fond-blanc { background: var(--blanc); }
.fond-creme { background: var(--creme); }
@media (max-width: 860px) { .deux-col { grid-template-columns: 1fr; } }


/* ─── 6. LIENS, PASTILLES, BOUTONS ───────────────────────────── */

/* Le lien de Firma : texte, flèche à droite, filet dessous */
.fleche {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 2.5rem;
  min-width: min(100%, 15rem); min-height: 44px;
  padding-bottom: .55rem; border-bottom: 1px solid currentColor;
  font-size: 1.0625rem; line-height: 1.3; color: var(--brique);
  transition: color .25s ease;
}
.fleche svg { width: 22px; height: 22px; flex-shrink: 0; transition: transform .35s var(--ease); }
.fleche:hover svg { transform: translateX(6px); }
.fleche-large { width: 100%; }
.fleche-blanc { color: #fff; }
.fleche-encre { color: var(--encre); }

.pastille {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: .4rem 1.1rem;
  border: 1px solid var(--encre); border-radius: 999px;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  color: var(--encre); background: transparent; white-space: nowrap;
}
button.pastille { cursor: pointer; min-height: 44px; transition: background-color .2s ease, color .2s ease; }
button.pastille:hover { background: rgba(36, 37, 31, .06); }
button.pastille[aria-pressed="true"] { background: var(--sanguine); border-color: var(--sanguine); color: #fff; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .9rem 2rem; border: 0; border-radius: 999px;
  background: var(--sanguine); color: #fff; font-size: 1rem; cursor: pointer;
  transition: background-color .25s ease;
}
.bouton:hover { background: var(--brique); }
.bouton[disabled] { opacity: .6; cursor: progress; }


/* ─── 7. EN-TÊTE ─────────────────────────────────────────────────
   Logo à gauche, onglets à droite. Collant ; s'efface en descendant,
   revient en remontant. Sous 1024 px, les onglets passent dans le
   menu plein écran de Firma (« Menu ↓ »). */

.entete {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-inline: var(--marge);
  background: var(--creme);
  transition: transform .45s var(--ease), box-shadow .3s ease, background-color .3s ease;
}
.entete.decolle { box-shadow: 0 1px 0 var(--filet); }
.entete.efface { transform: translateY(-100%); }
.entete-sombre { background: var(--sanguine); }
/* Sur fond sombre : le logo négatif de la marque (lettres blanches, rouge conservé). */
.entete-sombre .logo-jour, body.menu-ouvert .entete-logo .logo-jour { display: none; }
.entete-sombre .logo-nuit, body.menu-ouvert .entete-logo .logo-nuit { display: block; }
.entete-sombre .onglets a, .entete-sombre .bouton-menu { color: #fff; }
.entete-sombre .onglets a[aria-current="page"] { color: var(--corail); }
.entete-sombre.decolle { box-shadow: 0 1px 0 rgba(255,255,255,.15); }

.entete-logo img { width: 148px; height: auto; }
/* Le logo a des lettres charbon : la nuit, on sert sa variante à lettres claires. */
.logo-nuit { display: none; }
[data-theme="dark"] .logo-jour { display: none; }
[data-theme="dark"] .logo-nuit { display: block; }
.onglets { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.2rem); list-style: none; }
.onglets a {
  position: relative; display: inline-block; padding: .6rem 0;
  font-size: .96rem; color: var(--encre);
  transition: color .2s ease;
}
.onglets a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .3rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.onglets a:hover::after, .onglets a[aria-current="page"]::after { transform: scaleX(1); }
.onglets a[aria-current="page"] { color: var(--brique); }
.onglets .onglet-appel { color: var(--brique); }

.bouton-menu {
  display: none; align-items: center; gap: .5rem;
  min-height: 44px; padding: 0 .25rem; background: none; border: 0; cursor: pointer;
  font-size: 1.0625rem; color: var(--brique);
}
.bouton-menu svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.bouton-menu[aria-expanded="true"] svg { transform: rotate(180deg); }

@media (max-width: 1080px) {
  .onglets { display: none; }
  .bouton-menu { display: inline-flex; }
}
@media (max-width: 560px) { :root { --nav-h: 72px; } .entete-logo img { width: 124px; } }

/* Menu plein écran */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--sanguine); color: #fff;
  padding: calc(var(--nav-h) + 2.5rem) var(--marge) 2.5rem;
  display: grid; grid-template-rows: 1fr auto; gap: 3rem;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s linear .7s;
}
.menu.ouvert { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-out); }
body.menu-ouvert { overflow: hidden; }
body.menu-ouvert .entete { background: transparent; box-shadow: none; }
body.menu-ouvert .bouton-menu { color: #fff; }
.menu-liste { list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.menu-liste li { overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.2); }
.menu-liste a {
  display: block; padding: .7rem 0;
  font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.15; letter-spacing: -.02em; color: var(--corail);
  transform: translateY(105%); transition: transform .7s var(--ease-out), color .2s ease;
}
.menu-liste a:hover, .menu-liste a[aria-current="page"] { color: #fff; }
.menu.ouvert .menu-liste a { transform: none; }
.menu.ouvert .menu-liste li:nth-child(2) a { transition-delay: .04s; }
.menu.ouvert .menu-liste li:nth-child(3) a { transition-delay: .08s; }
.menu.ouvert .menu-liste li:nth-child(4) a { transition-delay: .12s; }
.menu.ouvert .menu-liste li:nth-child(5) a { transition-delay: .16s; }
.menu.ouvert .menu-liste li:nth-child(6) a { transition-delay: .20s; }
.menu-pied { display: flex; flex-wrap: wrap; gap: 1rem 3rem; color: rgba(255,255,255,.8); font-size: 1rem; }
.menu-pied a { color: #fff; }


/* ─── 8. ACCUEIL — défilé de photos + wordmark ───────────────────
   Deux plans de photos glissent de droite à gauche : le fond passe
   derrière « DE SIGNE », l'avant (photos plus petites, plus rapides)
   devant. Formats, hauteurs et écarts varient d'une photo à l'autre ;
   build/site.py les donne en unités u (UNE_FOND, UNE_AVANT) pour que la
   composition garde ses proportions d'un écran à l'autre. Le wordmark
   est décoratif : le H1 est dans le bloc suivant. Sous mouvement réduit,
   rien ne défile : reste l'écran d'ouverture. */

.une {
  /* u = 1vw sur un écran paysage, borné par la hauteur : sur un écran
     large et bas, les photos ne montent pas jusqu'aux repères. */
  --u: min(1vw, 1.87svh);
  --kb: 1;     /* échelle des positions verticales (--b) */
  --lent: 1;   /* échelle des durées de défilement */
  position: relative; height: max(640px, calc(100svh - var(--nav-h))); overflow: hidden; background: var(--creme);
}
/* Repères en haut, au-dessus de tout : les photos passent en dessous. */
.une-reperes {
  position: absolute; z-index: 5; top: 2.4vh; left: var(--marge); right: var(--marge);
  display: grid; grid-template-columns: calc(52vw - var(--marge)) 1fr; align-items: start;
  pointer-events: none;
}
.une-repere {
  font-family: var(--f-libelle); font-size: clamp(1rem, 1.35vw, 1.3rem); font-weight: 400;
  line-height: 1.22; letter-spacing: -.01em; color: var(--brique);
}
/* Chaque plan : deux séries identiques ; la piste glisse d'une série
   (-50 %) puis repart, sans raccord visible. */
.une-plan { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.une-plan-avant { z-index: 3; }
.une-piste { display: flex; width: max-content; height: 100%; }
.une-serie { display: flex; align-items: flex-end; flex-shrink: 0; height: 100%; }
/* --l largeur (× --kl, échelle du plan), --e écart avant la photo (en u) ; --b hauteur du bas de
   la photo (en % de la section) ; --r ratio largeur / hauteur. */
.une-photo {
  position: relative; flex-shrink: 0; margin: 0 0 0 calc(var(--e) * var(--u));
  width: calc(var(--l) * var(--u) * var(--kl, 1)); aspect-ratio: var(--r);
  bottom: calc(var(--b) * var(--kb) * 1%);
  overflow: hidden; background: var(--filet);
}
.une-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Une ombre courte détache le plan avant du fond et des lettres. */
.une-plan-avant .une-photo { box-shadow: 0 .9rem 2rem -.9rem rgba(20, 12, 10, .5); }

.marque {
  /* .015em au-dessus du bas de la section : à -.09em, la barre du bas
     des E (.095em) était rognée et ne se lisait plus (2026-10-01). */
  position: absolute; z-index: 2; left: var(--marge); right: var(--marge); bottom: .015em;
  display: flex; align-items: flex-end; justify-content: space-between;
  font-size: min(18.2vw, 34vh); font-weight: 460; line-height: .686; letter-spacing: -.01em;
  color: var(--brique);
  pointer-events: none; user-select: none;
}
.marque-mot { display: flex; align-items: flex-end; gap: .05em; }
.marque-l { display: block; }
.marque-e { display: flex; flex-direction: column; justify-content: space-between; width: .5em; height: .686em; margin-left: .06em; }
.marque-e i { display: block; height: .095em; background: currentColor; transform-origin: left; }
/* Le toit, calé sur « SIGNE » aligné à droite (3,235 em de large) ;
   il passe devant toutes les photos, comme un trait d'esquisse posé dessus. */
.marque-toit {
  position: absolute; z-index: 4; pointer-events: none;
  font-size: min(18.2vw, 34vh); right: calc(var(--marge) - .17em); bottom: .015em;  /* comme .marque */
  width: 3.6em; height: 1.126em; overflow: visible; color: var(--brique);
}
.marque-toit path { fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linecap: square; stroke-dasharray: 1 1; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: no-preference) {
  .une-piste { animation: glisser calc(var(--duree) * var(--lent)) linear infinite; will-change: transform; }
  .une-plan-fond .une-piste { --duree: 130s; }
  .une-plan-avant .une-piste { --duree: 88s; }
  .une.hors-champ .une-piste { animation-play-state: paused; }
  .marque-l { animation: lever 1.1s var(--ease-out) both; animation-delay: calc(.15s + var(--i) * .06s); }
  .marque-e i { animation: tirer .9s var(--ease-out) both; animation-delay: calc(.35s + var(--i) * .06s); }
  .marque-e i:nth-child(2) { animation-delay: calc(.42s + var(--i) * .06s); }
  .marque-e i:nth-child(3) { animation-delay: calc(.49s + var(--i) * .06s); }
  .marque-toit path { animation: tracer 1.4s var(--ease) .8s both; }
  /* Ouverture : les photos de la première série se découvrent une à une. */
  .une-serie:first-child .une-photo { animation: ouvrirD 1.3s var(--ease-out) both; animation-delay: calc(var(--i) * .09s); }
  .une-serie:first-child .une-photo img { animation: poser 1.8s var(--ease-out) both; animation-delay: calc(var(--i) * .09s); }
}
@keyframes glisser { to { transform: translate3d(-50%, 0, 0); } }
@keyframes lever  { from { transform: translateY(115%); } }
@keyframes tirer  { from { transform: scaleX(0); } }
@keyframes tracer { from { stroke-dashoffset: 1; } }
/* Jamais d'inset à 100 % : l'image doit être peinte dès la première
   image pour compter comme LCP. */
@keyframes ouvrirD { from { clip-path: inset(0 0 0 22%); } to { clip-path: inset(0); } }
@keyframes poser { from { scale: 1.12; } }

/* Écran en hauteur : photos plus grandes par rapport à la largeur,
   défilé ralenti pour garder à peu près le même temps de traversée. */
@media (max-aspect-ratio: 4/5) {
  .une { --u: min(2.5vw, 1.35svh); --lent: 1.6; }
}
/* Colonne de la 2e légende trop étroite pour ses retours à la ligne. */
@media (max-width: 1080px) {
  .une-repere + .une-repere { text-wrap: balance; padding-right: 1rem; }
  .une-repere + .une-repere br { display: none; }
}
@media (max-width: 760px) {
  .une { height: max(600px, calc(88svh - var(--nav-h))); }
  .une-reperes { top: 1rem; grid-template-columns: 1fr; row-gap: .8rem; }
  .une-repere { font-size: .9375rem; }
  .une-repere + .une-repere { text-wrap: balance; }
  .une-repere + .une-repere br { display: none; }
  /* Sur une ligne, la largeur de l'écran bornait le wordmark à 18vw,
     posé tout en bas (« bien trop petit et bas », 2026-10-22). Ici, deux
     lignes : « DE », puis « SIGNE » sous son toit, une fois et demie plus
     grand, remonté. Le gap pose le bas de « DE » au-dessus du faîte
     (1,126em au-dessus du bas de « SIGNE ») : 1,24em - .686em de ligne. */
  .marque, .marque-toit { font-size: 27vw; bottom: 12%; }
  .marque { flex-direction: column; align-items: flex-start; gap: .554em; }
  .marque-mot + .marque-mot { align-self: flex-end; }
  /* Le mot, plus grand, était trop couvert : photos de l'avant réduites. */
  .une-plan-avant { --kl: .7; }
}


/* ─── 9. BLOC BORDEAUX ───────────────────────────────────────── */

.bloc-sanguine { background: var(--sanguine); color: var(--corail); }
.bloc-sanguine .label { color: #fff; }
.bloc-sanguine .titre, .bloc-sanguine h1 { color: var(--corail); }
.bloc-sanguine .texte { color: var(--corail); max-width: 52ch; }
.bloc-sanguine .fleche { color: #fff; }
.bloc-sanguine .fleche:hover { color: var(--corail); }

.manifeste h1, .manifeste .h1 {
  font-size: clamp(2.2rem, 4.4vw, 4rem); font-weight: 500; line-height: 1.06; letter-spacing: -.025em;
  text-wrap: balance;
}
.manifeste-texte { margin-top: 2.5rem; display: grid; gap: 1rem; font-size: var(--t-intro); line-height: 1.5; max-width: 46ch; }
.liens-fleches { display: grid; gap: 1.1rem; }
.liens-fleches .fleche { width: 100%; }


/* ─── 9 bis. ENTRÉE DU QUESTIONNAIRE (accueil) ───────────────────
   Le questionnaire projet vit sur « Construisez avec nous ». Sur le site
   en ligne, il était sur l'accueil : celle-ci y mène donc tout de suite
   après le H1, par quatre choix de type qui ouvrent le formulaire avec
   la case déjà cochée (site.js, section 6). */

.entree-tete { align-items: end; }
.entree-tete .label { margin-bottom: 0; }
.choix {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--filet-fort); border-left: 1px solid var(--filet-fort);
}
.choix a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; height: 100%;
  min-height: clamp(9rem, 15vw, 13rem); padding: clamp(1.1rem, 2vw, 1.6rem);
  border-right: 1px solid var(--filet-fort); border-bottom: 1px solid var(--filet-fort);
  font-size: var(--t-sous); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; color: var(--encre-forte);
  transition: background-color .3s ease, color .3s ease;
}
.choix svg { width: 28px; height: 28px; align-self: flex-end; color: var(--brique); transition: transform .35s var(--ease), color .3s ease; }
.choix a:hover { background: var(--brique); color: #fff; }
.choix a:hover svg { color: #fff; transform: translateX(4px); }
.entree-projet .fleche { margin-top: 1.75rem; }
@media (max-width: 760px) {
  .choix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choix a { min-height: 8rem; gap: 1.2rem; }
}


/* ─── 10. REGISTRE DE CHIFFRES — valeurs écrites en dur ──────── */

.registre { margin-top: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--filet-fort); }
.registre-ligne {
  display: flex; align-items: baseline; justify-content: space-between; gap: 2rem;
  padding: clamp(.5rem, 1.2vw, 1rem) 0; border-bottom: 1px solid var(--filet-fort);
}
.registre-valeur {
  font-size: var(--t-geant); font-weight: 400; line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.registre-valeur small { font-size: .42em; letter-spacing: -.02em; margin-left: .05em; }
.registre-libelle { color: var(--brique); font-size: clamp(.95rem, 1.3vw, 1.125rem); text-align: right; }


/* ─── 10 bis. ÉQUIPE (À propos) ──────────────────────────────────
   La photo de groupe ouvre la page, pleine largeur, sans légende.
   Puis la liste « Nom / fonction » de Firma : au survol d'une ligne, le
   portrait apparaît au milieu de la liste, sous les filets ; sur écran
   tactile ou étroit, il reste visible en petit à droite de la ligne.
   Portraits en noir et blanc par filtre, comme la photo de groupe (celui
   d'Alexis n'existe qu'ainsi) ; les fichiers gardent la couleur. */

.photo-tete { margin: 0; height: min(calc(100svh - var(--nav-h)), 66.6vw); overflow: hidden; background: var(--sanguine); }
.photo-tete img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .photo-tete img { animation: poser 1.8s var(--ease-out) both; }
}
@media (max-width: 760px) { .photo-tete { height: auto; aspect-ratio: 3 / 2; } }

.equipe { position: relative; z-index: 0; }
.equipe .rang { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.equipe .rang > div { flex: 1; }
.equipe-portrait { flex-shrink: 0; width: 86px; aspect-ratio: 3 / 4; margin: 1rem 0; overflow: hidden; background: var(--filet); }
.equipe-portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
@media (max-width: 760px) {
  .equipe .rang > div { flex-direction: column; align-items: flex-start; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  /* Les filets passent devant le portrait, comme chez Firma. Le portrait
     est sous la liste (z-index -1) : le filet du haut est donc porté par
     la première ligne, celui de la liste serait peint dessous. Centré sur
     la liste, poussé à droite sur un écran étroit pour ne pas couvrir
     les fonctions. */
  .equipe { border-top: 0; }
  .equipe .rang:first-child { border-top: 1px solid var(--filet-fort); }
  .equipe-portrait {
    position: absolute; z-index: -1; left: max(50%, 36rem); top: 50%; translate: -50% -50%;
    width: clamp(220px, 21vw, 300px); margin: 0;
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
  }
  .equipe .rang:hover .equipe-portrait { opacity: 1; }
}
[data-theme="dark"] .photo-tete img { filter: brightness(.86) contrast(1.02); }
[data-theme="dark"] .equipe-portrait img { filter: grayscale(1) brightness(.86) contrast(1.02); }


/* ─── 11. PLEIN CADRE — photo à coin découpé ─────────────────────
   Le « Texco / Alberts Wine Bar » de Firma : nom en haut à gauche,
   lien en bas à gauche, carré découpé en bas à droite. Le cadre
   s'ouvre jusqu'au plein écran pendant le scroll. */

.plein-cadre { --p: 1; --coin: var(--blanc); position: relative; height: max(640px, 135svh); }
.plein-cadre-vue {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  clip-path: inset(calc((1 - var(--p)) * 8%) calc((1 - var(--p)) * 6%));
}
.plein-cadre-vue > img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1 + (1 - var(--p)) * .12)); }
.plein-cadre-vue::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,12,10,.45) 0%, rgba(20,12,10,0) 28%, rgba(20,12,10,0) 62%, rgba(20,12,10,.5) 100%);
}
.plein-cadre-vue::after {
  content: ""; position: absolute; right: 0; bottom: 0; z-index: 2;
  width: clamp(72px, 12vw, 190px); aspect-ratio: 1; background: var(--coin);
}
.plein-cadre-nom { position: absolute; z-index: 2; left: var(--marge); top: calc(var(--nav-h) + 1rem); color: #fff; }
.plein-cadre-nom strong { display: block; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 400; line-height: 1.15; }
.plein-cadre-nom span { font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.plein-cadre .fleche { position: absolute; z-index: 2; left: var(--marge); bottom: 2.5rem; color: #fff; }
.plein-cadre-fixe { height: auto; }
.plein-cadre-fixe .plein-cadre-vue { position: relative; height: min(88svh, 900px); clip-path: none; }
.plein-cadre-fixe .plein-cadre-vue > img { transform: none; }
.plein-cadre-fixe .plein-cadre-nom { top: 2.5rem; }


/* ─── 12. RANGS — listes à filets ────────────────────────────────
   « Hospitality / Luxury Guest Experiences » ; « Simon Mackie / Director ». */

.rangs { list-style: none; border-top: 1px solid var(--filet-fort); }
.rang { border-bottom: 1px solid var(--filet-fort); }
.rang > a, .rang > div {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .9rem;
  padding: 1.35rem 0; min-height: 44px;
}
.rang strong, .rang h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; color: var(--encre-forte); }
.rang span { font-size: 1rem; color: var(--gris); }
.rang span::before { content: "/ "; }
.rang > a { position: relative; padding-right: 2.5rem; transition: padding-left .35s var(--ease); }
.rang > a::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background: currentColor; color: var(--brique);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--ease);
}
.rang > a:hover { padding-left: .6rem; }
.rang > a:hover::after { transform: translateX(4px); }
.rangs-encre .rang strong, .rangs-encre .rang h2 { color: var(--encre); }
.bloc-sanguine .rangs, .bloc-sanguine .rang { border-color: rgba(255,255,255,.25); }
.bloc-sanguine .rang strong, .bloc-sanguine .rang h2 { color: #fff; }
.bloc-sanguine .rang span { color: var(--corail); }


/* ─── 13. DÉFILÉ DES COMMUNES ────────────────────────────────── */

.defile { overflow: hidden; border-block: 1px solid var(--filet); padding: clamp(1rem, 2.2vw, 1.8rem) 0; }
.defile-piste { display: flex; width: max-content; }
.defile-liste { display: flex; list-style: none; flex-shrink: 0; }
.defile-liste li {
  display: flex; align-items: center; white-space: nowrap;
  font-size: clamp(2.2rem, 6.4vw, 5.8rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.1;
}
.defile-liste li::after { content: ""; flex-shrink: 0; width: .45em; height: .075em; margin: 0 .45em; background: var(--brique); }
.defile-liste li:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--encre); }


/* ─── 13 bis. SYNAMOME — l'appartenance au syndicat, logo cliquable ─ */

.synamome-logo { display: inline-block; margin-top: .5rem; }
.synamome-logo img { width: min(100%, 300px); height: auto; transition: opacity .3s ease; }
.synamome-logo:hover img { opacity: .65; }
.synamome .fleche { margin-top: 2.5rem; }
/* Le fichier est noir sur fond transparent : la nuit, on l'inverse. */
[data-theme="dark"] .synamome-logo img { filter: invert(1); }


/* ─── 13 ter. DE SIGNE RÉNOVATION — le logo vert de l'activité ──── */

.renovation-logo { width: min(100%, 400px); height: auto; margin-top: .5rem; }
.renovation-atouts { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.renovation .fleche { margin-top: 2.5rem; }


/* ─── 14. PARTENAIRES — grille à filets ──────────────────────── */

.partenaires { list-style: none; margin-top: 3rem; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 1.5rem; }
.partenaires li { display: grid; place-items: center; height: 104px; border-top: 1px solid var(--filet-fort); }
.partenaires img { max-height: 54px; max-width: 82%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .6; mix-blend-mode: multiply; transition: filter .3s ease, opacity .3s ease; }
.partenaires li:hover img { filter: none; opacity: 1; }
/* La nuit, « multiply » rend les logos noirs sur noir. On prend son miroir :
   logo inversé puis fondu en « screen », qui efface de même le fond du fichier.
   hue-rotate(180deg) ramène chaque teinte à sa couleur d'origine après
   l'inversion (seule la clarté reste inversée) : au survol, le logo
   s'allume dans ses couleurs, comme le jour. Même liste de fonctions au
   repos et au survol, pour une transition sans à-coup. */
[data-theme="dark"] .partenaires img { filter: grayscale(1) invert(1) hue-rotate(180deg); opacity: .75; mix-blend-mode: screen; }
[data-theme="dark"] .partenaires li:hover img { filter: grayscale(0) invert(1) hue-rotate(180deg); opacity: 1; }
/* Logos carrés ou très détaillés : plus hauts, sinon ils sont illisibles. */
.partenaires img.grand { max-height: 66px; max-width: 88%; }
/* Logos aux teintes claires : on fonce l'encre sans toucher au fond blanc
   (inverser, éclaircir, réinverser), sinon ils disparaissent en gris. */
.partenaires img.pale { filter: grayscale(1) invert(1) brightness(1.7) invert(1); opacity: .8; }
/* Au survol, même liste de fonctions qu'au repos : la transition les
   interpole une à une. Vers « filter: none », les deux invert(1)
   passaient par des valeurs intermédiaires et le logo clignotait.
   Deux invert(1) de suite s'annulent : le logo reprend ses couleurs. */
.partenaires li:hover img.pale { filter: grayscale(0) invert(1) brightness(1) invert(1); }
[data-theme="dark"] .partenaires img.pale { filter: grayscale(1) invert(1) hue-rotate(180deg) brightness(1.7); }
[data-theme="dark"] .partenaires li:hover img.pale { filter: grayscale(0) invert(1) hue-rotate(180deg) brightness(1.2); }
[data-theme="dark"] .partenaires img.pale { opacity: .9; }
@media (max-width: 900px) { .partenaires { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


/* ─── 15. APPEL FINAL — la phrase corail de Firma ────────────── */

.appel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(3rem, 8vw, 8rem); align-items: end; }
.appel p { font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.22; letter-spacing: -.015em; color: var(--brique); max-width: 20ch; }
.appel .fleche { width: 100%; }
@media (max-width: 760px) { .appel { grid-template-columns: 1fr; } }


/* ─── 16. PILIERS — 01 / pictogramme / titre corail ──────────── */

.piliers { display: grid; gap: clamp(3.5rem, 7vw, 6rem); margin-top: clamp(3.5rem, 7vw, 6rem); max-width: 980px; }
.pilier { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); }
.pilier svg { width: 96px; height: 96px; color: var(--brique); }
.pilier-num { color: var(--brique); font-size: 1rem; margin-bottom: .6rem; }
.pilier h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.15; color: var(--brique); max-width: 16ch; }
.pilier p { grid-column: 1 / -1; max-width: var(--mesure); color: var(--graphite); }
@media (max-width: 560px) { .pilier { grid-template-columns: 72px 1fr; } .pilier svg { width: 64px; height: 64px; } }


/* ─── 17. BLOC PIERRE + ACCORDÉON (<details> natif) ──────────── */

.bloc-pierre { background: var(--pierre); color: var(--sanguine); }
/* Firma écrit en blanc sur son taupe (2,1:1, illisible pour beaucoup).
   Ici, tout le texte du bloc est bordeaux : 6,2:1. */
.bloc-pierre .intro, .bloc-pierre .label, .bloc-pierre .fleche { color: var(--sanguine); }

.accordeon { border-top: 1px solid rgba(255,255,255,.8); margin-top: 1.5rem; }
.accordeon details { border-bottom: 1px solid rgba(255,255,255,.8); }
.accordeon summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.6rem 0; min-height: 44px;
  font-size: clamp(1.35rem, 2.3vw, 2rem); font-weight: 500; line-height: 1.2; letter-spacing: -.01em;
}
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon h3 { font: inherit; }
.accordeon summary::after {
  content: ""; flex-shrink: 0; width: 22px; height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--ease);
}
.accordeon details[open] summary::after { transform: rotate(180deg); }
.accordeon-corps { padding: 0 3rem 2rem 0; max-width: 62ch; color: var(--sanguine-2); font-size: 1.0625rem; }
.accordeon-corps p + p { margin-top: .8rem; }
.accordeon-corps a { text-decoration: underline; text-underline-offset: .2em; }
@media (prefers-reduced-motion: no-preference) {
  details[open] > .accordeon-corps, details[open] > .faq-reponse { animation: deplier .45s var(--ease-out); }
}
@keyframes deplier { from { opacity: 0; transform: translateY(-6px); } }

/* Variante claire (FAQ) */
.faq { border-top: 1px solid var(--filet-fort); }
.faq details { border-bottom: 1px solid var(--filet-fort); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: 1.4rem 0; min-height: 44px;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 500; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-size: 1.6rem; font-weight: 300; line-height: 1; color: var(--brique); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq h3 { font: inherit; }
.faq-reponse { padding: 0 3rem 1.6rem 0; max-width: 68ch; color: var(--graphite); }
/* FAQ de l'accueil, disposée comme celle de Frontify : un filet sur
   toute la largeur, le titre à gauche, les questions à droite, toutes
   repliées, la première alignée sur le titre. */
.faq-accueil .contenu { border-top: 1px solid var(--filet-fort); padding-top: 1.75rem; }
.faq-accueil .label { margin-bottom: 0; }
.faq-accueil .faq { border-top: 0; }
.faq-accueil .faq details:first-child summary { padding-top: 0; }


/* ─── 18. PROJETS ────────────────────────────────────────────── */

.projets-tete { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end; }
.filtres { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
@media (max-width: 860px) { .projets-tete { grid-template-columns: 1fr; } .filtres { justify-content: flex-start; } }

/* Grille deux colonnes, formats de photos volontairement inégaux :
   chaque fiche porte son propre ratio (--ratio), et la seconde colonne
   est décalée vers le bas pour casser l'alignement. */
.projets {
  list-style: none; margin-top: clamp(3.5rem, 7vw, 6rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.projets > .projet:nth-child(even) { margin-top: clamp(2rem, 6vw, 6rem); }
.projet[hidden] { display: none; }
.projet > a { display: block; }
.projet-image { overflow: hidden; background: var(--filet); }
.projet-image img {
  width: 100%; aspect-ratio: var(--ratio, 4 / 3); object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
/* Le zoom au survol annonce un lien : il ne joue que si la carte en est un. */
.projet > a:hover .projet-image img { transform: scale(1.03); }
.projet-pied {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem 1.5rem; align-items: start;
  padding: 1.2rem 0 1.3rem; border-bottom: 1px solid var(--filet-fort);
}
.projet-nom {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 500; line-height: 1.25;
  letter-spacing: .01em; color: var(--encre); transition: color .25s ease;
}
.projet-nom span { display: block; font-weight: 400; letter-spacing: 0; color: var(--gris); }
.projet > a:hover .projet-nom { color: var(--brique); }
.projet-etiquettes { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
/* Carte sans titre : l'étiquette se range à gauche, sous la photo. */
.projet-pied > .projet-etiquettes:only-child { justify-content: flex-start; }
@media (max-width: 760px) {
  .projets { grid-template-columns: 1fr; gap: clamp(2.5rem, 8vw, 3.5rem); }
  .projets > .projet:nth-child(even) { margin-top: 0; }
}


/* ─── 18 bis. FICHE PROJET ───────────────────────────────────────
   Photo pleine largeur, bloc de titre, puis alternance de galeries
   à trois colonnes et à une colonne (voir INSPO/IDEE PROJET). */

.projet-tete { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem clamp(3rem, 7vw, 7rem); align-items: start; }
.projet-tete h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 500; line-height: 1.08; letter-spacing: .01em; color: var(--encre); }
.projet-tete h1 span { display: block; font-size: .62em; font-weight: 400; letter-spacing: 0; color: var(--gris); margin-top: .25rem; }
.projet-tete p { margin-top: 1.75rem; max-width: 62ch; color: var(--graphite); }
.projet-tete .projet-etiquettes { justify-content: flex-start; margin-top: 1.75rem; }
.projet-meta { font-size: .9375rem; line-height: 1.5; }
.projet-meta dt { color: var(--gris); }
.projet-meta dd { color: var(--encre); margin-bottom: 1rem; }
@media (max-width: 860px) { .projet-tete { grid-template-columns: 1fr; } }

.galerie-projet { display: grid; gap: clamp(.8rem, 1.6vw, 1.4rem); max-width: var(--large); margin-inline: auto; }
.galerie-projet img { width: 100%; height: 100%; object-fit: cover; }
.galerie-projet figure { margin: 0; overflow: hidden; background: var(--filet); }
.galerie-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.galerie-3 figure { aspect-ratio: 3 / 4; }
.galerie-1 { grid-template-columns: 1fr; }
.galerie-1 figure { aspect-ratio: 16 / 9; }
@media (max-width: 760px) {
  .galerie-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie-3 figure:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}

/* « Autres projets » : trois noms en bas de fiche, comme chez Firma */
.autres-projets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2.5rem; list-style: none; }
.autres-projets a { display: block; font-size: 1.05rem; font-weight: 500; color: var(--encre); transition: color .25s ease; }
.autres-projets a span { display: block; font-weight: 400; color: var(--gris); }
.autres-projets a:hover { color: var(--brique); }
@media (max-width: 640px) { .autres-projets { grid-template-columns: 1fr; gap: 1.25rem; } }


/* ─── 19. FORMULAIRE ─────────────────────────────────────────── */

.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem 1.6rem; }
.champ { display: grid; gap: .4rem; }
.champ-large { grid-column: 1 / -1; }
.champ label, .champ legend { font-size: .9375rem; color: var(--gris); }
.champ input, .champ textarea, .champ select {
  font: inherit; font-size: 1.0625rem; color: var(--encre);
  background: transparent; border: 0; border-bottom: 1px solid var(--filet-fort); border-radius: 0;
  padding: .55rem 0; min-height: 46px; width: 100%;
  transition: border-color .2s ease;
}
.champ select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324251F' stroke-width='1.6'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") right center / 18px no-repeat; padding-right: 1.8rem; }
.champ textarea { resize: vertical; min-height: 120px; }
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: none; border-bottom-color: var(--brique); box-shadow: 0 1px 0 var(--brique); }
fieldset.champ { border: 0; }
.puces { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.puces input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.puces label { cursor: pointer; }
.puces input:checked + label { background: var(--sanguine); border-color: var(--sanguine); color: #fff; }
.puces input:focus-visible + label { outline: 2px solid var(--brique); outline-offset: 2px; }
.formulaire-note { grid-column: 1 / -1; font-size: .875rem; color: var(--gris); }
.formulaire-note a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.formulaire-etat { grid-column: 1 / -1; font-size: 1rem; }
.formulaire-etat.ok { color: var(--encre-forte); }
.formulaire-etat.erreur { color: var(--brique); }
@media (max-width: 560px) { .formulaire { grid-template-columns: 1fr; } }


/* ─── 20. COORDONNÉES, FICHE ENTREPRISE, ÉTAPES ──────────────── */

.coordonnees { list-style: none; border-top: 1px solid rgba(255,255,255,.25); }
.coordonnees li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.25); color: #fff; }
.coordonnees li span { color: var(--corail); font-size: .9375rem; }
.coordonnees a { color: #fff; }
.coordonnees a:hover { color: var(--corail); }
@media (max-width: 480px) { .coordonnees li { grid-template-columns: 1fr; gap: .2rem; } }

.fiche { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2rem; margin-top: 2.5rem; }
.fiche > div { padding: 1.2rem 0 1.5rem; border-top: 1px solid var(--filet-fort); }
.fiche dt { font-size: .9375rem; color: var(--brique); margin-bottom: .45rem; }
.fiche dd { font-size: 1rem; line-height: 1.55; }
.fiche-large { grid-column: span 2; }
@media (max-width: 1000px) { .fiche { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .fiche { grid-template-columns: 1fr; } .fiche-large { grid-column: auto; } }

.etapes { list-style: none; counter-reset: etape; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 3rem; }
.etapes li { counter-increment: etape; padding-top: 1.2rem; border-top: 1px solid var(--filet-fort); }
.etapes li::before { content: "0" counter(etape) " /"; display: block; color: var(--brique); margin-bottom: 1rem; }
.etapes h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.25; margin-bottom: .6rem; }
.etapes p { font-size: .9375rem; color: var(--graphite); }
@media (max-width: 900px) { .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .etapes { grid-template-columns: 1fr; } }

.carte { margin-top: 3rem; height: 420px; background: var(--filet); }
.carte iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }


/* ─── 21. SOUS-PAGES ET ARTICLES ─────────────────────────────── */

.page-tete { padding: calc(var(--air) * .55) var(--marge) calc(var(--air) * .75); }
.ariane { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; font-size: .875rem; color: rgba(255,255,255,.7); margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.ariane a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: .2em; }
.ariane li + li::before { content: "/"; margin-right: .4rem; color: rgba(255,255,255,.45); }
.page-tete h1 { font-size: clamp(2.1rem, 4.4vw, 3.9rem); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.page-tete h1 em { font-style: normal; color: #fff; }
.page-chapo { margin-top: 2rem; display: grid; gap: 1rem; font-size: var(--t-intro); line-height: 1.5; max-width: 50ch; }
.page-reperes { list-style: none; border-top: 1px solid rgba(255,255,255,.25); }
.page-reperes li { padding: .95rem 0; border-bottom: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 1rem; }

/* Le corps : une colonne de lecture, aérée */
.prose { max-width: 70ch; margin-inline: auto; font-size: 1.125rem; line-height: 1.75; color: var(--graphite); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 500; line-height: 1.18; letter-spacing: -.015em; color: var(--encre); margin-top: clamp(3.5rem, 6vw, 5rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; font-weight: 500; line-height: 1.3; color: var(--encre); margin-top: 2.2rem; }
.prose strong { color: var(--encre); font-weight: 600; }
.prose a { color: var(--brique); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li + li { margin-top: .45rem; }
.prose li::marker { color: var(--brique); }
.prose blockquote { border-left: 2px solid var(--brique); padding-left: 1.25rem; color: var(--encre); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: .7rem .6rem .7rem 0; border-bottom: 1px solid var(--filet); vertical-align: top; }
.prose th { color: var(--encre); font-weight: 600; }
.prose figure img { width: 100%; }
.prose figcaption { font-size: .875rem; color: var(--gris); margin-top: .5rem; }

.galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: var(--large); margin: clamp(3rem, 6vw, 5rem) auto 0; }
.galerie figure { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galerie figcaption { font-size: .875rem; color: var(--gris); margin-top: .5rem; }
@media (max-width: 760px) { .galerie { grid-template-columns: 1fr 1fr; } }

.article-image { max-width: var(--large); margin: 0 auto; }
.article-image img { width: 100%; max-height: 72vh; object-fit: cover; }
.article-date { color: rgba(255,255,255,.75); margin-top: 1.5rem; font-size: 1rem; }

/* Liste d'articles — le gabarit « projets » de Firma, sans image géante */
.articles { list-style: none; margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--filet-fort); }
.article-rang > a {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 1.2rem 2.5rem; align-items: center;
  padding: 1.6rem 0; border-bottom: 1px solid var(--filet-fort);
}
.article-rang img { width: 220px; aspect-ratio: 4 / 3; object-fit: cover; }
.article-rang h2 { font-size: clamp(1.2rem, 1.9vw, 1.55rem); font-weight: 500; line-height: 1.25; color: var(--encre-forte); transition: color .2s ease; }
.article-rang p { color: var(--gris); margin-top: .4rem; font-size: 1rem; }
.article-rang > a:hover h2 { color: var(--brique); }
@media (max-width: 760px) {
  .article-rang > a { grid-template-columns: 1fr; }
  .article-rang img { width: 100%; }
}


/* ─── 22. PIED DE PAGE ───────────────────────────────────────── */

.pied { background: var(--creme); border-top: 1px solid var(--filet-fort); padding: clamp(4rem, 8vw, 6rem) var(--marge) 2rem; font-size: .9375rem; }
.pied-grille { max-width: var(--large); margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.pied h2 { font-size: .9375rem; font-weight: 400; color: var(--brique); margin-bottom: 1rem; }
.pied ul { list-style: none; display: grid; gap: .5rem; }
.pied a { color: var(--encre); }
.pied a:hover { color: var(--brique); }
.pied-marque { max-width: var(--large); margin: clamp(3rem, 7vw, 5rem) auto 0; }
.pied-marque img { width: 180px; }
.pied-bas { max-width: var(--large); margin: 2rem auto 0; padding-top: 1.4rem; border-top: 1px solid var(--filet); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--gris); font-size: .875rem; }
@media (max-width: 900px) { .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pied-grille { grid-template-columns: 1fr; } }


/* ─── 22 bis. BASCULE JOUR / NUIT ────────────────────────────────
   Bouton fixe en bas à droite, hors du flux, au-dessus du contenu
   mais sous le menu plein écran et sous le rideau de transition. */

.bascule-theme {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--blanc); color: var(--encre);
  border: 1px solid var(--filet-fort);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
  transition: background-color .25s ease, color .25s ease, transform .25s var(--ease);
}
.bascule-theme:hover { background: var(--encre-forte); color: var(--creme); border-color: var(--encre-forte); }
.bascule-theme svg { width: 21px; height: 21px; }
.bascule-theme .icone-nuit { display: none; }
[data-theme="dark"] .bascule-theme .icone-nuit { display: block; }
[data-theme="dark"] .bascule-theme .icone-jour { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .bascule-theme:active { transform: scale(.94); }
}


/* ─── 22 ter. RIDEAU DE TRANSITION ENTRE PAGES ───────────────────
   Au clic sur un lien interne, cinq bandes descendent et recouvrent
   la page en laissant apparaître « DE SIGNE » ; la page suivante se
   charge derrière, puis les bandes repartent vers le bas.
   État par défaut = hors écran : sans JavaScript, rien ne s'affiche
   et la navigation reste normale. */

.rideau {
  position: fixed; inset: 0; z-index: 90;
  display: grid; grid-template-columns: repeat(5, 1fr);
  pointer-events: none; visibility: hidden;
}
.rideau-bande {
  background: var(--sanguine);
  transform: translateY(-101%);
  will-change: transform;
}
.rideau-mot {
  position: fixed; inset: 0; z-index: 91;
  display: grid; place-items: center;
  pointer-events: none; opacity: 0;
}
.rideau-mot img { width: min(70vw, 560px); height: auto; }

/* Sortie : les bandes descendent et couvrent */
html.transition-sortie .rideau { visibility: visible; }
html.transition-sortie .rideau-bande {
  transform: translateY(0);
  transition: transform .52s var(--ease-out);
}
html.transition-sortie .rideau-mot { opacity: 1; transition: opacity .3s ease .28s; }

/* Arrivée : la page est déjà couverte au premier rendu, sans transition,
   puis les bandes s'effacent vers le bas. */
html.transition-arrivee .rideau { visibility: visible; }
html.transition-arrivee .rideau-bande { transform: translateY(0); transition: none; }
html.transition-arrivee .rideau-mot { opacity: 1; transition: none; }
html.transition-ouvre .rideau-bande {
  transform: translateY(101%);
  transition: transform .6s var(--ease-out);
}
html.transition-ouvre .rideau-mot { opacity: 0; transition: opacity .25s ease; }

.rideau-bande:nth-child(2) { transition-delay: .05s; }
.rideau-bande:nth-child(3) { transition-delay: .10s; }
.rideau-bande:nth-child(4) { transition-delay: .15s; }
.rideau-bande:nth-child(5) { transition-delay: .20s; }

@media (prefers-reduced-motion: reduce) {
  .rideau, .rideau-mot { display: none; }
}


/* ─── 23. RÉVÉLATIONS ────────────────────────────────────────── */

html.js-mouvement [data-monte].attente { clip-path: inset(0 0 100% 0); transform: translateY(.5em); }
html.js-mouvement [data-monte].attente.vu {
  clip-path: inset(0 0 -30% 0); transform: none;
  transition: clip-path 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
html.js-mouvement .registre-ligne.attente { clip-path: inset(0 0 100% 0); }
html.js-mouvement .registre-ligne.attente.vu { clip-path: inset(0 0 -10% 0); transition: clip-path 1.1s var(--ease-out); }
html.js-mouvement .rangs.attente .rang { transform: translateY(1.2rem); opacity: 0; }
html.js-mouvement .rangs.attente.vu .rang { transform: none; opacity: 1; transition: transform .8s var(--ease-out), opacity .8s ease; }
html.js-mouvement .rangs.attente.vu .rang:nth-child(2) { transition-delay: .07s; }
html.js-mouvement .rangs.attente.vu .rang:nth-child(3) { transition-delay: .14s; }
html.js-mouvement .rangs.attente.vu .rang:nth-child(4) { transition-delay: .21s; }
html.js-mouvement .rangs.attente.vu .rang:nth-child(5) { transition-delay: .28s; }
html.js-mouvement .rangs.attente.vu .rang:nth-child(6) { transition-delay: .35s; }
html.js-mouvement .projet.attente .projet-image { clip-path: inset(12% 0 0 0); }
html.js-mouvement .projet.attente .projet-image img { transform: scale(1.12); }
html.js-mouvement .projet.attente.vu .projet-image { clip-path: inset(0); transition: clip-path 1.2s var(--ease-out); }
html.js-mouvement .projet.attente.vu .projet-image img { transform: none; transition: transform 1.6s var(--ease-out); }

.progression { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; background: var(--brique); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }


/* ─── 24. MOUVEMENT RÉDUIT ───────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entete, .menu, .menu-liste a { transition: none; }
  .menu-liste a { transform: none; }
  .plein-cadre { height: auto; }
  .plein-cadre-vue { position: relative; height: min(88svh, 900px); clip-path: none; }
  .plein-cadre-vue > img { transform: none; }
  .defile-piste { width: auto; }
  .defile-liste { flex-wrap: wrap; padding-inline: var(--marge); }
  .defile-liste[aria-hidden="true"] { display: none; }
}


/* ─── AVIS CLIENTS (À propos) ─────────────────────────────────────
   Note en HTML statique, puis le widget Featurable du site en ligne. */
.avis { padding-top: clamp(4rem, 8vw, 6rem) !important; }
.avis-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; }
.avis-tete .label { margin-bottom: 0; }
.avis-resume { font-size: 1.0625rem; color: var(--graphite); }
.avis-etoiles { color: var(--brique); letter-spacing: .12em; margin-right: .35rem; }
.avis-widget { margin-top: clamp(1.5rem, 3vw, 2.5rem); min-height: 120px; }


/* ─── PARTENARIAT ANGÈLE (À propos) ─────────────────────────────
   Repris de la section « Un partenariat pour votre intérieur » du site
   en ligne : texte, logo, lien et les cinq photos de l'ancien diaporama
   (une grande, puis une rangée de quatre). */
.angele .titre + .texte { margin-top: 2rem; }
/* Logo centré sous le texte, cliquable vers le site d'Angèle. */
.angele-logo-lien { display: block; width: fit-content; margin: 2rem auto 0; transition: opacity .25s ease; }
.angele-logo-lien:hover { opacity: .75; }
.angele-logo { display: block; width: clamp(140px, 13vw, 180px); height: auto; }
/* « Découvrir Angèle » sous la grande photo, calé à droite. */
.angele-lien { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.angele-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--filet); }
.angele-photo img, .angele-galerie img { width: 100%; height: 100%; object-fit: cover; }
.angele-galerie {
  list-style: none; margin-top: clamp(1.25rem, 2.4vw, 2rem);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.4rem);
}
.angele-galerie li { aspect-ratio: 4 / 3; overflow: hidden; background: var(--filet); }
[data-theme="dark"] .angele-photo img, [data-theme="dark"] .angele-galerie img { filter: brightness(.86) contrast(1.02); }
@media (max-width: 760px) { .angele-galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* ─── VISIONNEUSE ────────────────────────────────────────────────
   Photos agrandissables (a.agrandir) : site.js les ouvre dans un
   <dialog> plein écran, avec photo précédente / suivante dans le même
   data-groupe. Échap ou un clic hors de la photo referme. */
.agrandir { display: block; width: 100%; height: 100%; overflow: hidden; }
.agrandir img { transition: transform .6s var(--ease-out); }
.agrandir:hover img { transform: scale(1.03); }
html.visionneuse-ouverte { overflow: hidden; }
.visionneuse {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: #fff;
}
.visionneuse[open] { display: grid; place-items: center; }
.visionneuse::backdrop { background: rgba(15, 14, 12, .93); }
.visionneuse img { max-width: min(90vw, 1400px); max-height: 82dvh; width: auto; height: auto; object-fit: contain; box-shadow: 0 1rem 3rem rgba(0, 0, 0, .4); }
.visionneuse button {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: rgba(15, 14, 12, .4); color: #fff;
  font-size: 1.4rem; line-height: 1; transition: border-color .2s ease, background-color .2s ease;
}
.visionneuse button:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.visionneuse-fermer { top: clamp(.75rem, 2vw, 1.5rem); right: clamp(.75rem, 2vw, 1.5rem); }
.visionneuse-prec, .visionneuse-suiv { top: 50%; translate: 0 -50%; }
.visionneuse-prec { left: clamp(.5rem, 2vw, 1.5rem); }
.visionneuse-suiv { right: clamp(.5rem, 2vw, 1.5rem); }
.visionneuse-compteur { position: fixed; bottom: clamp(.75rem, 2vw, 1.5rem); left: 50%; translate: -50% 0; font-size: .9375rem; color: rgba(255, 255, 255, .75); }
.visionneuse-seule .visionneuse-prec, .visionneuse-seule .visionneuse-suiv, .visionneuse-seule .visionneuse-compteur { display: none; }


/* ─── CURSEUR ────────────────────────────────────────────────────
   Un petit rond brique à la place de la flèche, gris au survol de tout
   ce qui se clique. Seulement avec une souris : site.js ne pose
   html.curseur-perso que sous (hover: hover) and (pointer: fine). Le
   curseur texte du système revient dans les champs de saisie. Sans
   JavaScript, rien ne change. */
.curseur {
  position: fixed; left: 0; top: 0; z-index: 1000;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--brique); pointer-events: none;
  opacity: 0; transition: background-color .2s ease, opacity .2s ease;
}
.curseur.visible { opacity: 1; }
.curseur.sur-lien { background: var(--gris); }
.curseur.masque { opacity: 0; }
/* !important : les liens et boutons déclarent leur propre cursor: pointer. */
html.curseur-perso, html.curseur-perso * { cursor: none !important; }
html.curseur-perso input:not([type="submit"], [type="button"], [type="checkbox"], [type="radio"]),
html.curseur-perso textarea { cursor: text !important; }
