/* ==========================================================================
   ZAF BÂTI GROUPE — Feuille de style principale
   Direction artistique : « Terre & Chaux »
   Brique toulousaine, enduit taloché, ocre du Sud-Ouest.
   Aucune dépendance externe. Polices auto-hébergées (conformité RGPD).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. POLICES
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: normal;
  font-style: normal;
  font-display: swap;
  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: 'Fraunces';
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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: 'Manrope';
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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 DE DESIGN
   -------------------------------------------------------------------------- */

:root {
  /* Palette — inspirée de la brique foraine, de la chaux et de l'ocre */
  --chaux: #f7f3ec;
  --chaux-2: #efe8dc;
  --chaux-3: #e4dacb;
  --encre: #1c1713;
  --encre-2: #4b4139;
  --encre-3: #7a6d61;
  --brique: #b8452a;
  --brique-1: #cf5636;
  --brique-2: #96331d;
  --ocre: #dda23c;
  --ocre-clair: #f0cd8a;
  --nuit: #221b16;
  --nuit-2: #2e2620;
  --vert: #33534a;

  --trait: rgba(28, 23, 19, 0.14);
  --trait-fort: rgba(28, 23, 19, 0.26);
  --trait-clair: rgba(247, 243, 236, 0.16);

  /* Typographie */
  --f-titre: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --f-texte: 'Manrope', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Échelle typographique fluide */
  --t-xs: clamp(0.75rem, 0.73rem + 0.1vw, 0.8rem);
  --t-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.938rem);
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --t-md: clamp(1.125rem, 1.06rem + 0.32vw, 1.3rem);
  --t-lg: clamp(1.375rem, 1.24rem + 0.68vw, 1.75rem);
  --t-xl: clamp(1.75rem, 1.48rem + 1.34vw, 2.6rem);
  --t-2xl: clamp(2.15rem, 1.68rem + 2.34vw, 3.8rem);
  --t-3xl: clamp(2.6rem, 1.83rem + 3.85vw, 5.25rem);

  /* Rythme */
  --marge: clamp(1.25rem, 5vw, 4.5rem);
  --large: 1320px;
  --lecture: 720px;
  --bloc: clamp(4.5rem, 9vw, 8.5rem);

  /* Effets */
  --ombre-1: 0 1px 2px rgba(28, 23, 19, 0.06), 0 4px 12px rgba(28, 23, 19, 0.05);
  --ombre-2: 0 2px 4px rgba(28, 23, 19, 0.06), 0 14px 34px rgba(28, 23, 19, 0.1);
  --ombre-3: 0 30px 70px rgba(28, 23, 19, 0.18);
  --r: 3px;
  --r-lg: 6px;
  --anim: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   3. RÉINITIALISATION
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  /* `clip` et non `hidden` : il empêche tout débordement horizontal sans créer
     de conteneur de défilement, ce qui casserait les `position: sticky`
     (en-tête, sommaire des articles). Les navigateurs sans support conservent
     la protection apportée par `body` ci-dessous. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--chaux);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: var(--t-base);
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Grain fin appliqué sur toute la page : évite l'aplat numérique,
   rappelle la texture d'un enduit taloché. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

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

ul,
ol {
  padding-left: 1.15em;
}

hr {
  border: 0;
  border-top: 1px solid var(--trait);
  margin: 2.5rem 0;
}

::selection {
  background: var(--ocre);
  color: var(--nuit);
}

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

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--nuit);
  color: var(--chaux);
  padding: 0.85rem 1.4rem;
  z-index: 10000;
  font-weight: 700;
}
.saut-contenu:focus {
  left: 0.75rem;
  top: 0.75rem;
}

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

/* --------------------------------------------------------------------------
   4. TYPOGRAPHIE
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--f-titre);
  font-variation-settings: 'SOFT' 22, 'WONK' 1, 'opsz' 100;
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0 0 0.6em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-2xl);
  font-weight: 800;
}
h2 {
  font-size: var(--t-xl);
}
h3 {
  font-size: var(--t-lg);
  font-variation-settings: 'SOFT' 20, 'WONK' 0, 'opsz' 40;
  line-height: 1.18;
}
h4 {
  font-size: var(--t-md);
  font-variation-settings: 'SOFT' 18, 'WONK' 0, 'opsz' 24;
  line-height: 1.25;
}

p {
  margin: 0 0 1.15em;
  text-wrap: pretty;
}

strong,
b {
  font-weight: 700;
  color: var(--encre);
}

.exergue {
  font-size: var(--t-md);
  color: var(--encre-2);
  line-height: 1.6;
  max-width: 60ch;
}

/* Étiquette de section — petit repère « chantier » */
.etiquette {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brique);
  margin-bottom: 1.1rem;
}
.etiquette::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--brique);
  flex: none;
}
.etiquette--clair {
  color: var(--ocre);
}
.etiquette--clair::before {
  background: var(--ocre);
}

