*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--police); font-size: var(--t-corps); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-weight: 400; line-height: 1; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-1); letter-spacing: -0.045em; line-height: .98; }
h2 { font-size: var(--t-2); letter-spacing: -0.04em; margin-bottom: var(--e-4); }
h3 { font-size: var(--t-3); letter-spacing: -0.02em; line-height: 1.15; font-weight: 500; }
p { margin: 0 0 var(--e-2); max-width: 60ch; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }
.sur-indigo :focus-visible { outline-color: #fff; }
::selection { background: var(--indigo); color: #fff; }
.contenu { width: min(100%, var(--largeur-max)); margin-inline: auto; }
section[data-slot], .bloc { padding: var(--e-section) var(--gouttiere); }
.lien-saut { position: absolute; left: -999px; top: 8px; background: var(--encre); color: #fff; padding: 8px 12px; }
.lien-saut:focus { left: 8px; z-index: 60; }
.cote, .etiq { font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; line-height: 1.5; color: var(--encre-2); }
.etiq { text-transform: uppercase; }
.discret { color: var(--encre-2); }

/* bouton : blanc, carré indigo comme repère */
.bouton { white-space: nowrap; display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 22px 10px 12px; border: 1px solid var(--encre); background: #fff; color: var(--encre); font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; text-decoration: none; transition: background-color var(--duree-clic) var(--ease-sortie), color var(--duree-clic) var(--ease-sortie), transform 120ms var(--ease-sortie); }
.bouton::before { content: ""; width: 28px; height: 28px; background: var(--indigo); flex: none; transition: transform 200ms var(--ease-sortie); }
.bouton:hover { background: var(--encre); color: #fff; }
.bouton:hover::before { transform: rotate(90deg); }
.bouton:active { transform: translateY(1px); }
.bouton[disabled] { opacity: .5; cursor: not-allowed; }
.bouton-fond { background: transparent; }
.lien { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }

/* en-tête minimal : pas de menu qui fait fuir */
.entete { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--fond) 94%, transparent); border-bottom: 1px solid var(--encre); backdrop-filter: blur(4px); }
.entete .contenu { display: flex; align-items: center; justify-content: space-between; gap: var(--e-2); min-height: 64px; padding-inline: var(--gouttiere); }
.marque { font-size: 1.6rem; letter-spacing: -.04em; text-decoration: none; line-height: 1; white-space: nowrap; }
.marque em { font-style: normal; color: var(--indigo); }
.entete .droite { display: flex; align-items: center; gap: var(--e-3); }
.entete .tel { display: none; font-family: var(--mono); font-size: .85rem; text-decoration: none; }
.entete .bouton { min-height: 44px; padding: 6px 16px 6px 8px; font-size: .95rem; }
.entete .bouton::before { width: 24px; height: 24px; }

/* premier écran */
section.hero[data-slot] { padding: var(--e-4) var(--gouttiere) var(--e-6); }
.hero-grille { display: grid; gap: var(--e-4); position: relative; }
.ligne { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ligne > span { display: inline-block; }
.hero-texte h1 { margin-bottom: var(--e-4); }
.hero-texte .chapo { font-size: 1.2rem; max-width: 46ch; margin-bottom: var(--e-3); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero-photo { margin: 0; position: relative; }
.hero-photo .cadre { overflow: hidden; background: #d4d1c8; }
.hero-photo img { width: 100%; height: auto; }
.hero-photo figcaption { margin-top: 10px; }
.vertical { display: none; font-size: 1.1rem; letter-spacing: -.01em; writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); white-space: nowrap; }
.faits { margin: var(--e-6) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--encre); display: grid; }
.faits li { display: grid; gap: 2px; padding: var(--e-2) 0; border-bottom: 1px solid var(--filet); }
.faits b { font-weight: 500; font-size: 1.3rem; letter-spacing: -.02em; }

/* réalisations */
.titre-ligne { display: grid; gap: var(--e-2); margin-bottom: var(--e-6); align-items: end; }
.titre-ligne h2, .titre-ligne p { margin: 0; }
.realisations { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--e-6) var(--e-3); }
.realisations figure { margin: 0; }
.realisations img { width: 100%; background: #d4d1c8; }
.realisations figcaption { margin-top: 12px; display: grid; gap: 2px; }
.realisations figcaption b { font-weight: 500; font-size: 1.3rem; letter-spacing: -.02em; }

/* essences + élévation */
.essences { display: grid; gap: var(--e-6); }
.essence-choix { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--e-3) 0; padding: 0; list-style: none; }
.essence-choix button { min-height: 48px; padding: 6px 16px 6px 8px; border: 1px solid var(--encre); background: transparent; color: var(--encre); font-size: 1rem; display: inline-flex; align-items: center; gap: 10px; transition: background-color 150ms var(--ease-sortie), color 150ms var(--ease-sortie); }
.essence-choix .echantillon { width: 28px; height: 28px; background: var(--c); border: 1px solid rgba(0,0,0,.25); }
.essence-choix button:hover:not([aria-pressed="true"]) { background: rgba(0,0,0,.07); }
.essence-choix button[aria-pressed="true"] { background: var(--encre); color: #fff; }
.essence-fiche { border-top: 1px solid var(--encre); padding-top: var(--e-2); }
.essence-fiche .prix { font-size: 2.2rem; letter-spacing: -.04em; margin: 0 0 var(--e-1); }
.plan { background: var(--papier); border: 1px solid var(--encre); padding: var(--e-2); }
.plan svg { display: block; width: 100%; height: auto; }
.plan .cote { margin: 8px 0 0; }
svg .mur { fill: #ebe9e3; } svg .sol { fill: #d4d1c8; }
svg .caisson { fill: var(--c, #c9a46b); stroke: #000; stroke-width: 1; transition: fill 300ms var(--ease-sortie); }
svg .plantravail { fill: #3b3a37; }
svg .trait { stroke: #000; stroke-width: 1; fill: none; }
svg text { font-family: var(--mono); font-size: 11px; fill: #000; }

/* méthode */
.methode { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--encre); }
.methode li { display: grid; gap: 4px var(--e-3); padding: var(--e-3) 0; border-bottom: 1px solid var(--filet); }
.methode .sem { font-family: var(--mono); font-size: .85rem; text-transform: uppercase; color: var(--encre-2); }
.methode b { display: block; font-weight: 500; font-size: 1.5rem; letter-spacing: -.03em; margin-bottom: 4px; line-height: 1.1; }
.methode p { margin: 0; color: var(--encre-2); }
.echelle-temps { display: grid; grid-template-columns: repeat(8, 1fr); margin: var(--e-4) 0 var(--e-6); border-top: 1px solid var(--encre); }
.echelle-temps span { font-family: var(--mono); font-size: .75rem; padding-top: 6px; border-left: 1px solid var(--filet); padding-left: 4px; color: var(--encre-2); }
.echelle-temps i { display: block; grid-column: 1 / -1; height: 10px; background: var(--indigo); margin-top: -1px; order: -1; }

/* questionnaire sur indigo */
.sur-indigo { background: var(--indigo); color: #fff; }
.sur-indigo h2 { color: #fff; }
.sur-indigo .cote, .sur-indigo .etiq { color: #e4e6ff; }
.devis-grille { display: grid; gap: var(--e-4); align-items: start; }
.carte-q { background: var(--fond); color: var(--encre); border: 1px solid #000; padding: var(--e-3); min-height: 440px; display: flex; flex-direction: column; }
.progression { height: 6px; background: rgba(0,0,0,.15); margin-bottom: var(--e-2); }
.progression i { display: block; height: 100%; width: 0; background: var(--indigo); transition: width 300ms var(--ease-sortie); }
.compteur { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--e-3); }
.retour { background: none; border: 0; padding: 8px 0; min-height: 44px; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; color: var(--encre); text-decoration: underline; }
.retour[hidden] { display: none; }
.ecran { flex: 1; display: flex; flex-direction: column; }
.ecran[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .ecran:not([hidden]) { animation: entrer 260ms var(--ease-sortie); } }
@keyframes entrer { from { opacity: 0; transform: translateX(16px); } }
.ecran h3 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -.035em; line-height: 1.05; margin-bottom: var(--e-3); font-weight: 400; }
.reponses { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.reponses button { width: 100%; display: grid; grid-template-columns: 2rem 1fr auto; gap: 10px; align-items: center; text-align: left; min-height: 56px; padding: 10px 14px; background: #fff; border: 1px solid var(--encre); color: var(--encre); font-size: 1.05rem; transition: background-color 150ms var(--ease-sortie), color 150ms var(--ease-sortie); }
.reponses button .lettre { font-family: var(--mono); font-size: .8rem; color: var(--encre-2); }
.reponses button .plus { font-family: var(--mono); font-size: .8rem; color: var(--encre-2); white-space: nowrap; }
.reponses button:hover { background: #f0efff; }
.reponses button[aria-pressed="true"] { background: var(--encre); color: #fff; }
.reponses button[aria-pressed="true"] .lettre, .reponses button[aria-pressed="true"] .plus { color: #dcdcdc; }
.longueur { margin: var(--e-2) 0 var(--e-3); }
.longueur output { display: block; font-size: 4rem; letter-spacing: -.05em; line-height: 1; margin-bottom: 8px; }
.longueur output small { font-family: var(--mono); font-size: 1rem; letter-spacing: 0; }
.longueur input[type=range] { width: 100%; accent-color: var(--indigo); height: 44px; }
.champ { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; margin-bottom: var(--e-2); }
.champ input[type=text], .champ input[type=email], .champ input[type=tel] { font: inherit; padding: 12px 14px; min-height: 52px; border: 1px solid var(--encre); border-radius: 0; background: #fff; width: 100%; min-width: 0; }
.champ input:focus { outline: 3px solid var(--indigo); outline-offset: 0; }
.pied-q { margin-top: auto; padding-top: var(--e-3); display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.erreur { color: #a3190f; font-size: .9rem; min-height: 1.3em; margin: 6px 0 0; }
.creneaux { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 0 0 var(--e-3); padding: 0; list-style: none; }
.creneaux button { width: 100%; min-height: 52px; padding: 6px 10px; border: 1px solid var(--encre); background: #fff; font-size: 1rem; color: var(--encre); }
.creneaux button[aria-pressed="true"] { background: var(--encre); color: #fff; }
.type-rdv { display: grid; gap: 8px; grid-template-columns: 1fr; margin-bottom: var(--e-3); }
.attente { display: grid; place-items: center; text-align: center; flex: 1; gap: 12px; }
.attente .barre { width: min(280px, 80%); height: 6px; background: rgba(0,0,0,.15); }
.attente .barre i { display: block; height: 100%; background: var(--indigo); width: 0; animation: charger 1100ms linear forwards; }
@keyframes charger { to { width: 100%; } }
.fourchette { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.6rem); letter-spacing: -.045em; line-height: 1; margin: 8px 0 12px; }
.resume-liste { margin: var(--e-2) 0; padding: 0; list-style: none; border-top: 1px solid var(--encre); }
.resume-liste li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--filet); font-size: .95rem; }
.fiche-projet { background: var(--papier); color: var(--encre); border: 1px solid #000; padding: var(--e-3); }
.fiche-projet h3 { margin-bottom: 6px; font-weight: 400; font-size: 1.6rem; letter-spacing: -.03em; }
.fiche-projet .cote { color: var(--encre-2); }
.fiche-projet .montant { font-size: 2.2rem; letter-spacing: -.045em; margin: 8px 0 4px; line-height: 1.05; }
.fiche-projet .montant.vide { font-size: 1.1rem; letter-spacing: 0; color: var(--encre-2); }

/* atelier */
.atelier-grille { display: grid; gap: var(--e-6); }
.atelier-grille figure { margin: 0; }
.atelier-grille img { width: 100%; background: #d4d1c8; }
.infos { margin: var(--e-3) 0; border-top: 1px solid var(--encre); }
.infos div { display: grid; grid-template-columns: 8rem 1fr; gap: var(--e-2); padding: 12px 0; border-bottom: 1px solid var(--filet); }
.infos dt { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; color: var(--encre-2); padding-top: 4px; }
.infos dd { margin: 0; }

/* faq */
.faq-liste { max-width: 900px; border-top: 1px solid var(--encre); }
.faq-liste details { border-bottom: 1px solid var(--filet); }
.faq-liste summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--e-2); min-height: 68px; padding: 12px 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); letter-spacing: -.03em; }
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary::after { content: "+"; font-family: var(--mono); font-size: 1.6rem; flex: none; transition: transform 220ms var(--ease-sortie); }
.faq-liste details[open] summary::after { transform: rotate(45deg); }
.faq-liste details div { padding: 0 0 var(--e-3); color: var(--encre-2); }
.faq-liste details p { margin: 0; }
.dernier { background: var(--indigo-fonce); color: #fff; padding: var(--e-8) var(--gouttiere); }
.dernier .contenu { display: grid; gap: var(--e-3); }
.dernier h2 { color: #fff; margin: 0; font-size: clamp(2.2rem, 1.2rem + 3vw, 4rem); }
.dernier .bouton { justify-self: start; }
.pied { padding: var(--e-4) var(--gouttiere) 100px; font-size: .9rem; color: var(--encre-2); border-top: 1px solid var(--encre); }
.pied p { max-width: none; margin-bottom: 4px; }
.barre-fixe { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--fond); border-top: 1px solid var(--encre); padding: 8px var(--gouttiere); transform: translateY(110%); transition: transform 300ms var(--ease-sortie); }
.barre-fixe[data-visible] { transform: none; }
.barre-fixe span { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; line-height: 1.3; }

@media (min-width: 900px) {
  .entete .tel { display: inline; }
  .hero-grille { grid-template-columns: 56px minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--e-6); align-items: end; }
  .vertical { display: block; align-self: end; padding-bottom: 36px; }
  .hero-photo img { height: min(660px, calc(100svh - 240px)); min-height: 400px; object-fit: cover; object-position: var(--cadrage, 50% 25%); }
  .hero-actions { flex-direction: row; align-items: center; gap: var(--e-3); }
  .faits { grid-template-columns: repeat(3, 1fr); }
  .faits li { padding-right: var(--e-3); }
  .faits li + li { padding-left: var(--e-3); border-left: 1px solid var(--filet); }
  .titre-ligne { grid-template-columns: 1.3fr 1fr; }
  .realisations { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .realisations li:nth-child(1) { grid-column: 1 / span 7; }
  .realisations li:nth-child(2) { grid-column: 8 / span 5; margin-top: var(--e-8); }
  .realisations li:nth-child(3) { grid-column: 1 / span 4; }
  .realisations li:nth-child(4) { grid-column: 5 / span 3; margin-top: var(--e-6); }
  .realisations li:nth-child(5) { grid-column: 9 / span 4; }
  .essences { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--e-8); align-items: center; }
  .methode li { grid-template-columns: 11rem 1fr 14rem; align-items: baseline; }
  .devis-grille { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--e-6); }
  .fiche-projet { position: sticky; top: 88px; }
  .type-rdv { grid-template-columns: 1fr 1fr; }
  .atelier-grille { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--e-8); align-items: start; }
  .dernier .contenu { grid-template-columns: 1.4fr auto; align-items: center; }
  .barre-fixe { display: none; }
  .pied { padding-bottom: var(--e-6); }
}

.carte-q .cote, .fiche-projet .cote { color: var(--encre-2); }
.hero-actions .cote, figcaption .cote, figcaption.cote, .faits .cote, .realisations .cote, .essence-fiche .cote, .plan .cote, .methode .cote { text-transform: none; letter-spacing: .01em; font-size: .85rem; }
