/* Betonid — feuille de style unique, mobile d'abord (390 px), sans dépendance externe.
   Palette : béton (fond), ardoise (texte et bandeaux), graphite (texte secondaire),
   jaune chantier (actions et cotes), isolant (gris bleuté des couches d'isolation). */
:root {
  --beton: #e8e9e5;
  --beton-2: #dcded9;
  --ardoise: #1f2d36;
  --ardoise-2: #2c3d48;
  --graphite: #4f5860;
  --jaune: #f2b300;
  --jaune-2: #ffd34d;
  --isolant: #c6d0d6;
  --blanc: #ffffff;
  --rouge: #a3261b;
  --vert: #1d6b3a;
  --f-titre: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-texte: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mesure: 68ch;
  --r: 3px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--beton); color: var(--ardoise);
  font: 17px/1.55 var(--f-texte); font-feature-settings: "tnum" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ardoise); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ardoise); border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--jaune); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

h1, h2, h3 { font-family: var(--f-titre); font-weight: 700; line-height: 1.04; letter-spacing: -.01em; margin: 0 0 .5em; font-stretch: condensed; }
h1 { font-size: clamp(2.3rem, 9vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 6vw, 2.75rem); }
h3 { font-size: 1.35rem; line-height: 1.15; }
p, ul, ol { margin: 0 0 1em; }
.lead { font-size: 1.15rem; max-width: 46ch; color: var(--ardoise-2); }
.muted { color: var(--graphite); }
.small { font-size: .9rem; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--mesure); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
section { padding: 56px 0; }
.band-dark { background: var(--ardoise); color: var(--beton); }
.band-dark a { color: var(--blanc); }
.band-white { background: var(--blanc); }

/* En-tête */
.top { background: var(--beton); border-bottom: 1px solid var(--beton-2); position: sticky; top: 0; z-index: 30; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-titre); font-weight: 800; font-size: 1.45rem; letter-spacing: .04em; }
.brand svg { width: 30px; height: 22px; }
.nav { display: none; }
.nav a { text-decoration: none; padding: 8px 10px; font-weight: 500; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--jaune); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 10px 12px; border: 1px solid var(--ardoise); border-radius: var(--r); font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-list { display: flex; }
.menu-list { display: none; flex-direction: column; position: absolute; right: 0; top: 52px; background: var(--blanc); border: 1px solid var(--beton-2); min-width: 230px; padding: 8px 0; box-shadow: 0 10px 30px rgba(31,45,54,.18); }
.menu-list a { padding: 12px 18px; text-decoration: none; }
@media (min-width: 980px) {
  .nav { display: flex; gap: 4px; align-items: center; }
  .menu { display: none; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--r); border: 2px solid var(--ardoise); background: transparent; color: var(--ardoise); font: 600 1rem/1.2 var(--f-texte); text-decoration: none; cursor: pointer; }
