/* ==========================================================================
   SERRURERIE VIVIER · Feuille de style unique du site
   --------------------------------------------------------------------------
   Sommaire
     1. Réglages (couleurs, tailles, marges)  ← on change le site ici
     2. Base (police, remise à zéro)
     3. Éléments communs (conteneur, surtitre, titres, boutons, liens)
     4. En-tête, méga-menus, menu mobile
     5. Sections de la page d'accueil, dans l'ordre de la page
     5b. Page Contact
     5c. Pages ouvrages (Escaliers, puis Garde-corps, Portails…)
     5d. Page Réalisations (galerie filtrable)
     6. Pied de page
     7. Tablette et mobile
     8. Animations réduites (réglage d'accessibilité du visiteur)

   Règle d'or : aucune couleur ni taille « en dur » dans les sections.
   Tout part des réglages du chapitre 1.
   ========================================================================== */


/* ==========================================================================
   1. RÉGLAGES
   ========================================================================== */
:root {
  /* Couleurs de la charte (relevées dans la maquette Figma Vivier_2) */
  --vert: #2e5051;            /* vert de la marque : titres, boutons */
  --vert-nuit: #162021;       /* fin des dégradés sombres */
  --noir: #1f2626;            /* texte très foncé (téléphone, note) */
  --rouge: #e41e30;           /* surtitres, numéros, flèches : UNIQUEMENT sur fond clair ou blanc */
  --rouge-doux: #ffa0a8;      /* RÈGLE : sur un fond vert, jamais --rouge, toujours ce rouge doux
                                 (contraste 4,55:1 sur le vert le plus clair, lisible même en petit) */
  --texte: #5a6566;           /* texte courant */
  --fond-clair: #dadcdc;      /* fond principal */
  --fond-moyen: #c6cacb;      /* fond des sections alternées */
  --blanc: #ffffff;
  --filet: rgba(46, 80, 81, 0.25);        /* traits fins sur fond clair */
  --filet-clair: rgba(255, 255, 255, 0.18); /* traits fins sur fond sombre */

  /* Police : Darker Grotesque, une seule police pour tout le site.
     Jamais en dessous de 500 (Medium) : pas de graisse Light. */
  --police: 'Darker Grotesque', 'Arial Narrow', system-ui, sans-serif;

  /* Largeur du contenu. Sur très grand écran, le contenu s'élargit
     (jusqu'à 1720 px) au lieu de rester tassé au centre. */
  --largeur-contenu: clamp(1248px, 82vw, 1720px);
  --marge: 20px;              /* marge gauche/droite, ajustée plus bas selon l'écran */

  /* Hauteur de l'en-tête (toujours visible) */
  --h-entete: clamp(72px, 7vw, 108px);
  /* Hauteur d'écran disponible sous l'en-tête : aucune section ne la dépasse */
  --h-utile: calc(100svh - var(--h-entete));

  /* Espace haut/bas des sections : suit la largeur ET la hauteur de l'écran */
  --pad-section: clamp(44px, min(8.3vw, 10svh), 120px);

  /* Tailles de texte */
  --t-h1: clamp(2.625rem, min(5.3vw, 9.5svh), 5.25rem);
  --t-h2: clamp(1.875rem, min(3.5vw, 6.2svh), 3.375rem);
  --t-h2-moyen: clamp(1.75rem, min(2.5vw, 4.6svh), 2.5rem);
  --t-h2-grand: clamp(2.125rem, min(3.9vw, 7svh), 3.75rem);
  --t-chapo: clamp(1.0625rem, 1.32vw, 1.25rem);
  --t-corps: 1.0312rem;
  --t-surtitre: 0.7812rem;

  /* Arrondi unique des photos et des cases (cartes, encadrés, champs, vignettes) :
     léger, comme les photos de la galerie de l'accueil. Les boutons gardent leur forme ronde. */
  --arrondi: 5px;

  /* Mouvements */
  --doux: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ombre-bouton: 0 6px 16px rgba(31, 38, 38, 0.16);
}

@media (min-width: 600px)  { :root { --marge: 32px; } }
@media (min-width: 1024px) { :root { --marge: 48px; } }
@media (min-width: 1400px) { :root { --marge: clamp(48px, calc(50vw - 624px), 96px); } }


/* ==========================================================================
   2. BASE
   ========================================================================== */
@font-face {
  font-family: 'Darker Grotesque';
  src: url('../fonts/darker-grotesque.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
}

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

/* Taille de base : 16 px jusqu'à 1440 px de large, puis elle grandit avec
   l'écran (≈ 18,4 px à 2000 px, 20,8 px à 2560 px). Toutes les tailles de texte
   sont en rem, donc tout le texte du site suit d'un coup. Les marges, elles,
   suivent déjà la largeur via --marge et --largeur-contenu. */
html {
  font-size: clamp(100%, calc(16px + (100vw - 1440px) * 0.0043), 130%);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--h-entete);
}

body {
  font-family: var(--police);
  font-weight: 500;
  font-size: var(--t-corps);
  line-height: 1.55;
  color: var(--texte);
  background: var(--fond-clair);
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
h1, h2, h3 { color: var(--vert); font-weight: 800; line-height: 1; }

:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; border-radius: 4px; }
/* Sur les fonds verts, le contour de focus clavier passe en rouge doux */
.pros :focus-visible, .atelier :focus-visible, .pied :focus-visible, .contact-haut__texte :focus-visible, .entete--sombre :focus-visible { outline-color: var(--rouge-doux); }

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.lien-evitement {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--vert); color: var(--blanc); padding: 10px 16px; border-radius: 6px;
}
.lien-evitement:focus { top: 12px; }


/* ==========================================================================
   3. ÉLÉMENTS COMMUNS
   ========================================================================== */

/* Conteneur centré, qui s'élargit sur grand écran */
.conteneur {
  width: min(100% - 2 * var(--marge), var(--largeur-contenu));
  margin-inline: auto;
}

/* Surtitre : petit trait + libellé en capitales */
.surtitre {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--t-surtitre);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.surtitre::before { content: ''; width: 30px; height: 2px; flex: none; background: var(--rouge); }
.surtitre--rouge { color: var(--rouge); }
.surtitre--clair { color: rgba(255, 255, 255, 0.85); }
.surtitre--doux { color: var(--rouge-doux); }
/* Sur fond vert, le trait des surtitres passe aussi en rouge doux */
.surtitre--doux::before, .surtitre--clair::before { background: var(--rouge-doux); }

/* Titres de section */
.entete-section { display: grid; gap: 18px; }
.titre-section { font-size: var(--t-h2); font-weight: 800; line-height: 1.02; }
.titre-section--moyen { font-size: var(--t-h2-moyen); line-height: 1.05; }
.titre-section--grand { font-size: var(--t-h2-grand); }
.titre-section--blanc { color: var(--blanc); }

/* Bouton principal : ombre légère. Au survol il s'allonge vers la droite :
   la pastille et sa flèche suivent le bord, la flèche tourne vers la droite
   et un léger dégradé apparaît. (Pas pour l'en-tête ni les boutons secondaires.) */
