/* ==========================================================================
   Atelier Sève — feuille de style
   Mobile d'abord. Les couleurs et polices se règlent dans :root.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../polices/fraunces.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url('../polices/fraunces-italique.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../polices/dm-sans.woff2') format('woff2');
}

:root {
  /* Palette */
  --lin: #f5f0e8;
  --lin-fonce: #ebe3d6;
  --creme: #fbf8f3;
  --noyer: #2b211a;
  --noyer-doux: #4a3a2e;
  --texte-doux: #5c4c40;
  --chene: #b8834a;            /* accent décoratif (fonds, traits) */
  --chene-texte: #8a5a28;      /* accent lisible sur fond clair (AA) */
  --chene-clair: #d9b27f;      /* accent lisible sur fond sombre */
  --sauge: #7a8b6f;
  --sauge-texte: #56664b;
  --trait: rgb(43 33 26 / 0.18);
  --erreur: #a3361f;

  /* Typographie */
  --police-titre: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --police-texte: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Mise en page */
  --gouttiere: clamp(1.25rem, 5vw, 2.5rem);
  --largeur-max: 76rem;
  --section-y: clamp(4.5rem, 11vw, 8.5rem);
  --rayon: 4px;
  --ombre: 0 1px 2px rgb(43 33 26 / 0.06), 0 12px 32px -12px rgb(43 33 26 / 0.22);
  --transition: 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  --hauteur-entete: 4.5rem;

  /* Grain de papier (SVG, quelques centaines d'octets) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .13 0 0 0 0 .1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  /* Veinage de bois étiré, très léger */
  --veinage: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.003 .09' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23v)'/%3E%3C/svg%3E");
}

/* --- Base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--hauteur-entete);
}

body {
  margin: 0;
  background: var(--lin);
  color: var(--noyer);
  font-family: var(--police-texte);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: var(--police-titre);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--chene-texte); }

ul[role='list'], ol { list-style: none; margin: 0; padding: 0; }

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

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

::selection { background: var(--chene); color: var(--noyer); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.evitement {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--noyer);
  color: var(--lin);
  border-radius: var(--rayon);
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.evitement:focus { transform: none; color: var(--lin); }

.conteneur {
  width: 100%;
  max-width: calc(var(--largeur-max) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.conteneur--etroit { max-width: calc(52rem + 2 * var(--gouttiere)); }

/* --- Boutons et liens ---------------------------------------------------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.bouton svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s; }
.bouton:hover svg { transform: translateX(3px); }
.bouton:active { transform: translateY(1px); }

.bouton--accent { background: var(--chene); color: var(--noyer); }
.bouton--accent:hover { background: #c99358; color: var(--noyer); }
.bouton--sombre { background: var(--noyer); color: var(--lin); }
.bouton--sombre:hover { background: var(--noyer-doux); color: var(--lin); }
.bouton--contour-clair { border-color: rgb(245 240 232 / 0.6); color: var(--lin); }
.bouton--contour-clair:hover { background: rgb(245 240 232 / 0.12); border-color: var(--lin); color: var(--lin); }
.bouton--discret { background: transparent; border-color: var(--trait); color: var(--noyer); }
.bouton--discret:hover { border-color: var(--noyer); color: var(--noyer); }

.lien-fleche {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600;
  color: var(--chene-texte);
  text-decoration: none;
}
.lien-fleche svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.25s; }
.lien-fleche:hover svg { transform: translateX(4px); }

/* --- Éléments graphiques : numéros, cotes, traits ------------------------ */

.surtitre, .numero {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chene-texte);
  margin-bottom: 1.25rem;
}
.surtitre--clair { color: var(--chene-clair); }

.numero { display: flex; align-items: center; gap: 0.9rem; }
.numero span {
  font-family: var(--police-titre);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.numero::after {
  content: '';
  flex: 0 0 3.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  order: 1;
}
.numero span { order: 0; }
.numero--clair { color: var(--chene-clair); }

.titre-section {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  max-width: 20ch;
}
.titre-section em { color: var(--chene-texte); font-weight: 300; }
.titre-section--clair { color: var(--lin); }
.titre-section--clair em { color: var(--chene-clair); }

.chapeau { font-size: 1.08rem; color: var(--texte-doux); max-width: 38rem; }

.entete-section { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.mention-illustration {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--texte-doux);
}

/* Cote de menuisier : trait fin terminé par deux butées */
.cote {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--police-titre);
  font-style: italic;
  font-size: 0.85rem;
  color: currentColor;
}
.cote--horizontale { width: 100%; height: 1.2rem; }
.cote--horizontale::before {
  content: '';
  position: absolute; inset: 50% 0 auto;
  border-top: 1px solid currentColor;
  opacity: 0.55;
}
.cote--horizontale::after {
  content: '';
  position: absolute; inset: 0;
  border-inline: 1px solid currentColor;
  opacity: 0.55;
}
.cote__valeur { position: relative; padding-inline: 0.6rem; background: inherit; }
.cote--verticale { height: 100%; width: 1.2rem; }
.cote--verticale::before {
  content: '';
  position: absolute; inset: 0 50% 0 auto;
  border-right: 1px solid currentColor;
  opacity: 0.6;
}
.cote--verticale::after {
  content: '';
  position: absolute; inset: 0;
  border-block: 1px solid currentColor;
  opacity: 0.6;
}
.cote--verticale .cote__valeur { writing-mode: vertical-rl; transform: rotate(180deg); padding-block: 0.6rem; padding-inline: 0; }

