/* Lisse et Cloison Plâtrerie : style « Lisse ». Minimalisme extrême : de très grands aplats plâtre et blancs, filets fins gris pierre, angles droits,
   énormément de respiration, typographie légère (Jost fin, majuscules espacées en surtitres) et précise. L'olive (--accent) vit en aplat avec du texte
   sombre dessus ; le petit texte d'accent est un olive foncé. Jamais d'olive clair en texte sur plâtre.
   Signature : un mur de plaques en SVG, enduit puis poncé par le défilement (voir site.js). */
:root {
  --platre: #f5f4f0;
  --blanc: #ffffff;
  --encre: #22252a;
  --encre-douce: #484c53;
  --gris-texte: #5f636a;
  --filet: #d3d0c7;
  --filet-fort: #8f9188;
  --olive-texte: #1d2608;
  --olive-fonce: #4a5a14;
  --olive-vif: #8aa62e;
  --etiquette: 2rem;
  --haut-entete: 4rem;
  --rayon: 2px;
  --haut-max: min(70svh, 600px);
}
body {
  background: var(--platre);
  color: var(--encre);
  font-family: var(--police-texte);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
}
h1, h2, h3 { font-family: var(--police-titre); font-weight: 300; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 .5em; }
h2 { font-size: clamp(2.1rem, 1rem + 3.6vw, 4rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); font-weight: 400; letter-spacing: -0.005em; line-height: 1.2; margin-bottom: .4em; }
p { margin: 0 0 1em; }
a { color: inherit; }
.intro { font-size: 1.125rem; color: var(--encre-douce); max-width: 52ch; }
.surtitre { margin: 0 0 1.25rem; font-family: var(--police-titre); font-weight: 500; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; line-height: 1.4; color: var(--encre); }
.surtitre-fonce { color: var(--olive-fonce); }

.etiquette-demo { height: var(--etiquette); line-height: var(--etiquette); padding-block: 0; background: var(--encre); color: var(--platre); letter-spacing: .04em; }

