/* RDV Chantier. Direction : plan d'architecte et devis de chantier.
   Plâtre, encre, bleu de travail, orange signal. Polices hébergées sur le site. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --platre: #f4f1e9;
  --papier: #fffdf8;
  --encre: #12161f;
  --encre-2: #434b5a;
  --trait: #d6d0c1;
  --bleu: #14336e;
  --nuit: #0d2248;
  --nuit-2: #17315f;
  --ciel: #c9d6ee;
  --signal: #ff6b1a;
  --signal-fonce: #ad3903;
  --vert: #17603e;
  --rouge: #9c2717;
  --titre: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --texte: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gouttiere: clamp(1.15rem, 4vw, 2.75rem);
  --espace: clamp(3.75rem, 8.5vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (min-width: 1000px) { html { scroll-padding-top: 8.5rem; } }
@media (min-width: 1240px) { html { scroll-padding-top: 5.5rem; } }
body { margin: 0; background: var(--platre); color: var(--encre); font: 400 1.0625rem/1.55 var(--texte); }
@media (min-width: 1000px) { body { font-size: 1.125rem; } }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
h1, h2, h3 { font-family: var(--titre); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.95rem, 1.2rem + 2.5vw, 3.05rem); line-height: 1.06; font-weight: 700; letter-spacing: -.018em; }
h3 { font-size: 1.28rem; line-height: 1.2; font-weight: 700; letter-spacing: -.008em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
mark { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.section-nuit :focus-visible, .pied :focus-visible, .panneau-nuit :focus-visible { outline-color: var(--signal); }

.conteneur { width: min(100%, 1320px); margin-inline: auto; padding-inline: var(--gouttiere); }
.evitement { position: absolute; left: .75rem; top: -4rem; z-index: 60; padding: .7rem 1rem; background: var(--encre); color: #fff; }
.evitement:focus { top: .75rem; }

/* ---- Bandeau d'appel ---- */
.bandeau-appel { background: var(--nuit); color: #fff; font-size: .9rem; line-height: 1.35; padding-block: .55rem; text-align: center; }

/* ---- Boutons ---- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 3.25rem; padding: .7rem 1.35rem; border: 2px solid transparent; border-radius: 3px; font: 700 1.03rem/1.15 var(--texte); text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, transform .15s; }
.bouton-principal { background: var(--signal); color: var(--encre); border-color: var(--signal); }
.bouton-principal::after { content: ""; flex: none; width: .95em; height: .7em; background: currentColor; clip-path: polygon(0 40%, 62% 40%, 62% 12%, 100% 50%, 62% 88%, 62% 60%, 0 60%); transition: transform .15s; }
.bouton-principal:hover { background: #ff8238; border-color: #ff8238; }
.bouton-principal:hover::after { transform: translateX(3px); }
.bouton-contour { background: transparent; color: var(--encre); border-color: var(--encre); }
.bouton-contour:hover { background: var(--encre); color: #fff; }
.bouton-neutre { background: var(--papier); color: var(--encre); border-color: var(--encre); min-height: 2.9rem; flex: 1; }
.bouton-neutre:hover { background: var(--encre); color: #fff; }
.bouton-petit { min-height: 2.75rem; padding: .5rem 1rem; font-size: .95rem; }
.bouton-large { width: 100%; }
.bouton[disabled] { opacity: .7; cursor: progress; }

/* ---- En-tête ---- */
.entete { background: var(--platre); border-bottom: 1px solid var(--trait); }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 4.1rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; text-decoration: none; flex: none; }
.logo-marque { width: 1.9rem; height: 1.9rem; }
.logo-nom { font: 800 1.22rem/1 var(--titre); letter-spacing: -.02em; }
.entete-nav { display: none; }
.entete-actions { display: flex; align-items: center; gap: 1rem; }
.icone-tel { width: 1.05em; height: 1.05em; flex: none; }
.entete-tel { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; font-weight: 600; font-size: .95rem; white-space: nowrap; text-decoration: none; }
.entete-tel:hover { text-decoration: underline; }
.entete-actions .bouton { display: none; }
@media (min-width: 620px) { .entete-actions .bouton { display: inline-flex; } }
.lien-retour { display: inline-block; padding-block: .7rem; font-weight: 600; font-size: .95rem; }