/* Trait de crayon dessiné au scroll */
.trait-crayon {
  width: 100%;
  height: 3.5rem;
  margin-top: var(--section-y);
  margin-bottom: calc(var(--section-y) * -1);
  overflow: visible;
}
.trait-crayon path {
  fill: none;
  stroke: var(--noyer);
  stroke-opacity: 0.35;
  stroke-width: 1.2;
  stroke-linecap: round;
}
.js [data-trace] path {
  stroke-dasharray: var(--longueur, 2000);
  stroke-dashoffset: var(--longueur, 2000);
  transition: stroke-dashoffset 2.2s cubic-bezier(0.65, 0, 0.35, 1);
}
.js [data-trace].trace path { stroke-dashoffset: 0; }

/* Apparition en fondu au scroll */
.js [data-apparition] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition), transform var(--transition);
  transition-delay: var(--delai, 0s);
}
.js [data-apparition].visible { opacity: 1; transform: none; }

/* --- Sections ------------------------------------------------------------ */

.section { position: relative; padding-block: var(--section-y); }
.section--grain { background: var(--creme); isolation: isolate; }
.section--grain::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.35;
  pointer-events: none;
}
.section--lin { background-color: var(--lin); isolation: isolate; }
.section--lin::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background-image: var(--veinage);
  background-size: 1200px 600px;
  opacity: 0.35;
  pointer-events: none;
}

/* --- En-tête ------------------------------------------------------------- */