/* --------------------------------------------------------------------------
   5. STRUCTURE
   -------------------------------------------------------------------------- */

.conteneur {
  width: 100%;
  max-width: var(--large);
  margin-inline: auto;
  padding-inline: var(--marge);
}

.conteneur--etroit {
  max-width: 880px;
}

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

.section--serre {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--nuit {
  background: var(--nuit);
  color: var(--chaux-2);
}
.section--nuit h2,
.section--nuit h3,
.section--nuit h4,
.section--nuit strong {
  color: var(--chaux);
}
.section--nuit .exergue {
  color: rgba(247, 243, 236, 0.72);
}

.section--sable {
  background: var(--chaux-2);
}

/* Section en duo : titre à gauche (qui suit le défilement), contenu à droite.
   Utilisé pour la FAQ, dont la colonne de questions est bornée à 720 px et
   laissait sinon un large vide à sa droite sur écran large. */
@media (min-width: 1060px) {
  .section--duo > .conteneur {
    display: grid;
    grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
    column-gap: clamp(3rem, 5vw, 5.5rem);
    align-items: start;
  }
  .section--duo .entete-section {
    position: sticky;
    top: 7.5rem;
    margin-bottom: 0;
    max-width: 30ch;
  }
  .section--duo .faq {
    max-width: none;
  }
}

/* Bandeau de séparation en dents de scie, évoque un profil d'enduit */
.section--sable::before,
.section--nuit::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: var(--trait);
}

.grille {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr);
}

/* Colonnes explicites plutôt que `auto-fit minmax(…)`.
   Avec auto-fit, une grille « 2 colonnes » passait à 3 dès que le conteneur
   dépassait ~1000 px : les sections de 4 cartes affichaient 3 cartes puis une
   quatrième orpheline sur la ligne suivante. Le nombre de colonnes doit suivre
   l'intention de la section, pas la place disponible. */

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

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

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

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

.entete-section {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Sur grand écran, l'en-tête de section s'ouvre en deux colonnes :
   le titre à gauche, le chapô à droite. Empilés, ils laissaient un tiers de
   la largeur vide sous le titre à chaque section.
   `:has()` limite la règle aux en-têtes qui ont réellement un chapô ; les
   navigateurs sans support conservent la version empilée. */
@media (min-width: 1100px) {
  .entete-section:has(.exergue):not(.entete-section--centre) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: end;
    max-width: none;
  }
  .entete-section:has(.exergue):not(.entete-section--centre) > .etiquette {
    grid-column: 1;
    grid-row: 1;
  }
  .entete-section:has(.exergue):not(.entete-section--centre) > h2 {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
  }
  .entete-section:has(.exergue):not(.entete-section--centre) > .exergue {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 0.35rem;
    max-width: 48ch;
  }
}

.entete-section--centre {
  margin-inline: auto;
  text-align: center;
}
.entete-section--centre .etiquette {
  justify-content: center;
}
.entete-section--centre .exergue {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   6. BOUTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--f-texte);
  font-size: var(--t-sm);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: transform 0.25s var(--anim), background 0.25s ease,
    box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  line-height: 1.2;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn--primaire {
  background: var(--brique);
  color: #fff;
  box-shadow: 0 2px 0 var(--brique-2), var(--ombre-1);
}
.btn--primaire:hover {
  background: var(--brique-1);
  box-shadow: 0 4px 0 var(--brique-2), var(--ombre-2);
}

.btn--secondaire {
  background: transparent;
  color: var(--encre);
  border-color: var(--trait-fort);
}
.btn--secondaire:hover {
  border-color: var(--encre);
  background: rgba(28, 23, 19, 0.04);
}

.btn--clair {
  background: var(--chaux);
  color: var(--nuit);
}
.btn--clair:hover {
  background: #fff;
}

.btn--fantome-clair {
  background: transparent;
  color: var(--chaux);
  border-color: var(--trait-clair);
}
.btn--fantome-clair:hover {
  border-color: var(--chaux);
  background: rgba(247, 243, 236, 0.08);
}

.btn--grand {
  padding: 1.15rem 2.1rem;
  font-size: var(--t-base);
}

