/* Conciergerie Périgueux : accueil v3 « nuit d'ocre », générée par outils/construire.py (accueil_v3) depuis le 2026-11-07 ; feuille copiée dans /assets/accueil.<hash>.css.
   Page sombre et cinématographique : brou de noix, or, grain, Fraunces italique pour les mots-clés, Figtree pour le reste.
   Effets : héros dont la photo s'ouvre en plein écran au défilement, ruban qui défile, texte lu mot à mot, titres qui se révèlent,
   bordures lumineuses sous le curseur, cartes de services empilées, étapes en défilement horizontal, compteur du taux, boutons aimantés.
   Le formulaire, le calendrier, le simulateur et le menu gardent les classes de site.css pour que site.js fonctionne tel quel. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/polices/fraunces-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("/assets/polices/fraunces-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/polices/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/polices/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/polices/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/polices/figtree-latin-700-normal.woff2") format("woff2"); }

:root {
  --fond: #15100C;
  --fond2: #1D1611;
  --fond3: #241B14;
  --encre: #F4EDE3;
  --doux: rgba(244, 237, 227, .66);
  --sourd: rgba(244, 237, 227, .42);
  --texte: rgba(244, 237, 227, .8);
  --or: #D6A04A;
  --or2: #E8B866;
  --or-ombre: rgba(214, 160, 74, .55);
  --ligne: rgba(244, 237, 227, .11);
  --ligne2: rgba(244, 237, 227, .2);
  --verre: rgba(255, 255, 255, .045);
  --vert: #7ED39B;
  --rouge: #E07A6A;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gouttiere: 16px;
  --largeur: 1200px;
  --rayon: 24px;
  --rayon-s: 14px;
  --doux-ease: cubic-bezier(.2, .75, .2, 1);
  --z-entete: 50; --z-barre-mobile: 55; --z-grain: 60; --z-prog: 70;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--sans); font-size: 1.02rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: var(--or2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
h3 { font-size: 1.22rem; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--or); color: var(--fond); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 4px; }
.conteneur { width: min(var(--largeur), 100% - 2 * var(--gouttiere)); margin-inline: auto; }
.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Mots-clés en Fraunces italique or */
h1 em, h2 em, h3 em, .heros-phrase em { font-family: var(--serif); font-style: italic; font-weight: 380; color: var(--or2); letter-spacing: 0; font-variation-settings: "opsz" 144, "SOFT" 60; }

.passer { position: absolute; left: -999px; top: 8px; z-index: 100; padding: .6rem 1rem; background: var(--or); color: var(--fond); border-radius: 8px; }
.passer:focus { left: 8px; }

/* ---------- Grain, progression, lueur ---------- */
.grain { position: fixed; inset: -50%; width: 200%; height: 200%; pointer-events: none; z-index: var(--z-grain); opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.progression { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: var(--z-prog); pointer-events: none; }
.progression span { display: block; height: 100%; background: linear-gradient(90deg, var(--or), var(--or2)); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }
.lueur { position: absolute; width: 70vw; height: 70vw; left: -22vw; top: -28vw; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 160, 74, .26), rgba(214, 160, 74, .06) 45%, transparent 68%); filter: blur(30px); animation: flotter 16s ease-in-out infinite alternate; }
@keyframes flotter { from { transform: translate(0, 0) scale(1); } to { transform: translate(8vw, 6vw) scale(1.12); } }

/* ---------- En-tête pilule ---------- */
.entete { position: fixed; top: 14px; left: 0; right: 0; z-index: var(--z-entete); display: flex; justify-content: center; padding: 0 var(--gouttiere); }
.entete-pilule { position: relative; display: flex; align-items: center; gap: 1.4rem; width: min(var(--largeur), 100%); padding: .5rem .5rem .5rem 1rem; border-radius: 999px;
  background: rgba(21, 16, 12, .38); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .6); transition: background .4s, border-color .4s; }
.entete.solide .entete-pilule { background: rgba(21, 16, 12, .82); border-color: rgba(255, 255, 255, .12); }
.marque { display: flex; align-items: center; gap: .7rem; color: var(--encre); text-decoration: none; margin-right: auto; }
.marque svg { width: 36px; height: 36px; flex: none; }
.marque span { display: flex; flex-direction: column; line-height: 1.1; }
.marque b { font-weight: 600; font-size: .98rem; }
.marque small { font-size: .72rem; color: var(--sourd); letter-spacing: .02em; }
.menu { display: flex; gap: .2rem; }
.menu a { position: relative; color: var(--doux); text-decoration: none; font-weight: 500; font-size: .93rem; padding: .5rem .8rem; border-radius: 999px; transition: color .25s, background .25s; }
.menu a:hover { color: var(--encre); background: rgba(255, 255, 255, .06); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: rgba(255, 255, 255, .06); border-radius: 50%; color: var(--encre); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--doux-ease), top .35s; }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.45rem; border-radius: 999px; font: inherit; font-weight: 600; font-size: .98rem; line-height: 1; text-decoration: none; cursor: pointer; border: 1px solid transparent; color: var(--encre); background: transparent; white-space: nowrap;
  transition: transform .4s var(--doux-ease), background .3s, box-shadow .3s, border-color .3s, color .3s; will-change: transform; }