.entete {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--lin);
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--hauteur-entete);
}
.entete.defile {
  background: rgb(245 240 232 / 0.94);
  color: var(--noyer);
  box-shadow: 0 1px 0 var(--trait);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.logo:hover { color: inherit; }
.logo__picto { width: 2.4rem; height: 2.4rem; fill: none; stroke: currentColor; stroke-width: 1.3; }
.logo__picto .logo-feuille { stroke: var(--chene); }
.logo__texte {
  display: flex; flex-direction: column;
  font-family: var(--police-titre);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.logo__sous {
  font-family: var(--police-texte);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  opacity: 0.8;
}

.burger {
  position: relative;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  margin-right: -0.6rem;
  background: none;
  border: 0;
  color: inherit;
}
.burger__traits, .burger__traits::before, .burger__traits::after {
  display: block;
  width: 1.6rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s, opacity 0.2s, background-color 0.2s;
}
.burger__traits { position: relative; }
.burger__traits::before, .burger__traits::after { content: ''; position: absolute; left: 0; }
.burger__traits::before { top: -7px; }
.burger__traits::after { top: 7px; width: 1.1rem; }
.burger[aria-expanded='true'] { color: var(--lin); }
.burger[aria-expanded='true'] .burger__traits { background: transparent; }
.burger[aria-expanded='true'] .burger__traits::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__traits::after { transform: translateY(-7px) rotate(-45deg); width: 1.6rem; }

/* Menu mobile plein écran */
.navigation {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: 6rem var(--gouttiere) 3rem;
  background: var(--noyer);
  background-image: var(--grain);
  color: var(--lin);
  visibility: hidden;
  opacity: 0;
  clip-path: circle(0 at calc(100% - 2.5rem) 2.25rem);
  transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s, visibility 0s 0.7s;
}
.navigation.ouverte {
  visibility: visible;
  opacity: 1;
  clip-path: circle(150% at calc(100% - 2.5rem) 2.25rem);
  transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s, visibility 0s;
}
.navigation__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.navigation__liste a {
  display: inline-block;
  font-family: var(--police-titre);
  font-size: clamp(2.2rem, 9vw, 3rem);
  line-height: 1.2;
  text-decoration: none;
}
.navigation__liste a:hover { color: var(--chene-clair); }
.navigation.ouverte .navigation__liste li { animation: menu-entree 0.6s both; }
.navigation.ouverte .navigation__liste li:nth-child(2) { animation-delay: 0.08s; }
.navigation.ouverte .navigation__liste li:nth-child(3) { animation-delay: 0.16s; }
.navigation.ouverte .navigation__liste li:nth-child(4) { animation-delay: 0.24s; }
@keyframes menu-entree { from { opacity: 0; transform: translateY(18px); } }
.navigation__cta { align-self: flex-start; }

body.menu-ouvert { overflow: hidden; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--hauteur-entete) + 3rem) clamp(5rem, 12vh, 8rem);
  color: var(--lin);
  overflow: hidden;
  isolation: isolate;
  background: var(--noyer);
}
.hero__media { position: absolute; inset: -6% 0; z-index: -2; will-change: transform; }
.hero__image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  animation: ken-burns 26s ease-in-out infinite alternate;
}
@keyframes ken-burns {
  from { transform: scale(1.02); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}
.hero__voile {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(25 18 13 / 0.55) 0%, rgb(25 18 13 / 0.1) 30%, rgb(25 18 13 / 0.35) 60%, rgb(25 18 13 / 0.88) 100%),
    linear-gradient(90deg, rgb(25 18 13 / 0.55) 0%, transparent 70%);
}
@media (max-width: 767px) {
  .hero__voile { background: linear-gradient(180deg, rgb(25 18 13 / 0.6) 0%, rgb(25 18 13 / 0.62) 45%, rgb(25 18 13 / 0.9) 100%); }
  .hero__image { object-position: 30% 50%; }
}
.hero__contenu { position: relative; }
.hero__titre {
  font-size: clamp(2.6rem, 1.6rem + 6vw, 5.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 13ch;
  margin-bottom: 1.5rem;
}
.hero__titre em { display: block; color: var(--chene-clair); }
.hero__texte { max-width: 34rem; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem); color: rgb(245 240 232 / 0.88); margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.js .hero__contenu > * { animation: hero-entree 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.js .hero__contenu > :nth-child(2) { animation-delay: 0.12s; }
.js .hero__contenu > :nth-child(3) { animation-delay: 0.28s; }
.js .hero__contenu > :nth-child(4) { animation-delay: 0.42s; }
@keyframes hero-entree { from { opacity: 0; transform: translateY(28px); } }

.hero__cote {
  display: none;
  position: absolute;
  right: var(--gouttiere);
  top: calc(var(--hauteur-entete) + 3rem);
  bottom: 9rem;
  color: rgb(245 240 232 / 0.7);
}
.hero__defiler {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  width: 2.75rem; height: 3.5rem;
  transform: translateX(-50%);
  display: none;
}
.hero__defiler-trait {
  position: absolute; left: 50%; top: 0.5rem;
  width: 1px; height: 2.5rem;
  background: linear-gradient(var(--lin), transparent);
  animation: defiler 2.4s ease-in-out infinite;
}
@keyframes defiler { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* --- 01 Artisan ---------------------------------------------------------- */

.artisan__grille { display: grid; gap: 3rem; align-items: center; }
.artisan__photo { position: relative; margin: 0; }
.artisan__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 40% 50%;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.artisan__photo::before {
  content: '';
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  z-index: -1;
  border: 1px solid var(--chene);
  border-radius: var(--rayon);
  opacity: 0.6;
}
.artisan__legende { margin-top: 2rem; color: var(--texte-doux); background: var(--creme); }
.prose p { color: var(--noyer-doux); }
.signature { width: 13rem; height: auto; margin-top: 2rem; overflow: visible; }
.signature path { fill: none; stroke: var(--noyer); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.signature path + path { stroke: var(--chene); stroke-width: 1.1; }
.js .signature[data-trace] path { transition-duration: 2.8s; }
.js .signature[data-trace] path + path { transition-delay: 2s; transition-duration: 0.9s; }

/* --- 02 Savoir-faire ----------------------------------------------------- */

.prestations {
  display: grid;
  gap: 1px;
  background: var(--trait);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  overflow: hidden;
}
.prestation {
  position: relative;
  padding: 2rem 1.75rem 2.25rem;
  background: var(--lin);
  transition: background-color 0.4s;
}
.prestation:hover { background: var(--creme); }
.prestation__icone {
  width: 2.75rem; height: 2.75rem;
  margin-bottom: 1.5rem;
  fill: none;
  stroke: var(--chene-texte);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.prestation:hover .prestation__icone { transform: translateY(-4px) rotate(-3deg); }
.prestation h3 { margin-bottom: 0.6rem; }
.prestation p { color: var(--texte-doux); font-size: 0.97rem; }
.prestation--appel {
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  background: var(--noyer);
  color: var(--lin);
}
.prestation--appel:hover { background: var(--noyer-doux); }
.prestation--appel .lien-fleche { color: var(--chene-clair); }
.prestation__question { font-family: var(--police-titre); font-size: 1.5rem; line-height: 1.25; color: var(--lin) !important; }

/* --- 03 Réalisations ----------------------------------------------------- */

.filtres { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filtre {
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  background: transparent;
  border: 1px solid var(--trait);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.filtre:hover { border-color: var(--noyer); }
.filtre[aria-pressed='true'] { background: var(--noyer); border-color: var(--noyer); color: var(--lin); }

.projets { display: grid; gap: 1.25rem; }
.projet { transition: opacity 0.45s, transform 0.45s; }
.projet.masque { display: none; }
.projet.entree { animation: projet-entree 0.5s both; }
@keyframes projet-entree { from { opacity: 0; transform: scale(0.97); } }

.projet__carte {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--noyer);
  border-radius: var(--rayon);
  overflow: hidden;
  text-align: left;
  color: var(--lin);
  box-shadow: var(--ombre);
}
.projet__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.projet__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.6s;
}
.projet__carte::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgb(25 18 13 / 0.45) 55%, rgb(25 18 13 / 0.92) 100%);
  transition: opacity 0.5s;
}
.projet__infos {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem;
}
.projet__categorie {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chene-clair);
}
.projet__titre { font-family: var(--police-titre); font-size: 1.4rem; line-height: 1.2; }
.projet__lieu { font-size: 0.85rem; opacity: 0.8; }

@media (hover: hover) {
  .projet__infos > * { transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s; }
  .projet__lieu { opacity: 0; transform: translateY(10px); }
  .projet__titre { transform: translateY(8px); }
  .projet__carte:hover .projet__image img,
  .projet__carte:focus-visible .projet__image img { transform: scale(1.07); }
  .projet__carte:hover .projet__infos > *,
  .projet__carte:focus-visible .projet__infos > * { transform: none; }
  .projet__carte:hover .projet__lieu,
  .projet__carte:focus-visible .projet__lieu { opacity: 0.85; }
}

/* --- Comparateur avant / après ------------------------------------------- */

.comparateur {
  --position: 50%;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--rayon);
  background: var(--lin-fonce);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
  box-shadow: var(--ombre);
}
.comparateur img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.comparateur__avant {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
}
.comparateur__avant img { filter: saturate(0.75) brightness(0.98); }
.comparateur__etiquette {
  position: absolute;
  top: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgb(25 18 13 / 0.7);
  color: var(--lin);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}
.comparateur__etiquette--avant { left: 1rem; }
.comparateur__etiquette--apres { right: 1rem; }
.comparateur__poignee {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--position);
  width: 2.75rem;
  margin-left: -1.375rem;
  display: grid;
  place-items: center;
  outline: none;
}
.comparateur__poignee::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px;
  background: var(--lin);
  box-shadow: 0 0 12px rgb(0 0 0 / 0.3);
}
.comparateur__poignee span {
  position: relative;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--lin);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.3);
  transition: transform 0.25s;
}
.comparateur__poignee span::before, .comparateur__poignee span::after {
  content: '';
  position: absolute; top: 50%;
  width: 0.5rem; height: 0.5rem;
  border: solid var(--noyer);
  border-width: 0 0 1.5px 1.5px;
}
.comparateur__poignee span::before { left: 0.75rem; transform: translateY(-50%) rotate(45deg); }
.comparateur__poignee span::after { right: 0.75rem; transform: translateY(-50%) rotate(-135deg); }
.comparateur:hover .comparateur__poignee span, .comparateur.glisse .comparateur__poignee span { transform: scale(1.08); }
.comparateur__poignee:focus-visible span { outline: 3px solid var(--chene); outline-offset: 3px; }