.groupe-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* Lien fléché */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: var(--t-sm);
  color: var(--brique);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease, gap 0.2s var(--anim);
}
.lien-fleche::after {
  content: '→';
  transition: transform 0.25s var(--anim);
}
.lien-fleche:hover {
  border-bottom-color: currentColor;
  gap: 0.7rem;
}
.lien-fleche:hover::after {
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   7. EN-TÊTE / NAVIGATION
   -------------------------------------------------------------------------- */

.barre-info {
  background: var(--nuit);
  color: rgba(247, 243, 236, 0.82);
  font-size: var(--t-xs);
  letter-spacing: 0.02em;
}
.barre-info__int {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  align-items: center;
  justify-content: center;
  padding-block: 0.6rem;
  text-align: center;
}
.barre-info b {
  color: var(--ocre);
  font-weight: 800;
}
.barre-info a {
  color: inherit;
  text-decoration: none;
}
.barre-info a:hover {
  color: var(--ocre-clair);
}

.entete {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.entete.est-collee {
  border-bottom-color: var(--trait);
  box-shadow: 0 6px 24px rgba(28, 23, 19, 0.06);
}

.entete__int {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

/* Logo typographique : « ZAF » gravé dans un bloc brique */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}
.logo__marque {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--brique);
  color: #fff;
  font-family: var(--f-titre);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 14;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  border-radius: 2px;
  flex: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}
.logo__texte {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo__nom {
  font-family: var(--f-titre);
  font-variation-settings: 'SOFT' 10, 'WONK' 0, 'opsz' 30;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--encre);
}
.logo__sous {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--encre-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.nav a {
  position: relative;
  display: block;
  padding: 0.55rem 0.62rem;
  font-size: 0.845rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--encre-2);
  border-radius: var(--r);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav a:hover {
  color: var(--encre);
  background: rgba(28, 23, 19, 0.05);
}
.nav a[aria-current='page'] {
  color: var(--brique);
}
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0.62rem;
  right: 0.62rem;
  bottom: 0.22rem;
  height: 2px;
  background: var(--brique);
}

/* Le CTA présent dans la liste de navigation ne sert qu'au tiroir mobile :
   sur grand écran, celui de .entete__actions fait déjà le travail. */
.nav > .btn {
  display: none;
}

/* Rubriques secondaires : la barre horizontale n'a pas la place de tout
   afficher. Elles restent accessibles via le tiroir mobile et le pied de page. */
@media (min-width: 1181px) {
  .nav a[data-secondaire] {
    display: none;
  }
}

/* Le numéro en toutes lettres ne s'affiche que si la barre respire. */
@media (max-width: 1320px) {
  .tel-entete span {
    display: none;
  }
}

.entete__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.tel-entete {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--encre);
  white-space: nowrap;
}
.tel-entete svg {
  color: var(--brique);
  flex: none;
}
.tel-entete:hover {
  color: var(--brique);
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--trait-fort);
  background: transparent;
  border-radius: var(--r);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--encre);
  position: relative;
  transition: background 0.2s ease;
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--encre);
  transition: transform 0.3s var(--anim);
}
.burger span::before {
  top: -6px;
}
.burger span::after {
  top: 6px;
}
.burger[aria-expanded='true'] span {
  background: transparent;
}
.burger[aria-expanded='true'] span::before {
  transform: translateY(6px) rotate(45deg);
}
.burger[aria-expanded='true'] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1180px) {
  .burger {
    display: grid;
  }
  .entete__actions .btn {
    display: none;
  }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 86vw);
    background: var(--chaux);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6.5rem 1.5rem 2rem;
    box-shadow: -20px 0 60px rgba(28, 23, 19, 0.2);
    transform: translateX(100%);
    /* `visibility` en plus de la translation : sans elle, le tiroir fermé
       reste dans l'ordre de tabulation (on tabule dans un menu invisible) et
       sa largeur alimente le débordement horizontal du document. */
    visibility: hidden;
    transition: transform 0.42s var(--anim), visibility 0.42s;
    overflow-y: auto;
    z-index: 950;
  }
  .nav.est-ouverte {
    transform: translateX(0);
    visibility: visible;
  }
  .nav a {
    padding: 0.95rem 0.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--trait);
    border-radius: 0;
  }
  .nav a[aria-current='page']::after {
    display: none;
  }
  .nav > .btn {
    display: inline-flex;
    margin-top: 1.5rem;
    width: 100%;
  }
  .voile {
    position: fixed;
    inset: 0;
    background: rgba(28, 23, 19, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 940;
  }
  .voile.est-visible {
    opacity: 1;
    pointer-events: auto;
  }
}

/* --------------------------------------------------------------------------
   8. HÉROS
   -------------------------------------------------------------------------- */

.heros {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background: linear-gradient(178deg, var(--chaux) 0%, var(--chaux-2) 100%);
}