.bouton .ic { transition: transform .35s var(--doux-ease); }
.bouton:hover .ic:last-child:not(:first-child) { transform: translateX(3px); }
.bouton:active { transform: scale(.97) !important; }
.bouton.or, .envoyer { background: var(--or); color: var(--fond); box-shadow: 0 12px 34px -12px var(--or-ombre); }
.bouton.or:hover, .envoyer:hover { background: var(--or2); box-shadow: 0 16px 40px -12px var(--or-ombre); }
.envoyer { width: 100%; }
.bouton.verre { background: rgba(255, 255, 255, .06); border-color: var(--ligne2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bouton.verre:hover { background: rgba(255, 255, 255, .11); border-color: rgba(244, 237, 227, .35); }
.bouton.petit { padding: .7rem 1.1rem; font-size: .9rem; }
.bouton.plein { width: 100%; }
.bouton:disabled { opacity: .5; cursor: not-allowed; }
.lien-fleche { display: inline-flex; align-items: center; gap: .45rem; color: var(--or2); font-weight: 600; text-decoration: none; }
.lien-fleche .ic { transition: transform .3s var(--doux-ease); }
.lien-fleche:hover .ic { transform: translateX(4px); }
.lien-fleche:hover { color: var(--encre); }

/* ---------- Typo de sections ---------- */
.section { position: relative; padding: clamp(5rem, 10vw, 8.5rem) 0; }
.surtitre { display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--or); }
.dispo { width: 7px; height: 7px; border-radius: 50%; background: var(--vert); animation: pulser 2.2s ease-out infinite; }
@keyframes pulser { 0% { box-shadow: 0 0 0 0 rgba(126, 211, 155, .6); } 100% { box-shadow: 0 0 0 10px rgba(126, 211, 155, 0); } }
.titre-xl { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.035em; line-height: 1; max-width: 16ch; }
.titre-l { font-size: clamp(2.1rem, 4.4vw, 3.6rem); letter-spacing: -.03em; max-width: 20ch; }
.titre-m { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.025em; }
.chapeau { max-width: 58ch; color: var(--doux); font-size: 1.1rem; margin: 1.1rem 0 2.6rem; text-wrap: pretty; }
.chapeau.centre-gauche { margin-bottom: 3rem; }
.lecture { font-size: clamp(1.45rem, 2.7vw, 2.2rem); line-height: 1.32; letter-spacing: -.015em; max-width: 34ch; margin: 1.6rem 0 3.4rem; font-weight: 400; text-wrap: pretty; }
.lecture span { transition: opacity .35s, color .35s; }
.js .lecture span:not(.lu) { opacity: .2; }

/* Révélations au défilement (désactivées sans script ou si l'utilisateur limite les animations) */
.js [data-revele] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--doux-ease), transform .9s var(--doux-ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-revele].vu { opacity: 1; transform: none; }
.js .fendre { opacity: 0; transform: translateY(34px); filter: blur(8px); transition: opacity 1s var(--doux-ease), transform 1s var(--doux-ease), filter 1s var(--doux-ease); }
.js .fendre.vu { opacity: 1; transform: none; filter: none; }
.fendre em { background: linear-gradient(var(--or), var(--or)) no-repeat 0 92% / 0 1px; transition: background-size 1.1s var(--doux-ease) .5s; }
.fendre.vu em { background-size: 100% 1px; }

/* Bordure lumineuse sous le curseur */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .5s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 184, 102, .95), rgba(214, 160, 74, .25) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@media (hover: hover) { .spot:hover::after { opacity: 1; } }

/* ---------- Héros ---------- */
.heros { position: relative; height: 200vh; --p: 0; }
.heros-colle { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; padding-top: 108px; }
.heros-fenetre { position: absolute; overflow: hidden; background: var(--fond2);
  top: calc(13vh * (1 - var(--p))); bottom: calc(9vh * (1 - var(--p))); left: calc(55vw * (1 - var(--p))); right: calc(4vw * (1 - var(--p)));
  border-radius: calc(28px * (1 - var(--p))); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8); will-change: top, bottom, left, right; }
.heros-fenetre img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; transform: scale(calc(1.18 - .18 * var(--p))); transition: none; }
.heros-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 16, 12, .1), rgba(21, 16, 12, calc(.25 + .45 * var(--p))) 70%, rgba(21, 16, 12, calc(.4 + .55 * var(--p)))); }
.heros-phrase { position: absolute; left: clamp(1.2rem, 5vw, 5rem); right: clamp(1.2rem, 5vw, 5rem); bottom: clamp(5rem, 14vh, 9rem); margin: 0; max-width: 22ch; font-size: clamp(1.8rem, 4.2vw, 3.6rem); line-height: 1.08; font-weight: 600; letter-spacing: -.03em;
  opacity: clamp(0, (var(--p) - .5) / .35, 1); transform: translateY(calc((1 - clamp(0, (var(--p) - .5) / .35, 1)) * 30px)); }
.heros-phrase span { display: block; }
.heros-phrase em { display: block; }
.credit-photo { position: absolute; right: 1rem; bottom: .7rem; margin: 0; font-size: .68rem; color: rgba(244, 237, 227, .6); letter-spacing: .02em; }
.heros-texte { position: relative; z-index: 1; width: min(var(--largeur), 100% - 2 * var(--gouttiere)); margin-inline: auto; max-width: none; padding-top: clamp(1rem, 4vh, 3.5rem);
  opacity: clamp(0, 1 - var(--p) * 1.9, 1); transform: translateY(calc(var(--p) * -60px)); }