.bouton {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 12px 12px 12px 30px;
  border-radius: 999px;
  background: var(--vert);
  color: var(--blanc);
  font-size: 0.9062rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--ombre-bouton);
  transition: gap 0.45s var(--doux), margin 0.45s var(--doux), box-shadow 0.45s var(--doux), font-weight 0.3s var(--doux);
}
/* Le dégradé est posé sur un calque : il apparaît en fondu */
.bouton::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(105deg, #36605f 0%, var(--vert) 55%, #1f3536 100%);
  opacity: 0;
  transition: opacity 0.45s var(--doux);
}
/* margin-right négative = la même valeur que l'allongement : les éléments voisins ne bougent pas */
.bouton:hover, .bouton:focus-visible { gap: 34px; margin-right: -16px; font-weight: 900; box-shadow: 0 10px 24px rgba(31, 38, 38, 0.24); }
.bouton:hover::before, .bouton:focus-visible::before { opacity: 1; }
.bouton__pastille svg { transition: transform 0.45s var(--doux); }
.bouton:hover .bouton__pastille svg, .bouton:focus-visible .bouton__pastille svg { transform: rotate(45deg); }
.bouton__pastille {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--fond-clair);
  color: var(--rouge);
}
.bouton--sombre { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); }
/* Bouton clair, pour les fonds sombres : blanc, pastille rouge */
.bouton--clair { background: var(--blanc); color: var(--vert); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); }
.bouton--clair::before { background: linear-gradient(105deg, var(--blanc) 0%, #eef0f0 55%, var(--fond-clair) 100%); }
.bouton--clair .bouton__pastille { background: var(--rouge); color: var(--blanc); }

/* Lien rouge en capitales (méga-menus) */
.lien-rouge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rouge);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Lien souligné en capitales (sur fond sombre) */
.lien-souligne {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
  color: var(--blanc);
  font-size: 0.9062rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: border-color 0.3s var(--doux);
}
.lien-souligne:hover { border-color: var(--blanc); }

/* Tous les liens texte avec flèche (lien rouge, lien souligné, lien fléché) :
   au survol, le texte s'épaissit et la flèche tourne vers la droite.
   L'épaississement est un contour du texte : la largeur ne bouge pas. */
.lien-rouge, .lien-souligne, .lien-fleche { -webkit-text-stroke: 0 currentColor; transition: -webkit-text-stroke-width 0.3s var(--doux), border-color 0.3s var(--doux), gap 0.35s var(--doux); }
.lien-rouge svg, .lien-souligne svg, .lien-fleche svg { flex: none; transition: transform 0.4s var(--doux); }
.lien-rouge:hover, .lien-souligne:hover, .lien-fleche:hover,
.lien-rouge:focus-visible, .lien-souligne:focus-visible, .lien-fleche:focus-visible { -webkit-text-stroke-width: 0.6px; }
.lien-rouge:hover svg, .lien-souligne:hover svg, .lien-fleche:hover svg,
.lien-rouge:focus-visible svg, .lien-souligne:focus-visible svg, .lien-fleche:focus-visible svg { transform: rotate(45deg); }

/* Apparition au défilement : réglée par js/main.js (l'élément est complet
   quand il atteint le centre de l'écran). Sans JavaScript, tout est visible. */
.anime .apparition {
  opacity: var(--p, 0);
  transform: translateY(calc((1 - var(--p, 0)) * 26px));
  will-change: opacity, transform;
}


/* ==========================================================================
   4. EN-TÊTE, MÉGA-MENUS, MENU MOBILE
   ========================================================================== */
/* Sur toutes les pages : en-tête sans fond en haut de page, puis fond gris clair
   légèrement transparent et flouté dès qu'on fait défiler (classe .a-defile posée par main.js).
   Le logo rétrécit un peu au même moment. */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--doux), border-color 0.3s var(--doux), -webkit-backdrop-filter 0.4s var(--doux), backdrop-filter 0.4s var(--doux);
}
.entete.a-defile {
  background: rgba(218, 220, 220, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: rgba(46, 80, 81, 0.12);
}

.entete__barre {
  height: var(--h-entete);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.entete__logo img { width: auto; height: clamp(34px, 3.2vw, 46px); transform-origin: left center; transition: transform 0.45s var(--doux), opacity 0.35s var(--doux); }
.entete.a-defile .entete__logo img { transform: scale(0.88); }
/* Pages à haut de page foncé : logo blanc et logo vert superposés, on passe de l'un à l'autre */
.entete__logo--double { display: grid; }
.entete__logo--double img { grid-area: 1 / 1; }
.entete__logo--double .logo-fonce { opacity: 0; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav__liste { display: flex; align-items: center; gap: clamp(16px, calc(5vw - 69px), 28px); }   /* 16 px jusqu’à 1700 px de large (9 liens), puis jusqu’à 28 px sur grand écran */
/* Le logo ne se laisse jamais écraser par le menu */
.entete__logo { flex-shrink: 0; }
/* Entrée « Ouvrages » : cachée à partir de 1800 px (les 6 familles tiennent dans la barre).
   En dessous (petit ordinateur), elle remplace les 6 familles et ouvre un sous-menu qui les regroupe. */
.nav__ouvrages { display: none; }
@media (max-width: 1799px) {
  .nav__famille { display: none; }
  .nav__ouvrages { display: list-item; }
  /* Menu court (Ouvrages · Professionnels · Réalisations · L'atelier) : plus de place, noms plus grands */
  .nav__liste .nav__lien { font-size: 1.125rem; }
  .nav .bouton-entete { font-size: 1.125rem; }   /* le bouton suit la taille du menu court */
  .nav__liste { gap: 32px; }
}
/* Sous-menu « Ouvrages » (essai B) : les familles à gauche, les pages de la famille
   survolée au milieu, ses photos à droite */
.ouvrages__familles { display: grid; gap: 2px; align-content: start; }
.ouvrages__familles a.ouvrages__famille {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 0; padding: 0.5625rem 0.625rem 0.5625rem 0; border: 0; border-radius: var(--arrondi);
  color: var(--texte); font-size: 1.3125rem; font-weight: 700;
  transition: background-color 0.3s var(--doux), color 0.3s var(--doux), padding 0.3s var(--doux), font-weight 0.3s var(--doux);
}
.ouvrages__familles a.ouvrages__famille.est-active { padding-left: 0.875rem; background: var(--fond-clair); color: var(--vert); font-weight: 900; }
.ouvrages__chevron { font-size: 1.375rem; transition: color 0.3s var(--doux), transform 0.3s var(--doux); }
.ouvrages__famille.est-active .ouvrages__chevron { color: var(--rouge); transform: translateX(3px); }
.ouvrages__detail { animation: panneau-entre 0.35s var(--doux); }
.ouvrages__titre { color: var(--vert); font-size: 1.875rem; font-weight: 900; line-height: 1; }
.ouvrages__texte { margin-block: 0.5rem 1.125rem; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.ouvrages__pages a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 0.8125rem; border-top: 1px solid rgba(46, 80, 81, 0.15);
  color: var(--vert); font-size: 1.125rem; font-weight: 700;
  transition: padding 0.3s var(--doux);
}
.ouvrages__pages a svg { color: var(--rouge); flex: none; }
.ouvrages__pages a:hover, .ouvrages__pages a:focus-visible { padding-left: 6px; }
.ouvrages__detail .lien-rouge { margin-top: 0.875rem; }
.nav__lien {
  /* Minuscules, 16 px. La page en cours est en vert très gras, le survol en vert gras :
     le changement se voit, sans trait ni fond. Le gras est « réservé » par ::after
     (même texte, invisible) pour que les liens ne bougent pas quand il change. */
  display: inline-grid;
  padding-block: 10px;
  color: var(--texte);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s var(--doux), font-weight 0.25s var(--doux);
}
.nav__lien::after {
  content: attr(data-texte);
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 900;
}
.nav__lien:hover, .nav__lien:focus-visible, .nav__lien[aria-expanded='true'] { color: var(--vert); font-weight: 800; }
.nav__lien[aria-current='page'] { color: var(--vert); font-weight: 900; }
.nav__filet { width: 1px; height: 22px; background: var(--fond-moyen); }

/* Bouton de l'en-tête : au survol le texte s'épaissit, la boule grossit
   et une flèche apparaît dedans */
.bouton-entete {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 26px;
  border-radius: 999px;
  background: var(--vert);
  color: var(--blanc);
  font-size: 1rem;   /* même taille que les liens du menu */
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.3s var(--doux), font-weight 0.3s var(--doux);
}
.bouton-entete:hover, .bouton-entete:focus-visible { background: var(--noir); font-weight: 900; }
.bouton-entete__point {
  display: grid;
  place-items: center;
  width: 10px;
  height: 10px;
  margin-block: -6px;          /* la boule grossit sans changer la hauteur du bouton */
  border-radius: 50%;
  background: var(--fond-clair);
  color: var(--vert);
  transition: width 0.4s var(--doux), height 0.4s var(--doux);
}
.bouton-entete__point svg { opacity: 0; transform: translateX(-4px) scale(0.6); transition: opacity 0.3s var(--doux), transform 0.4s var(--doux); }
.bouton-entete:hover .bouton-entete__point, .bouton-entete:focus-visible .bouton-entete__point { width: 22px; height: 22px; }
.bouton-entete:hover .bouton-entete__point svg, .bouton-entete:focus-visible .bouton-entete__point svg { opacity: 1; transform: none; transition-delay: 0.08s; }

.burger { display: none; width: 44px; height: 44px; place-items: center; }
.burger__barres, .burger__barres::before, .burger__barres::after {
  display: block; width: 22px; height: 2px; background: var(--vert);
  transition: transform 0.3s var(--doux), background-color 0.3s;
}
.burger__barres { position: relative; }
.burger__barres::before, .burger__barres::after { content: ''; position: absolute; left: 0; }
.burger__barres::before { top: -7px; }
.burger__barres::after { top: 7px; }
.burger[aria-expanded='true'] .burger__barres { background: transparent; }
.burger[aria-expanded='true'] .burger__barres::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__barres::after { transform: translateY(-7px) rotate(-45deg); }

/* Méga-menus : pleine largeur, ouverture et fermeture douces, sans halo */
.megas { position: absolute; left: 0; right: 0; top: 100%; }
.mega {
  position: absolute;
  inset: 0 0 auto 0;
  background: var(--blanc);
  border-top: 1px solid rgba(46, 80, 81, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.32s var(--doux), transform 0.32s var(--doux), visibility 0s linear 0.32s;
}
.mega.est-ouvert {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.32s var(--doux), transform 0.32s var(--doux), visibility 0s;
}
.mega__grille {
  display: grid;
  grid-template-columns: minmax(0, 294fr) minmax(0, 400fr) minmax(0, 421fr);
  justify-content: space-between;
  column-gap: clamp(32px, 4.6vw, 66px);
  padding-block: 48px 56px;
}
.mega__titre { color: var(--vert); font-size: 2.5rem; font-weight: 900; line-height: 1; }
.mega__texte { margin-block: 1rem; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.mega__pages a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  border-bottom: 1px solid var(--fond-moyen);
  color: var(--noir);
  font-size: 1.25rem;
  font-weight: 800;
  transition: color 0.25s var(--doux), padding 0.35s var(--doux);
}
.mega__pages a:hover { color: var(--vert); padding-left: 6px; }
/* Méga-menu Professionnels : deux groupes (Commerces, Immeubles), chaque lien a une ligne de détail */
.mega__groupe { margin-bottom: 0.25rem; color: var(--rouge); font-size: var(--t-surtitre); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.mega__groupe + .mega__pages, .mega__pages + .mega__groupe { margin-top: 0; }
.mega__pages + .mega__groupe { margin-top: 22px; }
.mega__pages--detail a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  min-height: 0;
  padding-block: 9px;
}
.mega__pages--detail a svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.mega__nom { font-size: 1.1875rem; font-weight: 800; line-height: 1.25; }
.mega__detail { color: var(--texte); font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.mega__photo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 12px; align-content: start; }
/* Deux vignettes côte à côte : les photos (souvent en hauteur) ne sont plus coupées en bandeau */
.mega__vignette { position: relative; display: block; height: 15rem; overflow: hidden; border-radius: var(--arrondi); background: var(--fond-moyen); }
.mega__photo img { width: 100%; height: 100%; object-fit: cover; }
.mega__photo > img { height: 15rem; border-radius: var(--arrondi); }   /* avant que le script n'entoure les photos */
/* Photo qui change au survol d'une page : un calque au-dessus apparaît en fondu */
.mega__photo-calque { position: absolute; inset: 0; opacity: 0; transition: opacity 0.32s var(--doux); }
.mega__photo-calque.est-visible { opacity: 1; }
.mega__photo figcaption { grid-column: 1 / -1; color: var(--vert); font-size: 1rem; font-weight: 800; line-height: 1.3; }

/* Voile flou derrière un méga-menu ouvert */
.voile {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(218, 220, 220, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--doux);
}
.voile.est-visible { opacity: 1; }

/* Menu mobile (essai B) : plein écran sur le gris du header, il glisse depuis la droite.
   Chaque famille se déplie pour montrer ses pages, une seule ouverte à la fois. */
.menu-mobile {
  position: fixed; left: 0; right: 0; top: var(--h-entete); bottom: 0; z-index: 45;
  display: flex; flex-direction: column;
  padding: 22px var(--marge) 28px;
  background: var(--fond-clair);
  border-top: 1px solid rgba(46, 80, 81, 0.1);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateX(100%);
  transition: transform 0.45s var(--doux), opacity 0.3s var(--doux);
}
.menu-mobile[hidden] { display: none; }
.menu-mobile.est-ouvert { opacity: 1; transform: none; }
.menu-mobile__surtitre { margin-bottom: 6px; }
.menu-mobile__famille { border-bottom: 1px solid rgba(46, 80, 81, 0.18); }
.menu-mobile__bouton {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 0.8125rem 0;
  color: var(--vert); font-size: 1.3125rem; font-weight: 800; text-align: left;
}
/* Signe + qui devient − à l'ouverture (rouge : on est sur fond clair) */
.menu-mobile__signe { position: relative; width: 14px; height: 14px; flex: none; }
.menu-mobile__signe::before, .menu-mobile__signe::after { content: ''; position: absolute; inset: 0; margin: auto; background: var(--rouge); }
.menu-mobile__signe::before { width: 14px; height: 2px; }
.menu-mobile__signe::after { width: 2px; height: 14px; transition: transform 0.35s var(--doux); }
.menu-mobile__bouton[aria-expanded='true'] .menu-mobile__signe::after { transform: scaleY(0); }
/* Les pages se déplient en douceur (hauteur animée sans saut) */
.menu-mobile__pages { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--doux); }
.menu-mobile__pages > ul { overflow: hidden; padding-left: 14px; }
.menu-mobile__famille.est-deplie .menu-mobile__pages { grid-template-rows: 1fr; }
.menu-mobile__pages li:last-child { padding-bottom: 14px; }
.menu-mobile__pages a { display: block; padding-block: 0.375rem; color: var(--texte); font-size: 1.0625rem; font-weight: 600; }
.menu-mobile__pages a.menu-mobile__tout { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--rouge); font-size: 0.875rem; font-weight: 700; }
.menu-mobile__autres { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.menu-mobile__autres a { display: block; padding-block: 6px; color: var(--vert); font-size: 1.0625rem; font-weight: 700; }
.menu-mobile__bas { display: grid; gap: 14px; margin-top: auto; padding-top: 28px; }
.menu-mobile__bas .bouton { justify-content: space-between; box-shadow: var(--ombre-bouton); }
.menu-mobile__tel { color: var(--noir); font-size: 1.25rem; font-weight: 900; }
/* En-tête pendant que le menu est ouvert : même gris que le menu (y compris sur la page Contact) */
.entete.menu-est-ouvert { background: var(--fond-clair); }
.entete--sombre.menu-est-ouvert .burger__barres::before, .entete--sombre.menu-est-ouvert .burger__barres::after { background: var(--vert); }


/* ==========================================================================
   5. SECTIONS DE LA PAGE D'ACCUEIL
   ========================================================================== */

/* ---- 02 · Ouverture -------------------------------------------------- */
.ouverture {
  /* Le texte s'aligne sur le conteneur (même marge que le header), la galerie va
     jusqu'au bord droit. 100cqw = largeur de la section : « 100% » serait calculé
     sur la colonne de texte et donnerait une marge trop petite sur grand écran. */
  container-type: inline-size;
  --bord: max(var(--marge), calc((100cqw - var(--largeur-contenu)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 48.6fr) minmax(0, 51.4fr);
  height: max(560px, var(--h-utile));
  background: var(--fond-clair);
  overflow: hidden;
}
.ouverture__texte {
  align-self: center;
  padding: 32px clamp(24px, 3.3vw, 48px) 32px var(--bord);
}
.ouverture__titre {
  margin-top: clamp(18px, 3svh, 34px);
  font-size: var(--t-h1);
  font-weight: 900;
  line-height: 0.92;
}
.ouverture__chapo {
  max-width: 29.375rem;
  margin-top: clamp(16px, 3svh, 34px);
  font-size: var(--t-chapo);
  font-weight: 600;
  line-height: 1.62;
}
.ouverture__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 34px;
  margin-top: clamp(24px, 4.6svh, 46px);
}
.ouverture__tel { display: grid; gap: 3px; line-height: 1.5; }
.ouverture__tel a { color: var(--noir); font-size: clamp(1.375rem, 1.8vw, 1.625rem); font-weight: 800; white-space: nowrap; }
.ouverture__tel span { font-size: 0.9062rem; font-weight: 600; }
.ouverture__preuve {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 29.375rem;
  margin-top: clamp(24px, 4.6svh, 46px);
  padding-top: clamp(18px, 2.8svh, 28px);
  border-top: 1px solid #c2c7c7;
}
/* Note Google : le chiffre à gauche, un filet, puis les étoiles et la source */
.ouverture__note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 20px;
  row-gap: 6px;
  line-height: 1.4;
}
.ouverture__score {
  grid-row: span 2;
  padding-right: 20px;
  border-right: 1px solid var(--filet);
  color: var(--vert);
  font-size: clamp(2.5rem, min(3.4vw, 6svh), 3.25rem);
  font-weight: 800;
  line-height: 0.9;
  white-space: nowrap;
}
.ouverture__score small { margin-left: 0.1875rem; color: var(--texte); font-size: 0.42em; font-weight: 700; }
.ouverture__source { font-size: 0.9062rem; font-weight: 600; }
.etoiles { position: relative; display: block; width: 112px; height: 20px; }
.etoiles__fond, .etoiles__plein { position: absolute; inset: 0 auto 0 0; display: flex; gap: 3px; }
.etoiles__fond { color: rgba(46, 80, 81, 0.2); }
.etoiles__plein { width: var(--rempli); overflow: hidden; color: var(--vert); }
.etoiles svg { flex: none; fill: currentColor; }

/* Galerie défilante */
.galerie {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 13%, #000 87%, transparent);
  mask-image: linear-gradient(transparent, #000 13%, #000 87%, transparent);
}
.galerie__colonne {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: galerie-monte 70s linear infinite;
}
.galerie__colonne--descend { animation-name: galerie-descend; animation-duration: 80s; }
.galerie__colonne--lente { animation-duration: 90s; }
.galerie img {
  width: 100%;
  aspect-ratio: 232 / 284;
  object-fit: cover;
  border-radius: var(--arrondi);
}
/* Les photos sont doublées : on remonte de la moitié (+ un demi-espace) pour boucler sans saut */
@keyframes galerie-monte   { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 8px)); } }
@keyframes galerie-descend { from { transform: translateY(calc(-50% - 8px)); } to { transform: translateY(0); } }

/* ---- 04 · Repères ---------------------------------------------------- */
.reperes { padding-block: var(--pad-section); background: var(--fond-clair); }   /* exception voulue par Anouk (22/11) : le haut de l'accueil et ses chiffres forment un seul bloc clair */
.reperes__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.repere {
  display: grid;
  align-content: start;
  gap: 14px;
  position: relative;
  padding: 0 24px 0 clamp(20px, 2.8vw, 40px);
}
.repere::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 1px;
  background: var(--filet);
  transform-origin: top;
}
/* Arrivée des repères (la classe est-arrive est posée par main.js quand ils entrent à l'écran).
   Tout ce qui est caché au départ dépend de la classe « anime », posée par main.js lui-même :
   si le script ne se charge pas, tout reste visible. */