/* Trame de brique très discrète en fond */
.heros::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--trait) 1px, transparent 1px),
    linear-gradient(90deg, var(--trait) 1px, transparent 1px);
  background-size: 100px 34px;
  opacity: 0.5;
  mask-image: radial-gradient(120% 90% at 78% 18%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(120% 90% at 78% 18%, #000 0%, transparent 68%);
}

.heros::after {
  content: '';
  position: absolute;
  width: 62vw;
  height: 62vw;
  max-width: 780px;
  max-height: 780px;
  right: -16vw;
  top: -22vw;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(221, 162, 60, 0.22) 0%,
    rgba(221, 162, 60, 0) 66%
  );
  pointer-events: none;
}

.heros__int {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 960px) {
  .heros__int {
    grid-template-columns: 1fr;
  }
}

/* Le titre d'accroche fait 87 caractères : la taille maximale est calée pour
   qu'il tienne en 4 lignes environ dans sa colonne, et non 6. Si le titre est
   raccourci un jour, la borne haute du clamp peut remonter vers 4.5rem. */
.heros h1 {
  font-size: clamp(2.05rem, 1.35rem + 2.9vw, 3.6rem);
  font-variation-settings: 'SOFT' 26, 'WONK' 1, 'opsz' 144;
  margin-bottom: 0.5em;
}

/* Surlignage « au pinceau » du mot-clé.
   Un dégradé de fond plutôt qu'un pseudo-élément absolu : le trait suit
   correctement le texte même lorsque le titre passe à la ligne. */
.heros h1 em {
  font-style: normal;
  color: var(--brique);
  background-image: linear-gradient(
    to top,
    rgba(221, 162, 60, 0.5) 0.17em,
    transparent 0.17em
  );
  background-repeat: no-repeat;
  background-size: 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: trait-peint 0.95s 0.55s var(--anim) forwards;
}

@keyframes trait-peint {
  to {
    background-size: 100% 100%;
  }
}

.heros__preuves {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}

.puce {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--trait);
  border-radius: 100px;
  font-size: var(--t-xs);
  font-weight: 750;
  letter-spacing: 0.01em;
}
.puce svg {
  color: var(--brique);
  flex: none;
}

.heros__chiffres {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.2rem, 4vw, 3rem);
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--trait);
}
.chiffre__val {
  font-family: var(--f-titre);
  font-variation-settings: 'SOFT' 8, 'WONK' 0, 'opsz' 60;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--brique);
  letter-spacing: -0.03em;
}
.chiffre__lib {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin-top: 0.4rem;
  max-width: 16ch;
}

/* --------------------------------------------------------------------------
   9. COUPE DE MUR ANIMÉE (élément signature)
   -------------------------------------------------------------------------- */

.coupe {
  position: relative;
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--ombre-2);
}

.coupe__titre {
  font-family: var(--f-texte);
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.coupe__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.coupe__couche {
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity 0.7s var(--anim), transform 0.7s var(--anim);
}
.coupe.est-visible .coupe__couche {
  opacity: 1;
  transform: translateX(0);
}
.coupe.est-visible .coupe__couche:nth-child(1) { transition-delay: 0.05s; }
.coupe.est-visible .coupe__couche:nth-child(2) { transition-delay: 0.2s; }
.coupe.est-visible .coupe__couche:nth-child(3) { transition-delay: 0.35s; }
.coupe.est-visible .coupe__couche:nth-child(4) { transition-delay: 0.5s; }
.coupe.est-visible .coupe__couche:nth-child(5) { transition-delay: 0.65s; }
.coupe.est-visible .coupe__couche:nth-child(6) { transition-delay: 0.8s; }

.coupe__legende {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.coupe__legende li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: var(--t-sm);
  line-height: 1.45;
}
.coupe__legende b {
  font-weight: 800;
}
.coupe__pastille {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex: none;
  translate: 0 2px;
  border: 1px solid rgba(0, 0, 0, 0.14);
}

/* --------------------------------------------------------------------------
   10. CARTES
   -------------------------------------------------------------------------- */

.carte {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  transition: transform 0.35s var(--anim), box-shadow 0.35s ease,
    border-color 0.35s ease;
  overflow: hidden;
}
.carte::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brique);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--anim);
}
.carte:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-2);
  border-color: var(--trait-fort);
}
.carte:hover::before {
  transform: scaleY(1);
}
.carte h3 {
  margin-bottom: 0.5rem;
}
.carte p {
  color: var(--encre-2);
  font-size: var(--t-sm);
  margin-bottom: 1rem;
}
.carte > *:last-child {
  margin-bottom: 0;
  margin-top: auto;
}