.heros-texte > * { max-width: 50%; }
.heros h1 { font-size: clamp(2.4rem, 5.1vw, 4.5rem); letter-spacing: -.04em; line-height: .98; }
.heros h1 em { display: block; width: fit-content; }
.heros-intro { margin: 1.2rem 0 1.6rem; font-size: 1.1rem; color: var(--doux); max-width: 46ch; text-wrap: pretty; }
.indice-defile { position: absolute; right: 4vw; bottom: 1.4rem; margin: 0; display: flex; align-items: center; gap: .7rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sourd); opacity: clamp(0, 1 - var(--p) * 4, 1); }
.indice-defile span { display: block; width: 1px; height: 40px; background: linear-gradient(var(--or), transparent); transform-origin: top; animation: tomber 1.8s var(--doux-ease) infinite; }
@keyframes tomber { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Barre d'estimation en verre */
.barre-verre { position: relative; padding: 1.2rem 1.2rem 1.2rem; border-radius: 20px; background: rgba(29, 22, 17, .55); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 80px -40px rgba(0, 0, 0, .7); max-width: 50%; }
.titre-barre { margin: 0 0 .9rem; font-weight: 600; font-size: 1rem; text-wrap: balance; }
.barre-champs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.barre-champs label { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sourd); margin-bottom: .3rem; }
.barre-champs .bouton { grid-column: 1 / -1; margin-top: .3rem; }

/* Champs (communs au héros et au formulaire) */
select, input[type="text"], input[type="tel"], input[type="email"], textarea { width: 100%; font: inherit; color: var(--encre); background: rgba(255, 255, 255, .05); border: 1px solid var(--ligne2); border-radius: 12px; padding: .8rem .95rem; transition: border-color .25s, box-shadow .25s, background .25s; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D6A04A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px; }
select option { background: var(--fond2); color: var(--encre); }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(214, 160, 74, .22); background: rgba(255, 255, 255, .07); }
textarea { min-height: 110px; resize: vertical; }
::placeholder { color: var(--sourd); }

/* ---------- Ruban ---------- */
.ruban { position: relative; display: flex; overflow: hidden; padding: 1.1rem 0; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); background: var(--fond2);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ruban-liste { display: flex; flex: none; gap: 3.2rem; padding-right: 3.2rem; list-style: none; animation: defiler 44s linear infinite; white-space: nowrap; }
.ruban:hover .ruban-liste { animation-play-state: paused; }
.ruban-liste li { display: flex; align-items: center; gap: .7rem; font-size: .95rem; color: var(--doux); }
.ruban-liste li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--or); flex: none; }
.ruban-liste b { color: var(--encre); font-weight: 600; }
@keyframes defiler { to { transform: translateX(-100%); } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(210px, auto); gap: 1rem; }
.tuile { position: relative; padding: 1.8rem; border-radius: var(--rayon); background: var(--fond2); border: 1px solid var(--ligne); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.tuile p { margin: 0; color: var(--doux); }
.tuile h3 { margin-bottom: .6rem; }
.tuile.t1 { grid-column: 1 / 8; grid-row: 1 / 3; min-height: 440px; }
.tuile.t2 { grid-column: 8 / 13; grid-row: 1; }
.tuile.t3 { grid-column: 8 / 13; grid-row: 2; }
.tuile.t4 { grid-column: 1 / 13; grid-row: 3; min-height: 280px; }
.tuile-photo { padding: 0; margin: 0; }
.tuile-photo .cadre { position: absolute; inset: 0; overflow: hidden; }
.tuile-photo .cadre img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0)) scale(1.14); will-change: transform; }
.tuile-photo figcaption { position: relative; padding: 1.8rem; background: linear-gradient(180deg, transparent, rgba(21, 16, 12, .9) 55%); }
.tuile-photo figcaption p { color: rgba(244, 237, 227, .78); }
.pictos { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(214, 160, 74, .14); color: var(--or2); margin-bottom: auto; }
.pictos .ic { width: 22px; height: 22px; }
.tuile h3.grand { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-top: 2rem; letter-spacing: -.03em; }
.t2, .t3 { justify-content: flex-start; }
.t2 p:last-child, .t3 p:last-child { margin-top: 0; }
.t3 h3 { margin-top: 2rem; }

