/* ==========================================================================
   CARRELAGE BROYE — système de design C10, déclinaison "claire, photo-portée"
   (technique B du système signature : fond ivoire/travertin, matière réelle
   du métier en photo, verre réservé aux badges/CTA flottants sur les photos).
   Architecture partagée avec les autres sites C10 ; palette, typo et le
   composant hero-media sont propres à ce site. Rien ne dépend du JS/scroll
   pour être visible.
   ========================================================================== */

@font-face {
  font-family: 'FontTitre';
  src: url('../fonts/font-titre-var.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: 'FontTexte';
  src: url('../fonts/font-texte-var.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-display: swap;
}

/* ---- Tokens ----
   Matière : argile cuite (terracotta) + grès émaillé (petrol), sur fond
   ivoire/travertin. Palette chaude à dominante minérale — jamais d'aqua ni
   de violet, jamais de fond sombre par défaut (registre "clair, photo-porté",
   à l'opposé de l'immersion sombre utilisée sur d'autres sites C10). */
:root {
  /* Fond clair, du plus chaud/profond au plus clair */
  --ivoire-fonce: #ece1d1;
  --ivoire:       #f7f1e6;
  --ivoire-clair: #fbf7ef;
  --papier:       #fffcf7;

  /* Contraste sombre (bandes ponctuelles, jamais le fond par défaut) */
  --anthracite:   #2a221b;
  --anthracite-2: #372c22;

  /* Accent argile cuite */
  --terre:        #a8481f;
  --terre-vif:    #c1552c;
  --terre-clair:  #e2793f;
  --terre-pale:   #f3ceb0;

  /* Accent grès émaillé (secondaire, usage minoritaire) */
  --gres:         #2f6b64;
  --gres-clair:   #4f9089;
  --gres-pale:    #cfe3e0;

  /* Texte sur fond clair (défaut du site) */
  --texte:      #5a4a3c;
  --texte-fort: #241d16;
  --texte-2:    #8a7a68;

  /* Verre — sur fond clair, jamais sur fond sombre par défaut */
  --glass:     rgba(255, 252, 247, .62);
  --glass-2:   rgba(255, 252, 247, .86);
  --glass-brd: rgba(42, 34, 27, .1);
  --glow:      rgba(193, 85, 44, .28);

  /* Ombres teintées chaud, jamais du noir plat */
  --shadow-xs:    0 1px 2px rgba(42, 30, 20, .06);
  --shadow-card:  0 2px 6px rgba(42, 30, 20, .05), 0 18px 40px rgba(42, 30, 20, .1);
  --shadow-float: 0 8px 20px rgba(42, 30, 20, .08), 0 30px 64px rgba(42, 30, 20, .16);
  --shadow-cta:   0 0 0 1px rgba(193, 85, 44, .22), 0 10px 28px rgba(168, 72, 31, .35);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 999px;

  --section-y: clamp(4rem, 9vw, 7rem);
  --container: 72rem;
  --gutter: clamp(1.125rem, 4vw, 2rem);

  --f-titre: 'FontTitre', ui-serif, Georgia, serif;
  --f-texte: 'FontTexte', system-ui, -apple-system, sans-serif;
  --fs-h1: clamp(2.3rem, 1.2rem + 4.4vw, 4rem);
  --fs-h2: clamp(1.6rem, 1.1rem + 2.2vw, 2.5rem);
  --fs-h3: 1.2rem;
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-stat: clamp(2.4rem, 1.4rem + 3.6vw, 3.6rem);

  --z-fond: 0;
  --z-contenu: 1;
  --z-header: 40;
  --z-nav: 50;
  --z-modal: 60;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-titre);
  font-optical-sizing: auto;
  color: var(--texte-fort);
  line-height: 1.12;
  letter-spacing: -.012em;
  text-wrap: balance;
  margin: 0 0 .6em;
}
h1 { font-size: var(--fs-h1); font-weight: 560; }
h2 { font-size: var(--fs-h2); font-weight: 560; }
h3 { font-size: var(--fs-h3); font-weight: 620; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }

p, ul, ol { margin: 0 0 1.1em; }
main p, main li { max-width: 68ch; text-wrap: pretty; }
ul, ol { padding-left: 1.35em; }
li { margin-bottom: .4em; }

a { color: var(--terre); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terre-vif); }