.carte__icone {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--chaux-2);
  border-radius: var(--r);
  color: var(--brique);
  margin-bottom: 1.1rem;
  flex: none;
}

.carte--service .carte__icone {
  background: linear-gradient(145deg, var(--chaux-2), var(--chaux-3));
}

.carte--sombre {
  background: var(--nuit-2);
  border-color: rgba(247, 243, 236, 0.12);
  color: rgba(247, 243, 236, 0.78);
}
.carte--sombre h3 {
  color: var(--chaux);
}
.carte--sombre p {
  color: rgba(247, 243, 236, 0.72);
}
.carte--sombre .carte__icone {
  background: rgba(247, 243, 236, 0.08);
  color: var(--ocre);
}

.carte__liste {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.45rem;
  font-size: var(--t-sm);
  color: var(--encre-2);
}
.carte__liste li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.carte__liste li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--ocre);
  border-radius: 50%;
  flex: none;
  translate: 0 -2px;
}

/* Étapes numérotées */
.etape {
  position: relative;
  padding-left: 3.6rem;
}
.etape__num {
  position: absolute;
  left: 0;
  top: -0.2rem;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--brique);
  color: var(--brique);
  border-radius: 50%;
  font-family: var(--f-titre);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 20;
  font-weight: 800;
  font-size: 1rem;
}
.section--nuit .etape__num {
  border-color: var(--ocre);
  color: var(--ocre);
}
.etape h3 {
  font-size: var(--t-md);
  margin-bottom: 0.35rem;
}
.etape p {
  font-size: var(--t-sm);
  color: var(--encre-2);
  margin: 0;
}
.section--nuit .etape p {
  color: rgba(247, 243, 236, 0.7);
}

/* --------------------------------------------------------------------------
   11. AIDES / CHIFFRES CLÉS
   -------------------------------------------------------------------------- */

.aide {
  background: #fff;
  border: 1px solid var(--trait);
  border-top: 3px solid var(--ocre);
  border-radius: var(--r-lg);
  padding: 1.6rem;
}
.aide__montant {
  font-family: var(--f-titre);
  font-variation-settings: 'SOFT' 6, 'WONK' 0, 'opsz' 48;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  color: var(--brique);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}
.aide h3 {
  font-size: var(--t-base);
  margin-bottom: 0.5rem;
}
.aide p {
  font-size: var(--t-sm);
  color: var(--encre-2);
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. TÉMOIGNAGES
   -------------------------------------------------------------------------- */

.avis {
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.avis__note {
  color: var(--ocre);
  letter-spacing: 0.15em;
  font-size: 0.95rem;
}
.avis blockquote {
  margin: 0;
  font-family: var(--f-titre);
  font-variation-settings: 'SOFT' 24, 'WONK' 0, 'opsz' 24;
  font-size: var(--t-md);
  line-height: 1.45;
  color: var(--encre);
}
.avis figcaption {
  font-size: var(--t-sm);
  color: var(--encre-3);
  margin-top: auto;
}
.avis figcaption b {
  display: block;
  color: var(--encre);
  font-weight: 750;
}

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 0.6rem;
  max-width: var(--lecture);
}
.faq details {
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq details[open] {
  border-color: var(--trait-fort);
  box-shadow: var(--ombre-1);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3.2rem 1.15rem 1.35rem;
  font-weight: 750;
  font-size: var(--t-base);
  position: relative;
  line-height: 1.45;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 1.35rem;
  top: 1.5rem;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--brique);
  border-bottom: 2px solid var(--brique);
  transform: rotate(45deg);
  transition: transform 0.3s var(--anim);
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  top: 1.7rem;
}
.faq summary:hover {
  color: var(--brique);
}
.faq__reponse {
  padding: 0 1.35rem 1.35rem;
  color: var(--encre-2);
  font-size: var(--t-sm);
  line-height: 1.7;
}
.faq__reponse > *:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   14. ZONE D'INTERVENTION
   -------------------------------------------------------------------------- */

.departements {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.departements li a,
.departements li span {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--trait);
  border-radius: 100px;
  font-size: var(--t-sm);
  font-weight: 650;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.departements li a:hover {
  background: var(--brique);
  border-color: var(--brique);
  color: #fff;
}
.section--nuit .departements li a,
.section--nuit .departements li span {
  background: rgba(247, 243, 236, 0.06);
  border-color: var(--trait-clair);
  color: var(--chaux-2);
}
.section--nuit .departements li a:hover {
  background: var(--ocre);
  border-color: var(--ocre);
  color: var(--nuit);
}

/* --------------------------------------------------------------------------
   15. APPEL À L'ACTION
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  background: var(--brique);
  color: #fff;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.05) 0 2px,
    transparent 2px 14px
  );
}
.cta__int {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 860px) {
  .cta__int {
    grid-template-columns: 1fr;
  }
}
.cta h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--t-md);
  margin-bottom: 0;
}
.cta .groupe-btn {
  justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   16. FORMULAIRE
   -------------------------------------------------------------------------- */

.formulaire {
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--ombre-2);
}
.champ {
  margin-bottom: 1.15rem;
}
.champ label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 750;
  margin-bottom: 0.4rem;
}
.champ label .req {
  color: var(--brique);
}
.champ input,
.champ select,
.champ textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--chaux);
  border: 1.5px solid var(--trait);
  border-radius: var(--r);
  font-size: var(--t-sm);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  border-color: var(--brique);
  background: #fff;
  outline: none;
}
.champ textarea {
  min-height: 130px;
  resize: vertical;
}
.champ__aide {
  font-size: var(--t-xs);
  color: var(--encre-3);
  margin-top: 0.35rem;
}
.champs-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 1rem;
}
.consentement {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: var(--t-xs);
  color: var(--encre-2);
  line-height: 1.5;
  margin-bottom: 1.3rem;
}
.consentement input {
  width: auto;
  margin-top: 0.2rem;
  flex: none;
  accent-color: var(--brique);
}