@media (min-width: 1000px) {
  .entete-accueil { position: sticky; top: 0; z-index: 30; }
}
@media (min-width: 1240px) {
  .entete-nav { display: flex; gap: clamp(.9rem, 1.6vw, 1.5rem); font-size: .94rem; font-weight: 500; }
  .entete-nav a { display: inline-flex; align-items: center; gap: .42rem; padding-block: .4rem; text-decoration: none; white-space: nowrap; }
  .entete-nav a:hover, .entete-nav a.actif { text-decoration: underline; }
  .entete-nav span { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; background: var(--encre); color: #fff; font: 500 .74rem/1 var(--mono); }
}

/* ---- Accueil ---- */
.hero-texte { padding: 2.25rem var(--gouttiere) 2.5rem; }
.surtitre { font: 500 .8rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--encre-2); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2rem, 1.05rem + 3.1vw, 3.35rem); line-height: 1.03; font-weight: 700; letter-spacing: -.024em; text-wrap: pretty; }
.hero h1 mark { background: var(--signal); padding: 0 .16em; margin-inline: -.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h1-ligne { display: block; margin-top: .1em; }
.chapeau { margin-top: 1.25rem; font-size: 1.14rem; line-height: 1.5; color: var(--encre-2); max-width: 38rem; }
.hero-visuel { position: relative; padding-bottom: 1.5rem; }
.hero-photo { width: 100%; height: clamp(16rem, 62vw, 26rem); object-fit: cover; object-position: 50% 28%; }

.fiche { background: var(--papier); border: 1px solid var(--encre); padding: 1rem 1.15rem; box-shadow: 6px 6px 0 rgba(18, 22, 31, .92); font-size: .95rem; }
.fiche-hero { position: relative; margin: -4.5rem var(--gouttiere) 0; }
.fiche-tete { display: flex; justify-content: space-between; align-items: center; gap: .75rem; font: 500 .76rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .03em; }
.fiche-statut { display: inline-flex; align-items: center; gap: .45em; color: var(--vert); }
.fiche-statut::before { content: ""; width: .6em; height: .6em; background: var(--vert); border-radius: 50%; animation: point-clignote 1.3s ease-in-out infinite; }
@keyframes point-clignote { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(23, 96, 62, .8); } 50% { opacity: .3; box-shadow: 0 0 0 7px rgba(23, 96, 62, 0); } }
.fiche-exemple { color: var(--encre-2); }
.fiche-quand { margin-top: .6rem; font: 700 1.2rem/1.2 var(--titre); }
.fiche-lignes { margin: .7rem 0 0; display: grid; gap: .25rem; }
.fiche-lignes div { display: grid; grid-template-columns: 4.3rem 1fr; gap: .5rem; padding-top: .3rem; border-top: 1px solid var(--trait); }
.fiche-lignes dt { font: 500 .78rem/1.5 var(--mono); color: var(--encre-2); }
.fiche-lignes dd { margin: 0; line-height: 1.3; }
.fiche-prix { display: flex; justify-content: space-between; align-items: baseline; margin-top: .55rem; padding-top: .5rem; border-top: 2px solid var(--encre); font: 500 .8rem/1.2 var(--mono); }
.fiche-prix strong { font: 800 1.3rem/1 var(--titre); }

@media (min-width: 1000px) {
  .hero { display: grid; grid-template-columns: 1fr calc(min(100% - 2 * var(--gouttiere), 1320px - 2 * var(--gouttiere)) * .585) calc(min(100% - 2 * var(--gouttiere), 1320px - 2 * var(--gouttiere)) * .415) 1fr; }
  .hero-texte { grid-column: 2; padding: clamp(2.25rem, 3.8vw, 3.5rem) 3.5rem clamp(2.25rem, 3.5vw, 3rem) 0; }
  .hero-visuel { grid-column: 3 / 5; padding: 0; min-height: 100%; }
  .hero-photo { position: absolute; inset: 0; height: 100%; object-position: 50% 30%; }
  .fiche-hero { position: absolute; left: -2.75rem; bottom: 2.25rem; margin: 0; width: min(23.5rem, 82%); }
}
@media (min-width: 1000px) and (max-height: 820px) {
  .hero h1 { font-size: clamp(2rem, .95rem + 2.6vw, 2.9rem); }
  .chapeau { font-size: 1.05rem; margin-top: 1rem; }
}