.repere:nth-child(2) { --delai: 0.15s; }
.repere:nth-child(3) { --delai: 0.3s; }
.anime .repere::before { transform: scaleY(0); transition: transform 1.1s var(--doux) var(--delai, 0s); }
.anime .repere__chiffre, .anime .repere__texte {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--doux) var(--delai, 0s), transform 1s var(--doux) var(--delai, 0s);
}
.anime .repere__texte { transition-delay: calc(var(--delai, 0s) + 0.2s); }
.anime .repere.est-arrive::before { transform: none; }
.anime .repere.est-arrive .repere__chiffre, .anime .repere.est-arrive .repere__texte { opacity: 1; transform: none; }
.repere__chiffre { color: var(--vert); font-size: clamp(2.75rem, min(5.8vw, 10svh), 5.75rem); font-weight: 800; line-height: 0.9; white-space: nowrap; font-variant-numeric: tabular-nums; }
.repere__texte { max-width: 34ch; }

/* ---- 05b · Bande photo ----------------------------------------------- */
/* La photo reste collée sous l'en-tête pendant que la section Familles monte
   et passe par-dessus. Elle s'assombrit et se resserre doucement en étant couverte
   (--couvert, de 0 à 1, calculé dans main.js). Cadrée en bas : on ne voit pas le visage. */
.recouvrement { position: relative; }
.bande-photo {
  position: sticky;
  top: var(--h-entete);
  z-index: 0;
  height: min(clamp(200px, 26.8vw, 460px), var(--h-utile));
  overflow: hidden;
  background: var(--vert-nuit);
}
.bande-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  /* --defile (0 → 1) : la photo descend doucement pendant le défilement (effet de profondeur).
     Agrandie de 12 % depuis le bas : le mouvement ne montre jamais le haut de la photo (le visage). */
  transform-origin: var(--origine-x, 50%) 100%;
  transform: translateY(calc(var(--defile, 0) * 11%)) scale(calc(1.12 + var(--couvert, 0) * 0.04));
  filter: brightness(calc(1 - var(--couvert, 0) * 0.5));
  will-change: transform;
}
.bande-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 16, 17, 0.42) 0%, rgba(10, 16, 17, 0.08) 45%, rgba(10, 16, 17, 0.3) 100%);
}
.recouvrement .familles { position: relative; z-index: 1; box-shadow: 0 -20px 44px rgba(22, 32, 33, 0.22); }

/* ---- 02 · Familles en 6 cartes photo (3 × 2), effet réalisations --------
   Choix d'Anouk (22-11) : la section dépasse un peu l'écran pour des photos plus grandes
   (cartes au format 5/4). Au survol : la photo zoome un peu, le dégradé
   remonte, le texte de la famille apparaît et la flèche passe en rouge. */
.familles--cartes { padding-block: calc(var(--pad-section) * 0.7); background: var(--fond-clair); }
.familles__haut { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(20px, 3.4svh, 56px); }
.familles__haut .entete-section { margin-bottom: 0; }
.familles__chapo { max-width: 21rem; padding-bottom: 6px; color: var(--texte); font-size: 1.0625rem; font-weight: 600; line-height: 1.5; }
.familles__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.7vw, 28px); }
.famille-carte {
  position: relative; display: flex; align-items: flex-end; aspect-ratio: 5 / 4; overflow: hidden;
  border-radius: var(--arrondi); background: var(--vert-nuit); color: var(--blanc); isolation: isolate;
}
.famille-carte img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--doux); }
.famille-carte::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22, 32, 33, 0.18) 0%, rgba(22, 32, 33, 0) 30%, rgba(22, 32, 33, 0.35) 60%, rgba(22, 32, 33, 0.88) 100%);
  transition: opacity 0.5s var(--doux);
}
.famille-carte::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(180deg, rgba(22, 32, 33, 0) 15%, rgba(22, 32, 33, 0.55) 55%, rgba(22, 32, 33, 0.94) 100%);
  transition: opacity 0.5s var(--doux);
}
.famille-carte__bas { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; width: 100%; padding: clamp(16px, 1.7vw, 24px); }
.famille-carte__titre { color: var(--blanc); font-size: clamp(1.5rem, min(2.1vw, 3.6svh), 1.875rem); font-weight: 800; line-height: 1.1; }
/* Texte de la famille : replié, il se déplie au survol (sans saut, par la hauteur de grille) */
.famille-carte__texte { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows 0.5s var(--doux); }
.famille-carte__detail {
  overflow: hidden; min-height: 0; max-width: 19rem; opacity: 0; transform: translateY(8px);
  color: rgba(255, 255, 255, 0.88); font-size: 0.9688rem; font-weight: 600; line-height: 1.4;
  transition: opacity 0.4s var(--doux), transform 0.5s var(--doux);
}
.famille-carte__detail > span { display: block; padding-top: 8px; }
.famille-carte__fleche {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: var(--blanc); color: var(--vert);
  transition: background-color 0.4s var(--doux), color 0.4s var(--doux), transform 0.4s var(--doux);
}
.famille-carte:hover img, .famille-carte:focus-visible img { transform: scale(1.05); }
.famille-carte:hover::before, .famille-carte:focus-visible::before { opacity: 1; }
.famille-carte:hover .famille-carte__texte, .famille-carte:focus-visible .famille-carte__texte { grid-template-rows: auto 1fr; }
.famille-carte:hover .famille-carte__detail, .famille-carte:focus-visible .famille-carte__detail { opacity: 1; transform: none; transition-delay: 0.08s; }
.famille-carte:hover .famille-carte__fleche, .famille-carte:focus-visible .famille-carte__fleche { background: var(--rouge); color: var(--blanc); transform: rotate(45deg); }
@media (max-width: 900px) {
  .familles__haut { display: block; }
  .familles__chapo { margin-top: 12px; padding-bottom: 0; font-size: 1rem; }
  .familles__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .famille-carte { aspect-ratio: 4 / 3; }
  .famille-carte__bas { padding: 12px; gap: 8px; }
  .famille-carte__titre { font-size: 1.125rem; }
  .famille-carte__detail { display: none; }
  .famille-carte__fleche { width: 32px; height: 32px; }
}

@media (max-width: 600px) { .familles__grille .famille-carte { aspect-ratio: 4 / 5; } }

/* ---- 06 · Professionnels --------------------------------------------- */
.pros {
  padding-block: calc(var(--pad-section) * 0.62);
  background: linear-gradient(90deg, var(--vert), var(--noir));
  color: rgba(255, 255, 255, 0.78);
}
.pros__grille {
  display: grid;
  grid-template-columns: minmax(0, 487fr) minmax(0, 702fr);
  align-items: stretch;           /* la photo prend la hauteur du texte */
  gap: clamp(32px, 4.1vw, 59px);
}
.pros__photo { position: relative; min-height: 280px; overflow: hidden; border-radius: var(--arrondi); }
.pros__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s var(--doux), transform 1.2s var(--doux);
}
.pros__photo img.est-visible { opacity: 1; transform: none; }
.pros__texte { min-width: 0; display: grid; align-content: center; gap: clamp(10px, 1.8svh, 26px); }
.pros .titre-section { font-size: clamp(1.875rem, min(3.3vw, 6svh), 3.125rem); }
.pros__chapo { font-size: clamp(1rem, 2.5svh, 1.125rem); line-height: 1.55; }
.onglets { display: flex; flex-wrap: wrap; gap: 8px; }
.onglet {
  height: 33px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: var(--blanc);
  font-size: 0.9062rem;
  font-weight: 700;
  transition: background-color 0.3s var(--doux), color 0.3s var(--doux), font-weight 0.3s var(--doux);
}
.onglet:hover { background: rgba(255, 255, 255, 0.1); }
.onglet[aria-selected='true'] { background: var(--blanc); color: var(--vert); }
.panneau a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(7px, 1.4svh, 16px);
  border-bottom: 1px solid var(--filet-clair);
  color: var(--blanc);
  font-size: clamp(1.125rem, 2.7svh, 1.25rem);
  font-weight: 700;
  line-height: 1.5;
  transition: padding 0.35s var(--doux);
}
.panneau a svg { color: var(--rouge-doux); flex: none; }
/* Chaque ligne : le nom en gras, puis le détail en plus petit */
.panneau a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
.panneau a svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.panneau__nom { line-height: 1.3; }
.panneau__detail { color: rgba(255, 255, 255, 0.66); font-size: 0.9688rem; font-weight: 600; line-height: 1.4; }
.panneau a:hover { padding-left: 6px; }
/* Les panneaux sont superposés : la zone prend la hauteur du plus long,
   et la section ne bouge pas quand on change d'onglet */
.panneaux { display: grid; }
.panneau { grid-area: 1 / 1; align-self: start; }
.panneau[hidden] { display: block; visibility: hidden; }
.panneau:not([hidden]) { animation: panneau-entre 0.35s var(--doux); }
@keyframes panneau-entre { from { opacity: 0; transform: translateY(6px); } }
.pros .bouton { justify-self: start; margin-top: 6px; }

/* ---- Réalisations (carrousel) ---------------------------------------- */
.realisations {
  container-type: inline-size;
  --bord: max(var(--marge), calc((100cqw - var(--largeur-contenu)) / 2));
  display: flex;
  flex-direction: column;
  height: var(--h-utile);
  padding-block: calc(var(--pad-section) * 0.5);
  background: var(--fond-moyen);
}
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(20px, 3.6svh, 40px); }
/* Titre, puis les filtres juste en dessous (demande d'Anouk) */
.realisations__haut { display: grid; justify-items: start; gap: clamp(14px, 2.4svh, 26px); }
.realisations__haut .filtres { margin-top: 0; }
.filtre {
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--vert);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color 0.3s var(--doux), color 0.3s var(--doux), font-weight 0.3s var(--doux);
}
.filtre:hover { background: var(--blanc); }
.filtre[aria-pressed='true'] { background: var(--rouge); color: var(--blanc); }