strong { color: var(--texte-fort); font-weight: 700; }
small { font-size: var(--fs-small); color: var(--texte-2); }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: .5rem;
  background: var(--anthracite);
  color: var(--ivoire-clair);
  font-weight: 700;
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  z-index: 100;
}
.skip-link:focus { left: .5rem; }

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: var(--z-contenu);
}

section { padding-block: var(--section-y); position: relative; z-index: var(--z-contenu); }
section.tight { padding-block: calc(var(--section-y) * .55); }

/* ---- Rythme sur fond clair ----
   Le fond par défaut est déjà clair (ivoire). .s-blanc marque une surface
   plus nette (papier blanc) pour les preuves chiffrées ; .s-fonce est une
   bande de CONTRASTE ponctuelle (anthracite), à l'inverse du site "immersion
   sombre" où c'est le fond clair qui fait exception. */
.s-blanc {
  background: linear-gradient(180deg, var(--papier), var(--ivoire-clair));
  color: var(--texte);
}

.s-fonce {
  background: linear-gradient(165deg, var(--anthracite), var(--anthracite-2));
  color: #e7dccd;
  --texte:      #e7dccd;
  --texte-fort: #fff8ee;
  --texte-2:    #b6a891;
  --terre:      #f3ceb0;
  --glass:      rgba(255, 255, 255, .07);
  --glass-2:    rgba(255, 255, 255, .1);
  --glass-brd:  rgba(255, 248, 238, .16);
  --glow:       rgba(226, 121, 63, .4);
  --shadow-xs:    0 1px 2px rgba(0, 0, 0, .3);
  --shadow-card:  0 4px 10px rgba(0, 0, 0, .28), 0 22px 54px rgba(0, 0, 0, .42);
  --shadow-float: 0 8px 18px rgba(0, 0, 0, .32), 0 30px 70px rgba(0, 0, 0, .5);
}
.s-fonce a { color: var(--terre-clair); }
.s-fonce a:hover { color: var(--ivoire-clair); }
.s-fonce thead th { background: rgba(255, 255, 255, .06); color: var(--terre-clair); }
.s-fonce .chip { color: var(--terre-clair); }

/* Cartes/stats/étapes restent des surfaces PAPIER opaques même dans une
   bande sombre (.s-fonce) : leur texte doit rester foncé, pas hériter des
   couleurs claires de la bande — sinon texte clair sur carte claire. */
.s-fonce .carte, .s-fonce .stat, .s-fonce .etapes li, .s-fonce .prix-carte, .s-fonce .table-scroll {
  --texte: #5a4a3c;
  --texte-fort: #241d16;
  --texte-2: #8a7a68;
  --terre: #a8481f;
  --terre-clair: #c1552c;
  --glass: rgba(193, 85, 44, .07);
  --glass-brd: rgba(42, 34, 27, .1);
  color: var(--texte);
}
.s-fonce .carte a, .s-fonce .stat a, .s-fonce .etapes li a, .s-fonce .prix-carte a, .s-fonce .table-scroll a { color: var(--terre); }
.s-fonce .carte a:hover, .s-fonce .stat a:hover, .s-fonce .etapes li a:hover, .s-fonce .prix-carte a:hover, .s-fonce .table-scroll a:hover { color: var(--terre-clair); }
.s-fonce .icone-pastille { background: rgba(193, 85, 44, .12); color: var(--terre); }

.s-hero { background: transparent; }

/* ==========================================================================
   CALQUE D'AMBIANCE — version claire : lumière chaude qui pose sur le
   papier plutôt que des masses lumineuses sur fond sombre. Blend "multiply"
   (et non "screen", qui disparaît sur fond clair). Purement décoratif,
   coupé par prefers-reduced-motion, jamais de contenu masqué en attendant.
   ========================================================================== */