.btn-main { background: var(--jaune); border-color: var(--jaune); color: var(--ardoise); }
.btn-main:hover { background: var(--jaune-2); border-color: var(--jaune-2); }
.btn-dark { background: var(--ardoise); color: var(--blanc); }
.btn-wa { background: #1f7a45; border-color: #1f7a45; color: #fff; }
.band-dark .btn { color: var(--beton); border-color: var(--beton); }
.band-dark .btn-main { color: var(--ardoise); border-color: var(--jaune); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Héros */
.hero { padding: 36px 0 0; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin-bottom: 0; }
@media (min-width: 980px) {
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: start; gap: 56px; }
}

/* La coupe du mur : l'élément signature */
.coupe { margin-top: 36px; background: var(--ardoise); color: var(--beton); padding: 22px 0 18px; }
.coupe svg { width: 100%; height: auto; display: block; }
.coupe figcaption { font-size: .95rem; color: var(--isolant); margin-top: 10px; max-width: 70ch; }

/* Estimateur */
.estim { background: var(--blanc); border: 2px solid var(--ardoise); border-radius: var(--r); padding: 20px; }
.estim h2 { font-size: 1.6rem; }
.estim fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.estim legend, .estim label.lbl { font-weight: 600; margin-bottom: 8px; display: block; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ardoise); border-radius: var(--r); overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: 11px 8px; cursor: pointer; font-weight: 600; }
.seg input:checked + label { background: var(--ardoise); color: var(--blanc); }
.seg input:focus-visible + label { outline: 3px solid var(--jaune); outline-offset: -5px; }
.surf-row { display: flex; align-items: baseline; justify-content: space-between; }
.surf-val { font-family: var(--f-titre); font-size: 2rem; font-weight: 700; }
input[type="range"] { width: 100%; accent-color: var(--ardoise); height: 32px; }
.res { border-top: 1px solid var(--beton-2); padding-top: 14px; display: grid; gap: 12px; }
.res-row { display: grid; gap: 2px; }
.res-row dt { font-weight: 600; }
.res-row dd { margin: 0; font-family: var(--f-titre); font-size: 1.55rem; font-weight: 700; }
.res-row dd.nofig { font-family: var(--f-texte); font-size: 1rem; font-weight: 500; color: var(--graphite); }
.res-note { font-size: .88rem; color: var(--graphite); margin: 6px 0 0; }
.proches { font-size: .95rem; margin: 10px 0 0; padding-left: 18px; }

/* Cartes maisons */
.grid-m { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-m { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-m { grid-template-columns: 1fr 1fr 1fr; } }
.carte { background: var(--blanc); display: flex; flex-direction: column; text-decoration: none; border-bottom: 4px solid var(--ardoise); }
.carte img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.carte-c { padding: 14px 16px 16px; display: grid; gap: 4px; }
.carte h3 { margin: 0; font-size: 1.6rem; }
.carte .t { color: var(--graphite); margin: 0; }
.carte .f { margin: 6px 0 0; font-size: .95rem; }
.carte .p { margin: 8px 0 0; font-weight: 600; }
.carte:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.filtres button[aria-pressed="true"] { background: var(--ardoise); color: var(--blanc); }

/* Étapes : vraie séquence, donc numérotée */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: e; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid currentColor; }
.etapes li::before { content: counter(e); font-family: var(--f-titre); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--jaune); }
.etapes h3 { margin: 0 0 4px; }
.etapes p { margin: 0; }
@media (min-width: 980px) { .etapes { grid-template-columns: repeat(4, 1fr); gap: 24px; } .etapes li { grid-template-columns: 1fr; } }

