/* Cheneval Peinture — feuille de style unique
   Piste A « Lumière rasante » : blanc d'apprêt, encre, gris pierre, un seul accent ocre. */

@font-face { font-family: 'Marcellus'; src: url('fonts/marcellus.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-sans.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Tenor Sans'; src: url('fonts/tenor-sans.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --appret: #F4F1EC;
  --appret-2: #EBE6DE;
  --blanc: #FBFAF7;
  --pierre: #8C8A85;
  --pierre-fonce: #5C5A55;
  --encre: #1B1B1A;
  --encre-2: #2A2927;
  --ocre: #B8742A;
  --ocre-fonce: #8A5418;
  --ocre-clair: #D4924A;
  --filet: rgba(27, 27, 26, .14);
  --filet-clair: rgba(244, 241, 236, .16);

  --titre: 'Marcellus', 'Times New Roman', serif;
  --texte: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --etiquette: 'Tenor Sans', 'Instrument Sans', sans-serif;

  --largeur: 1240px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 11vw, 168px);
  --rayon: 2px;
  --entete: 76px;
  --sortie: cubic-bezier(.22, .8, .24, 1);

  --logo-ocre: var(--ocre);
  --logo-encre: var(--encre);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 16px); overflow-x: clip; }
@media (min-width: 1921px) { html { font-size: calc(100% + (100vw - 1920px) * .008333); } }
body {
  margin: 0; background: var(--appret); color: var(--encre);
  font: 400 1.0625rem/1.65 var(--texte); overflow-x: clip;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--ocre); color: var(--blanc); }
:focus-visible { outline: 2px solid var(--ocre); outline-offset: 3px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.evitement { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--encre); color: var(--appret); padding: 12px 18px; text-decoration: none; }
.evitement:focus { top: 12px; }
.conteneur { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }
.nowrap { white-space: nowrap; }

/* Repère d'information manquante : à remplacer avant mise en ligne */
.a-completer { background: repeating-linear-gradient(-45deg, rgba(184,116,42,.10) 0 6px, rgba(184,116,42,.18) 6px 12px); outline: 1px dashed var(--ocre); outline-offset: 2px; padding: 0 .3em; font-style: normal; }