.comparaisons { display: grid; gap: 2.5rem; }
.comparaison { margin: 0; }
.comparaison figcaption { margin-top: 1rem; color: var(--texte-doux); }
.comparaison figcaption strong { font-family: var(--police-titre); font-weight: 500; font-size: 1.1rem; color: var(--noyer); }

/* --- 05 Méthode ---------------------------------------------------------- */

.methode__grille { display: grid; gap: 3rem; }
.methode__photo { margin: 2rem 0 0; }
.methode__photo img { border-radius: var(--rayon); box-shadow: var(--ombre); aspect-ratio: 3 / 2; object-fit: cover; }

.etapes { position: relative; display: grid; gap: 2.75rem; padding-left: 4.25rem; }
.etapes::before, .etapes::after {
  content: '';
  position: absolute;
  left: 1.375rem; top: 0.5rem; bottom: 0.5rem;
  width: 1px;
}
.etapes::before { background: var(--trait); }
.etapes::after {
  background: var(--chene);
  transform-origin: top;
  transform: scaleY(var(--avancement, 0));
  width: 2px;
  margin-left: -0.5px;
}
.no-js .etapes::after, html:not(.js) .etapes::after { transform: none; }
.etape { position: relative; }
.etape__numero {
  position: absolute;
  left: -4.25rem; top: -0.2rem;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--chene);
  background: var(--creme);
  font-family: var(--police-titre);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--chene-texte);
  transition: background-color 0.5s, color 0.5s;
}
.etape.visible .etape__numero { background: var(--chene); color: var(--noyer); }
.etape h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.etape p { color: var(--noyer-doux); }
.etape__duree {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sauge-texte) !important;
}
.etape__duree::before { content: ''; width: 1.25rem; height: 1px; background: currentColor; }

/* --- 06 Essences --------------------------------------------------------- */

.bois {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 78%);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  margin-inline: calc(var(--gouttiere) * -1);
  padding-inline: var(--gouttiere);
  scroll-padding-inline: var(--gouttiere);
  scrollbar-width: thin;
}
.bois__carte {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--creme);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
}
.bois__texture { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 1s cubic-bezier(0.22, 0.61, 0.36, 1); }
.bois__carte:hover .bois__texture { transform: scale(1.05); }
.bois__texte { position: relative; padding: 1.4rem 1.4rem 1.6rem; background: var(--creme); }
.bois__texte h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.bois__caractere { color: var(--noyer-doux); font-size: 0.95rem; }
.bois__usages { font-size: 0.88rem; color: var(--texte-doux); }
.bois__usages span { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sauge-texte); }

/* --- 07 Chiffres --------------------------------------------------------- */

.chiffres { color: var(--lin); background: var(--noyer); overflow: hidden; isolation: isolate; }
.chiffres__fond { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.chiffres::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 20% 0%, rgb(184 131 74 / 0.18), transparent 60%), linear-gradient(180deg, rgb(25 18 13 / 0.6), rgb(25 18 13 / 0.85));
}
.compteurs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; margin: 3rem 0 1rem; }
.compteur { display: flex; flex-direction: column-reverse; gap: 0.25rem; padding-top: 1.25rem; border-top: 1px solid rgb(245 240 232 / 0.25); }
.compteur dd {
  margin: 0;
  font-family: var(--police-titre);
  font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem);
  font-weight: 300;
  line-height: 1;
  color: var(--lin);
  font-variant-numeric: tabular-nums;
}
.compteur__crochet { color: var(--chene-clair); font-weight: 300; }
.compteur dt { font-size: 0.9rem; color: rgb(245 240 232 / 0.8); }
.chiffres__note { font-size: 0.8rem; font-style: italic; color: rgb(245 240 232 / 0.72); margin-bottom: 3.5rem; }
.engagements { display: grid; gap: 1.75rem; }
.engagements li { display: flex; gap: 1.1rem; align-items: flex-start; }
.engagements svg { flex: none; width: 2.5rem; height: 2.5rem; fill: none; stroke: var(--chene-clair); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.engagements h3 { margin-bottom: 0.4rem; color: var(--lin); }
.engagements p { color: rgb(245 240 232 / 0.8); font-size: 0.95rem; }

/* --- 08 Avis ------------------------------------------------------------- */

.avis__liste { display: grid; gap: 1.25rem; }
.avis__carte {
  position: relative;
  margin: 0;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--lin);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
}
.avis__carte::before {
  content: '“';
  position: absolute;
  top: 0.25rem; right: 1.25rem;
  font-family: var(--police-titre);
  font-size: 5rem;
  line-height: 1;
  color: var(--chene);
  opacity: 0.35;
}
.avis__badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.2rem 0.65rem;
  border: 1px dashed var(--sauge-texte);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sauge-texte);
}
.avis__carte blockquote { margin: 0 0 1.5rem; font-family: var(--police-titre); font-size: 1.2rem; line-height: 1.5; font-weight: 300; }
.avis__carte figcaption { font-weight: 600; font-size: 0.95rem; }
.avis__carte figcaption span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--texte-doux); }

/* --- 09 Zone ------------------------------------------------------------- */