/* Confiance */
.trust { display: grid; gap: 28px; }
@media (min-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
.ident { margin: 0; display: grid; grid-template-columns: minmax(90px, 38%) minmax(0, 1fr); gap: 6px 14px; }
.ident dd { overflow-wrap: anywhere; }
.ident dt { color: var(--graphite); }
.ident dd { margin: 0; font-weight: 600; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photos img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }

/* Formulaire */
.form { background: var(--blanc); color: var(--ardoise); padding: 20px; border-radius: var(--r); border: 2px solid var(--ardoise); max-width: 560px; }
.form h2, .form h3 { margin-bottom: .3em; }
.field { margin: 0 0 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--graphite); font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ardoise); background: var(--blanc); border: 2px solid var(--graphite); border-radius: var(--r); }
.field textarea { min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ardoise); }
.field [aria-invalid="true"] { border-color: var(--rouge); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: .92rem; margin: 6px 0 16px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ardoise); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.err { color: var(--rouge); font-weight: 600; font-size: .92rem; margin: 6px 0 0; }
.status { margin-top: 14px; }
.status:empty { display: none; }
.status-box { border-left: 5px solid var(--rouge); background: #fbefed; padding: 14px 16px; }
.status-box.ok { border-color: var(--vert); background: #eaf5ee; }
.status-box .actions { margin-top: 10px; }
.opt { margin: 0 0 14px; }
.opt summary { cursor: pointer; font-weight: 600; padding: 6px 0; }

/* Maison */
.fil { font-size: .92rem; padding-top: 14px; }
.fil ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fil li + li::before { content: "/"; margin-right: 6px; color: var(--graphite); }
.m-grid { display: grid; gap: 28px; }
@media (min-width: 980px) { .m-grid { grid-template-columns: 1.25fr .75fr; align-items: start; } }
.gal-main img { width: 100%; aspect-ratio: 3/2; object-fit: cover; background: var(--beton-2); }
.gal-th { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 6px; }
.gal-th a { display: block; border: 2px solid transparent; }
.gal-th a[aria-current="true"] { border-color: var(--jaune); }
.gal-th img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.faits { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--beton-2); border: 1px solid var(--beton-2); }
.faits li { background: var(--blanc); padding: 10px 12px; }
.faits li:last-child:nth-child(odd) { grid-column: span 2; }
.faits b { display: block; font-family: var(--f-titre); font-size: 1.45rem; }
.prix-box { background: var(--ardoise); color: var(--beton); padding: 18px 20px; border-radius: var(--r); }
.prix-box h2 { font-size: 1.5rem; color: var(--blanc); }
.prix-l { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--ardoise-2); }
.prix-l span { color: var(--isolant); }
.prix-l strong { font-family: var(--f-titre); font-size: 1.7rem; color: var(--blanc); }
.prix-l strong.nofig { font-family: var(--f-texte); font-size: 1.05rem; font-weight: 600; }
.prix-box .small { color: var(--isolant); margin: 8px 0 0; }
.prix-box a { color: var(--jaune-2); }
.plan { background: var(--blanc); padding: 12px; border: 1px solid var(--beton-2); }
.points li { margin-bottom: 6px; }

/* Listes inclus / non inclus */
.io { display: grid; gap: 24px; }
@media (min-width: 900px) { .io { grid-template-columns: 1fr 1fr; } }
.io ul { padding-left: 20px; }
.io h3 { border-bottom: 3px solid var(--jaune); padding-bottom: 6px; display: inline-block; }
.tbl { border-collapse: collapse; width: 100%; max-width: 640px; background: var(--blanc); font-size: .95rem; }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--beton-2); }
.tbl th { background: var(--beton-2); }

/* Réalisations */
.chantier { margin-bottom: 48px; }
.chantier-ph { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 900px) { .chantier-ph { grid-template-columns: repeat(3, 1fr); } }
.chantier-ph figure { margin: 0; }
.chantier-ph img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.chantier-ph figcaption { font-size: .85rem; color: var(--graphite); padding: 4px 0 0; }

/* Pied de page */
.foot { background: var(--ardoise); color: var(--isolant); padding: 44px 0 110px; font-size: .95rem; }
.foot a { color: var(--blanc); }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } .foot { padding-bottom: 44px; } }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }

/* Barre mobile fixe */
.mbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--ardoise); }
.mbar .btn { min-height: 46px; padding: 8px 10px; border: 0; }
.mbar .btn-tel { background: var(--beton); color: var(--ardoise); }
@media (min-width: 900px) { .mbar { display: none; } }

/* Bandeau cookies */
.cookie { position: fixed; left: 10px; right: 10px; bottom: 74px; z-index: 50; background: var(--blanc); border: 2px solid var(--ardoise); padding: 16px; max-width: 520px; box-shadow: 0 12px 40px rgba(31,45,54,.25); }
.cookie p { margin: 0 0 10px; font-size: .93rem; }
.cookie .actions { margin: 0; }
@media (min-width: 900px) { .cookie { bottom: 16px; left: 16px; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.prix-l small { color: var(--isolant); font-size: .9rem; }
.prix-l em { font-style: normal; color: var(--isolant); font-size: .88rem; }