/* ---------- Un mois de juillet ---------- */
#mois::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 80% 30%, rgba(214, 160, 74, .1), transparent 70%); }
.mois-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: 2.6rem; }
.mois-tete .chapeau { margin-bottom: 0; }
.bascule { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--verre); border: 1px solid var(--ligne2); flex: none; }
.curseur-bascule { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--or); box-shadow: 0 8px 24px -8px var(--or-ombre); transition: transform .5s cubic-bezier(.3, 1.3, .35, 1); }
.mois[data-mode="avec"] .curseur-bascule { transform: translateX(100%); }
.bascule button { position: relative; z-index: 1; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .92rem; padding: .75rem 1.3rem; border-radius: 999px; color: var(--doux); cursor: pointer; transition: color .35s; white-space: nowrap; }
.bascule button[aria-pressed="true"] { color: var(--fond); }
.mois-corps { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.6rem; align-items: start; }
.carte-verre { padding: 1.6rem; border-radius: var(--rayon); background: var(--verre); border: 1px solid var(--ligne); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.grille-mois { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.jsem { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sourd); text-align: center; padding-bottom: .3rem; }
.jour { position: relative; aspect-ratio: 1; border-radius: 9px; background: rgba(255, 255, 255, .035); padding: 5px; font-size: .74rem; color: var(--sourd); transition: background .4s, border-color .4s; border: 1px solid transparent; }
.jour.vide { background: transparent; }
.jour.loue { background: rgba(214, 160, 74, .16); border-color: rgba(214, 160, 74, .35); color: var(--encre); }
.jour .n { position: absolute; top: 4px; left: 6px; }
.jour .evt { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; gap: 2px; justify-content: flex-end; }
.pastille { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font-size: .6rem; font-weight: 700; color: var(--fond); }
.pastille.a { background: #8FD0A3; }
.pastille.m { background: #EFDFBE; }
.pastille.r { background: #E8906F; }
.legende { display: flex; flex-wrap: wrap; gap: .7rem 1.3rem; margin-top: 1.1rem; font-size: .8rem; color: var(--doux); }
.legende > span { display: inline-flex; align-items: center; gap: .45rem; }
.legende .jour.loue { width: 16px; height: 16px; aspect-ratio: auto; padding: 0; display: inline-block; border-radius: 4px; }
.taches { list-style: none; display: grid; gap: .6rem; }
.taches li { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: .9rem; padding: .85rem 1rem .85rem .9rem; border-radius: var(--rayon-s); background: var(--verre); border: 1px solid var(--ligne); }
.compte { font-family: var(--serif); font-style: italic; font-size: 1.9rem; line-height: 1; color: var(--or2); font-variation-settings: "opsz" 144; text-align: center; }
.qui { font-size: .78rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--ligne2); color: var(--doux); transition: background .45s, color .45s, border-color .45s, transform .45s; }
.mois[data-mode="avec"] .qui { background: var(--or); color: var(--fond); border-color: var(--or); }
.bilan-mois { margin: 1.4rem 0 0; font-family: var(--serif); font-style: italic; font-weight: 380; font-size: 1.3rem; line-height: 1.35; color: var(--encre); font-variation-settings: "opsz" 48; }
.exemple { margin-top: 1.6rem; font-size: .8rem; color: var(--sourd); }

/* ---------- Services : pile de cartes ---------- */
.services-grille { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; }
.services-tete { position: sticky; top: 110px; }
.services-tete .chapeau { margin-bottom: 1.8rem; }
.pile { list-style: none; display: grid; gap: 1.2rem; }
.carte-pile { position: sticky; top: calc(108px + var(--k) * 18px); padding: 2rem 2rem 2.2rem; border-radius: var(--rayon); background: #201912; border: 1px solid var(--ligne2); min-height: 250px; display: flex; flex-direction: column; box-shadow: 0 -20px 50px -30px rgba(0, 0, 0, .9), 0 30px 60px -30px rgba(0, 0, 0, .6); }
.carte-pile .num { position: absolute; top: 1.6rem; right: 1.8rem; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--sourd); }
.carte-pile .rond { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(214, 160, 74, .14); color: var(--or2); margin-bottom: auto; }
.carte-pile .rond .ic { width: 24px; height: 24px; }
.carte-pile h3 { margin: 2.2rem 0 .6rem; font-size: 1.45rem; letter-spacing: -.02em; }
.carte-pile p { margin: 0; color: var(--doux); max-width: 48ch; }

/* ---------- Équipe ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.membre { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; padding: 2.2rem; border-radius: var(--rayon); background: var(--fond2); border: 1px solid var(--ligne); }
.lettre { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(5rem, 8vw, 7.5rem); line-height: .78; color: var(--or2); font-variation-settings: "opsz" 144; margin-top: -.1em; }
.membre h3 { font-size: 1.6rem; letter-spacing: -.02em; }
.metier { margin: .3rem 0 1rem; color: var(--or2); font-size: .92rem; font-weight: 500; }
.membre p:last-child { margin: 0; color: var(--doux); }
.note-equipe { margin-top: 1.6rem; color: var(--sourd); font-size: .92rem; }

/* ---------- Tarif ---------- */
#tarif::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 45% at 15% 60%, rgba(214, 160, 74, .1), transparent 70%); }
.tarif { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.taux { font-family: var(--serif); font-weight: 300; font-size: clamp(6.5rem, 14vw, 12rem); line-height: .85; letter-spacing: -.05em; margin: 2rem 0 1.4rem; font-variation-settings: "opsz" 144, "SOFT" 30; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: .05em; }
.taux small { font-size: .35em; font-style: italic; color: var(--or2); font-weight: 380; letter-spacing: 0; }
.taux-legende { max-width: 44ch; color: var(--doux); font-size: 1.08rem; }
.compris { list-style: none; display: grid; gap: .55rem; margin: 1.8rem 0 2rem; }
.compris li { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--ligne); }
.compris .ic { color: var(--or); width: 20px; height: 20px; }
.simu h3 { font-size: 1.5rem; margin-bottom: 1.6rem; }
.curseur { margin-bottom: 1.4rem; }
.curseur label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .95rem; color: var(--doux); margin-bottom: .55rem; }
.curseur output { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--encre); font-variation-settings: "opsz" 48; }
input[type="range"] { width: 100%; accent-color: var(--or); height: 28px; cursor: pointer; background: transparent; }
.jauge { display: flex; gap: 3px; height: 7px; margin: 1.2rem 0 1.4rem; border-radius: 999px; overflow: hidden; }
.jauge-vous { flex: 0 0 80%; background: var(--encre); border-radius: 999px; transform-origin: left; }
.jauge-nous { flex: 1; background: var(--or); border-radius: 999px; transform-origin: left; }
.js .simu:not(.vu) .jauge span { transform: scaleX(0); }
.jauge span { transition: transform 1.2s var(--doux-ease) .3s; }
.calcul { width: 100%; border-collapse: collapse; }
.calcul td { padding: .75rem 0; border-top: 1px solid var(--ligne); color: var(--doux); }
.calcul td:last-child { text-align: right; white-space: nowrap; color: var(--encre); font-variant-numeric: tabular-nums; font-weight: 600; }
.calcul .reste td { color: var(--encre); font-weight: 600; }
.calcul .reste td:last-child { font-family: var(--serif); font-weight: 400; font-size: 2rem; color: var(--or2); font-variation-settings: "opsz" 144; }
.aide { font-size: .82rem; color: var(--sourd); margin: 1.1rem 0 1.5rem; }

/* ---------- Étapes : défilement horizontal ---------- */
.etapes-zone { position: relative; height: 280vh; background: var(--fond2); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); --x: 0; --f: 0; }
.etapes-colle { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 2rem; }
.etapes-tete .chapeau { margin-bottom: 0; }
.etapes-fil { width: min(var(--largeur), 100% - 2 * var(--gouttiere)); margin-inline: auto; height: 1px; background: var(--ligne2); }
.etapes-fil span { display: block; height: 100%; background: var(--or); transform-origin: left; transform: scaleX(var(--f)); }
.etapes { list-style: none; display: flex; gap: 1.4rem; padding-left: max(var(--gouttiere), (100vw - var(--largeur)) / 2); padding-right: var(--gouttiere); transform: translate3d(calc(var(--x) * -1px), 0, 0); will-change: transform; }
.etapes li { position: relative; flex: 0 0 min(400px, 82vw); padding: 2rem; border-radius: var(--rayon); background: var(--fond); border: 1px solid var(--ligne); min-height: 270px; display: flex; flex-direction: column; }
.etapes .num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--or2); margin-bottom: auto; font-variation-settings: "opsz" 144; }
.etapes h3 { margin: 2rem 0 .5rem; }
.etapes p { margin: 0; color: var(--doux); }