/* --------------------------------------------------------------------------
   17. FIL D'ARIANE
   -------------------------------------------------------------------------- */

.ariane {
  font-size: var(--t-xs);
  color: var(--encre-3);
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--trait);
}
.ariane ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ariane li + li::before {
  content: '/';
  margin-right: 0.4rem;
  color: var(--trait-fort);
}
.ariane a {
  color: inherit;
  text-decoration: none;
}
.ariane a:hover {
  color: var(--brique);
  text-decoration: underline;
}
.ariane [aria-current] {
  color: var(--encre);
  font-weight: 650;
}

/* --------------------------------------------------------------------------
   18. ARTICLES / GUIDE
   -------------------------------------------------------------------------- */

.article-entete {
  background: var(--chaux-2);
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--trait);
}
.article-entete h1 {
  font-size: var(--t-2xl);
  max-width: 20ch;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: var(--t-xs);
  color: var(--encre-3);
  font-weight: 650;
  letter-spacing: 0.03em;
  margin-top: 1.4rem;
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Les articles gardent un conteneur plus étroit que le reste du site :
   au-delà, la colonne de texte reste bornée par --lecture et l'écart avec le
   sommaire se creuse inutilement. */
.conteneur.article-corps {
  max-width: 1200px;
}

.article-corps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 940px) {
  /* minmax(0,…) et non 1fr : sans cela, le min-content d'un tableau large
     élargit la colonne et fait déborder toute la page horizontalement. */
  .article-corps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.prose {
  min-width: 0;
  max-width: var(--lecture);
  font-size: clamp(1.03rem, 1rem + 0.16vw, 1.115rem);
  line-height: 1.78;
  color: var(--encre-2);
}
.prose > h2 {
  font-size: var(--t-lg);
  margin-top: 2.6em;
  margin-bottom: 0.55em;
  color: var(--encre);
  scroll-margin-top: 6rem;
}
.prose > h2:first-child {
  margin-top: 0;
}
.prose > h3 {
  font-size: var(--t-md);
  margin-top: 2em;
  margin-bottom: 0.45em;
  color: var(--encre);
  scroll-margin-top: 6rem;
}
.prose p > strong {
  color: var(--encre);
}
.prose ul,
.prose ol {
  margin: 0 0 1.4em;
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.55em;
}
.prose li::marker {
  color: var(--brique);
  font-weight: 700;
}
.prose a {
  color: var(--brique);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.prose a:hover {
  color: var(--brique-2);
  background: rgba(221, 162, 60, 0.16);
}
.prose blockquote {
  margin: 2em 0;
  padding: 0.2em 0 0.2em 1.5em;
  border-left: 3px solid var(--ocre);
  font-family: var(--f-titre);
  font-variation-settings: 'SOFT' 24, 'WONK' 0, 'opsz' 24;
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--encre);
}
.prose figure {
  margin: 2em 0;
}
.prose figcaption {
  font-size: var(--t-xs);
  color: var(--encre-3);
  margin-top: 0.6rem;
  text-align: center;
}

/* Tableaux d'articles */
.tableau-enrobe {
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
  background: #fff;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  min-width: 520px;
}
.prose th,
.prose td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--trait);
  vertical-align: top;
}
.prose thead th {
  background: var(--chaux-2);
  font-weight: 800;
  color: var(--encre);
  font-size: var(--t-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.prose tbody tr:last-child td {
  border-bottom: 0;
}
.prose tbody tr:hover {
  background: rgba(221, 162, 60, 0.06);
}

/* Encadrés */
.encadre {
  margin: 2em 0;
  padding: 1.3rem 1.5rem;
  background: #fff;
  border: 1px solid var(--trait);
  border-left: 3px solid var(--brique);
  border-radius: var(--r-lg);
  font-size: var(--t-sm);
  line-height: 1.65;
}
.encadre__titre {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-texte);
  font-weight: 800;
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brique);
  margin-bottom: 0.6rem;
}
.encadre > *:last-child {
  margin-bottom: 0;
}
.encadre--ocre {
  border-left-color: var(--ocre);
  background: linear-gradient(180deg, rgba(221, 162, 60, 0.09), #fff 60%);
}
.encadre--ocre .encadre__titre {
  color: #9a6c14;
}

/* Sommaire latéral */
.aside-sticky {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 1.5rem;
}
@media (max-width: 940px) {
  .aside-sticky {
    position: static;
  }
}

.sommaire {
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
  padding: 1.35rem;
}
.sommaire h2 {
  font-family: var(--f-texte);
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin-bottom: 0.9rem;
}
.sommaire ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
  counter-reset: som;
}
.sommaire li {
  counter-increment: som;
}
.sommaire a {
  display: block;
  padding: 0.4rem 0 0.4rem 1.7rem;
  font-size: var(--t-sm);
  line-height: 1.4;
  text-decoration: none;
  color: var(--encre-2);
  position: relative;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sommaire a::before {
  content: counter(som) '.';
  position: absolute;
  left: 0.5rem;
  color: var(--encre-3);
  font-weight: 700;
  font-size: 0.78rem;
}
.sommaire a:hover,
.sommaire a.est-active {
  color: var(--brique);
  border-left-color: var(--brique);
}
.sommaire a.est-active::before {
  color: var(--brique);
}

.encart-devis {
  background: var(--nuit);
  color: var(--chaux-2);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}
.encart-devis h2 {
  font-size: var(--t-md);
  color: var(--chaux);
  margin-bottom: 0.5rem;
}
.encart-devis p {
  font-size: var(--t-sm);
  color: rgba(247, 243, 236, 0.72);
  margin-bottom: 1.1rem;
}
.encart-devis .btn {
  width: 100%;
}

/* Cartes d'articles */
.carte-article {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--anim), box-shadow 0.3s ease,
    border-color 0.3s ease;
  height: 100%;
}
.carte-article:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-2);
  border-color: var(--trait-fort);
}
.carte-article__cocon {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brique);
  margin-bottom: 0.7rem;
}
.carte-article h3 {
  font-size: var(--t-md);
  margin-bottom: 0.5rem;
  line-height: 1.22;
}
.carte-article p {
  font-size: var(--t-sm);
  color: var(--encre-2);
  margin-bottom: 1rem;
}
.carte-article__pied {
  margin-top: auto;
  font-size: var(--t-xs);
  font-weight: 750;
  color: var(--brique);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.carte-article__pied::after {
  content: '→';
  transition: transform 0.25s var(--anim);
}
.carte-article:hover .carte-article__pied::after {
  transform: translateX(3px);
}

/* Bloc cocon dans le hub du guide */
.cocon {
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.55);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
}
.cocon__entete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--trait);
}
.cocon__entete h2 {
  margin: 0;
  font-size: var(--t-lg);
}
.cocon__compte {
  font-size: var(--t-xs);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre-3);
}