/* ---- Formulaires ---- */
.champ { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.champ label, .choix legend { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.facultatif { font-weight: 400; color: var(--encre-2); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea {
  width: 100%; min-height: 3.25rem; padding: .7rem .85rem; background: #fff; color: var(--encre); border: 1.5px solid #6d7482; border-radius: 3px; font: 400 1.0625rem/1.3 var(--texte);
}
textarea { min-height: 5.5rem; resize: vertical; }
input:hover, textarea:hover { border-color: var(--encre); }
input[aria-invalid="true"] { border-color: var(--rouge); border-width: 2px; }
.champ-erreur { color: var(--rouge); font-size: .9rem; font-weight: 600; line-height: 1.3; }
.champ-aide { color: var(--encre-2); font-size: .88rem; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alerte { margin-top: .85rem; padding: .7rem .85rem; background: #fbe9e4; border-left: 4px solid var(--rouge); color: #5f160c; font-size: .96rem; font-weight: 500; }
.form-rgpd { margin-top: .6rem; font-size: .84rem; line-height: 1.45; color: var(--encre-2); }

.form-accueil { margin-top: 1.6rem; }
.form-accueil-champs { display: grid; gap: .75rem; }
.form-accueil .bouton { width: 100%; }
.form-reassurance { margin-top: .85rem; font-weight: 600; font-size: .98rem; line-height: 1.35; }
@media (min-width: 620px) {
  .form-accueil-champs { grid-template-columns: 1fr 1fr; align-items: start; }
  .form-accueil .bouton { grid-column: 1 / -1; }
}

/* ---- Repères ---- */
.reperes { background: var(--encre); color: #fff; }
.reperes-grille { display: grid; }
.repere { padding-block: 1.15rem; border-bottom: 1px solid rgba(255, 255, 255, .22); display: grid; grid-template-columns: 5.2rem 1fr; gap: .9rem; align-items: baseline; font-size: 1rem; line-height: 1.4; }
.repere:last-child { border-bottom: 0; }
.repere-chiffre { font: 800 1.75rem/1 var(--titre); color: var(--signal); letter-spacing: -.02em; }
@media (min-width: 860px) {
  .reperes-grille { grid-template-columns: repeat(2, 1fr); }
  .repere { display: block; padding: 1.6rem 1.75rem; border-bottom: 0; border-left: 1px solid rgba(255, 255, 255, .22); }
  .repere:first-child { padding-left: 0; border-left: 0; }
  .repere-chiffre { font-size: 2.35rem; margin-bottom: .55rem; }
}

/* ---- Plan de page sur mobile : reste visible pour guider la personne pendant l'appel ---- */
.plan-mobile { position: sticky; top: 0; z-index: 25; background: var(--platre); border-bottom: 1px solid var(--trait); }
@media (min-width: 1000px) { .plan-mobile { top: calc(4.1rem + 1px); } }
@media (max-height: 640px) { .plan-mobile { position: static; } }
.plan-mobile ol { display: flex; gap: .4rem; overflow-x: auto; padding: .4rem var(--gouttiere); scrollbar-width: none; scroll-behavior: smooth; }
.plan-mobile ol::-webkit-scrollbar { display: none; }
.plan-mobile a.actif { background: var(--encre); border-color: var(--encre); color: #fff; }
.plan-mobile a.actif span { background: var(--signal); color: var(--encre); }
.plan-mobile a { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .35rem .8rem .35rem .4rem; background: var(--papier); border: 1px solid var(--trait); font-weight: 600; font-size: .94rem; text-decoration: none; white-space: nowrap; }
.plan-mobile span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; background: var(--encre); color: #fff; font: 500 .82rem/1 var(--mono); }
@media (min-width: 1240px) { .plan-mobile { display: none; } }

/* ---- Sections ---- */
.section { padding-block: var(--espace); }
.section-papier { background: var(--papier); }
.section-nuit { background: var(--nuit); color: #fff; }
.intro { margin-top: 1.1rem; font-size: 1.14rem; line-height: 1.5; color: var(--encre-2); max-width: 40rem; }
.section-nuit .intro { color: var(--ciel); }
.titre-large { max-width: 21em; }
.sources { margin-top: 1rem; font-size: .85rem; line-height: 1.45; color: var(--encre-2); max-width: 62rem; }
.section-nuit .sources { color: var(--ciel); margin-top: 2rem; }
.renvoi { font-weight: 600; text-decoration: none; padding-inline: .1em; }

/* Numéro de point et ligne de cote : le repère de la page pendant l'appel. */
.point { display: flex; align-items: center; gap: .7rem; margin-bottom: clamp(1.4rem, 3vw, 2.25rem); font: 500 .84rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.point-num { display: inline-grid; place-items: center; flex: none; width: 2.15rem; height: 2.15rem; background: var(--encre); color: #fff; font-size: 1.05rem; letter-spacing: 0; }
.section-nuit .point-num { background: var(--signal); color: var(--encre); }
.point::after { content: ""; flex: 1; height: .7rem; border-right: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; opacity: .55; }

/* Point 1 : le problème, côté légal et côté pratique */
.titre-probleme { max-width: 24em; }
.titre-probleme .h2-ligne + .h2-ligne { margin-top: .14em; }
.h2-mention { display: block; margin-top: .14em; }
.titre-probleme mark { background: var(--signal); padding: 0 .14em; margin-inline: -.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (min-width: 860px) { .h2-mention { display: inline; margin-top: 0; } }
.grille-probleme { display: grid; gap: 1rem; margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.panneau-terrain h3 strong { color: var(--signal-fonce); }
.panneau-loi h3 strong { color: var(--signal); }
.probleme-chiffre { font: 800 clamp(3.1rem, 2.2rem + 3.6vw, 4.9rem)/.95 var(--titre); letter-spacing: -.035em; color: var(--signal-fonce); }
.panneau-loi .probleme-chiffre { color: var(--signal); }
.probleme-legende { margin-top: .6rem; font-weight: 600; line-height: 1.35; }
.regles { display: grid; gap: .8rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--trait); }
.panneau-loi .regles { border-top-color: rgba(255, 255, 255, .28); }
.regles li { line-height: 1.4; color: var(--encre-2); }
.panneau-loi .regles li { color: var(--ciel); }
.regles strong { display: block; color: var(--encre); font: 700 1.04rem/1.25 var(--titre); }
.panneau-loi .regles strong { color: #fff; }
.solution-titre { margin-top: clamp(2.5rem, 5vw, 3.75rem); font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); line-height: 1.12; }
.chemins { display: grid; margin-top: 1.25rem; border-top: 2px solid var(--encre); }
.chemin { padding-block: 1.1rem; border-bottom: 1px solid var(--trait); }
.chemin h4 { margin: .5rem 0 .35rem; font: 700 1.2rem/1.2 var(--titre); letter-spacing: -.008em; }
.chemin p:not(.lot-num) { color: var(--encre-2); line-height: 1.45; }
.chemin a { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .1rem; font-weight: 600; }
@media (min-width: 860px) {
  .grille-probleme { grid-template-columns: 1fr 1fr; }
  .chemins { grid-template-columns: repeat(2, 1fr); }
  .chemin { padding: 1.25rem 1.5rem 1.35rem; border-bottom: 1px solid var(--trait); border-left: 1px solid var(--trait); }
  .chemin:nth-child(odd) { padding-left: 0; border-left: 0; }
  .encarts-sites { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .chemins { grid-template-columns: repeat(5, 1fr); }
  .chemin { border-bottom: 0; }
  .chemin:nth-child(odd) { padding-left: 1.5rem; border-left: 1px solid var(--trait); }
  .chemin:first-child { padding-left: 0; border-left: 0; }
  .chemin:last-child { padding-right: 0; }
}

/* Point 2 : le principe */
.grille-principe { display: grid; gap: 2rem; align-items: start; }
.situations { margin-top: 1.75rem; border-top: 1px solid var(--encre); }
.situations li { display: grid; gap: .15rem; padding-block: .95rem; border-bottom: 1px solid var(--trait); }
.situations h3 { font-size: 1.14rem; }
.situations p { color: var(--encre-2); font-size: 1.02rem; line-height: 1.45; }
.principe-photo { margin: 0; }
.principe-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 40%; }
@media (min-width: 1000px) { .principe-photo img { aspect-ratio: 1 / .92; } }
.bande-chiffre { position: relative; margin-top: clamp(2.5rem, 5vw, 4.5rem); background: var(--nuit); color: #fff; overflow: hidden; }
.bande-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: .34; }
.bande-contenu { position: relative; padding-block: clamp(2.5rem, 6vw, 4.75rem); display: grid; gap: .6rem; }
.bande-nombre { font: 800 clamp(3.4rem, 2rem + 8vw, 7.5rem)/.95 var(--titre); letter-spacing: -.035em; }
.bande-texte { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); line-height: 1.3; font-weight: 500; max-width: 26rem; }
@media (min-width: 1000px) {
  .grille-principe { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2.5rem, 5vw, 5rem); }
  .principe-photo { position: sticky; top: 6rem; }
  .bande-contenu { grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; }
}

/* Point 3 : le RDV */
.grille-rdv { display: grid; gap: 2rem; align-items: center; }
.definition { margin-top: 1.25rem; font: 600 clamp(1.3rem, 1.1rem + .9vw, 1.72rem)/1.28 var(--titre); letter-spacing: -.01em; }
.rdv-visuel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.grille-compte { display: grid; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.panneau { padding: clamp(1.25rem, 2.6vw, 2rem); background: var(--platre); border: 1px solid var(--trait); }
.panneau h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .85rem; margin-bottom: 1rem; border-bottom: 2px solid var(--encre); }
.panneau h3 strong { font-weight: 800; white-space: nowrap; font-size: 1.35em; }
.panneau-oui h3 strong { color: var(--vert); }
.panneau-non h3 strong { color: var(--rouge); }
.liste { display: grid; gap: .6rem; }
.liste li { position: relative; padding-left: 1.65rem; line-height: 1.4; }
.liste li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1.05rem; height: 1.05rem; background: var(--vert); clip-path: polygon(12% 50%, 26% 37%, 42% 53%, 76% 14%, 90% 27%, 43% 80%); }
.liste-non li::before { background: var(--rouge); clip-path: polygon(20% 8%, 50% 38%, 80% 8%, 92% 20%, 62% 50%, 92% 80%, 80% 92%, 50% 62%, 20% 92%, 8% 80%, 38% 50%, 8% 20%); }
.encart { margin-top: 1rem; padding: 1.1rem 1.35rem; background: var(--encre); color: #fff; font-size: 1.1rem; line-height: 1.4; }
.encart strong { color: #ffb086; font-weight: 600; }
@media (min-width: 860px) { .grille-compte { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grille-rdv { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2.5rem, 5vw, 5rem); } }

/* Point 4 : étapes reliées par une ligne de cote verticale. */
.grille-etapes { display: grid; gap: 2.25rem; }
.etapes { counter-reset: etape; margin-top: 2rem; display: grid; }
.etapes li { position: relative; counter-increment: etape; padding: 0 0 1.75rem 3.75rem; }
.etapes li:last-child { padding-bottom: 0; }
.etapes li::before { content: counter(etape); position: absolute; left: 0; top: -.1rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; background: var(--platre); border: 2px solid var(--encre); font: 500 1.05rem/1 var(--mono); z-index: 1; }
.etapes li::after { content: ""; position: absolute; left: 1.28rem; top: 0; bottom: 0; width: 2px; background: var(--encre); }
.etapes li:last-child::after { display: none; }
.etapes li:last-child::before { background: var(--signal); }
.etapes p { margin-top: .3rem; color: var(--encre-2); line-height: 1.45; max-width: 34rem; }
.etapes-photo { display: none; margin: 0; }
@media (min-width: 620px) { .etapes-photo { display: block; } }
.etapes-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 1000px) {
  .grille-etapes { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: stretch; }
  .etapes-photo { position: relative; min-height: 100%; }
  .etapes-photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}

/* Point 5 : calculateur */
.grille-calcul { display: grid; gap: 2.25rem; align-items: center; }
.calculateur { margin-top: 1.75rem; display: grid; gap: 1.1rem; }
.champ-calcul label { display: block; font-weight: 600; margin-bottom: .4rem; }
.saisie-unite { position: relative; max-width: 19rem; }
.saisie-unite input { min-height: 4rem; padding-right: 3rem; font: 700 1.65rem/1 var(--titre); border: 0; border-bottom: 3px solid var(--signal); border-radius: 0; background: var(--nuit-2); color: #fff; -moz-appearance: textfield; appearance: textfield; }
.saisie-unite input::-webkit-outer-spin-button, .saisie-unite input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.saisie-unite span { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font: 700 1.35rem/1 var(--titre); color: var(--ciel); }
.resultat { padding: clamp(1.5rem, 3.5vw, 2.75rem); background: var(--papier); color: var(--encre); box-shadow: 8px 8px 0 var(--signal); }
.resultat-ligne span { display: block; font: 800 clamp(2rem, 1.5rem + 2vw, 3rem)/1 var(--titre); letter-spacing: -.02em; }
.resultat small { display: block; margin-top: .3rem; font-size: 1.02rem; color: var(--encre-2); line-height: 1.35; }
.resultat-egal { display: flex; align-items: center; gap: .7rem; margin-block: 1rem; font: 500 .8rem/1 var(--mono); text-transform: uppercase; }
.resultat-egal::before, .resultat-egal::after { content: ""; flex: 1; height: 1px; background: var(--encre); }
.resultat-fort span { display: block; font: 800 clamp(4.25rem, 3rem + 7vw, 7.5rem)/.9 var(--titre); letter-spacing: -.04em; color: var(--signal-fonce); }
.resultat-action { margin-top: 1.4rem; }
@media (min-width: 620px) { .calculateur { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grille-calcul { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2.5rem, 6vw, 6rem); } }

/* Point 6 : le devis */
.devis { margin-top: clamp(1.75rem, 4vw, 3rem); background: var(--papier); border: 1px solid var(--encre); box-shadow: 8px 8px 0 var(--encre); }
.devis-tete { display: none; }
.lot { display: grid; gap: 1rem; padding: 1.5rem 1.25rem; border-bottom: 1px solid var(--trait); }
.lot-num { font: 500 .8rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--encre-2); }
.lot h3 { font-size: 1.4rem; margin-bottom: .85rem; }
.lot .liste { gap: .42rem; font-size: 1rem; }
.lot-note { margin-top: .85rem; font-size: .95rem; color: var(--encre-2); line-height: 1.4; }
.lot-prix { display: grid; gap: .8rem; }
.prix strong { display: block; font: 800 2.35rem/1 var(--titre); letter-spacing: -.025em; white-space: nowrap; }
.prix span { color: var(--encre-2); font-size: .98rem; }
.lot-principal { background: #fff3ea; box-shadow: inset 5px 0 0 var(--signal); }
.devis-pied { padding: 1rem 1.25rem; font-size: .88rem; color: var(--encre-2); line-height: 1.4; }
@media (min-width: 860px) {
  .devis-tete { display: grid; grid-template-columns: 5rem 1fr 18rem; gap: 1.5rem; padding: .7rem 1.75rem; border-bottom: 2px solid var(--encre); font: 500 .76rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
  .lot { grid-template-columns: 5rem 1fr 18rem; gap: 1.5rem; padding: 1.85rem 1.75rem; }
  .lot-num { padding-top: .35rem; }
  .lot-prix { align-content: start; }
  .lot-principal .prix strong { font-size: 2.9rem; }
  .devis-pied { padding-inline: 1.75rem; }
}

.vitrine-visuels { margin-top: clamp(3rem, 6vw, 5rem); display: grid; gap: 1.5rem; }
.vitrine-texte h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); line-height: 1.12; margin-bottom: .85rem; }
.vitrine-texte p { color: var(--encre-2); line-height: 1.5; max-width: 34rem; }
.vitrine-texte p + p { margin-top: .75rem; }
.posts { display: flex; gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gouttiere) * -1); padding: .25rem var(--gouttiere) .75rem; }
.post { flex: 0 0 min(72vw, 19rem); scroll-snap-align: center; }
.post figure { margin: 0; background: var(--papier); border: 1px solid var(--trait); }
.post-image { position: relative; }
.post-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.post-mention { position: absolute; left: .5rem; bottom: .5rem; padding: .22rem .5rem; background: rgba(18, 22, 31, .88); color: #fff; font: 500 .78rem/1.2 var(--mono); }
.post figcaption { padding: .65rem .8rem; font-size: .93rem; line-height: 1.3; color: var(--encre-2); }
.post figcaption strong { display: block; color: var(--encre); font: 700 1rem/1.25 var(--titre); }
.encarts-sites { display: grid; gap: 0 2.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.encarts-sites .encart-site { margin-top: 0; }
.encarts-sites .encart-site + .encart-site { border-top: 1px solid var(--trait); }
@media (min-width: 860px) { .encarts-sites .encart-site + .encart-site { border-top: 2px solid var(--encre); } }
.encart-site { margin-top: clamp(2rem, 4vw, 3rem); padding-block: clamp(1.25rem, 3vw, 2rem); border-top: 2px solid var(--encre); border-bottom: 1px solid var(--trait); display: grid; gap: .5rem; }
.encart-site h3 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.65rem); }
.encart-site p { color: var(--encre-2); max-width: 50rem; }
@media (min-width: 1000px) {
  .vitrine-visuels { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); column-gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .posts { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
  .post { flex: none; }
  .vitrine-visuels .sources { grid-column: 2; margin-top: 0; }
}

/* Témoignages (uniquement de vrais clients) */
.grille-temoignages { display: grid; gap: 1rem; margin-top: 2rem; }
.temoignage { margin: 0; padding: 1.5rem; background: var(--platre); border: 1px solid var(--trait); }
.temoignage blockquote { margin: 0 0 1rem; font-size: 1.1rem; }
@media (min-width: 860px) { .grille-temoignages { grid-template-columns: repeat(2, 1fr); } }

/* Engagements */
.grille-engagements { display: grid; gap: 1rem; margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.panneau-nuit { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.panneau-nuit h3 { border-bottom-color: #fff; }
.phrases { display: grid; gap: 1.1rem; }
.phrases li { position: relative; padding-left: 1.85rem; }
.phrases li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.15rem; height: 1.15rem; background: var(--signal); clip-path: polygon(20% 8%, 50% 38%, 80% 8%, 92% 20%, 62% 50%, 92% 80%, 80% 92%, 50% 62%, 20% 92%, 8% 80%, 38% 50%, 8% 20%); }
.phrases q { display: block; font: 600 1.2rem/1.25 var(--titre); quotes: "« " " »"; }
.phrases span { display: block; margin-top: .25rem; color: var(--ciel); }
.h2-ligne { display: block; }
@media (min-width: 860px) { .grille-engagements { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.grille-questions { display: grid; gap: 2rem; }
.faq { border-top: 2px solid var(--encre); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { position: relative; padding: 1.1rem 2.5rem 1.1rem 0; cursor: pointer; list-style: none; font: 600 1.12rem/1.3 var(--titre); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: .35rem; top: 50%; width: 1rem; height: 2px; background: var(--encre); transition: transform .15s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq summary:hover { color: var(--bleu); }
.faq details > div { padding: 0 2.5rem 1.25rem 0; color: var(--encre-2); line-height: 1.5; }
@media (min-width: 1000px) {
  .grille-questions { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2.5rem, 5vw, 5rem); }
  .grille-questions > div:first-child { position: sticky; top: 6rem; align-self: start; }
}

/* Contact */
.grille-contact { display: grid; gap: 2.25rem; }
.suite { counter-reset: suite; margin-top: 1.5rem; display: grid; gap: .8rem; }
.suite li { counter-increment: suite; display: grid; grid-template-columns: 2.1rem 1fr; gap: .5rem; align-items: start; line-height: 1.4; }
.suite li::before { content: counter(suite); display: grid; place-items: center; width: 1.7rem; height: 1.7rem; background: var(--signal); color: var(--encre); font: 500 .9rem/1 var(--mono); }
.contact-appel { margin-top: 1.5rem; padding: .95rem 1.1rem; border: 1px solid rgba(255, 255, 255, .4); line-height: 1.4; }
.contact-direct { margin-top: .8rem; font-weight: 600; }
.contact-photo { display: none; margin: 1.75rem 0 0; }
.contact-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; }
@media (min-width: 1000px) { .contact-photo { display: block; } }
.formulaire { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--papier); color: var(--encre); }
.choix { margin: 0 0 1.25rem; padding: 0; border: 0; display: grid; gap: .5rem; }
.choix legend { padding: 0; margin-bottom: .5rem; }
.case { display: grid; grid-template-columns: 1.4rem 1fr; gap: .6rem; align-items: start; padding: .7rem .8rem; border: 1px solid var(--trait); background: #fff; cursor: pointer; line-height: 1.3; }
.case:hover { border-color: var(--encre); }
.case:has(input:checked) { border-color: var(--encre); background: #fff3ea; box-shadow: inset 3px 0 0 var(--signal); }
.case input { width: 1.25rem; height: 1.25rem; margin: .05rem 0 0; accent-color: var(--encre); }
.case span { font-weight: 600; }
.case em { display: block; font-style: normal; font-weight: 400; color: var(--encre-2); font-size: .92rem; }
.form-grille { display: grid; gap: .95rem; margin-bottom: 1.25rem; }
.rappel { min-width: 0; margin: 0; padding: 0; border: 0; }
.rappel legend { padding: 0; margin-bottom: .35rem; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.rappel-choix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.rappel-choix label { position: relative; display: grid; place-items: center; min-height: 3.25rem; padding: .35rem .3rem; background: #fff; border: 1.5px solid #6d7482; border-radius: 3px; font-size: .92rem; font-weight: 600; line-height: 1.15; text-align: center; cursor: pointer; }
.rappel-choix input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rappel-choix label:hover { border-color: var(--encre); }
.rappel-choix label:has(input:checked) { border-color: var(--encre); background: #fff3ea; box-shadow: inset 0 -4px 0 var(--signal); }
.rappel-choix label:has(input:focus-visible) { outline: 3px solid var(--bleu); outline-offset: 2px; }
@media (min-width: 620px) {
  .form-grille { grid-template-columns: 1fr 1fr; }
  .champ-large { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .grille-contact { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
}

/* Boutons d'action : barre en bas sur téléphone, boutons flottants sur ordinateur */
.barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: .5rem; padding: .55rem var(--gouttiere) calc(.55rem + env(safe-area-inset-bottom)); background: var(--papier); border-top: 2px solid var(--encre); }
.barre-mobile .bouton { flex: 1; padding-inline: .6rem; white-space: nowrap; }
.barre-mobile .bouton-appel { flex: 0 0 auto; }
.barre-prix { display: none; min-width: 0; font-size: .84rem; line-height: 1.2; }
.barre-prix strong { display: block; font: 800 1.08rem/1.1 var(--titre); }
@media (min-width: 520px) and (max-width: 859px) { .barre-prix { display: block; flex: 1.1; } }
.bouton-appel { background: var(--vert); border-color: var(--vert); color: #fff; }
.bouton-appel:hover { background: #0f4a2f; border-color: #0f4a2f; }
@media (min-width: 860px) {
  .barre-mobile { left: auto; right: 1.25rem; bottom: 1.25rem; padding: 0; background: none; border: 0; gap: .6rem; }
  .barre-mobile .bouton { flex: none; padding-inline: 1.1rem; box-shadow: 0 6px 18px rgba(18, 22, 31, .3); }
}
/* Les boutons bougent un court instant à chaque nouveau point de la page, jamais plus de 5 secondes. */
@keyframes sonnerie { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-16deg); } 20%, 40% { transform: rotate(16deg); } }
@keyframes onde { 0% { box-shadow: 0 0 0 0 rgba(23, 96, 62, .6); } 100% { box-shadow: 0 0 0 16px rgba(23, 96, 62, 0); } }
@keyframes elan { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
/* Mode « appelez-moi » : le bouton vert sonne et vibre en continu, l'orange bat comme un cœur. */
@keyframes appel-secoue { 0%, 38%, 100% { transform: rotate(0); } 4%, 12%, 20%, 28% { transform: rotate(-20deg); } 8%, 16%, 24%, 32% { transform: rotate(20deg); } }
@keyframes appel-vibre { 0%, 40%, 100% { transform: translateX(0) scale(1); } 4%, 12%, 20%, 28% { transform: translateX(-3px) scale(1.06); } 8%, 16%, 24%, 32% { transform: translateX(3px) scale(1.06); } }
@keyframes appel-onde { 0% { box-shadow: 0 0 0 0 rgba(23, 96, 62, .8); } 75%, 100% { box-shadow: 0 0 0 20px rgba(23, 96, 62, 0); } }
@keyframes rdv-bat { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 26, .75); } 50% { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(255, 107, 26, 0); } }
.barre-mobile .bouton-appel { animation: appel-vibre 2.8s ease-in-out infinite, appel-onde 1.4s ease-out infinite; }
.barre-mobile .bouton-appel .icone-tel { animation: appel-secoue 2.8s ease-in-out infinite; }
.barre-mobile .bouton-rdv { animation: rdv-bat 1.8s ease-in-out infinite; }

/* Pied de page */
.pied { background: var(--encre); color: #dfe2e8; font-size: .95rem; line-height: 1.5; padding-block: 3rem 2rem; }
.pied a { color: #fff; }
.pied-grille { display: grid; gap: 2rem; }
.pied-marque { font: 800 1.35rem/1 var(--titre); color: #fff; margin-bottom: .7rem; }
.pied-grille p + p { margin-top: .6rem; }
.pied-titre { font: 500 .78rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: #aeb5c2; margin-bottom: .7rem; }
.pied-liste { display: grid; gap: .1rem; }
.pied-liste a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.pied-bas { margin-top: 2.25rem; padding-top: 1.25rem; font-size: .84rem; color: #aeb5c2; }
.pied-bas p + p { margin-top: .4rem; }
.pied-bas::before { content: ""; display: block; height: 1px; background: rgba(255, 255, 255, .2); margin-bottom: 1.25rem; }
.pied-legal a { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (min-width: 860px) { .pied-grille { grid-template-columns: 1.6fr 1fr; gap: 3rem; } }
.page-accueil .pied { padding-bottom: 6.5rem; }

/* Consentement */
.consentement { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 50; max-width: 30rem; padding: 1.1rem 1.2rem; background: var(--papier); border: 2px solid var(--encre); box-shadow: 6px 6px 0 rgba(18, 22, 31, .9); font-size: .95rem; line-height: 1.45; }
.consentement-titre { font: 700 1.1rem/1.2 var(--titre); margin-bottom: .35rem; }
.consentement-actions { display: flex; gap: .6rem; margin-top: .85rem; }

/* Pages de contenu */
.document { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--espace); }
.document-corps { width: min(100%, 50rem); margin-inline: auto; padding-inline: var(--gouttiere); }
.document h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.15rem); line-height: 1.06; font-weight: 700; letter-spacing: -.02em; }
.document .maj { margin-top: .7rem; font: 500 .8rem/1.4 var(--mono); color: var(--encre-2); }
.document .resume { margin-top: 1.25rem; font-size: 1.14rem; line-height: 1.5; color: var(--encre-2); }
.document h2 { margin-top: 2.5rem; font-size: 1.48rem; line-height: 1.2; letter-spacing: -.01em; }
.document h3 { margin-top: 1.5rem; font-size: 1.14rem; }
.document p, .document ul, .document ol, .document dl { margin-top: .75rem; }
.document ul:not(.pied-liste) { list-style: disc; padding-left: 1.3rem; }
.document ol.numerote { list-style: decimal; padding-left: 1.5rem; }
.document li + li { margin-top: .35rem; }
.document dl.identite { display: grid; gap: .35rem 1rem; }
.document dl.identite dt { font-weight: 600; }
.document dl.identite dd { margin: 0 0 .5rem; }
.document dl.identite dd::first-letter { text-transform: uppercase; }
@media (min-width: 620px) {
  .document dl.identite { grid-template-columns: 15rem 1fr; }
  .document dl.identite dd { margin: 0; }
}
.tableau { margin-top: 1rem; overflow-x: auto; border: 1px solid var(--trait); background: var(--papier); }
.tableau table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: .95rem; line-height: 1.4; }
.tableau th, .tableau td { padding: .7rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--trait); }
.tableau th { font-family: var(--titre); background: var(--platre); }
.tableau tr:last-child td { border-bottom: 0; }
.encadre { margin-top: 1.25rem; padding: 1.1rem 1.25rem; background: var(--papier); border-left: 4px solid var(--signal); }
.a-completer { background: #ffe58a; color: #3d2f00; font-weight: 600; padding: 0 .25em; }
.modele { margin-top: 1rem; padding: 1.1rem 1.25rem; background: var(--papier); border: 1px dashed var(--encre-2); }
.document .formulaire { margin-top: 1.75rem; border: 1px solid var(--trait); }
.document .bouton { margin-top: 1.25rem; }
.page-confirmation .document { min-height: 62vh; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  /* Choix assumé : les boutons d'appel et le point vert bougent pour tout le monde, même avec « réduire les animations ». */
}
@media print {
  .entete, .pied, .barre-mobile, .bandeau-appel, .consentement { display: none !important; }
  body { background: #fff; font-size: 11pt; }
}