/* ---------- Demande ---------- */
.demande { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.texte-demande { position: sticky; top: 110px; }
.coches { list-style: none; display: grid; gap: .7rem; margin: 0 0 2rem; }
.coches li { display: flex; gap: .7rem; align-items: center; color: var(--doux); }
.coches .ic { color: var(--or); width: 20px; height: 20px; }
.carte-form { padding: 2.2rem; border-radius: var(--rayon); background: var(--fond2); border: 1px solid var(--ligne2); box-shadow: 0 50px 120px -60px rgba(0, 0, 0, .9); }
.carte-form h3 { font-size: 1.5rem; }
.sous { color: var(--sourd); font-size: .9rem; margin: .4rem 0 1.6rem; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.champ { margin-bottom: 1.2rem; }
.champ > label, legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .5rem; padding: 0; }
.facultatif { font-weight: 400; color: var(--sourd); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choix { display: flex; flex-wrap: wrap; gap: .5rem; }
.choix label { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--ligne2); background: rgba(255, 255, 255, .03); cursor: pointer; font-size: .92rem; color: var(--doux); transition: background .25s, color .25s, border-color .25s, transform .25s; user-select: none; }
.choix label:hover { border-color: rgba(244, 237, 227, .4); color: var(--encre); }
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choix label.coche, .choix label:has(input:checked) { background: var(--or); color: var(--fond); border-color: var(--or); font-weight: 600; }
.choix label:has(input:focus-visible) { outline: 2px solid var(--or); outline-offset: 3px; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.erreur { margin: .4rem 0 0; font-size: .82rem; color: var(--rouge); }
.erreur:empty { display: none; }
.champ.faux input, .champ.faux select, .champ.faux textarea { border-color: var(--rouge); }
.champ.faux .choix label { border-color: rgba(224, 122, 106, .6); }
.arret { display: none; margin: -.4rem 0 1.2rem; padding: .9rem 1rem; border-radius: var(--rayon-s); background: rgba(224, 122, 106, .1); border: 1px solid rgba(224, 122, 106, .4); color: var(--encre); font-size: .92rem; }
.arret.visible { display: block; }
.accord { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400 !important; font-size: .88rem !important; color: var(--doux); cursor: pointer; }
.accord input { margin: .25rem 0 0; accent-color: var(--or); width: 16px; height: 16px; flex: none; }
.envoyer { margin-top: 1.5rem; padding: 1.1rem 1.5rem; font-size: 1.02rem; }
.retour-form { margin-top: 1rem; }
.retour-form:empty { display: none; }
.retour-form.ok { padding: 1.4rem; border-radius: var(--rayon-s); background: rgba(126, 211, 155, .1); border: 1px solid rgba(126, 211, 155, .4); }
.retour-form.ok p { margin: 0; }
.retour-form.ko { padding: .9rem 1rem; border-radius: var(--rayon-s); background: rgba(224, 122, 106, .1); border: 1px solid rgba(224, 122, 106, .4); font-size: .92rem; }

/* ---------- Communes ---------- */
.local { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.local-photo { margin: 0; }
.local-photo .cadre { position: relative; aspect-ratio: 4 / 5; border-radius: var(--rayon); overflow: hidden; }
.local-photo img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0)) scale(1.16); will-change: transform; }
.local-photo figcaption { margin-top: .7rem; font-size: .8rem; color: var(--sourd); }
.local p { color: var(--doux); }
.communes { list-style: none; display: grid; gap: .2rem; margin: 1.8rem 0 .8rem; }
.communes li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .6rem 0; font-size: .95rem; }
.communes b { font-weight: 600; color: var(--encre); }
.communes span:last-child { color: var(--sourd); font-variant-numeric: tabular-nums; }
.barre-km { height: 1px; background: linear-gradient(90deg, var(--or) calc(var(--d) * 4%), var(--ligne) calc(var(--d) * 4%)); }
.precision { font-size: .8rem; color: var(--sourd); margin-bottom: 1.2rem; }