/* Étiquette (surtitre) avec filet ocre, comme le logo */
.etiquette { display: inline-flex; align-items: center; gap: 14px; font: 400 .78rem/1.3 var(--etiquette); letter-spacing: .26em; text-transform: uppercase; color: var(--pierre-fonce); margin: 0 0 22px; }
.etiquette::before { content: ''; width: 32px; height: 1px; background: var(--ocre); flex: none; }
.sombre .etiquette { color: #B9B5AD; }
.sombre .etiquette::before { background: var(--ocre-clair); }

/* Boutons */
.btn {
  --fond: var(--encre); --txt: var(--appret);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 26px; border-radius: var(--rayon); border: 1px solid var(--fond);
  background: var(--fond); color: var(--txt); text-decoration: none; cursor: pointer;
  font: 500 .98rem/1.2 var(--texte); letter-spacing: .01em; overflow: hidden; isolation: isolate;
  transition: color .35s var(--sortie), border-color .35s var(--sortie);
}
.btn::after { content: ''; position: absolute; inset: auto 0 0 0; height: 100%; background: var(--ocre-fonce); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--sortie); z-index: -1; }
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn:hover { border-color: var(--ocre-fonce); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-contour { --fond: transparent; --txt: var(--encre); border-color: rgba(27,27,26,.35); }
.btn-contour:hover { color: var(--appret); }
.sombre .btn { --fond: var(--appret); --txt: var(--encre); }
.sombre .btn-contour { --fond: transparent; --txt: var(--appret); border-color: rgba(244,241,236,.4); }
.sombre .btn::after { background: var(--ocre-clair); }
.sombre .btn:hover { color: var(--encre); border-color: var(--ocre-clair); }
.lien { color: var(--ocre-fonce); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.lien:hover { color: var(--encre); }
.sombre .lien { color: var(--ocre-clair); }
.sombre .lien:hover { color: var(--appret); }
.lien-fleche { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; color: var(--encre); padding: 10px 0; position: relative; }
.lien-fleche::after { content: '→'; transition: transform .35s var(--sortie); color: var(--ocre); }
.lien-fleche:hover::after { transform: translateX(6px); }
.lien-fleche span { background: linear-gradient(var(--ocre), var(--ocre)) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--sortie); }
.lien-fleche:hover span { background-size: 100% 1px; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(244, 241, 236, .96); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.entete.defile { border-bottom-color: var(--filet); }
.entete-int { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--entete); }
.marque { display: flex; align-items: center; min-height: 44px; width: 216px; flex: none; color: var(--encre); }
.marque svg { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav-liens { display: flex; gap: clamp(18px, 2.2vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav-liens a { position: relative; text-decoration: none; font-size: .98rem; padding: 10px 0; }
.nav-liens a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--ocre); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--sortie); }
.nav-liens a:hover::after, .nav-liens a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.nav-tel { text-decoration: none; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.nav-tel svg { width: 16px; height: 16px; color: var(--ocre); }
.nav .btn { min-height: 44px; padding: 10px 20px; }
.burger { display: none; }

@media (max-width: 980px) {
  :root { --entete: 64px; }
  .marque { width: 184px; }
  .burger { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 4px 10px 12px; min-height: 44px; cursor: pointer; font: 500 .95rem var(--texte); }
  .burger-traits { position: relative; width: 22px; height: 12px; }
  .burger-traits::before, .burger-traits::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--sortie), top .35s var(--sortie); }
  .burger-traits::before { top: 0; } .burger-traits::after { top: 10px; }
  .burger[aria-expanded='true'] .burger-traits::before { top: 5px; transform: rotate(45deg); }
  .burger[aria-expanded='true'] .burger-traits::after { top: 5px; transform: rotate(-45deg); }
  .nav { position: fixed; left: 0; right: 0; top: var(--entete); height: calc(100dvh - var(--entete)); background: var(--appret); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 24px var(--gouttiere) 40px; overflow-y: auto; opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--sortie), opacity .3s, visibility 0s .5s; }
  .nav.ouvert { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .5s var(--sortie), opacity .2s; }
  .nav-liens { flex-direction: column; gap: 0; }
  .nav-liens a { display: block; font: 400 1.9rem/1.2 var(--titre); padding: 16px 0; border-bottom: 1px solid var(--filet); }
  .nav-liens a::after { display: none; }
  .nav-tel { margin-top: 28px; font-size: 1.15rem; min-height: 44px; }
  .nav .btn { margin-top: 16px; min-height: 54px; }
}

/* Barre d'action fixe sur téléphone */
.barre-mobile { display: none; }
@media (max-width: 700px) {
  .barre-mobile { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 1px; background: var(--filet); border-top: 1px solid var(--filet); padding-bottom: env(safe-area-inset-bottom); transform: translateY(0); transition: transform .4s var(--sortie); }
  .barre-mobile a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; text-decoration: none; font-weight: 500; background: var(--appret); }
  .barre-mobile a:last-child { background: var(--encre); color: var(--appret); }
  .barre-mobile svg { width: 18px; height: 18px; }
  .barre-mobile.cachee { transform: translateY(110%); }
  body { padding-bottom: 58px; }
}