/* Onglets et filtres : texte plus gras au survol. Une copie invisible du texte, déjà
   en gras (data-texte), réserve la largeur : les boutons voisins ne bougent pas. */
.onglet, .filtre {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.onglet::after, .filtre::after {
  content: attr(data-texte);
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 900;
}
.onglet:hover, .onglet:focus-visible, .filtre:hover, .filtre:focus-visible { font-weight: 900; }

.carrousel {
  display: flex;
  gap: 20px;
  margin-top: clamp(16px, 2.6svh, 32px);
  padding-inline: var(--bord);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--bord);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  flex: 1;
  min-height: 0;
}
.carrousel::-webkit-scrollbar { display: none; }
/* Carrousel qui défile tout seul : pas d'aimantation sur les cartes (elle bloquerait le mouvement) */
.carrousel.est-auto { scroll-snap-type: none; }
.carte {
  position: relative;
  flex: none;
  height: 100%;
  aspect-ratio: 4 / 5;
  max-width: 82vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-radius: var(--arrondi);
  overflow: hidden;
  scroll-snap-align: start;
  color: var(--blanc);
  transition: opacity 0.35s var(--doux);
}
.carte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--doux); }
.carte::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(31, 38, 38, 0) 35%, rgba(31, 38, 38, 0.92)); transition: opacity 0.5s var(--doux); }
.carte:hover img { transform: scale(1.04); }
.carte__titre, .carte__texte { position: relative; z-index: 1; transition: opacity 0.4s var(--doux), transform 0.5s var(--doux); }
/* Au survol, les infos s'effacent : on ne voit plus que la photo */
.carte:hover::after { opacity: 0; }
.carte:hover .carte__titre, .carte:hover .carte__texte { opacity: 0; transform: translateY(10px); }
.carte:hover .carte__texte { transition-delay: 0s; }
.carte__titre { font-size: 1.875rem; font-weight: 800; line-height: 1.05; }
.carte__texte { color: rgba(255, 255, 255, 0.8); font-size: 0.9688rem; }
.carte.est-masquee { display: none; }

.realisations__pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(16px, 2.6svh, 32px);
}
.fleches { display: flex; gap: 10px; }
.fleche {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(46, 80, 81, 0.3);
  transition: transform 0.3s var(--doux), opacity 0.3s;
}
.fleche--avant { background: rgba(255, 255, 255, 0.7); color: var(--rouge); }
.fleche--avant svg { transform: rotate(180deg); }
.fleche--apres { background: var(--vert); color: var(--blanc); }
.fleche:hover { transform: scale(1.06); }
.fleche:disabled { opacity: 0.4; cursor: default; transform: none; }

/* ---- L'atelier (texte sur photo) ------------------------------------- */
.atelier {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(760px, var(--h-utile));
  padding-block: var(--pad-section);
  background: var(--noir);
  overflow: hidden;
}
.atelier__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.atelier::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--vert-nuit), rgba(22, 32, 33, 0.55) 75%, rgba(22, 32, 33, 0.05));
}
.atelier__contenu { position: relative; z-index: 2; }
.atelier__texte { display: grid; gap: 22px; max-width: 38.25rem; }
.atelier__chapo { max-width: 31.625rem; color: var(--blanc); font-size: clamp(1.1875rem, 1.53vw, 1.375rem); font-weight: 700; line-height: 1.4; }
.atelier__corps { max-width: 31.625rem; color: rgba(255, 255, 255, 0.78); font-size: 1.0625rem; line-height: 1.6; }
.atelier .bouton { justify-self: start; margin-top: 8px; }

/* ---- Avis Google ------------------------------------------------------ */
.avis {
  padding-block: calc(var(--pad-section) * 1.15);
  background: linear-gradient(160deg, var(--fond-clair), var(--fond-moyen) 71%);
}
.avis__entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.avis__entete .titre-section { margin-top: 18px; }
.bouton-avis {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 7px 7px 22px;
  border-radius: 999px;
  background: var(--vert);
  color: var(--blanc);
  font-size: 0.9688rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.3s var(--doux), font-weight 0.3s var(--doux);
}
.bouton-avis span { display: grid; place-items: center; width: 2.3125rem; height: 2.0625rem; border-radius: 999px; background: var(--rouge-doux); color: var(--vert); font-family: system-ui, sans-serif; font-size: 0.9375rem; }
.bouton-avis:hover, .bouton-avis:focus-visible { background: var(--noir); font-weight: 800; }
.avis__grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(32px, 6svh, 72px);
  border-top: 1px solid rgba(46, 80, 81, 0.2);
}
.avis__carte { display: grid; align-content: start; gap: clamp(18px, 3svh, 28px); padding: clamp(32px, 5svh, 52px) clamp(24px, 2.8vw, 44px) 8px; }
.avis__carte:first-child { padding-left: 0; }
.avis__carte + .avis__carte { border-left: 1px solid rgba(46, 80, 81, 0.2); }
.avis__etoiles { color: rgba(46, 80, 81, 0.35); font-family: system-ui, sans-serif; font-size: 0.8125rem; letter-spacing: 0.0625rem; line-height: 1; }
.avis__citation { color: var(--vert); font-size: 1.25rem; font-weight: 600; line-height: 1.5; }
.avis__auteur { display: flex; align-items: center; gap: 12px; line-height: 1.5; }
.avis__initiale { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--vert); color: var(--blanc); font-size: 0.9375rem; font-weight: 700; }
.avis__auteur strong { display: block; color: var(--vert); font-size: 0.9375rem; font-weight: 700; }
.avis__auteur small { display: block; font-size: 0.8125rem; }

/* ---- 07 · Questions fréquentes --------------------------------------- */
.faq {
  padding-block: var(--pad-section);
  background: var(--fond-clair);
  border-top: 1px solid rgba(46, 80, 81, 0.18);
}
.faq__grille { display: grid; grid-template-columns: minmax(0, 507fr) minmax(0, 717fr); gap: 24px; align-items: start; }
.faq__titre { position: sticky; top: calc(var(--h-entete) + 24px); display: grid; gap: 16px; }
.question { border-top: 1px solid var(--filet); }
.question__bouton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  position: relative;
  padding-block: clamp(16px, 2.6svh, 24px);
  color: var(--vert);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}
/* Survol d'une question : le texte s'épaissit et glisse un peu, le signe tourne et passe en rouge.
   L'épaississement est dessiné par un contour du texte (text-stroke) et pas par la graisse
   de la police : la largeur des mots ne change pas, donc les phrases ne passent jamais à la ligne. */
.question__texte {
  -webkit-text-stroke: 0 currentColor;
  transition: transform 0.4s var(--doux), -webkit-text-stroke-width 0.3s var(--doux);
}
.question__bouton:hover .question__texte,
.question__bouton:focus-visible .question__texte { -webkit-text-stroke-width: 0.7px; transform: translateX(8px); }
.est-ouverte .question__texte { -webkit-text-stroke-width: 0.7px; }
.question__bouton:hover .question__signe { color: var(--rouge); transform: rotate(90deg); }
/* Signe + (fermé) / – (ouvert) */
.question__signe { position: relative; width: 14px; height: 14px; flex: none; transition: transform 0.4s var(--doux), color 0.3s var(--doux); }
.question__signe::before, .question__signe::after {
  content: ''; position: absolute; inset: 0; margin: auto; background: currentColor;
  transition: transform 0.35s var(--doux), background-color 0.35s var(--doux);
}
.question__signe::before { width: 14px; height: 2px; }
.question__signe::after { width: 2px; height: 14px; }
.est-ouverte .question__signe { color: var(--rouge); }
.est-ouverte .question__signe::after { transform: scaleY(0); }
/* Ouverture fluide : la réponse passe de 0 à sa hauteur réelle */
.question__reponse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--doux);
}
.question__reponse > div { overflow: hidden; }
.question__reponse p { padding-bottom: clamp(16px, 2.6svh, 24px); line-height: 1.6; }
.est-ouverte .question__reponse { grid-template-rows: 1fr; }
.js .question:not(.est-ouverte) .question__reponse > div { visibility: hidden; transition: visibility 0s 0.4s; }


/* ==========================================================================
   5b. PAGE CONTACT
   Le haut de page est vert : l'en-tête est transparent dessus (logo et liens
   en blanc). Dès qu'on fait défiler, il prend le même fond gris clair flouté
   que les autres pages, et logo, liens et bouton repassent en vert.
   Ces pages utilisent .entete__logo--double (logo blanc + logo vert).
   ========================================================================== */
.entete--sombre:not(.a-defile):not(.menu-est-ouvert) .nav__lien { color: rgba(255, 255, 255, 0.78); }
.entete--sombre:not(.a-defile):not(.menu-est-ouvert) .nav__lien:hover, .entete--sombre:not(.a-defile):not(.menu-est-ouvert) .nav__lien:focus-visible, .entete--sombre:not(.a-defile):not(.menu-est-ouvert) .nav__lien[aria-expanded='true'], .entete--sombre:not(.a-defile):not(.menu-est-ouvert) .nav__lien[aria-current='page'] { color: var(--blanc); }
.entete--sombre:not(.a-defile):not(.menu-est-ouvert) .nav__filet { background: rgba(255, 255, 255, 0.22); }
.entete--sombre:not(.a-defile):not(.menu-est-ouvert) .bouton-entete { background: var(--blanc); color: var(--vert); }
.entete--sombre:not(.a-defile):not(.menu-est-ouvert) .bouton-entete:hover, .entete--sombre:not(.a-defile):not(.menu-est-ouvert) .bouton-entete:focus-visible { background: var(--fond-clair); }
.entete--sombre:not(.a-defile):not(.menu-est-ouvert) .bouton-entete__point { background: var(--vert); color: var(--blanc); }
.entete--sombre:not(.a-defile):not(.menu-est-ouvert) .burger__barres, .entete--sombre:not(.a-defile):not(.menu-est-ouvert) .burger__barres::before, .entete--sombre:not(.a-defile):not(.menu-est-ouvert) .burger__barres::after { background: var(--blanc); }
.entete--sombre .burger[aria-expanded='true'] .burger__barres { background: transparent; }
/* Logo : blanc sur le vert, vert dès que le fond clair apparaît */
.entete--sombre.a-defile .logo-clair, .entete--sombre.menu-est-ouvert .logo-clair { opacity: 0; }
.entete--sombre.a-defile .logo-fonce, .entete--sombre.menu-est-ouvert .logo-fonce { opacity: 1; }
.entete--sombre .bouton-entete { transition: background-color 0.35s var(--doux), color 0.35s var(--doux), font-weight 0.3s var(--doux); }
.entete--sombre .bouton-entete__point { transition: width 0.4s var(--doux), height 0.4s var(--doux), background-color 0.35s var(--doux); }

/* Haut de page : passe sous l'en-tête pour que le dégradé commence tout en haut */
.contact-haut {
  margin-top: calc(-1 * var(--h-entete));
  padding: calc(var(--h-entete) + clamp(12px, 2.6svh, 48px)) 0 clamp(8px, calc(12svh - 76px), 100px);
  background: linear-gradient(147deg, var(--vert), var(--vert-nuit) 71%);
  color: rgba(255, 255, 255, 0.8);
}
/* Sur ordinateur, le haut de page fait exactement la hauteur de l'écran (en-tête compris),
   avec le contenu centré verticalement */
@media (min-width: 1101px) {
  .contact-haut { display: grid; align-content: center; min-height: 100svh; }
}
.contact-haut__grille {
  display: grid;
  grid-template-columns: minmax(0, 560fr) minmax(0, 612fr);
  justify-content: space-between;
  align-items: start;
  gap: clamp(32px, 5.5vw, 76px);
}
.contact-haut__texte { display: grid; gap: clamp(14px, 2.6svh, 28px); align-content: start; }

/* Fil d'Ariane */
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.375rem 0.625rem; font-size: 0.9062rem; font-weight: 600; }
.ariane li + li::before { content: '›'; margin-right: 10px; color: rgba(255, 255, 255, 0.45); }
.ariane a { color: rgba(255, 255, 255, 0.7); transition: color 0.25s var(--doux); }
.ariane a:hover { color: var(--blanc); }
.ariane [aria-current] { color: var(--blanc); }
.contact-haut .ariane { margin-bottom: clamp(4px, 2.4svh, 40px); }