.fond-vivant { position: fixed; inset: 0; z-index: var(--z-fond); overflow: hidden; pointer-events: none; isolation: isolate; }

.fond-vivant i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: multiply;
  opacity: .5;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.fond-vivant .masse-1 {
  width: 62vw; height: 62vw; max-width: 820px; max-height: 820px; top: -20vw; right: -12vw;
  background: radial-gradient(circle at 40% 40%, var(--terre-pale), transparent 65%);
  animation: derive1 28s ease-in-out infinite alternate;
}
.fond-vivant .masse-2 {
  width: 54vw; height: 54vw; max-width: 700px; max-height: 700px; bottom: -16vw; left: -14vw;
  background: radial-gradient(circle at 55% 45%, var(--gres-pale), transparent 62%);
  animation: derive2 36s ease-in-out infinite alternate;
  opacity: .32;
}
.fond-vivant .masse-3 {
  width: 38vw; height: 38vw; max-width: 500px; max-height: 500px; top: 42%; left: 46%;
  background: radial-gradient(circle at 50% 50%, var(--ivoire-fonce), transparent 60%); opacity: .4;
  animation: derive3 32s ease-in-out infinite alternate;
}
.fond-vivant .texture { display: none; }
.fond-vivant .rayon { display: none; }

@keyframes derive1 { from { transform: translate3d(0,0,0) scale(1); }    to { transform: translate3d(-5%,4%,0) scale(1.1); } }
@keyframes derive2 { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(6%,-4%,0) scale(1); } }
@keyframes derive3 { from { transform: translate3d(0,0,0); }             to { transform: translate3d(-7%,-5%,0); } }

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--f-texte);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  padding: .85rem 1.7rem;
  min-height: 48px;
  border-radius: var(--r-pill);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease-out, background-color .2s, border-color .2s, color .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--terre-clair), var(--terre));
  color: #fff8ee;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  color: #fff8ee;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(193, 85, 44, .4), 0 16px 38px rgba(168, 72, 31, .45);
}
.btn-wa { background: linear-gradient(135deg, #35d17e, #12925a); color: #032218; box-shadow: 0 0 0 1px rgba(53,209,126,.35), 0 10px 30px rgba(18, 140, 80, .45); }
.btn-wa:hover { color: #032218; transform: translateY(-2px); }
.btn-ghost {
  background: var(--glass);
  color: var(--texte-fort);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--terre); color: var(--terre); }
.btn-blanc { background: var(--papier); color: var(--anthracite); box-shadow: var(--shadow-card); }
.btn-blanc:hover { color: var(--anthracite); transform: translateY(-2px); }

/* ---- Verre ---- */
.glass {
  background: linear-gradient(165deg, var(--glass-2), rgba(255, 252, 247, .3));
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), var(--shadow-card);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .glass { -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
}

/* ---- Chips & badges ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  color: var(--terre);
  border-radius: var(--r-pill);
  font-size: .845rem;
  font-weight: 700;
  padding: .42rem 1rem;
}
.chip--data { background: var(--glass); }
.chip--sable { color: var(--gres); border-color: rgba(47, 107, 100, .3); }

.chip-liste { display: flex; flex-wrap: wrap; gap: .65rem; padding: 0; margin: 0 0 1.1em; list-style: none; }
.chip-liste li { margin: 0; }
.chip-liste a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--papier);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-pill);
  padding: .58rem 1.15rem;
  min-height: 44px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--texte-fort);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: border-color .2s, transform .2s cubic-bezier(.16,1,.3,1), color .2s;
}
.chip-liste a:hover { border-color: var(--terre); color: var(--terre); transform: translateY(-2px); }
.chip-liste .pin { color: var(--terre); flex: none; }
/* .chip-liste a est une pilule PAPIER opaque même sur une bande sombre. */
.s-fonce .chip-liste a { color: #241d16; }
.s-fonce .chip-liste a:hover { color: var(--terre); }

/* ---- Header : barre flottante en verre ---- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); padding-top: 12px; background: transparent; }
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.9rem;
  padding: .45rem .6rem .45rem 1.2rem;
  margin-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  border-radius: var(--r-pill);
  background: rgba(255, 252, 247, .78);
  border: 1px solid var(--glass-brd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 14px 38px rgba(42, 30, 20, .1);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header .wrap { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-titre);
  font-size: 1.12rem;
  font-weight: 620;
  letter-spacing: -.01em;
  color: var(--texte-fort);
  text-decoration: none;
  margin-right: auto;
}
.logo svg { flex: none; filter: drop-shadow(0 0 7px var(--glow)); }
.logo span { color: var(--terre); }

.site-header nav { display: flex; align-items: center; gap: 1.35rem; }
.site-header nav a { font-size: .97rem; font-weight: 650; color: var(--texte); text-decoration: none; padding: .35rem 0; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--terre); }
.site-header nav .mobile-devis { display: none; }

.cta-header { padding: .6rem 1.25rem; min-height: 42px; font-size: .94rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; color: var(--texte-fort); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icone-fermer { display: none; }
.nav-toggle[aria-expanded="true"] .icone-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icone-fermer { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-header nav {
    display: none;
    position: absolute;
    inset: calc(100% + 8px) 0 auto 0;
    z-index: var(--z-nav);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 252, 247, .97);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-float);
    padding: .6rem 0;
  }
  @supports (backdrop-filter: blur(1px)) {
    .site-header nav { background: rgba(255, 252, 247, .9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  }
  .site-header nav.nav-open { display: flex; }
  .site-header nav a { padding: .85rem 1.4rem; font-size: 1.05rem; }
  .site-header nav .mobile-devis { display: block; color: var(--terre); }
  .cta-header { display: none; }
  body.nav-locked { overflow: hidden; }
}

/* ---- Hero ---- */
.hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero .wrap { display: grid; gap: clamp(2.4rem, 5vw, 3.8rem); align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: .5em; }
.hero h1 em { font-style: normal; color: var(--terre); }
.hero .lead { font-size: clamp(1.08rem, 1rem + .5vw, 1.24rem); color: var(--texte); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }
.hero-note { margin-top: 1.1rem; font-size: .92rem; color: var(--texte-2); max-width: 40em; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes eveil { from { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 0 rgba(42,30,20,0); } }
  .hero-media { animation: eveil 1.1s cubic-bezier(.16, 1, .3, 1); }
}

/* ---- Media hero : photo réelle + badge de verre flottant (technique B) ----
   La photo porte le message ("voir le travail réel"), le verre ne sert plus
   qu'à faire flotter un badge chiffré par-dessus — jamais en fond principal. */
.hero-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-float);
  isolation: isolate;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(42,22,10,.05) 40%, rgba(42,22,10,.55));
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  padding: clamp(1.3rem, 3vw, 1.7rem);
  z-index: 2;
}
.hero-badge h2 { font-size: 1rem; font-weight: 700; color: var(--texte); margin-bottom: .15rem; }
.hero-badge .valeur {
  font-family: var(--f-titre);
  font-size: clamp(2.6rem, 1.6rem + 3.6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--texte-fort);
  font-variant-numeric: tabular-nums;
  margin: .2rem 0 .15rem;
}
.hero-badge .valeur small { font-size: .32em; font-weight: 700; color: var(--terre); letter-spacing: 0; }
.hero-badge p { margin: 0; }