/* Les cocons ne comptent pas tous le même nombre d'articles. Sur trois
   colonnes, un cocon de 2 ou 4 articles laisse une carte seule sur sa ligne.
   On repasse ces deux cas en deux colonnes : chaque cocon forme ainsi un bloc
   plein, sans carte orpheline. */
@media (min-width: 1060px) {
  .cocon .grille--3:has(> :nth-child(2):last-child),
  .cocon .grille--3:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Navigation entre articles */
.nav-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--trait);
}
.nav-articles a {
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
  text-decoration: none;
  background: #fff;
  transition: border-color 0.25s ease, transform 0.25s var(--anim);
}
.nav-articles a:hover {
  border-color: var(--brique);
  transform: translateY(-2px);
}
.nav-articles small {
  display: block;
  font-size: var(--t-xs);
  color: var(--encre-3);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.nav-articles b {
  font-weight: 700;
  line-height: 1.35;
  display: block;
  font-size: var(--t-sm);
}

/* --------------------------------------------------------------------------
   19. RÉALISATIONS
   -------------------------------------------------------------------------- */

.chantier {
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chantier__visuel {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--chaux-2), var(--chaux-3));
  position: relative;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--trait);
  overflow: hidden;
}
.chantier__visuel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(28, 23, 19, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 23, 19, 0.07) 1px, transparent 1px);
  background-size: 60px 20px;
}
.chantier__visuel span {
  position: relative;
  font-family: var(--f-titre);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 30;
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-3);
  text-align: center;
  padding: 0 1rem;
}
.chantier__corps {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.chantier__lieu {
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brique);
}
.chantier h3 {
  font-size: var(--t-base);
  margin: 0;
}
.chantier dl {
  margin: auto 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.9rem;
  font-size: var(--t-xs);
  padding-top: 0.9rem;
  border-top: 1px solid var(--trait);
}
.chantier dt {
  color: var(--encre-3);
  font-weight: 650;
}
.chantier dd {
  margin: 0;
  font-weight: 750;
}