/* ---------- Règles et FAQ ---------- */
.regles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.regle { position: relative; padding: 2rem; border-radius: var(--rayon); background: var(--fond2); border: 1px solid var(--ligne); }
.regle:nth-child(2) { transform: translateY(1.6rem); }
.js .regle:nth-child(2)[data-revele] { transform: translateY(calc(1.6rem + 26px)); }
.js .regle:nth-child(2)[data-revele].vu { transform: translateY(1.6rem); }
.regle .num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--or2); display: block; margin-bottom: 1.6rem; }
.regle p { margin: .6rem 0 0; color: var(--doux); }
.faq-grille { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; margin-top: 5.5rem; align-items: start; }
.faq-tete { position: sticky; top: 110px; }
.faq-tete p { color: var(--doux); margin: .8rem 0 1.4rem; }
.faq { border-top: 1px solid var(--ligne2); }
.q { border-bottom: 1px solid var(--ligne); }
.q summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; cursor: pointer; font-weight: 600; font-size: 1.08rem; color: var(--encre); transition: color .25s; }
.q summary::-webkit-details-marker { display: none; }
.q summary:hover { color: var(--or2); }
.q summary::after { content: "+"; font-family: var(--serif); font-weight: 300; font-size: 1.8rem; line-height: 1; color: var(--or2); transition: transform .4s var(--doux-ease); flex: none; }
.q[open] summary::after { transform: rotate(45deg); }
.q .r { padding-bottom: 1.3rem; color: var(--doux); max-width: 62ch; }
.q .r p { margin: 0; }

/* ---------- Appel final ---------- */
.final { position: relative; min-height: 86vh; display: grid; place-items: center; overflow: hidden; margin-top: 2rem; }
.final-photo { position: absolute; inset: 0; }
.final-photo img { width: 100%; height: 100%; object-fit: cover; }
.final-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, rgba(21, 16, 12, .55), rgba(21, 16, 12, .9)); }
.final-texte { position: relative; text-align: center; padding: 7rem var(--gouttiere); }
.final-texte .titre-xl { margin-inline: auto; }
.final-texte p { margin: 1.4rem auto 2.4rem; max-width: 44ch; color: var(--doux); font-size: 1.12rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Pied ---------- */
.pied { position: relative; padding: 4.5rem 0 1.5rem; border-top: 1px solid var(--ligne); overflow: hidden; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.pied h2 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--or); margin-bottom: .9rem; }
.pied h2.espace { margin-top: 1.6rem; }
.pied p { color: var(--doux); max-width: 38ch; }
.pied ul { list-style: none; display: grid; gap: .45rem; }
.pied a { color: var(--doux); text-decoration: none; transition: color .25s; }
.pied a:hover { color: var(--encre); }
.pied-geant { margin: 3rem 0 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(5rem, 19vw, 17rem); line-height: .78; text-align: center; color: rgba(244, 237, 227, .04); white-space: nowrap; user-select: none; letter-spacing: -.03em; font-variation-settings: "opsz" 144; }
.bas { margin: 1.4rem 0 0; font-size: .78rem; color: var(--sourd); }