.zone__grille { display: grid; gap: 3rem; align-items: center; }
.communes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.communes li { padding: 0.35rem 0.85rem; border: 1px solid var(--trait); border-radius: 999px; font-size: 0.9rem; background: var(--creme); }
.carte { margin: 0; }
.carte svg { width: 100%; height: auto; overflow: visible; }
.carte figcaption { font-size: 0.8rem; font-style: italic; color: var(--texte-doux); margin-top: 0.5rem; text-align: center; }
.carte__riviere { fill: none; stroke: var(--sauge); stroke-width: 3; stroke-linecap: round; opacity: 0.55; }
.carte__riviere-nom { font-family: var(--police-titre); font-style: italic; font-size: 13px; fill: var(--sauge-texte); }
.carte__rayon { fill: rgb(184 131 74 / 0.07); stroke: var(--chene); stroke-dasharray: 4 6; stroke-width: 1; }
.carte__rayon--int { fill: rgb(184 131 74 / 0.08); }
.carte__communes circle { fill: var(--noyer); }
.carte__communes text { font-size: 12px; fill: var(--noyer-doux); font-family: var(--police-texte); }
.carte__atelier circle:first-child { fill: none; stroke: var(--chene-texte); stroke-width: 1.5; }
.carte__atelier circle:nth-child(2) { fill: var(--chene-texte); }
.carte__atelier text { font-family: var(--police-titre); font-size: 16px; font-style: italic; fill: var(--chene-texte); }
.js .carte__atelier circle:first-child { animation: pulsation 2.8s ease-out infinite; transform-origin: 190px 170px; }
@keyframes pulsation { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

/* --- 10 FAQ -------------------------------------------------------------- */

.faq__liste { border-top: 1px solid var(--trait); }
.question { border-bottom: 1px solid var(--trait); }
.question summary {
  position: relative;
  display: block;
  padding: 1.4rem 3rem 1.4rem 0;
  font-family: var(--police-titre);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s;
}
.question summary::-webkit-details-marker { display: none; }
.question summary:hover { color: var(--chene-texte); }
.question summary::before, .question summary::after {
  content: '';
  position: absolute;
  right: 0.5rem; top: 50%;
  width: 1rem; height: 1.5px;
  background: currentColor;
  transition: transform 0.35s;
}
.question summary::after { transform: rotate(90deg); }
.question[open] summary::after { transform: rotate(0deg); }
.question__reponse { padding: 0 3rem 1.6rem 0; color: var(--noyer-doux); }
.question[open] .question__reponse { animation: reponse-entree 0.45s ease both; }
@keyframes reponse-entree { from { opacity: 0; transform: translateY(-6px); } }

/* --- 11 Formulaire ------------------------------------------------------- */

.demande { background: var(--noyer); color: var(--lin); overflow: hidden; isolation: isolate; }
.demande__fond { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.18; }
.demande__grille { display: grid; gap: 2.5rem; }
.demande .numero { color: var(--chene-clair); }
.demande .titre-section { color: var(--lin); }
.demande .titre-section em { color: var(--chene-clair); }
.demande .chapeau { color: rgb(245 240 232 / 0.82); }
.demande__promesses { display: grid; gap: 0.6rem; margin-top: 1.75rem; }
.demande__promesses li { display: flex; align-items: center; gap: 0.6rem; color: rgb(245 240 232 / 0.9); }
.demande__promesses svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: var(--chene-clair); stroke-width: 2; }

.formulaire {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--creme);
  background-image: var(--grain);
  background-size: 180px;
  color: var(--noyer);
  border-radius: calc(var(--rayon) * 2);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.5);
}
.progression { margin-bottom: 2rem; }
.progression__texte { font-size: 0.85rem; color: var(--texte-doux); margin-bottom: 0.75rem; }
.progression__texte span:first-child { font-weight: 600; color: var(--chene-texte); }
.progression__piste { height: 3px; background: var(--lin-fonce); border-radius: 3px; overflow: hidden; }
.progression__barre { display: block; height: 100%; width: 25%; background: var(--chene); border-radius: 3px; transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }

.etape-form { border: 0; margin: 0; padding: 0; min-width: 0; }
.etape-form.entree { animation: etape-entree 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes etape-entree { from { opacity: 0; transform: translateX(16px); } }
.etape-form__titre { font-family: var(--police-titre); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.2; padding: 0; margin-bottom: 1.5rem; }

.choix-cartes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.choix-carte {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 7.5rem;
  padding: 1rem;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--lin);
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.choix-carte:last-child { grid-column: 1 / -1; min-height: 5rem; flex-direction: row; }
.choix-carte:hover { border-color: var(--chene); transform: translateY(-2px); }
.choix-carte input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choix-carte svg { width: 2.25rem; height: 2.25rem; fill: none; stroke: var(--chene-texte); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.choix-carte:has(input:checked) { border-color: var(--chene-texte); background: #f6ead9; box-shadow: inset 0 0 0 1px var(--chene-texte); }
.choix-carte:has(input:focus-visible) { outline: 2px solid var(--chene-texte); outline-offset: 3px; }
.choix-carte:has(input:checked)::after {
  content: '';
  position: absolute; top: 0.6rem; right: 0.6rem;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--chene-texte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbf8f3' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.champ { margin-bottom: 1.4rem; border: 0; padding: 0; min-width: 0; }
.champ--groupe legend { padding: 0; }
.champ label, .champ__etiquette, .champ--groupe legend { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.45rem; }
.facultatif { font-weight: 400; color: var(--texte-doux); }
.champ input[type='text'], .champ input[type='email'], .champ input[type='tel'], .champ input[type='number'], .champ select, .champ textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #b9ab9b;
  border-radius: var(--rayon);
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.champ select {
  appearance: none;
  padding-right: 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b211a' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 0.8rem center / 1.1rem no-repeat;
}
.champ textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--chene-texte); box-shadow: 0 0 0 3px rgb(184 131 74 / 0.28); }
.champ [aria-invalid='true'] { border-color: var(--erreur) !important; }
::placeholder { color: #8b7d70; opacity: 1; }

.dimensions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.dimensions label { font-weight: 400; font-size: 0.82rem; color: var(--texte-doux); margin: 0; }
.dimensions label span { display: block; margin-bottom: 0.3rem; }

.pastilles { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pastille { position: relative; margin: 0 !important; font-weight: 500 !important; }
.pastille input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pastille span {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid #b9ab9b;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.pastille:hover span { border-color: var(--chene-texte); }
.pastille input:checked + span { background: var(--noyer); border-color: var(--noyer); color: var(--lin); }
.pastille input:focus-visible + span { outline: 2px solid var(--chene-texte); outline-offset: 2px; }

.aide { font-size: 0.82rem; color: var(--texte-doux); margin: 0.4rem 0 0; }
.erreur {
  display: flex; align-items: flex-start; gap: 0.4rem;
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--erreur);
}
.erreur::before { content: '!'; flex: none; display: grid; place-items: center; width: 1.1rem; height: 1.1rem; margin-top: 0.1rem; border-radius: 50%; background: var(--erreur); color: #fff; font-size: 0.72rem; }
.erreur[hidden] { display: none; }

.depot {
  display: flex !important;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1.5px dashed #b9ab9b;
  border-radius: var(--rayon);
  background: var(--lin);
  font-weight: 400 !important;
  font-size: 0.85rem !important;
  color: var(--texte-doux);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.depot strong { color: var(--noyer); font-size: 0.95rem; }
.depot svg { flex: none; width: 2rem; height: 2rem; fill: none; stroke: var(--chene-texte); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.depot:hover, .depot.survol { border-color: var(--chene-texte); background: #f6ead9; }
.depot__champ { position: absolute; width: 1px; height: 1px; opacity: 0; }
.depot__champ:focus-visible + .apercus, .depot:has(+ .depot__champ:focus-visible) { outline: 2px solid var(--chene-texte); outline-offset: 3px; }
.apercus { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 0.6rem; margin-top: 0.8rem; }
.apercus:empty { display: none; }
.apercu { position: relative; aspect-ratio: 1; border-radius: var(--rayon); overflow: hidden; background: var(--lin-fonce); }
.apercu img { width: 100%; height: 100%; object-fit: cover; }
.apercu__pdf { display: grid; place-items: center; height: 100%; padding: 0.4rem; font-size: 0.7rem; text-align: center; word-break: break-all; }
.apercu__pdf strong { display: block; font-size: 0.9rem; color: var(--erreur); }
.apercu__retirer {
  position: absolute; top: 0.25rem; right: 0.25rem;
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(25 18 13 / 0.78);
  color: #fff;
}
.apercu__retirer svg { width: 0.9rem; height: 0.9rem; fill: none; stroke: currentColor; stroke-width: 2.4; }

.champs-duo { display: grid; gap: 0 1rem; }
.champ--case { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.champ--case input { width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; accent-color: var(--chene-texte); }
.champ--case label { font-weight: 400; font-size: 0.88rem; line-height: 1.5; color: var(--noyer-doux); margin: 0; }
.champ--case .erreur { grid-column: 1 / -1; }

.formulaire__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--trait); }
.formulaire__actions [data-precedent] { margin-right: auto; }
.formulaire__actions [hidden] { display: none; }
.bouton[aria-busy='true'] { opacity: 0.7; pointer-events: none; }

.confirmation { text-align: center; padding: 1rem 0; outline: none; }
.confirmation__picto { width: 5rem; height: 5rem; margin: 0 auto 1.5rem; fill: none; stroke: var(--chene-texte); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.confirmation__picto circle { stroke-dasharray: 230; stroke-dashoffset: 230; animation: dessin 1s 0.1s ease forwards; stroke: var(--chene); }
.confirmation__picto path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: dessin 0.6s 0.9s ease forwards; }
@keyframes dessin { to { stroke-dashoffset: 0; } }
.confirmation__titre { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); margin-bottom: 1rem; }
.confirmation > p { max-width: 30rem; margin-inline: auto; color: var(--noyer-doux); }
.confirmation__recap { display: grid; gap: 0.5rem; max-width: 26rem; margin: 2rem auto; padding: 1.25rem; text-align: left; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--lin); font-size: 0.9rem; }
.confirmation__recap div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; }
.confirmation__recap dt { color: var(--texte-doux); }
.confirmation__recap dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.confirmation__demo { font-size: 0.82rem; font-style: italic; color: var(--sauge-texte) !important; }
.confirmation .bouton { margin-top: 1rem; }

/* --- Pied de page -------------------------------------------------------- */

.pied { position: relative; padding: clamp(4rem, 9vw, 6rem) 0 2rem; background: #211912; color: rgb(245 240 232 / 0.82); font-size: 0.95rem; }
.pied::before { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.25; pointer-events: none; }
.pied__grille { position: relative; display: grid; gap: 2.5rem; }
.logo--clair { color: var(--lin); margin-bottom: 1.25rem; }
.pied__marque p { max-width: 22rem; }
.pied__titre { font-family: var(--police-texte); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--chene-clair); margin-bottom: 1rem; }
.pied__adresse { font-style: normal; line-height: 1.9; }
.pied a { color: var(--lin); }
.pied a:hover { color: var(--chene-clair); }
.pied :focus-visible { outline-color: var(--chene-clair); }
.horaires { margin: 0; display: grid; gap: 0.4rem; }
.horaires div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted rgb(245 240 232 / 0.2); padding-bottom: 0.4rem; }
.horaires dd { margin: 0; color: var(--lin); }
.pied__note { margin-top: 1rem; font-size: 0.85rem; font-style: italic; }
.pied__liens { display: grid; gap: 0.5rem; }
.pied__liens a { text-decoration: none; }
.pied__liens a:hover { text-decoration: underline; }
.reseaux { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.reseaux a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid rgb(245 240 232 / 0.25); border-radius: 50%; transition: border-color 0.25s, background-color 0.25s; }
.reseaux a:hover { border-color: var(--chene-clair); background: rgb(245 240 232 / 0.06); }
.reseaux svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pied__bas { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(245 240 232 / 0.15); font-size: 0.82rem; }
.pied__bas p { margin: 0; }
.pied__demo { color: rgb(245 240 232 / 0.72); }

/* --- Barre d'actions mobile ---------------------------------------------- */

.barre-mobile {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem var(--gouttiere) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgb(245 240 232 / 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -1px 0 var(--trait), 0 -8px 24px -12px rgb(43 33 26 / 0.3);
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.barre-mobile.visible { transform: none; }
.barre-mobile__bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem;
  border: 1px solid var(--noyer);
  border-radius: var(--rayon);
  font-weight: 600;
  text-decoration: none;
  color: var(--noyer);
}
.barre-mobile__bouton svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.barre-mobile__bouton--accent { background: var(--chene); border-color: var(--chene); }
.barre-mobile__bouton:hover { color: var(--noyer); }

/* --- Modale projet ------------------------------------------------------- */

.modale {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--lin);
  color: var(--noyer);
  overscroll-behavior: contain;
}
.modale::backdrop { background: rgb(25 18 13 / 0.75); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modale[open] { animation: modale-entree 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); }
@keyframes modale-entree { from { opacity: 0; transform: translateY(30px); } }
.modale__boite { position: relative; display: grid; }
.modale__fermer {
  position: fixed;
  top: 0.75rem; right: 0.75rem;
  z-index: 2;
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--noyer);
  color: var(--lin);
  box-shadow: var(--ombre);
}
.modale__fermer svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.modale__galerie { background: var(--noyer); }
.modale__image-principale { aspect-ratio: 4 / 3; overflow: hidden; }
.modale__image-principale img { width: 100%; height: 100%; object-fit: cover; }
.modale__image-principale img.change { animation: fondu 0.5s; }
@keyframes fondu { from { opacity: 0.2; } }
.modale__vignettes { display: flex; gap: 0.5rem; padding: 0.75rem; overflow-x: auto; }
.modale__vignettes button { flex: none; width: 5rem; height: 3.75rem; padding: 0; border: 2px solid transparent; border-radius: var(--rayon); overflow: hidden; background: none; opacity: 0.6; transition: opacity 0.25s, border-color 0.25s; }
.modale__vignettes button[aria-current='true'] { opacity: 1; border-color: var(--chene); }
.modale__vignettes button:hover { opacity: 1; }
.modale__vignettes img { width: 100%; height: 100%; object-fit: cover; }
.modale__contenu { padding: 2rem var(--gouttiere) 3rem; }
.modale__titre { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); margin: 0.5rem 0 1.75rem; }
.modale__contenu h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.modale__contenu .projet__categorie { color: var(--chene-texte); }
.modale__contenu > .comparateur { margin-top: 0.75rem; }
.modale__contenu > .bouton { margin-top: 1.5rem; }
.modale__colonnes { display: grid; gap: 0 2.5rem; }
.modale__colonnes > div > h3:first-child { margin-top: 0; }
.modale__colonnes p { color: var(--noyer-doux); }
.fiche { margin-top: 1.5rem; padding: 1.25rem 1.4rem; background: var(--creme); border: 1px solid var(--trait); border-radius: var(--rayon); align-self: start; }
.fiche dl { margin: 0; display: grid; gap: 0.6rem; font-size: 0.92rem; }
.fiche dl div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.75rem; padding-bottom: 0.6rem; border-bottom: 1px dotted var(--trait); }
.fiche dl div:last-child { border: 0; padding: 0; }
.fiche dt { color: var(--texte-doux); }
.fiche dd { margin: 0; font-weight: 600; }