/* Variante sans photo (pages où aucune photo dédiée n'est pertinente) */
.hero-carte { padding: clamp(1.5rem, 3.5vw, 2.2rem); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), var(--shadow-float); }
.hero-carte h2, .hero-carte h3 { font-size: 1.05rem; font-weight: 700; color: var(--texte); margin-bottom: .2rem; }
.hero-carte .valeur {
  font-family: var(--f-titre);
  font-size: clamp(3.6rem, 2rem + 6.5vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--texte-fort);
  font-variant-numeric: tabular-nums;
  margin: .3rem 0 .2rem;
}
.hero-carte .valeur small { font-size: .28em; font-weight: 700; color: var(--terre); letter-spacing: 0; }

/* ---- Bandeau réassurance ---- */
.reassurance {
  border-block: 1px solid var(--glass-brd);
  background: linear-gradient(180deg, rgba(236, 225, 209, .6), rgba(247, 241, 230, .2));
  padding-block: 1.1rem;
  position: relative;
  z-index: var(--z-contenu);
}
@supports (backdrop-filter: blur(1px)) { .reassurance { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } }
.reassurance ul { display: flex; flex-wrap: wrap; gap: .55rem 2.2rem; justify-content: center; list-style: none; margin: 0; padding: 0; }
.reassurance li { display: inline-flex; align-items: center; gap: .55rem; font-size: .94rem; font-weight: 650; color: var(--texte); margin: 0; }
.reassurance svg { color: var(--terre); flex: none; }