.contact-haut__titre { color: var(--blanc); font-size: clamp(2.375rem, min(4.4vw, 7.6svh), 4.125rem); font-weight: 800; line-height: 1.04; }
.contact-haut__chapo { max-width: 34em; font-size: clamp(1.0312rem, 1.3vw, 1.1875rem); line-height: 1.6; }
.contact-haut__note {
  max-width: 34em;
  padding-left: 16px;
  border-left: 2px solid var(--rouge-doux);
  color: var(--blanc);
  font-size: 0.9688rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Coordonnées */
.coordonnees { display: grid; gap: clamp(12px, 2.2svh, 22px); margin-top: clamp(4px, 2svh, 24px); }
.coordonnees li { display: flex; align-items: center; gap: 16px; }
.coordonnees__icone {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--blanc);
}
.coordonnees__etiquette { margin-bottom: 0.125rem; color: rgba(255, 255, 255, 0.6); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.coordonnees a, .coordonnees address { color: var(--blanc); font-size: 1.0625rem; font-style: normal; font-weight: 600; transition: opacity 0.25s var(--doux); }
.coordonnees a:hover { opacity: 0.75; }
.coordonnees .coordonnees__tel { font-size: clamp(1.375rem, 1.8vw, 1.625rem); font-weight: 900; }

/* Carte du formulaire */
.formulaire {
  scroll-margin-top: calc(var(--h-entete) + 16px);
  padding: clamp(18px, 2.8svh, 40px) clamp(22px, 3vw, 44px);
  border-radius: var(--arrondi);
  background: var(--blanc);
  color: var(--texte);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.formulaire__form { display: grid; gap: clamp(7px, 1.3svh, 16px); }
.formulaire__entete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.formulaire__titre { font-size: clamp(1.5rem, min(2.2vw, 4svh), 2rem); font-weight: 800; }
.formulaire__legende { font-size: 0.8438rem; }
.formulaire__legende span, .champ__requis { color: var(--rouge); }

/* Champs */
.champs-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.champ { display: grid; gap: clamp(4px, 0.7svh, 6px); }
.champ label { color: var(--noir); font-size: 0.9375rem; font-weight: 700; }
.champ input, .champ textarea {
  width: 100%;
  height: clamp(40px, 5.2svh, 52px);
  padding: 0 16px;
  border: 1px solid rgba(46, 80, 81, 0.22);
  border-radius: var(--arrondi);
  background: #f2f3f3;
  color: var(--noir);
  font: inherit;
  font-size: 1rem;               /* 16 px minimum : pas de zoom automatique sur iPhone */
  font-weight: 600;
  transition: border-color 0.25s var(--doux), background-color 0.25s var(--doux), box-shadow 0.25s var(--doux);
}
.champ textarea { height: clamp(62px, 9.6svh, 112px); padding: 12px 16px; line-height: 1.5; resize: vertical; }
.champ input::placeholder, .champ textarea::placeholder { color: #7d8788; font-weight: 500; }
.champ input:hover, .champ textarea:hover { border-color: rgba(46, 80, 81, 0.45); }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--vert); background: var(--blanc); box-shadow: 0 0 0 3px rgba(46, 80, 81, 0.15); }
.champ [aria-invalid='true'] { border-color: var(--rouge); background: #fff6f6; }
.champ__erreur { color: var(--rouge); font-size: 0.875rem; font-weight: 600; }
.champ__erreur:empty { display: none; }

/* Case à cocher du consentement */
.champ--case { grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 12px; }
.champ--case input { width: 22px; height: 22px; margin-top: 1px; padding: 0; accent-color: var(--vert); cursor: pointer; }
.champ--case label { font-size: 0.875rem; font-weight: 600; line-height: 1.5; color: var(--texte); }
.champ--case label a { color: var(--vert); text-decoration: underline; text-underline-offset: 2px; }
.champ--case .champ__erreur { grid-column: 2; }

/* Fichiers joints */
.fichiers { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.fichiers__bouton { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--vert); font-size: 0.9375rem; font-weight: 800; cursor: pointer; transition: opacity 0.25s var(--doux); }
.fichiers__bouton:hover { opacity: 0.75; }
#fichiers:focus-visible + .fichiers__bouton { outline: 2px solid var(--rouge); outline-offset: 3px; border-radius: 4px; }
.fichiers__aide { font-size: 0.8438rem; }
.fichiers__liste { flex-basis: 100%; display: grid; gap: 0.125rem; font-size: 0.875rem; font-weight: 600; color: var(--vert); }
.fichiers__liste:empty { display: none; }
.fichiers .champ__erreur { flex-basis: 100%; }

/* Champ piège anti-robots : hors de l'écran */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Bouton d'envoi : toute la largeur, la pastille à droite */
.bouton--envoi { justify-content: space-between; width: 100%; margin-top: 2px; padding-block: clamp(8px, 1.2svh, 12px); }
.bouton--envoi:hover, .bouton--envoi:focus-visible { margin-right: 0; }   /* pas d'allongement : il prend déjà toute la largeur */
.bouton--envoi:disabled { opacity: 0.6; cursor: wait; }

/* Message après l'envoi */
.formulaire__message { padding: 0.875rem 1rem; border-radius: var(--arrondi); font-size: 0.9375rem; font-weight: 600; line-height: 1.5; }
.formulaire__message a { text-decoration: underline; text-underline-offset: 2px; }
.formulaire__message--ok { background: #e8f1ef; color: var(--vert); }
.formulaire__message--erreur { background: #fdeced; color: #a3121f; }
.formulaire__message--info { background: var(--fond-clair); color: var(--vert); }

@media (max-width: 1100px) {
  .contact-haut__grille { grid-template-columns: 1fr; }
  .contact-haut__texte { max-width: 40rem; }
}
@media (max-width: 560px) {
  .champs-duo { grid-template-columns: 1fr; }
  .formulaire { border-radius: var(--arrondi); }
}


/* ==========================================================================
   5c. PAGES OUVRAGES (Escaliers, puis Garde-corps, Portails, Verrières…)
   Mêmes blocs d'une page à l'autre : on change les textes et les photos.
   ========================================================================== */
/* Fil d'Ariane sur fond clair */
.ariane--clair li + li::before { color: rgba(46, 80, 81, 0.4); }
.ariane--clair a { color: var(--texte); }
.ariane--clair a:hover { color: var(--vert); }
.ariane--clair [aria-current] { color: var(--vert); }
.ouverture--page .ariane { margin-bottom: clamp(18px, 5svh, 64px); }

/* Ouverture : galerie à 2 colonnes qui s'arrête au bord du contenu, photos arrondies */
.ouverture--page .galerie { margin-right: var(--bord); }
.galerie--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.galerie--2 img { aspect-ratio: auto; height: auto; border-radius: var(--arrondi); }
.ouverture__titre--page { margin-top: clamp(0.875rem, 2.4svh, 1.75rem); font-size: clamp(2.5rem, min(4.2vw, 8svh), 4rem); font-weight: 900; line-height: 1.02; }
.ouverture__chapo--fort { max-width: 32.5rem; color: var(--noir); }
.ouverture--page .ouverture__chapo + .ouverture__chapo { margin-top: clamp(10px, 1.8svh, 18px); }

/* Ouverture sur vert dégradé : pages ouvrages (Escaliers, Garde-corps, Portails, Verrières, Portes & fenêtres).
   À poser avec .ariane (sans --clair), .surtitre--doux, .bouton--clair et un en-tête .entete--sombre. */
.ouverture--vert { background: linear-gradient(147deg, var(--vert), var(--vert-nuit) 71%); color: rgba(255, 255, 255, 0.72); }
.ouverture--vert .ouverture__titre { color: var(--blanc); }
.ouverture--vert .ouverture__chapo { color: rgba(255, 255, 255, 0.72); }
.ouverture--vert .ouverture__chapo--fort { color: rgba(255, 255, 255, 0.92); }
.ouverture--vert .lien-fleche { color: var(--blanc); }
/* Avec un en-tête .entete--sombre : le vert passe sous l'en-tête transparent et remplit tout l'écran.
   La galerie démarre sous l'en-tête pour que les liens du menu restent lisibles. */
.entete--sombre ~ main > .ouverture--vert { margin-top: calc(-1 * var(--h-entete)); }
.entete--sombre ~ main > .ouverture--vert .ouverture__texte { padding-top: calc(40px + var(--h-entete)); }
@media (min-width: 901px) {
  .entete--sombre ~ main > .ouverture--vert { height: max(560px, 100svh); }
  .entete--sombre ~ main > .ouverture--vert .ouverture__texte { padding-top: calc(32px + var(--h-entete)); }
  .entete--sombre ~ main > .ouverture--vert .galerie { margin-top: var(--h-entete); height: calc(100% - var(--h-entete)); }
}

/* Lien texte en capitales avec flèche */
.lien-fleche {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--vert); font-size: 0.875rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.lien-fleche:hover { gap: 14px; }

/* ---- Familles en cartes blanches (photo en retrait) ---- */
.types { padding-block: calc(var(--pad-section) * 0.7); background: var(--fond-clair); }
/* Sur ordinateur, la section prend toute la hauteur de l'écran : les photos s'agrandissent pour la remplir */
@media (min-width: 901px) {
  .types { display: grid; align-content: center; min-height: var(--h-utile); }
  .types .type-carte__photo { height: clamp(140px, calc(var(--h-utile) - var(--pad-section) * 1.4 - 24.0625rem), 440px); }
  /* Portails : la ligne « pergolas et marquises » sous les cartes prend de la hauteur */
  .types:has(.types__plus) .type-carte__photo { height: clamp(140px, calc(var(--h-utile) - var(--pad-section) * 1.4 - 28.5rem), 440px); }
}
.types__entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.types__entete .titre-section { max-width: 15em; }
.types__intro { max-width: 22em; font-size: 1.0625rem; line-height: 1.55; }
.types__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(20px, 4svh, 52px); }
.types__grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* pages à 3 sous-pages (Escaliers, Portes & fenêtres) */
.types__grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* pages à 2 sous-pages (Garde-corps, Portails, Verrières) */
/* Ligne sous les cartes (Portails : « L’atelier fabrique aussi des pergolas et des marquises ») */
.types__plus {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  margin-top: clamp(20px, 3svh, 32px); padding-top: clamp(16px, 2.4svh, 24px);
  border-top: 1px solid var(--filet); font-size: 1rem; font-weight: 600;
}

/* =====================================================================
   PAGE L'ATELIER (maquette « L’ATELIER · TEST 1 · Plein cadre »)
   ===================================================================== */

/* ---- Haut de page : photo plein cadre sous l'en-tête transparent ---- */
.ouverture-photo {
  position: relative; display: grid; align-content: end; overflow: hidden;
  min-height: max(560px, 100svh); padding-bottom: clamp(20px, 3.4svh, 36px);
  background: var(--vert-nuit); color: var(--blanc);
}
.entete--sombre ~ main > .ouverture-photo { margin-top: calc(-1 * var(--h-entete)); }
.ouverture-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.ouverture-photo::before {   /* voile : sombre à gauche pour lire le texte, léger à droite */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(22, 32, 33, 0.92), rgba(22, 32, 33, 0.55) 55%, rgba(22, 32, 33, 0.1));
}
.ouverture-photo > :not(.ouverture-photo__img) { position: relative; z-index: 2; }
.ouverture-photo__contenu { padding-top: calc(var(--h-entete) + clamp(20px, 4svh, 56px)); padding-bottom: clamp(24px, 6svh, 72px); }
.ouverture-photo .ariane { margin-bottom: clamp(18px, 4svh, 40px); }
.ouverture-photo .surtitre { margin-bottom: clamp(12px, 2svh, 22px); }
.ouverture-photo__titre { max-width: 9.6em; color: var(--blanc); font-size: var(--t-h1); font-weight: 900; line-height: 0.96; }
.ouverture-photo__chapo { max-width: 37.5rem; margin-top: clamp(14px, 2.6svh, 26px); color: rgba(255, 255, 255, 0.86); font-size: var(--t-chapo); font-weight: 600; line-height: 1.5; }
.ouverture-photo .ouverture__actions { margin-top: clamp(20px, 3.6svh, 36px); }
.lien-fleche--blanc { color: var(--blanc); }
/* Repères en bas de la photo : 3 colonnes séparées par un filet clair */
.reperes-photo {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px;
  padding-top: clamp(16px, 2.6svh, 26px); border-top: 1px solid rgba(255, 255, 255, 0.22); list-style: none;
}
.reperes-photo li { display: grid; gap: 4px; }
.reperes-photo li:nth-child(n+2) { justify-items: start; }
.reperes-photo strong { color: var(--blanc); font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.reperes-photo li > span { color: rgba(255, 255, 255, 0.65); font-size: 0.9375rem; font-weight: 600; }   /* pas le chiffre qui compte, dans le strong */

/* Les ouvrages (page L'atelier) : deux listes courtes, liens sobres */
.ouvrages-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 4px; }
.ouvrages-liste__titre { margin-bottom: 8px; color: var(--rouge); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ouvrages-liste ul { list-style: none; border-top: 1px solid var(--filet); }
.ouvrages-liste a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--filet);
  color: var(--vert); font-size: 1.125rem; font-weight: 700; transition: color 0.3s var(--doux), padding 0.4s var(--doux);
}
.ouvrages-liste a::after { content: '→'; color: var(--rouge); opacity: 0; transform: translateX(-6px); transition: opacity 0.3s var(--doux), transform 0.4s var(--doux); }
.ouvrages-liste a:hover { padding-left: 6px; }
.ouvrages-liste a:hover::after { opacity: 1; transform: none; }
.ouvrages-liste li > span { display: block; padding: clamp(5px, 1.1svh, 9px) 0; border-bottom: 1px solid var(--filet); color: var(--vert); font-size: 1.125rem; font-weight: 700; }
@media (min-width: 901px) and (max-height: 780px) { .ouvrages-liste li > span { padding: 4px 0; font-size: 1rem; } .ouvrages-liste__titre { margin-bottom: 4px; } }
@media (max-width: 560px) { .ouvrages-liste { gap: 16px; } .ouvrages-liste a, .ouvrages-liste li > span { font-size: 1rem; padding: 8px 0; } .ouvrages-liste a::after { display: none; } }

/* Variante du bloc texte | photos sur fond gris moyen */
.garde.garde--moyen { background: var(--fond-moyen); }

/* ---- Les cinq étapes : photo qui change | liste à filets ------------- */

/* ---- L'atelier en images : pellicule qui défile en continu ----------- */
.pellicule-section { padding-block: calc(var(--pad-section) * 0.8); background: linear-gradient(147deg, var(--vert), var(--vert-nuit) 71%); overflow: hidden; }   /* sur vert : surtitre en rouge doux, titre en blanc */
.pellicule-section .titre-section { margin-top: 1rem; }
.pellicule { margin-top: clamp(24px, 4.4svh, 44px); overflow: hidden; }
.pellicule__bande { display: flex; gap: 16px; width: max-content; animation: pellicule-defile 70s linear infinite; }
.pellicule__copie { display: contents; }
.pellicule img { flex: none; width: auto; height: clamp(220px, 38svh, 380px); border-radius: var(--arrondi); object-fit: cover; }
@keyframes pellicule-defile { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
.pellicule__note { margin-top: 18px; color: rgba(255, 255, 255, 0.75); font-size: 0.9375rem; font-weight: 600; }

/* ---- Informations légales : petit bloc -------------------------------- */
.infos { padding-block: calc(var(--pad-section) * 0.65); background: var(--fond-moyen); }   /* fond moyen : jamais deux sections du même gris à la suite */
.infos__grille { display: grid; grid-template-columns: minmax(0, 400fr) minmax(0, 752fr); gap: clamp(32px, 6.6vw, 96px); align-items: start; }
.infos__titre { display: grid; gap: 14px; justify-items: start; }
.infos__h2 { color: var(--vert); font-size: 1.875rem; font-weight: 800; line-height: 1.15; }
.infos__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; }
.infos__liste div { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(31, 38, 38, 0.15); }
.infos__liste dt { color: var(--texte); font-size: 0.7812rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.infos__liste dd { color: var(--noir); font-size: 1rem; font-weight: 600; }
.infos__liste a:hover { color: var(--vert); }

@media (max-width: 900px) {
  .reperes-photo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reperes-photo li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .infos__grille { grid-template-columns: 1fr; }
  .infos__liste { grid-template-columns: 1fr; }
}

/* ---- Animations de la page L'atelier --------------------------------
   Toutes coupées si le visiteur a demandé moins d'animations (voir chapitre 8).
   Rien ne bloque le défilement. */
/* Photos qui bougent un peu moins vite que la page (profondeur) */
.parallaxe { will-change: transform; transform: translate3d(0, var(--decalage, 0px), 0) scale(1.08); }
/* Entrée du haut de page : la photo se pose, puis le titre s'écrit, puis le reste monte */
.anime [data-entree] .ouverture-photo__img { transform: translate3d(0, var(--decalage, 0px), 0) scale(1.16); transition: transform 2.4s var(--doux); }
.anime [data-entree].est-entree .ouverture-photo__img { transform: translate3d(0, var(--decalage, 0px), 0) scale(1.08); }
.anime [data-entree].est-entree .ouverture-photo__img.est-posee { transition: none; }
.anime [data-entree] .ariane, .anime [data-entree] .surtitre,
.anime [data-entree] .ouverture-photo__chapo, .anime [data-entree] .ouverture__actions {
  opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--doux), transform 0.9s var(--doux);
}
.anime [data-entree].est-entree .ariane { opacity: 1; transform: none; transition-delay: 0.1s; }
.anime [data-entree].est-entree .surtitre { opacity: 1; transform: none; transition-delay: 0.2s; }
.anime [data-entree].est-entree .ouverture-photo__chapo { opacity: 1; transform: none; transition-delay: var(--apres-titre, 1s); }
.anime [data-entree].est-entree .ouverture__actions { opacity: 1; transform: none; transition-delay: calc(var(--apres-titre, 1s) + 0.15s); }
/* Repères : le filet se dessine de gauche à droite, puis chaque repère monte à son tour */
.anime [data-entree] .reperes-photo { border-top-color: transparent; position: relative; }
.anime [data-entree] .reperes-photo::before {
  content: ''; position: absolute; left: var(--marge-conteneur, 0); right: var(--marge-conteneur, 0); top: -1px; height: 1px;
  background: rgba(255, 255, 255, 0.22); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--doux);
}
.anime [data-entree].est-entree .reperes-photo::before { transform: none; transition-delay: calc(var(--apres-titre, 1s) + 0.2s); }
.anime [data-entree] .reperes-photo li { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--doux), transform 0.8s var(--doux); }
.anime [data-entree].est-entree .reperes-photo li { opacity: 1; transform: none; }
.anime [data-entree].est-entree .reperes-photo li:nth-child(1) { transition-delay: calc(var(--apres-titre, 1s) + 0.35s); }
.anime [data-entree].est-entree .reperes-photo li:nth-child(2) { transition-delay: calc(var(--apres-titre, 1s) + 0.5s); }
.anime [data-entree].est-entree .reperes-photo li:nth-child(3) { transition-delay: calc(var(--apres-titre, 1s) + 0.65s); }
.anime [data-entree].est-entree .reperes-photo li:nth-child(4) { transition-delay: calc(var(--apres-titre, 1s) + 0.8s); }
/* Titre qui s'écrit lettre par lettre : rien d'affiché (ni grisé) avant son tour */
.lettre { display: inline-block; opacity: 0; transform: translateY(0.18em); transition: opacity 0.35s var(--doux), transform 0.5s var(--doux); transition-delay: calc(var(--i) * 22ms + 0.25s); }
.mot { display: inline-block; white-space: nowrap; }
.est-ecrit .lettre { opacity: 1; transform: none; }
/* Photo qui se dévoile en montant pendant le défilement (suit --p, comme les apparitions) */
.anime .devoile { opacity: 1; transform: none; clip-path: inset(calc((1 - var(--p, 0)) * 100%) 0 0 0 round var(--arrondi)); }
.anime .devoile--tard { clip-path: inset(calc((1 - var(--p, 0)) * 100%) 0 0 0 round var(--arrondi)); transition: clip-path 0.2s linear; }
.anime .devoile--cote { clip-path: inset(0 0 0 calc((1 - var(--p, 0)) * 100%) round var(--arrondi)); }
.anime .devoile img, .anime img.devoile { transform: scale(calc(1.1 - var(--p, 0) * 0.1)); }
@media (prefers-reduced-motion: reduce) {
  .parallaxe, .anime [data-entree] .ouverture-photo__img { transform: none !important; }
  .lettre { opacity: 1; transform: none; transition: none; }
  .anime [data-entree] .ariane, .anime [data-entree] .surtitre, .anime [data-entree] .ouverture-photo__chapo,
  .anime [data-entree] .ouverture__actions, .anime [data-entree] .reperes-photo li { opacity: 1; transform: none; }
  .anime [data-entree] .reperes-photo::before { transform: none; }
  .anime .devoile, .anime .devoile--cote, .anime .devoile--tard { clip-path: none; }
}