/* Sections */
.section { padding-block: var(--section); }
.section-alt { background: var(--appret-2); }
.sombre { background: var(--encre); color: var(--appret); }
.chapeau { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--pierre-fonce); max-width: 36em; }
.sombre .chapeau { color: #C9C5BD; }
.tete-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.tete-section .chapeau { margin: 0; }
@media (max-width: 860px) { .tete-section { grid-template-columns: 1fr; } }

/* Filet de réchampi : un trait ocre qui se trace à l'apparition */
.rechampi { height: 1px; background: var(--ocre); transform-origin: left; }
.js .rechampi { transform: scaleX(0); transition: transform 1.2s var(--sortie); }
.js .rechampi.vu { transform: scaleX(1); }

/* Apparition douce (glissement seul, jamais d'opacité 0) */
.js .monte { transform: translateY(28px); transition: transform 1s var(--sortie); }
.js .monte.vu { transform: none; }

/* ===== Accueil : le pot de peinture en 3D ===== */
.hero { padding: 0; }
.hero-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); height: clamp(640px, calc(100svh - var(--entete)), 920px); }
.hero-texte { align-self: center; position: relative; z-index: 2; padding: clamp(32px, 4vw, 64px) clamp(24px, 3vw, 48px) clamp(40px, 4vw, 64px) max(var(--gouttiere), calc((100vw - var(--largeur)) / 2)); }
.hero h1 { margin-bottom: 24px; font-size: clamp(2.5rem, 4.1vw, 3.9rem); }
.hero h1 em { font-style: normal; color: var(--ocre-fonce); }
.hero .chapeau { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-preuves { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 24px; border-top: 1px solid var(--filet); font-size: .95rem; color: var(--pierre-fonce); }
.hero-preuves a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.hero-preuves a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.hero-preuves strong { color: var(--encre); font-weight: 600; }
.etoiles { color: var(--ocre); letter-spacing: 2px; font-size: .95rem; }
/* La scène se fond dans la page : son sol a exactement la couleur du fond */
.hero-media { --fond-pot: #F4F1EC; position: relative; overflow: hidden; background: transparent center / contain no-repeat; touch-action: pan-y; cursor: crosshair; }
.hero-media.sans-3d { background-image: url(img/pot-poster.png); }
.pot-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pot-aide { position: absolute; left: 50%; bottom: clamp(16px, 4vh, 40px); z-index: 2; transform: translateX(-50%); margin: 0; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 9px 16px; border: 1px solid var(--filet); border-radius: 40px; background: rgba(244, 241, 236, .82); font-size: .82rem; color: var(--pierre-fonce); opacity: 0; transition: opacity .8s var(--sortie); pointer-events: none; }
.pot-aide svg { width: 16px; height: 16px; color: var(--ocre); }
.pot-pret .pot-aide { animation: aide 6s 3.6s var(--sortie) both; }
@keyframes aide { 0% { opacity: 0; } 12% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
.pot-aide .doigt { display: none; }
@media (hover: none) { .pot-aide .souris { display: none; } .pot-aide .doigt { display: inline; } }
@media (max-width: 980px) {
  .hero-grille { grid-template-columns: 1fr; height: auto; }
  .hero-texte { padding: 8px var(--gouttiere) 56px; }
  .hero-media { order: -1; aspect-ratio: 1 / .92; max-height: 66svh; width: 100%; }
  .pot-aide { top: 10px; bottom: auto; }
}

/* ===== Prestations : panneaux avec bouton ===== */
.panneaux { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 32px); }
.panneau { display: flex; flex-direction: column; }
.panneau-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 24px; background: var(--appret); }
.panneau-img picture, .panneau-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.panneau-img img { transition: transform 1.4s var(--sortie); }
.panneau:hover .panneau-img img, .panneau:focus-within .panneau-img img { transform: scale(1.035); }
.panneau-num { font: .8rem var(--etiquette); letter-spacing: .2em; color: var(--ocre-fonce); margin-bottom: 10px; }
.panneau h3 { font-size: clamp(1.4rem, 1.9vw, 1.7rem); margin-bottom: 12px; }
.panneau p { color: var(--pierre-fonce); margin: 0 0 24px; flex: 1; }
.panneau .btn { align-self: flex-start; }
@media (min-width: 1101px) { .panneau h3 { min-height: 2.4em; } }
.phares-aussi { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--filet); color: var(--pierre-fonce); }
@media (max-width: 1100px) { .panneaux { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 560px) { .panneaux { grid-template-columns: 1fr; } .panneau-img { aspect-ratio: 4 / 3; } }

/* ===== La finition ===== */
.finition-grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 104px); align-items: center; }
.finition-texte h2 { margin-bottom: 24px; }
.finition-texte > p { color: #C9C5BD; }
.finition-texte ol { list-style: none; counter-reset: e; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--filet-clair); }
.finition-texte li { counter-increment: e; display: grid; grid-template-columns: 44px 1fr; padding: 16px 0; border-bottom: 1px solid var(--filet-clair); color: #DAD6CE; }
.finition-texte li::before { content: counter(e, decimal-leading-zero); font: .8rem var(--etiquette); letter-spacing: .15em; color: var(--ocre-clair); padding-top: 4px; }
.finition-texte blockquote { margin: 36px 0 0; font: 400 1.3rem/1.45 var(--titre); }
.finition-texte blockquote footer { margin-top: 10px; font: .88rem var(--texte); color: #A9A59D; }
.finition-photo .revele { aspect-ratio: 4 / 5; }
@media (max-width: 980px) { .finition-grille { grid-template-columns: 1fr; } .finition-photo .revele { aspect-ratio: 4 / 3; } }

/* Photo qui passe du noir et blanc à la couleur, de bas en haut, comme un passage de rouleau */
.revele { position: relative; overflow: hidden; background: var(--appret-2); }
.revele picture, .revele img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.revele-nb { position: absolute; inset: 0; }
.revele-nb img { filter: grayscale(1) contrast(1.04) brightness(1.02); }
.revele-coul { position: absolute; inset: 0; }
.revele-actif .revele-coul { -webkit-mask-image: linear-gradient(to top, #000 0 44%, transparent 56%); mask-image: linear-gradient(to top, #000 0 44%, transparent 56%); -webkit-mask-size: 100% 230%; mask-size: 100% 230%; -webkit-mask-position: 0 0; mask-position: 0 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; transition: -webkit-mask-position 2.2s var(--sortie) .15s, mask-position 2.2s var(--sortie) .15s; }
.revele-actif .revele.vu .revele-coul { -webkit-mask-position: 0 100%; mask-position: 0 100%; }

.compare { position: relative; overflow: hidden; background: #2A2927; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.compare-cadre { position: relative; aspect-ratio: 16 / 10; }
.compare canvas, .compare img, .compare .compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .compare-apres { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare-etiq { position: absolute; top: 16px; z-index: 3; font: .74rem/1 var(--etiquette); letter-spacing: .2em; text-transform: uppercase; padding: 9px 12px; background: rgba(27,27,26,.78); color: var(--appret); pointer-events: none; }
.compare-etiq.g { left: 16px; } .compare-etiq.d { right: 16px; }
.compare-poignee { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos, 50%); width: 0; pointer-events: none; }
.compare-poignee::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--appret); box-shadow: 0 0 0 1px rgba(27,27,26,.15); }
.rouleau { max-width: none; position: absolute; top: 50%; left: 0; width: 64px; height: 120px; transform: translate(-50%, -50%); filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); transition: transform .3s var(--sortie); }
.compare input[type='range'] { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare input[type='range']:focus-visible ~ .compare-poignee .rouleau { outline: 2px solid var(--ocre-clair); outline-offset: 6px; border-radius: 8px; }
.compare:active .rouleau { transform: translate(-50%, -50%) scale(1.05); }
@media (max-width: 560px) { .compare-etiq { font-size: .75rem; padding: 7px 9px; top: 10px; } .compare-etiq.g { left: 10px; } .compare-etiq.d { right: 10px; } }
.compare-aide { margin-top: 14px; font-size: .9rem; color: #A9A59D; }
.section:not(.sombre) .compare-aide { color: var(--pierre-fonce); }

/* ===== Louis ===== */
.louis-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.louis-photo { position: relative; margin: 0; }
.louis-photo img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; object-position: 70% 40%; }
.louis-photo figcaption { margin-top: 12px; font-size: .85rem; color: var(--pierre-fonce); }
.louis-texte blockquote { margin: 36px 0 0; padding: 26px 0 0; border-top: 1px solid var(--filet); font: 400 1.35rem/1.45 var(--titre); }
.louis-texte blockquote footer { margin-top: 12px; font: .9rem var(--texte); color: var(--pierre-fonce); }
@media (max-width: 860px) { .louis-grille { grid-template-columns: 1fr; } }

/* ===== Méthode (frise) ===== */
.frise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.frise::before { content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--filet); }
.frise li { position: relative; padding: 40px 28px 0 0; }
.frise li::before { content: ''; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--appret-2); border: 1px solid var(--encre); }
.section:not(.section-alt) .frise li::before { background: var(--appret); }
.frise li:first-child::before { background: var(--ocre); border-color: var(--ocre); }
.frise b { display: block; font: 400 .78rem var(--etiquette); letter-spacing: .22em; text-transform: uppercase; color: var(--ocre-fonce); margin-bottom: 12px; }
.frise h3 { font-size: 1.45rem; margin-bottom: 10px; }
.frise p { color: var(--pierre-fonce); margin: 0; }
@media (max-width: 860px) {
  .frise { grid-template-columns: 1fr; }
  .frise::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .frise li { padding: 0 0 36px 44px; }
}

/* ===== Avis ===== */
.avis-grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(36px, 5vw, 80px); }
.note { font: 400 clamp(5rem, 11vw, 8.5rem)/.9 var(--titre); margin: 0; }
.note-sous { margin-top: 18px; color: var(--pierre-fonce); }
.note-sous .etoiles { display: block; font-size: 1.3rem; margin-bottom: 8px; }
.citations { display: grid; gap: 0; border-top: 1px solid var(--filet); }
.citation { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--filet); }
.citation p { font: 400 clamp(1.15rem, 1.7vw, 1.4rem)/1.5 var(--titre); margin-bottom: 12px; }
.citation footer { font-size: .9rem; color: var(--pierre-fonce); }
@media (max-width: 860px) { .avis-grille { grid-template-columns: 1fr; } }