/* ---------- Barre mobile ---------- */
.barre-mobile { display: none; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 1060px) {
  .services-grille, .tarif, .demande, .local { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-tete, .texte-demande, .faq-tete { position: static; }
  .faq-grille { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 4rem; }
  .regles { grid-template-columns: 1fr; }
  .regle:nth-child(2), .js .regle:nth-child(2)[data-revele].vu { transform: none; }
  .local-photo .cadre { aspect-ratio: 16 / 10; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 90px; }
  body { padding-bottom: 86px; }
  .menu { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: none; flex-direction: column; padding: .6rem; border-radius: 22px; background: rgba(21, 16, 12, .94); border: 1px solid var(--ligne2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .menu.ouvert { display: flex; }
  .menu a { padding: .9rem 1rem; font-size: 1.02rem; }
  .wa-entete { display: none; }
  .burger { display: block; }
  .marque small { display: none; }
  /* Héros : plus de défilement collé, la photo suit le texte */
  .heros { height: auto; }
  .heros-colle { position: static; height: auto; overflow: visible; padding: 96px 0 2.5rem; display: flex; flex-direction: column; }
  .heros-texte, .heros-texte > *, .barre-verre { max-width: none; opacity: 1; transform: none; }
  .heros-texte { padding-top: .5rem; order: 1; }
  .heros h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .heros-fenetre { order: 2; position: relative; inset: auto; width: min(var(--largeur), 100% - 2 * var(--gouttiere)); margin: 2rem auto 0; height: 64vw; max-height: 480px; border-radius: 22px; }
  .heros-fenetre img { transform: none; }
  .credit-photo { font-size: .62rem; left: 1rem; right: 1rem; text-align: right; }
  .heros-phrase, .indice-defile { display: none; }
  .barre-champs { grid-template-columns: 1fr 1fr; }
  .barre-champs > div:first-child { grid-column: 1 / -1; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tuile.t1, .tuile.t2, .tuile.t3, .tuile.t4 { grid-column: 1 / -1; grid-row: auto; }
  .tuile.t1 { min-height: 420px; }
  .tuile.t4 { min-height: 300px; }
  .mois-corps { grid-template-columns: 1fr; }
  .bascule { width: 100%; }
  .bascule button { padding: .75rem .6rem; font-size: .86rem; }
  .carte-pile { top: calc(80px + var(--k) * 12px); min-height: 0; padding: 1.6rem; }
  .carte-pile h3 { margin-top: 1.6rem; font-size: 1.3rem; }
  .duo { grid-template-columns: 1fr; }
  .membre { grid-template-columns: 1fr; gap: .8rem; padding: 1.6rem; }
  .lettre { font-size: 4.5rem; }
  .carte-form { padding: 1.4rem; }
  .carte-verre { padding: 1.1rem; }
  .deux { grid-template-columns: 1fr; }
  /* Étapes : liste verticale */
  .etapes-zone { height: auto; padding: clamp(5rem, 10vw, 8.5rem) 0; }
  .etapes-colle { position: static; height: auto; overflow: visible; }
  .etapes-fil { display: none; }
  .etapes { flex-direction: column; transform: none; padding-inline: var(--gouttiere); }
  .etapes li { flex: none; min-height: 0; }
  .etapes .num { margin-bottom: 0; }
  .etapes h3 { margin-top: 1rem; }
  .final { min-height: 70vh; }
  .final-texte { padding: 5rem var(--gouttiere); }
  .pied-grille { grid-template-columns: 1fr; gap: 2rem; }
  .barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-barre-mobile); display: grid; grid-template-columns: auto 1fr; gap: .6rem; padding: .7rem var(--gouttiere) calc(.7rem + env(safe-area-inset-bottom)); background: rgba(21, 16, 12, .88); border-top: 1px solid var(--ligne); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .barre-mobile .bouton { padding: .9rem 1.1rem; font-size: .92rem; }
}
@media (max-width: 420px) {
  .barre-champs { grid-template-columns: 1fr; }
  .barre-champs > div:first-child { grid-column: auto; }
  .taches li { grid-template-columns: 2rem 1fr; }
  .taches .qui { grid-column: 2; justify-self: start; }
  .communes li { grid-template-columns: 1fr auto; }
  .barre-km { display: none; }
}

/* ---------- Animations réduites ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-revele], .js .fendre { opacity: 1; transform: none; filter: none; }
  .js .lecture span:not(.lu) { opacity: 1; }
  .js .simu:not(.vu) .jauge span { transform: none; }
  .heros { height: auto; }
  .heros-colle { position: static; height: auto; overflow: visible; padding-bottom: 2.5rem; }
  .heros-texte, .heros-texte > *, .barre-verre { opacity: 1; transform: none; }
  .heros-fenetre { position: relative; inset: auto; width: min(var(--largeur), 100% - 2 * var(--gouttiere)); margin: 2rem auto 0; height: 56vh; border-radius: 22px; }
  .heros-fenetre img { transform: none; }
  .heros-phrase, .indice-defile { display: none; }
  .etapes-zone { height: auto; padding: 6rem 0; }
  .etapes-colle { position: static; height: auto; overflow: auto; }
  .etapes { transform: none; overflow-x: auto; padding-bottom: 1rem; }
  .etapes-fil { display: none; }
  .ruban-liste { animation: none !important; flex-wrap: wrap; white-space: normal; }
  .ruban-liste[aria-hidden] { display: none; }
  .ruban { -webkit-mask: none; mask: none; }
}

/* ---------- Pages intérieures (2026-11-07) ----------
   Tarifs, Estimation, Communes, Règles, Qui sommes-nous, mentions légales, confidentialité, merci et 404, générées par
   construire.page_texte_v3 / page_estimation / page_merci / page_404 quand accueil_v3 est vrai : même en-tête pilule, même pied,
   même palette que l'accueil. Les textes et les ids des h2 sont inchangés : les numéros des h2 sont des compteurs CSS,
   les tableaux sont seulement enveloppés dans .tableau (défilement horizontal sur téléphone). */
.menu a[aria-current="page"] { color: var(--encre); }
.menu a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--or); transform: translateX(-50%); }

/* Tête de page : fil d'Ariane en surtitre, h1 avec un morceau en Fraunces italique, intro, photo en cadre arrondi */
.page-tete { position: relative; overflow: hidden; padding: clamp(7.5rem, 6rem + 5vw, 10.5rem) 0 clamp(2.6rem, 5vw, 4.5rem); border-bottom: 1px solid var(--ligne); background: linear-gradient(180deg, var(--fond2), var(--fond)); }
.page-tete .lueur { opacity: .75; }
.page-tete-grille { position: relative; z-index: 1; }
.page-tete.avec-photo .page-tete-grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.fil { margin-bottom: 1.3rem; }
.fil a { color: inherit; text-decoration: none; }
.fil a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fil span[aria-hidden] { color: var(--sourd); }
.page-tete h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4.1rem); letter-spacing: -.035em; line-height: 1.02; max-width: 18ch; }
.intro { margin: 1.3rem 0 0; font-size: 1.15rem; line-height: 1.5; color: var(--doux); max-width: 56ch; text-wrap: pretty; }
.tete-photo { position: relative; margin: 0; }
.tete-photo .cadre { position: relative; aspect-ratio: 4 / 3; border-radius: var(--rayon); overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8); }
.tete-photo img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0)) scale(1.14); will-change: transform; }
.tete-photo .credit-photo { right: 1.2rem; bottom: 1rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }

/* Article et colonne de côté */
.contenu-grille { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 7rem); }
.article { max-width: 68ch; counter-reset: partie; font-size: 1.06rem; line-height: 1.65; }
.article > p, .article > ul, .article > ol { color: var(--texte); }
.article > p { margin: 0 0 1.15rem; text-wrap: pretty; }
.article strong { color: var(--encre); font-weight: 600; }
.article > h2 { position: relative; margin: 3.2rem 0 1.2rem; padding-top: 2.4rem; border-top: 1px solid var(--ligne); font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.15rem); letter-spacing: -.025em; line-height: 1.12; }
.article > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article > h2::before { counter-increment: partie; content: counter(partie, decimal-leading-zero); display: block; margin-bottom: .55rem; font-family: var(--serif); font-style: italic; font-weight: 380; font-size: 1.05rem; letter-spacing: .02em; color: var(--or2); font-variation-settings: "opsz" 144; }
.article > h3 { margin: 2rem 0 .8rem; font-size: 1.3rem; }
.article > ul, .article > ol { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.article > ul > li { position: relative; padding-left: 1.5rem; margin-bottom: .55rem; }
.article > ul > li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--or); }
.article > ol { counter-reset: point; }
.article > ol > li { position: relative; padding-left: 2.3rem; margin-bottom: .55rem; counter-increment: point; }
.article > ol > li::before { content: counter(point, decimal-leading-zero); position: absolute; left: 0; top: .12em; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--or2); font-variation-settings: "opsz" 144; }
.article .simu { margin: 1.8rem 0 2.6rem; }

/* Tableaux (tarifs, distances) */
.tableau { overflow-x: auto; margin: 1.4rem 0 2rem; border: 1px solid var(--ligne2); border-radius: var(--rayon-s); background: var(--fond2); -webkit-overflow-scrolling: touch; }
.tableau table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.tableau th, .tableau td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--ligne); }
.tableau tr:first-child > * { border-top: 0; }
.tableau th { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--or); background: rgba(255, 255, 255, .025); white-space: nowrap; }
.tableau td { color: var(--texte); font-variant-numeric: tabular-nums; }
.tableau td:empty { border-top-color: transparent; }

/* Sources datées en bas de page */
.sources { margin-top: 3.2rem; padding-top: 1.4rem; border-top: 1px solid var(--ligne); font-size: .86rem; line-height: 1.55; color: var(--sourd); }
.sources::before { content: "Sources"; display: block; margin-bottom: .6rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--or); }
.sources p { margin: 0 0 .6rem; }
.sources a { color: var(--doux); }

/* Colonne de côté : sommaire collant (site.js pose .actif sur la section lue) et carte d'appel */
.cote { position: sticky; top: 108px; display: grid; gap: 1.2rem; }
.sommaire { padding: 1.4rem 1.5rem 1.1rem; border-radius: var(--rayon-s); background: var(--fond2); border: 1px solid var(--ligne); }
.sommaire b { display: block; margin-bottom: .9rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--or); }
.sommaire a { display: block; padding: .42rem 0 .42rem 1rem; font-size: .9rem; line-height: 1.35; color: var(--doux); text-decoration: none; border-left: 1px solid var(--ligne2); transition: color .25s, box-shadow .25s; }
.sommaire a:hover { color: var(--encre); }
.sommaire a.actif { color: var(--encre); font-weight: 600; box-shadow: inset 2px 0 0 var(--or); }
.carte-action { display: grid; gap: .8rem; padding: 1.7rem; border-radius: var(--rayon); background: linear-gradient(160deg, rgba(214, 160, 74, .16), rgba(214, 160, 74, .03) 60%), var(--fond2); border: 1px solid rgba(214, 160, 74, .28); }
.carte-action .surtitre { margin: 0; }
.carte-action h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.carte-action p { margin: 0; color: var(--doux); font-size: .95rem; }
.carte-action .bouton { margin-top: .4rem; }
.carte-action .bouton + .bouton { margin-top: 0; }

/* Page Estimation : simulateur et formulaire côte à côte */
.estim-grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 7rem); }
.estim-cote { position: sticky; top: 100px; }
.estim-cote .coches { margin: 1.8rem 0 1.4rem; }
.carte-form h2 { font-size: 1.5rem; }

/* Pages « merci » et 404 : titre centré sur la lueur */
.page-simple { position: relative; overflow: hidden; min-height: 82vh; display: grid; align-items: center; padding: 9rem 0 5rem; text-align: center; }
.page-simple .conteneur { position: relative; z-index: 1; }
.page-simple .surtitre { justify-content: center; }
.page-simple h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.6rem); letter-spacing: -.035em; line-height: 1.02; max-width: 18ch; margin-inline: auto; }
.page-simple .intro { margin: 1.4rem auto 2.4rem; max-width: 46ch; }
.page-simple .nombre { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(14rem, 40vw, 34rem); line-height: 1; text-align: center; color: rgba(244, 237, 227, .035); letter-spacing: -.04em; font-variation-settings: "opsz" 144; user-select: none; pointer-events: none; }

@media (max-width: 960px) {
  .contenu-grille { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .article { min-width: 0; }
  .cote { position: static; }
  .sommaire { display: none; }
}
@media (max-width: 900px) {
  .page-tete { padding-top: 6.5rem; }
  .page-tete.avec-photo .page-tete-grille { grid-template-columns: 1fr; gap: 2rem; }
  .tete-photo .cadre { aspect-ratio: 16 / 10; }
  .estim-grille { grid-template-columns: 1fr; }
  .estim-cote { position: static; }
  .menu a[aria-current="page"] { color: var(--or2); }
  .menu a[aria-current="page"]::after { display: none; }
  .article { font-size: 1.02rem; }
  .tableau table { font-size: .9rem; }
  .tableau th, .tableau td { padding: .65rem .6rem; }
  .tableau th { white-space: normal; letter-spacing: .06em; }
  .page-simple { min-height: 70vh; padding: 7.5rem 0 4rem; }
}