/* --- Pages annexes ------------------------------------------------------- */

.page-simple .entete { position: sticky; top: 0; background: rgb(245 240 232 / 0.94); color: var(--noyer); box-shadow: 0 1px 0 var(--trait); }
.page-simple .navigation__retour { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; text-decoration: none; min-height: 2.75rem; }
.page-simple .navigation__retour svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.6; transform: rotate(180deg); }
.legal { padding-block: clamp(3rem, 8vw, 5.5rem); }
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); margin-bottom: 1rem; }
.legal h2 { font-size: 1.5rem; margin: 2.75rem 0 0.75rem; }
.legal p, .legal li { color: var(--noyer-doux); }
.legal ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4rem; }
.legal .avertissement { padding: 1rem 1.25rem; border: 1px dashed var(--sauge-texte); border-radius: var(--rayon); background: var(--creme); font-size: 0.92rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-bottom: 1em; }
.legal th, .legal td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.legal th { font-weight: 600; background: var(--creme); }
.legal .tableau { overflow-x: auto; }
.page-simple .pied { padding-bottom: 2rem; }

.page-404 { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 2rem var(--gouttiere); background: var(--noyer); color: var(--lin); text-align: center; isolation: isolate; position: relative; overflow: hidden; }
.page-404__fond { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; animation: rotation-lente 120s linear infinite; scale: 1.5; }
@keyframes rotation-lente { to { rotate: 360deg; } }
.page-404__code { font-family: var(--police-titre); font-size: clamp(6rem, 4rem + 14vw, 13rem); font-weight: 300; line-height: 0.9; color: var(--chene-clair); margin: 0 0 1rem; }
.page-404 h1 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); margin-bottom: 1rem; }
.page-404 p { max-width: 30rem; margin-inline: auto; color: rgb(245 240 232 / 0.85); }
.page-404 .bouton { margin-top: 1.5rem; }
.page-404 .logo { margin: 0 auto 3rem; color: var(--lin); }