/* ---------- en-tête : bandeau plâtre, filet fin ---------- */
.entete { position: fixed; top: var(--etiquette); left: 0; right: 0; z-index: 70; background: rgba(245, 244, 240, .94); border-bottom: 1px solid var(--filet); color: var(--encre); }
html.defile .entete { top: 0; }
.entete-interieur { display: flex; align-items: center; justify-content: space-between; min-height: var(--haut-entete); gap: 1rem; }
.marque { display: inline-flex; align-items: baseline; gap: .75rem; min-height: 2.75rem; align-self: center; text-decoration: none; font-family: var(--police-titre); text-transform: uppercase; white-space: nowrap; }
.marque-nom { font-weight: 500; font-size: .95rem; letter-spacing: .24em; line-height: 2.75rem; }
.marque-metier { font-weight: 300; font-size: .78rem; letter-spacing: .24em; color: var(--encre-douce); }
.menu ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; }
.menu li a { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--police-titre); font-weight: 400; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; background: linear-gradient(var(--olive-fonce), var(--olive-fonce)) left bottom .55rem / 0 1px no-repeat; transition: background-size .25s ease; }
.menu li a:hover { background-size: 100% 1px; }
.menu-telephone { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; border: 1px solid var(--encre); border-radius: var(--rayon); font-family: var(--police-titre); font-weight: 500; font-size: .9rem; letter-spacing: .1em; transition: background-color .2s, color .2s; }
.menu-telephone:hover { background: var(--encre); color: var(--platre); }
.menu-bouton { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: 0 .9rem; background: transparent; color: inherit; border: 1px solid var(--encre); border-radius: var(--rayon); font-family: var(--police-titre); font-weight: 500; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.menu-bouton-barres { width: 1.1rem; height: 1px; background: currentColor; position: relative; }
.menu-bouton-barres::before, .menu-bouton-barres::after { content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; }
.menu-bouton-barres::before { top: -5px; }
.menu-bouton-barres::after { top: 5px; }
@media (min-width: 900px) { .menu { display: flex; align-items: center; gap: 2.25rem; } }
@media (max-width: 899px) {
  .menu { position: absolute; top: 100%; left: 0; right: 0; padding: .5rem var(--gouttiere) 1.5rem; background: var(--platre); border-bottom: 1px solid var(--filet); }
  .menu ul { flex-direction: column; gap: 0; }
  .menu li a { display: flex; min-height: 3rem; border-bottom: 1px solid var(--filet); background: none; }
  .menu-telephone { display: flex; justify-content: center; min-height: 3rem; margin-top: 1.1rem; }
}

/* ---------- boutons : aplat olive, texte sombre ; ou contour fin ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.75rem; background: var(--accent); color: var(--olive-texte); border: 1px solid var(--accent); border-radius: var(--rayon); font-family: var(--police-titre); font-weight: 500; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.bouton:hover { background: var(--olive-vif); border-color: var(--olive-vif); }
.bouton-ligne { background: transparent; color: var(--encre); border-color: var(--encre); letter-spacing: .1em; }
.bouton-ligne:hover { background: var(--encre); border-color: var(--encre); color: var(--platre); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin: 2rem 0 0; }

/* ---------- ouverture : le mur de plaques, collant pendant le défilement ---------- */
.mur-piste { position: relative; }
html.anim .mur-piste, html.mur-actif .mur-piste { height: 360svh; }
/* collant seulement quand le mouvement est actif : en mouvement réduit et sans JavaScript la piste n'est pas allongée (rien à coller) */
html.anim .mur-scene, html.mur-actif .mur-scene { position: sticky; top: 0; }
.mur-scene { position: relative; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: var(--platre); }
.mur-fond { position: absolute; inset: 0; z-index: 0; }
.mur { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.mur .plaque.t0 { fill: #dcd9d0; }
.mur .plaque.t1 { fill: #d6d3ca; }
.mur .plaque.t2 { fill: #e0ddd5; }
.mur .joint { fill: #aaa597; }
.mur .joint-ombre { fill: #c9c5b9; opacity: .55; }
.mur .vis { fill: none; stroke: #a39e90; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 60; }
.mur .bande { fill: #efece4; stroke: #d3cfc3; stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; }
.mur .bande-v { transform-origin: 50% 0; }
.mur .bande-h { transform-origin: 0 50%; }
.mur .enduit { fill: #f2f1ec; }
.mur .strie { fill: none; stroke-linecap: round; }
.mur .strie-sombre { stroke: #dfddd5; stroke-width: 3; }
.mur .strie-claire { stroke: #fcfbf8; stroke-width: 4; }
.mur .couteau-lame { fill: #8e959d; }
.mur .couteau-fil { fill: #d4d8dc; }
.mur .couteau-manche { fill: #22252a; }
.mur .couteau-attache { fill: #5b6168; }
.mur .couteau-bourrelet { fill: #fbfaf7; }
.mur .ponceuse-cale { fill: #c9cdd1; stroke: #8e959d; stroke-width: 2; }
.mur .ponceuse-grain { fill: #a7aeb5; }

.mur-texte { position: relative; z-index: 2; padding-block: 7rem 6.75rem; color: var(--encre); }
.mur-texte .surtitre { max-width: 40ch; }
.mur-texte h1 { font-size: clamp(2.7rem, 12.5vw, 4.6rem); line-height: .96; letter-spacing: -.025em; margin: 0 0 .35em; }
.ligne { display: block; }
.chapo { font-size: clamp(1rem, .95rem + .35vw, 1.3rem); max-width: 50ch; color: var(--encre); margin: 0; }
@media (min-width: 900px) {
  .mur-texte { padding-block: 8rem 7.5rem; }
  .mur-texte h1 { font-size: min(8.4vw, 8.5rem, 14.5svh); }
}

.temps { position: absolute; z-index: 2; left: 0; right: 0; bottom: 1.75rem; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem 2rem; }
.temps-liste { display: flex; gap: clamp(1rem, 3vw, 2.5rem); list-style: none; margin: 0; padding: 0; }
.temps-item { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: baseline; min-width: 5.5rem; color: var(--encre); }
.temps-num { font-family: var(--police-titre); font-weight: 500; font-size: .72rem; letter-spacing: .2em; color: var(--olive-fonce); }
.temps-nom { font-family: var(--police-titre); font-weight: 400; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.temps-filet { grid-column: 1 / -1; height: 1px; background: var(--filet-fort); position: relative; margin-top: .45rem; }
.temps-barre { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--avance, 1)); }
.temps-item[data-etat="attente"] .temps-nom, .temps-item[data-etat="attente"] .temps-num { color: var(--gris-texte); }
.temps-legende { margin: 0; font-size: .875rem; color: var(--encre-douce); max-width: 34ch; }
@media (max-width: 599px) { .temps-legende { display: none; } .temps { bottom: 1.25rem; } .mur-texte { padding-bottom: 5.5rem; } }

/* ---------- photos : entières à l'écran, découvertes de haut en bas ---------- */
.photo { margin: 0; width: min(100%, calc(var(--haut-max) * var(--ratio, 1.5))); }
.photo img { width: 100%; height: auto; }
.photo figcaption { margin-top: .75rem; font-size: .875rem; color: var(--gris-texte); line-height: 1.5; }
.photo-couloir { --ratio: .8; }
.photo-ossature { --ratio: 2.5; --haut-max: min(60svh, 500px); width: 100%; }
.photo-plafond { --ratio: 1.5; }
.photo-bandes { --ratio: 2; --haut-max: min(60svh, 520px); }
.photo-escalier { --ratio: .664; }
.photo-mur { --ratio: .75; }
.photo-spots { --ratio: 1.378; }

/* ---------- prestations ---------- */
.prestations { padding-block: clamp(5rem, 11vw, 10rem); }
.prestations-interieur { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .prestations-interieur { grid-template-columns: 4fr 8fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .prestations-photo { position: sticky; top: calc(var(--haut-entete) + 2.5rem); }
}
.prestations-liste { list-style: none; margin: 3rem 0 0; padding: 0; }
.prestation { display: grid; grid-template-columns: 2.5rem 1fr; gap: .25rem 1rem; padding-block: 1.6rem; border-top: 1px solid var(--filet); }
.prestation:last-child { border-bottom: 1px solid var(--filet); }
.prestation-num { grid-row: 1 / span 2; font-family: var(--police-titre); font-weight: 500; font-size: .78rem; letter-spacing: .2em; color: var(--olive-fonce); padding-top: .4rem; }
.prestation h3 { margin: 0; }
.prestation p { margin: 0; color: var(--encre-douce); max-width: 56ch; }
@media (min-width: 1100px) {
  .prestation { grid-template-columns: 2.5rem 15rem 1fr; align-items: baseline; }
  .prestation-num { grid-row: auto; padding-top: 0; }
}

/* ---------- étapes : profils de cloison ---------- */
.etapes { background: var(--blanc); padding-block: clamp(5rem, 11vw, 10rem); border-block: 1px solid var(--filet); }
.etapes-tete { display: grid; gap: 1rem 4rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.etapes-tete h2 { margin: 0; }
.etapes-tete .intro { margin: 0; }
@media (min-width: 900px) { .etapes-tete { grid-template-columns: 7fr 5fr; align-items: end; } .etapes-tete .surtitre { grid-column: 1 / -1; margin: 0; } }
.etapes .photo { margin-bottom: clamp(3rem, 7vw, 6rem); }
.etapes-corps { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.etapes-dessin { position: sticky; top: calc(var(--haut-entete) + .75rem); z-index: 3; background: var(--blanc); padding-block: .75rem; align-self: start; }
.etapes-dessin .cloison { width: 100%; height: min(36svh, 300px); }
.etapes-legende { margin: .5rem 0 0; font-size: .875rem; color: var(--gris-texte); }
.etapes-liste { list-style: none; margin: 0; padding: 0; }
.etape { min-height: 44svh; padding-block: 1.5rem 2rem; border-top: 1px solid var(--filet); color: var(--encre); transition: color .4s; }
.etape-num { display: block; margin-bottom: .75rem; font-family: var(--police-titre); font-weight: 500; font-size: .78rem; letter-spacing: .2em; color: var(--olive-fonce); }
.etape h3, .etape p { transition: color .4s; }
.etape p { color: var(--encre-douce); max-width: 44ch; margin: 0; }
.etape[data-attente] h3, .etape[data-attente] p, .etape[data-attente] .etape-num { color: var(--gris-texte); }
@media (min-width: 900px) {
  .etapes-corps { grid-template-columns: 6fr 5fr; gap: clamp(3rem, 7vw, 7rem); }
  .etapes-dessin { top: calc(var(--haut-entete) + 3rem); padding-block: 0; z-index: auto; }
  .etapes-dessin .cloison { height: auto; max-height: 70svh; }
  .etape { min-height: 58svh; padding-top: 2rem; }
}
.cloison .sol { stroke: var(--filet-fort); stroke-width: 1; }
.cloison .rail { fill: #cfd3d7; stroke: #8e959d; stroke-width: 1.5; transform-box: fill-box; transform-origin: 0 50%; }
.cloison .montant-ame { fill: #dde0e3; stroke: #8e959d; stroke-width: 1.5; }
.cloison .montant { transform-box: fill-box; transform-origin: 50% 0; }
.cloison .montant-nerf { stroke: #8e959d; stroke-width: 1; }
.cloison .plaque-c rect { fill: #e8e5dc; stroke: #b9b4a6; stroke-width: 1.5; }
.cloison .plaque-c { transform-box: fill-box; }
.cloison .vis-c { fill: none; stroke: #a39e90; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 28; }
.cloison .bande-c { fill: #f3f1ea; stroke: #cfcbbf; stroke-width: 1; transform-box: fill-box; transform-origin: 50% 0; }
.cloison .enduit-c { fill: #f6f5f1; transform-box: fill-box; transform-origin: 0 50%; }

/* ---------- savoir-faire ---------- */
.detail { padding-block: clamp(5rem, 11vw, 10rem); }
.detail-bloc { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .detail-bloc { grid-template-columns: 6fr 5fr; gap: clamp(3rem, 7vw, 7rem); } }
.filets { list-style: none; margin: 2rem 0 0; padding: 0; }
.filets li { padding-block: 1rem; border-top: 1px solid var(--filet); font-family: var(--police-titre); font-weight: 400; font-size: 1.15rem; letter-spacing: .005em; }
.filets li:last-child { border-bottom: 1px solid var(--filet); }
.detail-bandes { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: clamp(4rem, 9vw, 8rem); align-items: center; }
@media (min-width: 900px) { .detail-bandes { grid-template-columns: 7fr 4fr; gap: clamp(3rem, 7vw, 7rem); } }
.detail-bandes-texte p { color: var(--encre-douce); max-width: 44ch; }

/* ---------- lumière rasante ---------- */
.lumiere-section { background: var(--blanc); padding-block: clamp(5rem, 11vw, 10rem); border-block: 1px solid var(--filet); }
.lumiere-interieur { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .lumiere-interieur { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 7vw, 7rem); } }
.lumiere-duo { display: grid; grid-template-columns: 8fr 9fr; gap: clamp(.75rem, 2vw, 1.5rem); align-items: start; }
.lumiere-duo .photo { width: 100%; }
@media (max-width: 599px) { .lumiere-duo .photo figcaption { font-size: .8125rem; } }

/* ---------- zone ---------- */
.zone { padding-block: clamp(5rem, 11vw, 10rem); }
.zone-interieur { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .zone-interieur { grid-template-columns: 6fr 5fr; gap: clamp(3rem, 7vw, 7rem); } }
.zone-texte .intro { margin-bottom: 0; }
.communes { list-style: none; margin: clamp(3rem, 6vw, 5rem) auto 0; padding: 0; width: min(100% - 2 * var(--gouttiere), var(--largeur-max)); display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--filet); }
.communes li { padding-block: 1.1rem; border-bottom: 1px solid var(--filet); font-family: var(--police-titre); font-weight: 300; font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); letter-spacing: -.01em; line-height: 1.2; }
@media (min-width: 900px) {
  .communes { grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--filet); }
  .communes li { padding: 1.6rem 1rem 1.6rem 0; border-bottom: 0; font-size: clamp(1.1rem, .6rem + 1.2vw, 1.7rem); overflow-wrap: anywhere; }
  .communes li + li { padding-left: 1.25rem; border-left: 1px solid var(--filet); }
}
.avis { margin: clamp(3rem, 6vw, 5rem) 0 0; padding-block: 2rem; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); text-align: center; font-family: var(--police-titre); font-weight: 300; font-size: 1.25rem; color: var(--encre-douce); }

/* ---------- contact ---------- */
.contact { background: var(--blanc); padding-block: clamp(5rem, 11vw, 10rem); border-top: 1px solid var(--filet); }
.contact-interieur { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-interieur { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); } }
.contact-tel { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--police-titre); font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.4rem); font-weight: 300; letter-spacing: -.01em; text-decoration: none; }
address { font-style: normal; margin-bottom: 1.25rem; color: var(--encre-douce); }
.horaires { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.5rem; margin: 0; color: var(--encre-douce); }
.horaires dt { font-weight: 500; color: var(--encre); }
.horaires dd { margin: 0; }
.formulaire { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--filet); }
.champ label { display: block; margin-bottom: .4rem; font-family: var(--police-titre); font-weight: 500; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; }
.champ-requis { color: var(--olive-fonce); }
.champ input, .champ textarea { width: 100%; min-height: 3rem; padding: .7rem .9rem; background: var(--platre); color: var(--encre); border: 1px solid var(--filet-fort); border-radius: var(--rayon); font: inherit; }
.champ textarea { min-height: 8rem; resize: vertical; }
.formulaire .bouton { justify-self: start; }
.formulaire-statut { padding: .9rem 1rem; background: var(--platre); border-left: 3px solid var(--accent); margin: 0; color: var(--encre); }

/* ---------- pied ---------- */
.pied { background: var(--encre); color: var(--platre); }
.pied-interieur { padding-block: 3.5rem 1.5rem; }
.pied-interieur p { margin-bottom: .35rem; }
.pied-interieur a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.pied-nom { font-family: var(--police-titre); font-weight: 400; font-size: 1.1rem; letter-spacing: .24em; text-transform: uppercase; }
.mention-pied { border-top: 1px solid rgba(245, 244, 240, .2); color: #d4d2cb; }

/* ---------- barre d'appel (téléphone) ---------- */
.barre-appel a { background: var(--accent); color: var(--olive-texte); font-family: var(--police-titre); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) { .temps-barre, .etape, .etape h3, .etape p { transition: none; } }