/* ===== Zone d'intervention ===== */
.zone-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 5vw, 88px); align-items: center; }
.communes { list-style: none; padding: 0; margin: 28px 0 0; columns: 2; column-gap: 32px; }
.communes li { padding: 10px 0; border-bottom: 1px solid var(--filet); break-inside: avoid; }
.carte svg { width: 100%; height: auto; }
.carte .ville circle { fill: var(--encre); }
.carte .ville text { font: 13px var(--texte); fill: var(--encre); }
.carte .ville.base circle { fill: var(--ocre); }
.carte .ville.base text { font-weight: 600; }
.carte .loin text { font: 12px var(--etiquette); letter-spacing: .14em; fill: var(--pierre-fonce); text-transform: uppercase; }
@media (max-width: 860px) { .zone-grille { grid-template-columns: 1fr; } .communes { columns: 2; } }
@media (max-width: 600px) { .carte { display: none; } }

/* ===== Appel final ===== */
.appel { text-align: left; }
.appel-int { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px 64px; align-items: end; }
.appel h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.appel-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.appel-actions .btn { width: 100%; }
.appel-note { font-size: .92rem; color: #A9A59D; margin: 8px 0 0; }
@media (max-width: 860px) { .appel-int { grid-template-columns: 1fr; } }

/* ===== Pied de page ===== */
.pied { background: var(--encre-2); color: #CFCBC3; padding: clamp(64px, 8vw, 104px) 0 32px; font-size: .95rem; --logo-ocre: var(--ocre-clair); --logo-encre: var(--appret); }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--appret); text-decoration: underline; text-underline-offset: 3px; }
.pied-grille { display: grid; grid-template-columns: 200px repeat(3, minmax(0, 1fr)); gap: 40px clamp(32px, 4vw, 64px); }
.cachet { display: block; width: 168px; color: var(--appret); }
.pied h2 { font: 400 .78rem var(--etiquette); letter-spacing: .24em; text-transform: uppercase; color: #8F8B83; margin: 0 0 18px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 4px; }
.pied li a { display: inline-flex; align-items: center; min-height: 44px; }
.pied address { font-style: normal; line-height: 1.8; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(244,241,236,.12); font-size: .85rem; color: #8F8B83; }
@media (max-width: 900px) { .pied-grille { grid-template-columns: 1fr 1fr; } .pied-grille > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .pied-grille { grid-template-columns: 1fr; } }

/* ===== Pages intérieures ===== */
.tete-page { padding-block: clamp(48px, 8vw, 120px) clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--filet); }
.tete-page h1 { max-width: 15em; margin-bottom: 24px; }
.fil { font-size: .88rem; color: var(--pierre-fonce); margin-bottom: 28px; }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }

.sommaire { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 32px 0 0; }
.sommaire a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--filet); border-radius: 40px; text-decoration: none; font-size: .92rem; transition: border-color .3s, background .3s; }
.sommaire a:hover { border-color: var(--encre); background: var(--blanc); }