/* ---- Cartes ---- */
.grille { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); margin-block: 2rem .5rem; }
.carte {
  background: var(--papier);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 1.7rem 1.6rem;
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s;
}
.carte:hover { transform: translateY(-3px); border-color: rgba(193, 85, 44, .35); }
.carte p:last-child, .carte ul:last-child { margin-bottom: 0; }
.carte .lien { font-weight: 700; text-decoration: none; }
.carte .lien::after { content: " →"; }
.carte .lien:hover { text-decoration: underline; }

/* Carte avec photo en tête (galerie de réalisations) */
.carte-photo { padding: 0; overflow: hidden; }
.carte-photo img { aspect-ratio: 4/3; object-fit: cover; }
.carte-photo .carte-corps { padding: 1.4rem 1.5rem 1.6rem; }
.carte-photo h3 { margin-bottom: .3rem; }

.icone-pastille {
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(193, 85, 44, .12);
  border: 1px solid var(--glass-brd);
  color: var(--terre);
  display: grid; place-items: center; margin-bottom: 1rem;
}

/* ---- Stats ---- */
.stats { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); margin-block: 2rem; }
.stat {
  background: var(--papier);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.5rem 1.4rem;
}
.stat .nombre {
  font-family: var(--f-titre);
  font-size: var(--fs-stat);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.05;
  color: var(--texte-fort);
  font-variant-numeric: tabular-nums;
  display: block;
}
.stat .nombre small { font-size: .4em; font-weight: 700; color: var(--terre); }
.stat p { margin: .55rem 0 0; font-size: var(--fs-small); }

/* ---- Étapes ---- */
.etapes {
  display: grid; gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  counter-reset: etape; list-style: none; padding: 0; margin-block: 2rem .5rem;
}
.etapes li {
  counter-increment: etape;
  position: relative;
  background: var(--papier);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 1.8rem 1.6rem 1.5rem;
  overflow: hidden;
  margin: 0;
}
.etapes li::before {
  content: counter(etape, decimal-leading-zero);
  position: absolute; top: -.32em; right: .18em;
  font-family: var(--f-titre); font-size: 4.6rem; font-weight: 700; letter-spacing: -.03em;
  color: rgba(193, 85, 44, .1); line-height: 1; pointer-events: none;
}
.s-fonce .etapes li::before { color: rgba(255, 248, 238, .07); }
.etapes h3 { position: relative; margin-bottom: .4rem; }
.etapes p { position: relative; margin: 0; font-size: var(--fs-small); }