/* ---- Matières et finitions (photo | liste) ---------------------------
   La photo de gauche change selon la matière survolée. La ligne active
   passe en vert très gras avec un petit repère rouge (fond clair). */
.matieres { padding-block: calc(var(--pad-section) * 0.7); background: var(--fond-moyen); }   /* fond moyen : jamais deux sections du même gris à la suite */
.matieres__grille { display: grid; grid-template-columns: minmax(0, 560fr) minmax(0, 616fr); align-items: center; gap: clamp(32px, 5.6vw, 72px); }
.matieres__photo {
  position: relative; overflow: hidden; border-radius: var(--arrondi);
  height: clamp(320px, calc(var(--h-utile) - var(--pad-section) * 1.4), 640px);
  background: var(--fond-clair);
}
.matieres__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 0.6s var(--doux), transform 1.2s var(--doux);
}
.matieres__photo img.est-visible { opacity: 1; transform: none; }
.matieres__texte { min-width: 0; }
.matieres__texte .titre-section { margin-top: 1rem; }
.matieres__chapo { max-width: 37.5rem; margin-top: clamp(8px, 1.6svh, 16px); font-size: 1.125rem; font-weight: 600; line-height: 1.5; }
.matieres__liste { margin-top: clamp(18px, 3svh, 32px); border-bottom: 1px solid rgba(31, 38, 38, 0.15); }
.matiere {
  position: relative; display: grid; gap: 4px;
  padding: clamp(10px, 1.8svh, 20px) 0; border-top: 1px solid rgba(31, 38, 38, 0.15);
  cursor: default; outline: none;
  transition: padding 0.35s var(--doux), border-color 0.35s var(--doux);
}
.matiere::before {
  content: ''; position: absolute; left: 0; top: clamp(14px, 2.4svh, 24px); bottom: clamp(14px, 2.4svh, 24px);
  width: 3px; background: var(--rouge); transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s var(--doux);
}
.matiere__nom { color: rgba(46, 80, 81, 0.55); font-size: clamp(1.25rem, 3.3svh, 1.625rem); font-weight: 800; line-height: 1.15; transition: color 0.35s var(--doux), font-size 0.35s var(--doux), font-weight 0.35s var(--doux); }
.matiere__detail, .matiere__note { color: rgba(90, 101, 102, 0.7); font-size: 1rem; font-weight: 600; line-height: 1.4; transition: color 0.35s var(--doux); }
.matiere.est-active { padding-left: 23px; border-top-color: rgba(31, 38, 38, 0.3); }
.matiere.est-active::before { transform: scaleY(1); }
.matiere.est-active .matiere__nom { color: var(--vert); font-size: clamp(1.375rem, 3.8svh, 1.875rem); font-weight: 900; }
.matiere.est-active .matiere__detail, .matiere.est-active .matiere__note { color: var(--noir); }
.matiere:focus-visible .matiere__nom { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .matieres__grille { grid-template-columns: 1fr; }
  .matieres__photo { height: min(320px, 50svh); order: 2; }
}
.type-carte__lien {
  display: flex; flex-direction: column; height: 100%;
  padding: 10px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--arrondi);
  background: rgba(255, 255, 255, 0.45);
  transition: background-color 0.4s var(--doux), box-shadow 0.4s var(--doux), transform 0.4s var(--doux);
}
.type-carte__photo { position: relative; display: block; height: clamp(120px, 23svh, 300px); overflow: hidden; border-radius: var(--arrondi); }
.type-carte__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--doux); }
.type-carte__numero {
  position: absolute; top: 12px; left: 12px;
  display: grid; place-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--blanc); color: var(--rouge); font-size: 0.75rem; font-weight: 700;
}
.type-carte__titre { margin: clamp(0.875rem, 2.2svh, 1.375rem) 0.625rem 0.5rem; font-size: 1.1875rem; font-weight: 800; line-height: 1.2; }
.type-carte__texte { margin-inline: 0.625rem; font-size: 0.9375rem; line-height: 1.55; }
.type-carte__pied { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: auto 10px 0; padding-top: clamp(10px, 2svh, 18px); }
.type-carte__voir {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0;
  border-radius: 999px;
  color: var(--vert); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  /* au repos : « Voir la page » à gauche, flèche ronde à droite (maquette Escaliers 102:18) */
  transition: background-color 0.35s var(--doux), color 0.35s var(--doux), padding 0.35s var(--doux), opacity 0.3s var(--doux);
}
.type-carte__voir svg { width: 0; opacity: 0; transition: width 0.35s var(--doux), opacity 0.35s var(--doux); }
.type-carte__rond {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(46, 80, 81, 0.35); color: var(--vert);
  transition: opacity 0.3s var(--doux), transform 0.4s var(--doux);
}
/* Survol : la carte s'éclaircit, « Voir la page » devient un bouton vert à droite */
.type-carte__lien:hover, .type-carte__lien:focus-visible { background: rgba(255, 255, 255, 0.85); box-shadow: 0 12px 30px rgba(31, 38, 38, 0.1); transform: translateY(-4px); }
.type-carte__lien:hover .type-carte__photo img { transform: scale(1.04); }
.type-carte__lien:hover .type-carte__voir, .type-carte__lien:focus-visible .type-carte__voir { grid-column: 1 / -1; justify-self: end; padding: 0 16px 0 18px; background: var(--vert); color: var(--blanc); opacity: 1; }
.type-carte__lien:hover .type-carte__voir svg, .type-carte__lien:focus-visible .type-carte__voir svg { width: 14px; opacity: 1; }
.type-carte__lien:hover .type-carte__rond, .type-carte__lien:focus-visible .type-carte__rond { display: none; }