.presta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 104px); align-items: start; padding-block: clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--filet); }
.presta:last-of-type { border-bottom: 0; }
.presta.inverse .presta-photo { order: 2; }
.presta-photo .revele { aspect-ratio: 5 / 4; }
.presta-num { font: .82rem var(--etiquette); letter-spacing: .22em; color: var(--ocre-fonce); display: block; margin-bottom: 14px; }
.presta h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 22px; }
.presta-corps > p:first-of-type { font-size: 1.12rem; }
.presta ul { padding: 0; margin: 24px 0 32px; list-style: none; border-top: 1px solid var(--filet); }
.presta li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--filet); position: relative; }
.presta li::before { content: ''; position: absolute; left: 0; top: 1.3em; width: 14px; height: 1px; background: var(--ocre); }
.presta-corps .btn { margin-top: 8px; }
@media (max-width: 860px) { .presta { grid-template-columns: 1fr; } .presta.inverse .presta-photo { order: 0; } }

.etapes-sinistre { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 32px; }
.etapes-sinistre li { counter-increment: s; padding: 14px 0 14px 48px; position: relative; border-bottom: 1px solid var(--filet); }
.etapes-sinistre li::before { content: counter(s); position: absolute; left: 0; top: 12px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--ocre); color: var(--ocre-fonce); font: .9rem/28px var(--etiquette); text-align: center; }