/* ---- Tableaux ---- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: 1.9rem;
  border-radius: var(--r-md);
  background: var(--papier);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-card);
}
table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 34rem; }
caption { text-align: left; font-weight: 700; color: var(--texte-fort); padding: 1.2rem 1.4rem .4rem; font-size: 1.02rem; }
th, td { text-align: left; padding: .82rem 1.4rem; border-top: 1px solid var(--glass-brd); vertical-align: top; }
thead th { border-top: 0; background: rgba(193, 85, 44, .06); color: var(--terre); font-size: .86rem; letter-spacing: .02em; }
tbody th { font-weight: 650; color: var(--texte-fort); }
tbody tr:hover { background: rgba(193, 85, 44, .04); }
td .fh { font-weight: 800; color: var(--terre); white-space: nowrap; font-variant-numeric: tabular-nums; }
.regime-vd { font-weight: 800; color: var(--terre); }
.regime-fr { font-weight: 800; color: var(--gres); }

/* ---- Cartes prix ---- */
.prix-grille { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); margin-block: 2rem .75rem; align-items: stretch; }
.prix-carte {
  background: var(--papier);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 1.9rem 1.7rem;
  display: flex; flex-direction: column;
}
.prix-carte.vedette { border-color: rgba(193, 85, 44, .45); box-shadow: var(--shadow-float), 0 0 50px rgba(193, 85, 44, .1); }
.prix-carte .montant {
  font-family: var(--f-titre);
  font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.3rem);
  font-weight: 600; letter-spacing: -.03em;
  color: var(--texte-fort); margin: .3rem 0 .1rem;
  font-variant-numeric: tabular-nums;
}
.prix-carte .montant small { font-size: .5em; font-weight: 700; color: var(--terre); }
.prix-carte ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.prix-carte li { padding-left: 1.75em; position: relative; font-size: var(--fs-small); margin-bottom: .58em; }
.prix-carte li::before {
  content: ""; position: absolute; left: 0; top: .34em; width: 1.05em; height: 1.05em; border-radius: 50%;
  background: rgba(193, 85, 44, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23a8481f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") center/68% no-repeat;
}
.prix-carte .btn { margin-top: auto; }

/* ---- FAQ ---- */
.faq-liste { margin-block: 1.9rem; }
.faq-liste details {
  background: var(--papier);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  margin-bottom: .8rem;
  overflow: hidden;
  transition: border-color .25s;
}
.s-fonce .faq-liste details { background: rgba(255, 255, 255, .05); }
.faq-liste details[open] { border-color: rgba(193, 85, 44, .4); }
.faq-liste summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--f-titre); font-size: 1.06rem; font-weight: 650; color: var(--texte-fort);
  min-height: 48px;
}
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary::after {
  content: ""; flex: none; width: 1.5rem; height: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23a8481f' stroke-width='2.4' stroke-linecap='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.s-fonce .faq-liste summary::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23f3ceb0' stroke-width='2.4' stroke-linecap='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.faq-liste details[open] summary::after { transform: rotate(180deg); }
.faq-liste details > div { padding: 0 1.4rem 1.25rem; }
.faq-liste details > div > :last-child { margin-bottom: 0; }

/* ---- Formulaire ---- */
.devis { padding: clamp(1.7rem, 4vw, 2.6rem); display: grid; gap: clamp(1.7rem, 4vw, 2.8rem); }
@media (min-width: 880px) { .devis { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.form-row { margin-bottom: 1.05rem; }
.form-row label { display: block; font-size: .92rem; font-weight: 800; color: var(--texte-fort); margin-bottom: .35rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font: inherit; color: var(--texte-fort);
  background: rgba(255, 252, 247, .8);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-sm);
  padding: .78rem .95rem; min-height: 48px;
}
.form-row textarea { min-height: 6.2rem; resize: vertical; }
.form-row input::placeholder, .form-row textarea::placeholder { color: #a8957f; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 3px solid rgba(193, 85, 44, .3); outline-offset: 0; border-color: var(--terre);
}
.form-row option { background: var(--papier); color: var(--texte-fort); }
.form-note { font-size: .875rem; color: var(--texte-2); margin-top: .8rem; }
.form-status { font-weight: 700; color: var(--terre); margin-top: .8rem; }
.form-status:empty { display: none; }

.devis-aside h3 { margin-bottom: .8rem; }
.devis-aside ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.devis-aside li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .75rem; font-size: var(--fs-small); }
.devis-aside svg { color: var(--terre); flex: none; margin-top: .2em; }

/* ---- Bande CTA ---- */
.cta-bande {
  background: linear-gradient(135deg, rgba(168, 72, 31, .92), rgba(193, 85, 44, .85) 55%, rgba(226, 121, 63, .8));
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  color: #fff8ee;
  padding: clamp(2.2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-float);
}
.cta-bande h2 { color: #fff8ee; }
.cta-bande p { color: #ffe8d6; max-width: 46em; }
.cta-bande .hero-ctas { margin-top: 1.4rem; }
.cta-bande .hero-note { color: #ffdcc0; }

/* ---- Sections éditoriales ---- */
.entete-section { max-width: 46em; }
.entete-section .chip { margin-bottom: 1rem; }
.entete-section p.grand { font-size: clamp(1.05rem, 1rem + .4vw, 1.18rem); }

.deux-colonnes { display: grid; gap: clamp(1.8rem, 4vw, 3rem); align-items: start; }
@media (min-width: 880px) { .deux-colonnes { grid-template-columns: 1fr 1fr; } }

.encadre {
  background: rgba(193, 85, 44, .07);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-md);
  padding: 1.35rem 1.45rem;
  margin-block: 1.6rem;
}
.encadre.avertissement { background: rgba(168, 72, 31, .1); border-color: rgba(168, 72, 31, .3); }
.encadre > :last-child { margin-bottom: 0; }
.encadre .titre-encadre { display: block; font-family: var(--f-titre); font-weight: 700; color: var(--texte-fort); margin-bottom: .4rem; }

.sources { font-size: .875rem; color: var(--texte-2); border-top: 1px solid var(--glass-brd); padding-top: 1rem; margin-top: 2.2rem; }
.sources a { color: var(--texte-2); overflow-wrap: anywhere; }
.sources a:hover { color: var(--terre); }

/* ---- Fil d'Ariane ---- */
.breadcrumb { font-size: .9rem; color: var(--texte-2); margin-bottom: 1.3rem; }
.breadcrumb a { color: var(--texte-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--terre); text-decoration: underline; }

/* ---- Hero de pages intérieures ---- */
.hero-page { padding-block: clamp(2.6rem, 6vw, 4.2rem); }
.hero-page .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); max-width: 42em; }
.hero-page .hero-ctas { margin-top: 1.4rem; }
.hero-page .chips-data { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

/* ---- Bandeau photo (pages intérieures / galerie) ---- */
.bandeau-photo {
  display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr);
  margin-block: 2rem .5rem;
}
.bandeau-photo img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--shadow-card); }
@media (max-width: 700px) { .bandeau-photo { grid-template-columns: 1fr 1fr; } }