/* --------------------------------------------------------------------------
   20. PIED DE PAGE
   -------------------------------------------------------------------------- */

.pied {
  background: var(--nuit);
  color: rgba(247, 243, 236, 0.68);
  font-size: var(--t-sm);
  padding-block: clamp(3.5rem, 6vw, 5rem) 0;
}
.pied__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
}
@media (max-width: 900px) {
  .pied__grille {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}
.pied h2,
.pied h3 {
  font-family: var(--f-texte);
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ocre);
  margin-bottom: 1.1rem;
}
.pied ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.pied a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.pied a:hover {
  color: var(--chaux);
  text-decoration: underline;
}
.pied .logo__nom {
  color: var(--chaux);
}
.pied .logo__sous {
  color: rgba(247, 243, 236, 0.5);
}
.pied__desc {
  margin: 1.2rem 0 1.4rem;
  max-width: 38ch;
  line-height: 1.65;
}
.pied__contact {
  display: grid;
  gap: 0.5rem;
  font-size: var(--t-sm);
}
.pied__contact b {
  color: var(--chaux);
  font-weight: 750;
}
.pied__bas {
  border-top: 1px solid var(--trait-clair);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  justify-content: space-between;
  align-items: center;
  font-size: var(--t-xs);
  color: rgba(247, 243, 236, 0.5);
}
.pied__bas nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

/* --------------------------------------------------------------------------
   21. BARRE D'ACTION MOBILE
   -------------------------------------------------------------------------- */

.barre-mobile {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 880;
  background: rgba(34, 27, 22, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  gap: 0.6rem;
  border-top: 1px solid var(--trait-clair);
}
.barre-mobile .btn {
  flex: 1;
  padding: 0.85rem 0.6rem;
  font-size: 0.83rem;
}
@media (max-width: 720px) {
  .barre-mobile {
    display: flex;
  }
  body {
    padding-bottom: 4.6rem;
  }
}

/* --------------------------------------------------------------------------
   22. RÉVÉLATIONS AU DÉFILEMENT
   -------------------------------------------------------------------------- */

.reveler {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--anim), transform 0.8s var(--anim);
}
.reveler.est-visible {
  opacity: 1;
  transform: none;
}
.reveler[data-delai='1'] { transition-delay: 0.08s; }
.reveler[data-delai='2'] { transition-delay: 0.16s; }
.reveler[data-delai='3'] { transition-delay: 0.24s; }
.reveler[data-delai='4'] { transition-delay: 0.32s; }
.reveler[data-delai='5'] { transition-delay: 0.4s; }

/* Apparition immédiate du héros au chargement */
.apparait {
  opacity: 0;
  transform: translateY(18px);
  animation: apparition 0.9s var(--anim) forwards;
}
.apparait[data-delai='1'] { animation-delay: 0.08s; }
.apparait[data-delai='2'] { animation-delay: 0.18s; }
.apparait[data-delai='3'] { animation-delay: 0.28s; }
.apparait[data-delai='4'] { animation-delay: 0.38s; }
.apparait[data-delai='5'] { animation-delay: 0.5s; }

@keyframes apparition {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveler,
  .apparait,
  .coupe__couche {
    opacity: 1 !important;
    transform: none !important;
  }
  .heros h1 em {
    background-size: 100% 100%;
  }
}

/* --------------------------------------------------------------------------
   23. IMPRESSION
   -------------------------------------------------------------------------- */

@media print {
  .entete,
  .barre-info,
  .barre-mobile,
  .pied,
  .cta,
  .aside-sticky,
  body::after {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }
  .article-corps {
    grid-template-columns: 1fr;
  }
  a::after {
    content: ' (' attr(href) ')';
    font-size: 0.75em;
    color: #555;
  }
}