.faq { border-top: 1px solid var(--filet); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; min-height: 44px; font: 400 1.25rem/1.35 var(--titre); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--encre), var(--encre)) center / 14px 1.5px no-repeat, linear-gradient(var(--encre), var(--encre)) center / 1.5px 14px no-repeat; transition: transform .35s var(--sortie); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; color: var(--pierre-fonce); max-width: 44em; }

/* Réalisations */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filtres button { min-height: 44px; padding: 8px 18px; border-radius: 40px; border: 1px solid var(--filet); background: none; cursor: pointer; font-size: .92rem; transition: background .3s, color .3s, border-color .3s; }
.filtres button:hover { border-color: var(--encre); }
.filtres button[aria-pressed='true'] { background: var(--encre); color: var(--appret); border-color: var(--encre); }
.galerie { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.chantier { grid-column: span 4; margin: 0; }
.chantier.large { grid-column: span 8; }
.chantier[hidden] { display: none; }
.chantier-img { position: relative; height: clamp(240px, 24vw, 340px); overflow: hidden; background: var(--appret-2); }
.chantier-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 45%; }
/* Noir et blanc, la couleur revient au passage : la signature du site */
.chantier-img img.nb { filter: grayscale(1) contrast(1.02); transition: filter .9s var(--sortie), transform 1.2s var(--sortie); }
.chantier:hover .chantier-img img.nb, .chantier:focus-within .chantier-img img.nb { filter: none; transform: scale(1.02); }
.chantier figcaption { padding-top: 14px; display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; color: var(--pierre-fonce); }
.chantier figcaption strong { color: var(--encre); font-weight: 500; }
.emplacement { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--pierre-fonce); font-size: .9rem; border: 1px dashed rgba(140,138,133,.6); background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(140,138,133,.07) 14px 28px); }
.emplacement span { display: block; font: 400 1.15rem var(--titre); color: var(--encre); margin-bottom: 6px; }
@media (max-width: 860px) { .chantier, .chantier.large { grid-column: span 12; } .chantier-img { height: auto; aspect-ratio: 4 / 3; } }
.compare-demo { max-width: 760px; margin-inline: auto; }