/* ==========================================================================
   Tablette et plus
   ========================================================================== */

@media (min-width: 640px) {
  .prestations { grid-template-columns: repeat(2, 1fr); }
  .projets { grid-template-columns: repeat(2, 1fr); }
  .choix-cartes { grid-template-columns: repeat(3, 1fr); }
  .choix-carte:last-child { grid-column: auto; min-height: 7.5rem; flex-direction: column; }
  .champs-duo { grid-template-columns: 1fr 1fr; }
  .compteurs { grid-template-columns: repeat(4, 1fr); }
  .avis__liste { grid-template-columns: repeat(2, 1fr); }
  .pied__grille { grid-template-columns: repeat(2, 1fr); }
  .bois { grid-auto-columns: minmax(15rem, 42%); }
  .modale__colonnes { grid-template-columns: 1.4fr 1fr; }
  .modale__colonnes .fiche { margin-top: 0; }
}

@media (min-width: 960px) and (max-width: 1279px) {
  .bois { grid-auto-columns: minmax(15rem, 30%); }
}

@media (min-width: 768px) {
  .hero__cote { display: block; }
  .hero__defiler { display: block; }
  .choix-cartes { grid-template-columns: repeat(5, 1fr); }
  .engagements { grid-template-columns: repeat(3, 1fr); }
  .engagements li { flex-direction: column; }
}

@media (min-width: 960px) {
  :root { --hauteur-entete: 5.25rem; }
  .artisan__grille { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 7rem); }
  .prestations { grid-template-columns: repeat(4, 1fr); }
  .comparaisons { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .comparaison:first-child { grid-column: 1 / -1; }
  .comparaison:first-child .comparateur { aspect-ratio: 21 / 9; }
  .methode__grille { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .methode__intro { position: sticky; top: calc(var(--hauteur-entete) + 2rem); }
  .zone__grille { grid-template-columns: 1fr 1fr; }
  .demande__grille { grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 5vw, 6rem); align-items: start; }
  .demande__intro { position: sticky; top: calc(var(--hauteur-entete) + 2rem); }
  .demande__fond { width: 45%; }
  .avis__liste { grid-template-columns: repeat(3, 1fr); }
  .avis__carte:nth-child(2) { transform: translateY(2rem); }
  .pied { padding-bottom: 2rem; }
  .barre-mobile { display: none; }


  .modale {
    width: min(72rem, calc(100% - 4rem));
    height: auto;
    max-height: calc(100% - 4rem);
    margin: auto;
    border-radius: calc(var(--rayon) * 2);
    box-shadow: 0 40px 80px -20px rgb(0 0 0 / 0.6);
  }
  .modale__boite { grid-template-columns: 1.1fr 1fr; }
  .modale__galerie { position: sticky; top: 0; align-self: start; }
  .modale__image-principale { aspect-ratio: 4 / 5; }
  .modale__fermer { position: absolute; top: 1rem; right: 1rem; }
  .modale__contenu { padding: 3rem 2.75rem; }
  .modale__colonnes { grid-template-columns: 1fr; }
  .modale__colonnes .fiche { margin-top: 1.5rem; }
}

@media (min-width: 1100px) {
  /* Menu horizontal */
  .burger { display: none; }
  .navigation {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2.25rem;
    padding: 0;
    background: none;
    color: inherit;
    visibility: visible;
    opacity: 1;
    clip-path: none;
    transition: none;
  }
  .navigation__liste { display: flex; gap: 2rem; }
  .navigation__liste a {
    position: relative;
    white-space: nowrap;
    font-family: var(--police-texte);
    font-size: 0.95rem;
    font-weight: 500;
    padding-block: 0.5rem;
  }
  .navigation__liste a::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0.2rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .navigation__liste a:hover { color: inherit; }
  .navigation__liste a:hover::after, .navigation__liste a[aria-current='true']::after { transform: scaleX(1); transform-origin: left; }
  .navigation__cta { min-height: 2.75rem; padding-block: 0.6rem; white-space: nowrap; }

  .projets { grid-template-columns: repeat(3, 1fr); }
  .projet:nth-child(3n + 2) { margin-top: 3rem; }
  .projet__image { aspect-ratio: 4 / 5; }
}

@media (min-width: 1280px) {
  .pied__grille { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .bois { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .bois__carte:nth-child(even) { transform: translateY(1.5rem); }
  .js .bois__carte:nth-child(even)[data-apparition].visible { transform: translateY(1.5rem); }
}

@media (min-width: 1440px) {
  :root { --largeur-max: 82rem; }
}

/* ==========================================================================
   Mouvement réduit : pas de parallaxe, de zoom ni d'animations décoratives
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .hero__image, .page-404__fond { animation: none !important; }
  .hero__defiler-trait { animation: none !important; }
  .js [data-apparition] { opacity: 1; transform: none; }
  .js [data-trace] path { stroke-dashoffset: 0; }
  .navigation, .navigation.ouverte { clip-path: none; }
}

/* Impression : contenu seul */
@media print {
  .entete, .barre-mobile, .hero__media, .hero__voile, .formulaire, .modale, .filtres { display: none !important; }
  .hero, .chiffres, .projet, .pied { background: none; color: #000; min-height: 0; }
  .js [data-apparition] { opacity: 1; transform: none; }
}