/* ---- Footer ---- */
.site-footer {
  background: linear-gradient(180deg, transparent, var(--ivoire-fonce) 40%);
  border-top: 1px solid var(--glass-brd);
  color: var(--texte-2);
  padding-block: 3.4rem 2rem;
  font-size: var(--fs-small);
  position: relative;
  z-index: var(--z-contenu);
}
.site-footer .wrap { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: .88rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--terre); margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--texte); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--terre); }
.site-footer .logo { color: var(--texte-fort); margin-bottom: .8rem; }
.site-footer .mentions { grid-column: 1 / -1; border-top: 1px solid var(--glass-brd); padding-top: 1.4rem; color: var(--texte-2); font-size: .875rem; }

/* ---- Page légale ---- */
.legal { padding-block: clamp(2.5rem, 6vw, 4rem); position: relative; z-index: var(--z-contenu); }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }

/* ---- Utilitaires ---- */
.centre { text-align: center; }
.centre .entete-section, .centre p { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 2rem; }

/* ---- Réglage système : tout s'immobilise ---- */
@media (prefers-reduced-motion: reduce) {
  .fond-vivant i,
  .hero .wrap > div:first-child, .hero-media { animation: none !important; }
  .btn, .carte, .chip-liste a, .faq-liste summary::after { transition: none !important; }
  .hero .wrap > div:first-child, .hero-media { opacity: 1; transform: none; }
}