/* ===== Devis ===== */
.devis-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
@media (max-width: 980px) { .devis-grille { grid-template-columns: 1fr; } }
.etapes-form { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 36px; border-bottom: 1px solid var(--filet); }
.etapes-form li { flex: 1; padding: 0 0 14px; font: .78rem var(--etiquette); letter-spacing: .16em; text-transform: uppercase; color: var(--pierre); position: relative; }
.etapes-form li::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ocre); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--sortie); }
.etapes-form li.fait, .etapes-form li.actif { color: var(--encre); }
.etapes-form li.fait::after, .etapes-form li.actif::after { transform: scaleX(1); }
.no-js .etapes-form { display: none; }
.form fieldset { border: 0; margin: 0 0 36px; padding: 0; min-width: 0; }
.form legend { font: 400 1.6rem/1.2 var(--titre); margin-bottom: 24px; padding: 0; }
.champ { margin-bottom: 22px; }
.champ label, .champ .lbl { display: block; font-weight: 500; margin-bottom: 8px; }
.champ .aide { display: block; font-size: .88rem; color: var(--pierre-fonce); font-weight: 400; margin-top: 2px; }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 52px; padding: 12px 14px; background: var(--blanc); border: 1px solid rgba(27,27,26,.25); border-radius: var(--rayon); transition: border-color .25s, box-shadow .25s; }
.champ textarea { min-height: 140px; resize: vertical; }
.champ select { appearance: none; background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231B1B1A' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(184,116,42,.25); }
.champ input:user-invalid, .champ select:user-invalid { border-color: #A3311F; }
.champ[hidden] { display: none; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .deux { grid-template-columns: 1fr; } }
.choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.choix label { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1px solid rgba(27,27,26,.2); border-radius: var(--rayon); background: var(--blanc); cursor: pointer; font-weight: 400; margin: 0; transition: border-color .25s, background .25s; }
.choix label:hover { border-color: var(--encre); }
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix label::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(27,27,26,.4); background: var(--blanc); transition: box-shadow .25s, background .25s; }
.choix label:has(input:checked) { border-color: var(--encre); background: #fff; }
.choix label:has(input:checked)::before { background: var(--ocre); border-color: var(--ocre); box-shadow: inset 0 0 0 3px #fff; }
.choix label:has(input:focus-visible) { outline: 2px solid var(--ocre); outline-offset: 2px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.form-statut { min-height: 1.6em; margin: 16px 0 0; font-weight: 500; }
.form-statut.est-erreur { color: #A3311F; }
.consent { font-size: .86rem; color: var(--pierre-fonce); margin: 18px 0 0; }
.form-merci { padding: clamp(32px, 5vw, 56px); background: var(--blanc); border: 1px solid var(--filet); border-top: 3px solid var(--ocre); }
.form-merci svg { width: 56px; height: 56px; color: var(--ocre); margin-bottom: 18px; }
.form-merci h2 { margin-bottom: 14px; }
.form-merci .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.form-merci:focus { outline: none; }
.encart { background: var(--encre); color: var(--appret); padding: clamp(28px, 4vw, 44px); position: sticky; top: calc(var(--entete) + 24px); }
.encart h2 { font-size: 1.7rem; margin-bottom: 18px; }
.encart p, .encart li { color: #CFCBC3; }
.encart a { color: var(--appret); }
.encart ul { list-style: none; padding: 0; margin: 0 0 22px; }
.encart li { padding: 10px 0; border-bottom: 1px solid var(--filet-clair); }
.encart .tel { display: flex; align-items: center; min-height: 44px; font: 500 1.65rem/1.2 var(--texte); letter-spacing: .01em; text-decoration: none; margin: 4px 0 20px; color: var(--appret); font-variant-numeric: lining-nums; }
@media (max-width: 980px) { .encart { position: static; } }
.encart .btn { --fond: transparent; --txt: var(--appret); border-color: rgba(244, 241, 236, .45); margin-top: 12px; width: 100%; }
.encart .btn::after { background: var(--ocre-clair); }
.encart .btn:hover, .encart .btn:focus-visible { color: var(--encre); border-color: var(--ocre-clair); }

/* ===== Rideau de transition entre les pages ===== */
.rideau { position: fixed; left: 0; right: 0; top: -2px; height: calc(100vh + 32px); height: calc(100lvh + 32px); z-index: 300; display: grid; place-items: center; background: #2E4A41; color: #2E4A41; pointer-events: none; transform: translateY(calc(100% + 40px)); }
.rideau-bord { position: absolute; left: 0; width: 100%; height: 30px; top: -29px; fill: currentColor; }
.rideau-mole { width: 132px; fill: none; stroke: #D4924A; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
html.depart .rideau { animation: rideau-entre .43s cubic-bezier(.7, 0, .25, 1) both; }
html.depart .rideau-mole { animation: trait .5s .18s var(--sortie) both; }
html.arrivee .rideau { animation: rideau-sort .75s cubic-bezier(.6, 0, .2, 1) .12s both; }
html.arrivee .rideau-mole { stroke-dashoffset: 0; }
@keyframes rideau-entre { from { transform: translateY(calc(100% + 40px)); } to { transform: translateY(0); } }
@keyframes rideau-sort { from { transform: translateY(0); } to { transform: translateY(calc(-100% - 40px)); } }
@keyframes trait { to { stroke-dashoffset: 0; } }

/* ===== Page FAQ ===== */
.faq-recherche { position: relative; max-width: 560px; margin-top: 32px; }
.faq-recherche svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--pierre-fonce); pointer-events: none; }
.faq-recherche input { width: 100%; min-height: 58px; padding: 14px 18px 14px 50px; border: 1px solid rgba(27,27,26,.25); border-radius: 60px; background: var(--blanc); font-size: 1rem; }
.faq-recherche input:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(184,116,42,.25); }
.faq-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.faq-theme + .faq-theme { margin-top: 56px; }
.faq-theme h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 16px; }
.faq-vide { font-size: 1.1rem; color: var(--pierre-fonce); }
@media (max-width: 980px) { .faq-grille { grid-template-columns: 1fr; } }

/* Mentions */
.texte-long { max-width: 760px; }
.texte-long h2 { font-size: 1.6rem; margin: 48px 0 14px; }
.texte-long p, .texte-long li { color: var(--encre-2); }

/* 404 */
.page-404 { min-height: 60vh; display: grid; align-content: center; }

/* Mouvement réduit : tout est visible, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .monte, .js .rechampi { transform: none; }
}
@media print {
  .entete, .barre-mobile, .pied, .appel { display: none; }
  body { background: #fff; }
}

/* Zones tactiles d'au moins 44 px sur les liens dans le texte, sans changer leur aspect */
.pied address a, .pied p a, .pied-bas a, .fil a, .note-sous a, .encart li a, .texte-long a, .phares-aussi a, .consent a { position: relative; }
.pied address a::after, .pied p a::after, .pied-bas a::after, .fil a::after, .note-sous a::after, .encart li a::after, .texte-long a::after, .phares-aussi a::after, .consent a::after { content: ''; position: absolute; inset: -12px -4px; }
.pied address a, .pied-bas a { display: inline-block; padding: 12px 0; margin: -12px 0; }

/* ===== Variante de test « Motion » (site-motion/ seulement : classe .motion sur <html>) ===== */
.m-masque { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.m-mot { display: inline-block; will-change: transform; transform-origin: 0 100%; }
.js.motion .hero h1, .js.motion .hero-texte > :not(h1), .js.motion .hero-media { opacity: 0; animation: m-filet 0s 2.8s forwards; }
@keyframes m-filet { to { opacity: 1; } }
.m-parallaxe img { scale: 1.16; }
.m-progression { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; background: var(--ocre); transform-origin: left; transform: scaleX(0); pointer-events: none; }