/* ---- Page Professionnels : onglets Commerces | Immeubles et groupes de cartes ---- */
.univers { padding-block: calc(var(--pad-section) * 0.8); background: var(--fond-moyen); }   /* fond moyen : jamais deux sections du même gris à la suite */
.univers__haut { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.univers__haut .entete-section { max-width: 40rem; }
.univers__chapo { font-size: 1.0625rem; line-height: 1.6; }
.univers__onglets { padding: 6px; border-radius: 999px; background: var(--blanc); gap: 4px; }
.onglet--univers {
  flex-direction: row; gap: 10px; height: auto; padding: 12px 22px;
  border: 0; border-radius: 999px; color: var(--vert); font-size: 1rem;
}
.onglet--univers::after { display: none; }      /* pas de copie en gras : le texte s'épaissit par un contour */
.onglet--univers strong { font-weight: 800; }
.onglet--univers span { font-size: 0.8125rem; font-weight: 600; opacity: 0.8; }
.onglet--univers:hover, .onglet--univers:focus-visible { font-weight: inherit; background: var(--fond-clair); }
.onglet--univers[aria-selected='true'] { background: var(--vert); color: var(--blanc); }
.univers__panneaux { display: grid; margin-top: clamp(24px, 4svh, 44px); }
.univers__panneau { grid-area: 1 / 1; align-self: start; }
.univers__panneau[hidden] { display: block; visibility: hidden; }
.univers__panneau:not([hidden]) { animation: panneau-entre 0.35s var(--doux); }
.univers__groupe + .univers__groupe { margin-top: clamp(32px, 5svh, 56px); }
.univers__entete { padding-bottom: 12px; border-bottom: 1px solid var(--filet); }
.univers__titre { font-size: clamp(1.5rem, 2vw, 1.875rem); font-weight: 800; }
.univers__intro { margin-top: 0.25rem; font-size: 0.9375rem; }
.univers__cartes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin-top: 20px; list-style: none; }
.univers .type-carte__photo { height: clamp(150px, 22svh, 240px); }
/* Carte sans lien : pas d'effet de survol de lien */
.type-carte--fixe .type-carte__lien:hover { transform: none; box-shadow: none; background: rgba(255, 255, 255, 0.45); }
.type-carte--fixe .type-carte__lien:hover .type-carte__photo img { transform: none; }
.type-carte__photo--a-fournir { border: 1.5px dashed rgba(46, 80, 81, 0.3); background: rgba(255, 255, 255, 0.35); }
.type-carte__manque { position: absolute; left: 0.875rem; bottom: 0.75rem; right: 0.875rem; color: var(--texte); font-size: 0.7188rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 1100px) { .univers__cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .univers__cartes { grid-template-columns: 1fr; }
  .univers__onglets { width: 100%; }
  .onglet--univers { flex: 1; flex-direction: column; gap: 2px; padding: 10px 12px; }
}

/* ---- Méthode : 3 étapes, grands chiffres et trait qui se remplit ---- */
.methode {
  --taille-num: clamp(3.5rem, min(6.4vw, 11svh), 6.25rem);
  padding-block: var(--pad-section);
  background: linear-gradient(147deg, var(--vert), var(--vert-nuit) 71%);
  color: rgba(255, 255, 255, 0.7);
}
.etapes { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(32px, 7svh, 90px); list-style: none; }
/* Trait gris sur toute la largeur, puis trait rouge qui avance (--avance, de 0 à 1, posé par main.js).
   EXCEPTION voulue par Anouk (18/11) à la règle « jamais de rouge intense sur du vert » :
   le trait et les points de la méthode sont en rouge vif. Les textes restent blancs. */
.etapes {
  /* Le trait va du centre du 1er point au centre du 3e, puis s'arrête.
     Les points sont au début de chaque colonne : 3e colonne = 2/3 de la largeur + 2 espaces (2 × 24 px) − 1/3 de ces espaces */
  --longueur-trait: calc(66.666% + 16.5px);
}
.etapes::before, .etapes::after {
  content: ''; position: absolute; left: 5px;
  width: var(--longueur-trait);
  top: calc(var(--taille-num) + 22px); height: 1px;
  background: rgba(255, 255, 255, 0.22);
}
.etapes::after { width: calc(var(--avance, 0) * var(--longueur-trait)); height: 2px; margin-top: -0.5px; background: var(--rouge); transition: width 0.25s linear; }
.etape { position: relative; z-index: 1; display: grid; align-content: start; }
.etape__numero { color: rgba(255, 255, 255, 0.18); font-size: var(--taille-num); font-weight: 800; line-height: 1; transition: color 0.5s var(--doux); }
.etape__point {
  width: 11px; height: 11px; margin: 17px 0 clamp(22px, 4svh, 40px); border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4); background: var(--vert-nuit);
  transition: background-color 0.4s var(--doux), border-color 0.4s var(--doux), transform 0.4s var(--doux);
}
.etape__titre { color: rgba(255, 255, 255, 0.45); font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 800; transition: color 0.5s var(--doux); }
.etape__texte { max-width: 26em; margin-top: 0.75rem; color: rgba(255, 255, 255, 0.45); font-size: 1rem; line-height: 1.6; transition: color 0.5s var(--doux); }
.etape.est-faite .etape__numero, .etape.est-active .etape__numero { color: var(--blanc); }
.etape.est-faite .etape__point { background: var(--rouge); border-color: var(--rouge); }
.etape.est-active .etape__point { background: var(--rouge); border-color: var(--rouge); transform: scale(1.35); box-shadow: 0 0 0 5px rgba(228, 30, 48, 0.22); }
.etape.est-faite .etape__titre, .etape.est-active .etape__titre { color: var(--blanc); }
.etape.est-faite .etape__texte, .etape.est-active .etape__texte { color: rgba(255, 255, 255, 0.85); }
/* Sans JavaScript : toutes les étapes sont affichées pleinement */
html:not(.anime) .etape .etape__numero, html:not(.anime) .etape .etape__titre { color: var(--blanc); }
html:not(.anime) .etape .etape__texte { color: rgba(255, 255, 255, 0.85); }

/* ---- Les cinq étapes (page L'atelier) : fil conducteur qui suit le défilement ----
   Choix d'Anouk (22/11) : la section est plus longue que l'écran, rien n'est collé.
   Le fil gris va du 1er au dernier point ; le trait rouge (--fil-rouge, posé par
   main.js) descend avec la page, sa pointe au centre de l'écran. L'étape atteinte
   s'allume, les photos se dévoilent au défilement (comme les autres apparitions). */
.fil { padding-block: var(--pad-section); background: var(--fond-clair); }
.fil__haut { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.fil__intro { max-width: 24rem; padding-bottom: 8px; color: var(--texte); font-size: 1.1875rem; font-weight: 600; line-height: 1.5; }
.fil__liste { position: relative; margin-top: clamp(40px, 8svh, 100px); list-style: none; }
.fil__liste::before, .fil__liste::after { content: ''; position: absolute; left: var(--fil-x, 7.5px); top: var(--fil-debut, 0px); width: 2px; margin-left: -1px; height: var(--fil, 0px); }
/* Chemin à parcourir : pointillés doux ; chemin parcouru : trait rouge plein */
.fil__liste::before { background: repeating-linear-gradient(180deg, rgba(46, 80, 81, 0.28) 0 6px, transparent 6px 14px); }
.fil__liste::after { width: 3px; margin-left: -1.5px; border-radius: 999px; height: var(--fil-rouge, 0px); background: linear-gradient(180deg, rgba(228, 30, 48, 0.35), var(--rouge) 120px); }
.fil-etape {
  position: relative; display: grid; grid-template-columns: minmax(0, 640fr) 15px minmax(0, 520fr); column-gap: clamp(28px, 4.4vw, 72px); align-items: start;
  padding-bottom: clamp(56px, 12svh, 140px);
}
.fil-etape:last-child { padding-bottom: 0; }
.fil-etape__point {
  position: relative; z-index: 1; width: 15px; height: 15px; margin-top: calc(var(--decale-corps, 0px) + var(--t-num) * 0.5 - 7px); border-radius: 50%;
  border: 2px solid rgba(46, 80, 81, 0.3); background: var(--fond-clair);
  transition: background-color 0.4s var(--doux), border-color 0.4s var(--doux), transform 0.4s var(--doux), box-shadow 0.4s var(--doux);
}
.fil { --t-num: clamp(3.5rem, min(6.4vw, 11svh), 6.25rem); }
.fil-etape__numero { display: block; color: transparent; -webkit-text-stroke: 1.5px rgba(46, 80, 81, 0.28); font-size: var(--t-num); font-weight: 900; line-height: 1; transition: color 0.5s var(--doux), -webkit-text-stroke-color 0.5s var(--doux); }
.fil-etape__titre { margin-top: clamp(14px, 2.2svh, 24px); color: rgba(46, 80, 81, 0.45); font-size: clamp(1.75rem, min(2.6vw, 4.6svh), 2.625rem); font-weight: 800; line-height: 1.1; transition: color 0.5s var(--doux), transform 0.6s var(--doux); }
.fil-etape.est-active .fil-etape__titre { transform: translateX(6px); }
.fil-etape__texte { max-width: 24em; margin-top: clamp(10px, 1.6svh, 16px); color: rgba(90, 101, 102, 0.6); font-size: clamp(1.125rem, 1.35vw, 1.3125rem); font-weight: 600; line-height: 1.55; transition: color 0.5s var(--doux); }
.fil-etape__photo { grid-column: 1; grid-row: 1; position: relative; overflow: hidden; height: clamp(260px, 46svh, 520px); border-radius: var(--arrondi); background: var(--fond-moyen); }
.fil-etape__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--doux), filter 0.6s var(--doux); }
.fil-etape__point { grid-column: 2; grid-row: 1; }
.fil-etape { --decale-corps: clamp(8px, 2svh, 24px); }
.fil-etape__corps { grid-column: 3; grid-row: 1; padding-top: var(--decale-corps); }
/* Les photos pas encore atteintes restent un peu ternes, puis prennent leurs couleurs */
.anime .fil-etape:not(.est-faite):not(.est-active) .fil-etape__photo img { filter: grayscale(0.6) brightness(0.92); }
.fil-etape__photo:hover img { transform: scale(1.03); }
/* Petite étiquette de l'étape sur la photo */
.fil-etape__etiquette {
  position: absolute; left: 16px; top: 16px; z-index: 1; padding: 5px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--vert); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em;
}
/* Étapes atteintes : allumées ; celle où se trouve la pointe : rouge */
.fil-etape.est-faite .fil-etape__point, .fil-etape.est-active .fil-etape__point { background: var(--rouge); border-color: var(--rouge); }
.fil-etape.est-active .fil-etape__point { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(228, 30, 48, 0.16); animation: etape-bat 0.7s var(--doux); }
.fil-etape.est-faite .fil-etape__numero { color: var(--vert); -webkit-text-stroke-color: var(--vert); }
.fil-etape.est-active .fil-etape__numero { color: var(--rouge); -webkit-text-stroke-color: var(--rouge); }
.fil-etape.est-faite .fil-etape__titre, .fil-etape.est-active .fil-etape__titre { color: var(--vert); }
.fil-etape.est-faite .fil-etape__texte, .fil-etape.est-active .fil-etape__texte { color: var(--noir); }
@keyframes etape-bat { 0% { box-shadow: 0 0 0 0 rgba(228, 30, 48, 0.45); } 60% { box-shadow: 0 0 0 14px rgba(228, 30, 48, 0); } 100% { box-shadow: 0 0 0 6px rgba(228, 30, 48, 0.16); } }
/* Sans JavaScript : tout est allumé */
html:not(.anime) .fil-etape__numero, html:not(.anime) .fil-etape__titre { color: var(--vert); -webkit-text-stroke-color: var(--vert); }
html:not(.anime) .fil-etape__texte { color: var(--noir); }
@media (max-width: 900px) {
  .fil__haut { display: block; }
  .fil__intro { margin-top: 12px; padding-bottom: 0; font-size: 1.0625rem; }
  .fil-etape { grid-template-columns: 15px minmax(0, 1fr); column-gap: 20px; padding-bottom: 56px; }
  .fil-etape__point { grid-column: 1; }
  .fil-etape { --decale-corps: 0px; }
  .fil-etape__corps { grid-column: 2; padding-top: 0; }
  .fil-etape__photo { grid-column: 2; grid-row: 2; height: min(260px, 36svh); margin-top: 20px; }
  .fil-etape.est-active .fil-etape__titre { transform: none; }
  .fil { --t-num: 3.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fil-etape.est-active .fil-etape__point { animation: none; }
}

/* ---- Texte | 2 photos (ex. garde-corps et main courante) ---- */
.garde { padding-block: var(--pad-section); background: var(--fond-clair); }   /* fond clair : se distingue des Réalisations (fond moyen) qui suivent */
.garde__grille { display: grid; grid-template-columns: minmax(0, 470fr) minmax(0, 740fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.garde__texte { min-width: 0; display: grid; gap: clamp(14px, 2.4svh, 24px); }
.garde__chapo { color: var(--noir); font-size: 1.0625rem; font-weight: 600; line-height: 1.6; }
.garde__corps { font-size: 1rem; line-height: 1.6; }
.garde .bouton { justify-self: start; margin-top: 6px; }
.garde__photos { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(12px, 1.4vw, 20px); height: clamp(320px, 56svh, 520px); }
.garde__photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--arrondi); }

/* ---- Appel sur photo pleine largeur ---- */
.appel-photo { position: relative; display: grid; align-items: center; min-height: clamp(380px, 58svh, 520px); padding-block: clamp(40px, 7svh, 80px); background: var(--vert-nuit); overflow: hidden; }
.appel-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.appel-photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(22, 32, 33, 0.92), rgba(22, 32, 33, 0.6) 50%, rgba(22, 32, 33, 0.2)); }
.appel-photo__contenu { position: relative; z-index: 2; display: grid; gap: clamp(14px, 2.4svh, 22px); }
.appel-photo__contenu > * { max-width: 29.375rem; }
.appel-photo__texte { color: rgba(255, 255, 255, 0.85); font-size: 1.0625rem; line-height: 1.6; }
.appel-photo .bouton { justify-self: start; margin-top: 8px; }
.appel-photo :focus-visible { outline-color: var(--rouge-doux); }

@media (max-width: 900px) {
  .types__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ouverture--page .galerie { margin-right: 0; }
  .garde__grille { grid-template-columns: 1fr; }
  .garde__photos { height: clamp(260px, 50svh, 420px); }
}
@media (max-width: 760px) {
  /* Étapes l'une sous l'autre : plus de trait horizontal, toutes affichées */
  .etapes { grid-template-columns: 1fr; gap: 32px; }
  .etapes::before, .etapes::after { display: none; }
  .etape__point { display: none; }
  .etape .etape__numero { color: var(--blanc); font-size: 3.5rem; }
  .etape .etape__titre { margin-top: 12px; color: var(--blanc); }
  .etape .etape__texte { color: rgba(255, 255, 255, 0.85); }
}
@media (max-width: 560px) {
  .types__grille { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .etapes::after { width: var(--longueur-trait); }
}


/* ==========================================================================
   5d. PAGE RÉALISATIONS (galerie filtrable en mosaïque)
   ========================================================================== */
.intro-page { padding: clamp(24px, 5svh, 64px) 0 clamp(18px, 3svh, 34px); background: var(--fond-clair); }
.intro-page .ariane { margin-bottom: clamp(18px, 5svh, 56px); }
.intro-page__titre { max-width: 11em; margin-top: clamp(0.875rem, 2.4svh, 1.625rem); font-size: clamp(2.625rem, min(5vw, 9svh), 4.75rem); font-weight: 900; line-height: 1; }
.intro-page__chapo { max-width: 31em; margin-top: clamp(0.875rem, 2.6svh, 1.625rem); font-size: var(--t-chapo); font-weight: 600; line-height: 1.6; }

.galerie-complete { padding-bottom: var(--pad-section); background: var(--fond-clair); }
/* Barre de filtres : reste collée sous l'en-tête pendant le défilement */
.galerie-complete__filtres {
  position: sticky;
  top: var(--h-entete);
  z-index: 5;
  padding-block: 14px;
  background: rgba(218, 220, 220, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.filtres--page { margin-top: 0; }
.filtres--page .filtre {
  padding: 9px 18px;
  border: 1px solid rgba(46, 80, 81, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--vert);
  font-size: 0.9062rem;
}
.filtres--page .filtre:hover { background: rgba(255, 255, 255, 0.6); }
.filtres--page .filtre[aria-pressed='true'] { background: var(--vert); border-color: var(--vert); color: var(--blanc); }

/* Mosaïque : 3 colonnes, chaque photo garde ses proportions */
.mosaique { columns: 3; column-gap: 20px; margin-top: 12px; list-style: none; }
.mosaique .carte {
  width: 100%;
  height: auto;
  max-width: none;
  margin-bottom: 20px;
  break-inside: avoid;
  scroll-snap-align: none;
  animation: carte-arrive 0.5s var(--doux) both;
}
@keyframes carte-arrive { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 900px) {
  .mosaique { columns: 2; column-gap: 14px; }
  .mosaique .carte { margin-bottom: 14px; padding: 20px; }
}
@media (max-width: 560px) {
  .mosaique { columns: 1; }
  /* Filtres sur une seule ligne qui défile, pour garder une barre fine */
  .filtres--page { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filtres--page::-webkit-scrollbar { display: none; }
  .filtres--page .filtre { flex: none; }
}


/* ==========================================================================
   6. PIED DE PAGE
   ========================================================================== */
.pied {
  padding-top: calc(var(--pad-section) * 0.8);
  background: linear-gradient(147deg, var(--vert), var(--vert-nuit) 71%);
  color: var(--blanc);
}
.pied__appel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 24px; }
.pied__texte { display: grid; justify-items: start; gap: clamp(12px, 2.2svh, 20px); }
.pied__titre { color: var(--blanc); font-size: var(--t-h2-moyen); font-weight: 900; line-height: 0.95; }
.pied__chapo { color: rgba(255, 255, 255, 0.8); font-size: 1.1875rem; font-weight: 600; line-height: 1.4; }
.pied__adresse { margin-block: clamp(0.25rem, 1.6svh, 0.75rem); font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.pied__etiquette { display: block; margin-bottom: 0.25rem; color: var(--rouge-doux); font-size: 0.7812rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.pied__carte { position: relative; display: block; height: clamp(220px, 34svh, 380px); overflow: hidden; border-radius: var(--arrondi); }
.pied__carte img { width: 100%; height: 100%; object-fit: cover; }
.pied__repere { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); }
.pied__repere::before {
  content: ''; position: absolute; left: 50%; bottom: -28px; width: 96px; height: 96px;
  transform: translateX(-50%); border-radius: 50%; background: rgba(228, 30, 48, 0.22); z-index: -1;
}
.pied__etiquette-carte {
  position: absolute; left: 50%; top: calc(50% + 14px); transform: translateX(-50%);
  padding: 8px 14px; border-radius: 999px; background: var(--blanc);
  color: var(--vert); font-size: 0.8438rem; font-weight: 700; white-space: nowrap;
}
.pied__osm { position: absolute; right: 0.75rem; bottom: 0.5rem; color: rgba(255, 255, 255, 0.6); font-size: 0.6562rem; }

.pied__liens {
  display: grid;
  grid-template-columns: minmax(0, 294fr) minmax(0, 257fr) minmax(0, 279fr) minmax(0, 182fr);
  justify-content: space-between;
  gap: 32px clamp(24px, 5.4vw, 78px);
  margin-top: clamp(28px, 5svh, 80px);
  padding-top: clamp(24px, 4.4svh, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.pied__colonne ul { display: grid; gap: clamp(8px, 1.4svh, 14px); }
.pied__colonne a { font-size: 1.0625rem; font-weight: 600; transition: color 0.25s var(--doux); }
.pied__colonne ul a:hover { color: var(--rouge-doux); }
.pied__colonne--marque img { width: 172px; height: auto; margin-bottom: 18px; }
.pied__colonne .pied__etiquette { margin-bottom: 14px; }
.pied__contact { display: grid; padding-left: 16px; border-left: 1px solid var(--rouge-doux); }
.pied__tel { font-size: 1.3125rem !important; font-weight: 900 !important; line-height: 1.4; }

.pied__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(24px, 4svh, 72px);
  padding-block: 16px clamp(20px, 3.4svh, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
}
.pied__legal p:last-child { display: flex; gap: 24px; }
.pied__legal a:hover { color: var(--blanc); }


/* ==========================================================================
   7. TABLETTE ET MOBILE
   ========================================================================== */

/* Sous 1320 px : le menu complet (8 liens) ne tient plus, on passe au bouton « menu »
   (c'était 1240 px avec 7 liens) */
@media (max-width: 1319px) {
  .nav, .megas { display: none; }
  .burger { display: grid; }
}

@media (max-width: 900px) {
  /* Ouverture : texte puis galerie */
  .ouverture { grid-template-columns: 1fr; height: auto; }
  .ouverture__texte { padding: 40px var(--marge) 32px; }
  .ouverture__titre { max-width: none; }
  .galerie { height: min(420px, 60svh); padding-inline: var(--marge); }

  .reperes__grille { grid-template-columns: 1fr; gap: 28px; }


  .pros__grille { grid-template-columns: 1fr; }
  .pros__photo { min-height: 0; aspect-ratio: 4 / 3; }

  .avis__grille { grid-template-columns: 1fr; }
  .avis__carte, .avis__carte:first-child { padding: 24px 0 20px; }
  .avis__carte + .avis__carte { border-left: 0; border-top: 1px solid rgba(46, 80, 81, 0.2); }

  .faq__grille { grid-template-columns: 1fr; gap: 28px; }
  .faq__titre { position: static; }

  .pied__appel { grid-template-columns: 1fr; gap: 40px; }
  .pied__liens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .bande-photo img { scale: 1.7; }
  .bande-photo { --origine-x: 30%; }
}

@media (max-width: 560px) {
  /* Les boutons longs passent sur deux lignes plutôt que de faire déborder la page */
  .bouton { white-space: normal; text-align: left; line-height: 1.3; }
  .ouverture__actions { gap: 18px 24px; }
  .question__bouton { font-size: 1.1875rem; }
  .panneau a { font-size: 1.125rem; }
  .carte__titre { font-size: 1.625rem; }
  .realisations__pied { flex-wrap: wrap; }
  .pied__liens { grid-template-columns: 1fr; }
  .pied__legal { flex-direction: column; }
}


/* ==========================================================================
   8. ANIMATIONS RÉDUITES
   Si le visiteur a demandé moins d'animations dans son système, tout est fixe.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .anime .apparition { opacity: 1; transform: none; }
  .anime .repere::before { transform: none; }
  .anime .repere__chiffre, .anime .repere__texte { opacity: 1; transform: none; }
}
