/* isolation-des-combles-france.org
 *
 * Parti pris : la rigueur d'une source d'information, la charpente d'un vrai
 * site. Le site existe parce qu'une regle a change le 1er septembre 2026 et que
 * presque personne ne l'a repercutee ; sa promesse est une promesse de justesse.
 * Mais une promesse de justesse presentee comme un memo Word ne convainc
 * personne : il faut une hierarchie, du souffle, des reperes.
 *
 * D'ou : un vert de charpente profond, un ocre de laine de bois en accent, des
 * aplats francs, des cartes, un rythme de sections. Aucune photo de stock,
 * aucune note en etoiles, aucun chiffre invente — les seuls chiffres affiches
 * sont ceux que le build a comptes.
 *
 * Cette feuille n'appartient qu'a ce site et ne doit etre copiee sur aucun
 * autre : docs/APPROCHE_SITES_UTILES.md §5.
 */

:root {
  --vert: #14463C;
  --vert-fonce: #0D302A;
  --vert-clair: #2C6B5C;
  --ocre: #B4653A;
  --ocre-clair: #E8A87C;
  --papier: #FBF9F5;
  --papier-creux: #F2EDE4;
  --blanc: #FFFFFF;
  --encre: #17211E;
  --encre-douce: #55605B;
  --trait: #E0D8CA;
  --ombre: 0 1px 2px rgba(23,33,30,.06), 0 8px 24px -12px rgba(23,33,30,.18);
  --ombre-forte: 0 2px 4px rgba(23,33,30,.08), 0 20px 48px -20px rgba(23,33,30,.28);
  --rayon: 14px;
  --rayon-s: 8px;
  --serif: Iowan Old Style, Palatino Linotype, Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, sans-serif;
  --dedans: 1140px;
}

* { box-sizing: border-box; }

body {
  margin: 0; background: var(--papier); color: var(--encre);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--vert); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }

.dedans { max-width: var(--dedans); margin: 0 auto; padding: 0 24px; }
svg { width: 1em; height: 1em; }

/* ---- en-tete ---------------------------------------------------------- */

header.site {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: rgba(251,249,245,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--trait);
}
header.site .marque {
  font-weight: 700; font-size: .92rem; letter-spacing: .07em;
  text-transform: uppercase; text-decoration: none; color: var(--encre);
}
header.site .marque::after {
  content: ""; display: block; width: 28px; height: 3px;
  background: var(--ocre); margin-top: 5px; border-radius: 2px;
}
header.site nav { font-size: .92rem; }
header.site nav a { margin-left: 22px; text-decoration: none; color: var(--encre-douce); }
header.site nav a:hover { color: var(--vert); }

main { max-width: 44rem; margin: 0 auto; padding: 44px 24px 12px; }
main.plein { max-width: none; padding: 0; }

/* ---- boutons ---------------------------------------------------------- */

.bouton {
  display: inline-block; padding: 14px 26px; border-radius: 50px;
  background: var(--ocre); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .98rem; border: 2px solid var(--ocre);
  box-shadow: var(--ombre); transition: transform .15s, box-shadow .15s, background .15s;
}
.bouton:hover { background: #9C5530; border-color: #9C5530; transform: translateY(-1px);
                box-shadow: var(--ombre-forte); color: #fff; }
.bouton-clair { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); box-shadow: none; }
.bouton-clair:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: none; }

/* ---- hero ------------------------------------------------------------- */

.hero {
  background: linear-gradient(160deg, var(--vert-fonce) 0%, var(--vert) 55%, var(--vert-clair) 100%);
  color: #fff; padding: 72px 0 80px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 64px),
                    repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 64px);
}
.hero > .dedans { position: relative; z-index: 1; }
.hero-grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }

.surtitre {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 14px; border-radius: 50px; font-family: var(--sans);
  font-size: .8rem; font-weight: 600; letter-spacing: .03em;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
}
.surtitre svg { color: var(--ocre-clair); }

.hero h1 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); line-height: 1.08;
  margin: 0 0 20px; color: #fff;
}
.hero h1 span { color: var(--ocre-clair); display: block; }
.hero-chapo { font-size: 1.12rem; line-height: 1.6; color: rgba(255,255,255,.88);
              max-width: 34rem; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 30px; }
.hero-preuves { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0;
                margin: 0; font-size: .9rem; color: rgba(255,255,255,.9); }
.hero-preuves li { display: flex; align-items: center; gap: 8px; }
.hero-preuves svg { color: var(--ocre-clair); }

.encart-fait {
  background: var(--blanc); color: var(--encre); border-radius: var(--rayon);
  padding: 28px; box-shadow: var(--ombre-forte); border-top: 5px solid var(--ocre);
}
.encart-titre { font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .12em;
                text-transform: uppercase; color: var(--ocre); margin: 0 0 12px; }
.encart-gros { font-family: var(--serif); font-size: 1.42rem; line-height: 1.22; margin: 0 0 16px; }
.encart-detail { font-size: .88rem; color: var(--encre-douce); margin: 0 0 14px; }
.encart-suite { font-size: .92rem; margin: 0; padding-top: 14px; border-top: 1px solid var(--trait); }

/* ---- barre de chiffres ------------------------------------------------ */

.chiffres { background: var(--blanc); border-bottom: 1px solid var(--trait); }
.chiffres-grille { display: grid; grid-template-columns: repeat(4, 1fr); }
.chiffres-grille > div { text-align: center; padding: 26px 16px; border-right: 1px solid var(--trait); }
.chiffres-grille > div:last-child { border-right: 0; }
.chiffres-grille strong { display: block; font-family: var(--serif); font-size: 2rem;
                          line-height: 1; color: var(--vert); }
.chiffres-grille span { display: block; margin-top: 7px; font-size: .84rem; color: var(--encre-douce); }

/* ---- bandes ----------------------------------------------------------- */

.bande { padding: 68px 0; }
.bande-creuse { background: var(--papier-creux); }
.bande-sombre { background: var(--vert-fonce); color: rgba(255,255,255,.9); }
.bande-sombre h2 { color: #fff; }
.bande-sombre .eyebrow { color: var(--ocre-clair); }

.eyebrow { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .12em;
           text-transform: uppercase; color: var(--ocre); margin: 0 0 10px; }
.bande h2 { font-size: clamp(1.55rem, 1.1rem + 1.5vw, 2.15rem); line-height: 1.18; margin: 0 0 26px; }

.lien-fort { font-weight: 600; text-underline-offset: .2em; }

/* ---- prose ------------------------------------------------------------ */

.prose { max-width: 48rem; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 1.2em; margin: 0 0 18px; }
.prose li { margin: 8px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 6px 0 20px;
               background: var(--blanc); border-radius: var(--rayon); overflow: hidden;
               box-shadow: var(--ombre); font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--trait);
                       vertical-align: top; }
.prose th { background: var(--vert); color: #fff; font-family: var(--sans); font-size: .82rem;
            font-weight: 650; letter-spacing: .03em; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose-alerte ul { padding-left: 0; }
.prose-alerte li { position: relative; list-style: none; padding-left: 28px; }
.prose-alerte li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 13px; height: 3px;
  background: var(--ocre); border-radius: 2px;
}

/* ---- cartes ----------------------------------------------------------- */

.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.carte {
  display: flex; flex-direction: column; gap: 10px; padding: 26px;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon);
  text-decoration: none; color: var(--encre); box-shadow: var(--ombre);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); border-color: var(--vert-clair); }
.carte-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px;
             background: var(--papier-creux); color: var(--vert); font-size: 22px; }
.carte strong { font-family: var(--serif); font-size: 1.14rem; line-height: 1.25; }
.carte-txt { font-size: .93rem; color: var(--encre-douce); flex: 1; }
.carte-lien { font-size: .88rem; font-weight: 650; color: var(--vert); }
.carte-lien::after { content: " →"; }

/* ---- etapes ----------------------------------------------------------- */

.etapes { list-style: none; padding: 0; margin: 0;
          display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.etape { padding-top: 18px; border-top: 3px solid var(--trait); }
.etape-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
             background: var(--vert); color: #fff; font-family: var(--serif); font-size: 1.05rem;
             margin-bottom: 12px; }
.etape strong { display: block; font-family: var(--serif); font-size: 1.08rem; margin-bottom: 6px; }
.etape p { margin: 0; font-size: .92rem; color: var(--encre-douce); }

/* ---- devis ------------------------------------------------------------ */

.devis-grille { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.devis-grille p { max-width: 32rem; }
.devis-boite { background: var(--blanc); border-radius: var(--rayon); padding: 12px;
               box-shadow: var(--ombre-forte); }
.devis-boite .devis { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }

.garanties { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.garantie { display: grid; grid-template-columns: 34px 1fr; gap: 4px 14px; align-items: start; }
.garantie-ico { grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center;
                border-radius: 8px; background: rgba(255,255,255,.12); color: var(--ocre-clair);
                font-size: 18px; }
.garantie strong { font-size: .97rem; color: #fff; }
.garantie span:last-child { font-size: .89rem; color: rgba(255,255,255,.75); }

/* ---- FAQ -------------------------------------------------------------- */

.faq { max-width: 46rem; }
.qa { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon-s);
      margin-bottom: 10px; box-shadow: var(--ombre); }
.qa summary { cursor: pointer; padding: 18px 22px; font-family: var(--serif); font-size: 1.06rem;
              list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--ocre); font-family: var(--sans); font-size: 1.3rem;
                     line-height: 1; flex: none; }
.qa[open] summary::after { content: "−"; }
.qa > div { padding: 0 22px 20px; font-size: .96rem; color: var(--encre-douce); }
.qa > div strong { color: var(--encre); }

/* ---- pages de lecture (guides, blog, geo) ----------------------------- */

main h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.7rem); line-height: 1.12; margin: 0 0 18px; }
main .chapo { font-size: 1.14rem; line-height: 1.55; color: var(--encre-douce);
              margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--trait); }
main h2 { font-size: 1.42rem; margin: 44px 0 14px; }
main h3 { font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: .02em;
          margin: 30px 0 10px; }
main p { margin: 0 0 17px; }
main ul, main ol { padding-left: 1.25em; margin: 0 0 19px; }
main li { margin: 7px 0; }
main hr { border: 0; border-top: 1px solid var(--trait); margin: 38px 0; }
main code { font: .88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
            background: var(--papier-creux); padding: .12em .38em; border-radius: 4px; }

main blockquote { margin: 28px 0; padding: 20px 24px; background: var(--blanc);
                  border: 1px solid var(--trait); border-left: 4px solid var(--ocre);
                  border-radius: 0 var(--rayon-s) var(--rayon-s) 0; box-shadow: var(--ombre); }
main blockquote p { margin: 0; }

main table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .94rem;
             background: var(--blanc); box-shadow: var(--ombre); border-radius: var(--rayon-s);
             overflow: hidden; }
main th, main td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--trait);
                   vertical-align: top; }
main th { background: var(--vert); color: #fff; font-family: var(--sans); font-size: .82rem;
          font-weight: 650; }
main tbody tr:last-child td { border-bottom: 0; }

nav.fil { font-size: .85rem; color: var(--encre-douce); margin: 0 0 20px; }
nav.fil a { text-decoration: none; }
nav.fil span { padding: 0 6px; color: var(--trait); }

/* le formulaire dans une page de lecture */
main .devis { margin: 38px 0; padding: 24px; background: var(--blanc);
              border: 1px solid var(--trait); border-top: 4px solid var(--vert);
              border-radius: var(--rayon); box-shadow: var(--ombre); }

/* index du blog */
ul.articles { list-style: none; padding: 0; margin: 0; }
ul.articles li { padding: 22px 0; border-bottom: 1px solid var(--trait); margin: 0; }
ul.articles a { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; text-decoration: none; }
ul.articles a:hover { color: var(--ocre); }
ul.articles span { display: block; margin-top: 6px; font-size: .95rem; color: var(--encre-douce); }

/* communes sans page : nommees, pas liees (docs/MAILLAGE.md §5) */
.ecartees { font-size: .86rem; line-height: 1.6; color: var(--encre-douce);
            background: var(--papier-creux); padding: 16px 18px; border-radius: var(--rayon-s); }

/* ---- pied de cocon (regle 1, accueil seulement) ----------------------- */

footer.cocon { background: var(--papier-creux); border-top: 1px solid var(--trait);
               padding: 46px 24px 34px; }
footer.cocon > * { max-width: var(--dedans); margin-left: auto; margin-right: auto; }
footer.cocon h2 { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .12em;
                  text-transform: uppercase; color: var(--encre-douce); margin: 30px auto 14px; }
footer.cocon h2:first-child { margin-top: 0; }
footer.cocon p { font-size: .92rem; margin-top: 22px; }

ul.liens { list-style: none; padding: 0; margin: 0; columns: 4; column-gap: 26px; font-size: .9rem; }
ul.liens li { break-inside: avoid; margin: 5px 0; }
ul.liens a { text-decoration: none; }
ul.liens a:hover { text-decoration: underline; color: var(--ocre); }
.menu { color: #9C9283; font-size: .82em; }

/* ---- pied de page ----------------------------------------------------- */

footer.site { background: var(--vert-fonce); color: rgba(255,255,255,.7);
              padding: 34px 24px 46px; font-size: .88rem; }
footer.site p, footer.site nav { max-width: var(--dedans); margin: 0 auto 14px; }
footer.site a { color: rgba(255,255,255,.9); margin-right: 22px; }

/* ---- petits ecrans ---------------------------------------------------- */

@media (max-width: 960px) {
  .hero-grille, .devis-grille { grid-template-columns: 1fr; gap: 34px; }
  .cartes, .etapes { grid-template-columns: repeat(2, 1fr); }
  .chiffres-grille { grid-template-columns: repeat(2, 1fr); }
  .chiffres-grille > div:nth-child(2) { border-right: 0; }
  .chiffres-grille > div:nth-child(-n+2) { border-bottom: 1px solid var(--trait); }
  ul.liens { columns: 2; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0 56px; }
  .bande { padding: 48px 0; }
  .cartes, .etapes { grid-template-columns: 1fr; }
  .hero-actions .bouton { width: 100%; text-align: center; }
  header.site { padding: 12px 20px; }
  header.site nav a { margin: 0 18px 0 0; }
  main { padding-top: 30px; }
  ul.liens { columns: 1; }
  main table, .prose table { font-size: .86rem; }
  main th, main td, .prose th, .prose td { padding: 10px 11px; }
}

/* ---- pages geo : ville et departement --------------------------------- */
/*
 * Elles sont 9 972 et recoivent le trafic de longue traine. Elles ont donc
 * besoin des memes reperes que l'accueil : une tete qui situe, un appel a
 * l'action visible, et le formulaire tout de suite — pas en bas de page.
 */

.geo-tete { margin: 0 0 30px; padding-bottom: 26px; border-bottom: 1px solid var(--trait); }
.geo-sur { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .1em;
           text-transform: uppercase; color: var(--ocre); margin: 0 0 10px; }
.geo-chapo { font-size: 1.08rem; line-height: 1.55; color: var(--encre-douce); margin: 0 0 22px; }
.geo-actions { margin: 0; }
.geo-retour { margin-top: 26px; font-size: .95rem; }

/* le bloc de captation d'une page geo : deux colonnes, texte a gauche */
.devis-geo {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start;
  margin: 0 0 42px; padding: 28px; border-radius: var(--rayon);
  background: var(--vert-fonce); color: rgba(255,255,255,.88);
  box-shadow: var(--ombre-forte);
}
.devis-geo h2 { margin: 0 0 12px; color: #fff; font-size: 1.32rem; }
.devis-geo p { margin: 0 0 16px; font-size: .96rem; }
.devis-geo-preuves { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px;
                     font-size: .9rem; color: rgba(255,255,255,.8); }
.devis-geo-preuves li { display: flex; align-items: center; gap: 9px; }
.devis-geo-preuves li::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
                                background: var(--ocre-clair); flex: none; }
.devis-geo-boite { background: var(--blanc); border-radius: var(--rayon-s); padding: 10px;
                   color: var(--encre); }

/* les 20 voisines : une navigation locale, pas un pied de page */
.voisines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 8px; }
.voisine { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px;
           background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon-s);
           text-decoration: none; color: var(--encre); transition: border-color .15s, transform .15s; }
.voisine:hover { border-color: var(--vert-clair); transform: translateY(-1px); }
.voisine strong { font-size: .95rem; font-weight: 600; }
.voisine span { font-size: .8rem; color: var(--encre-douce); }

.cartes-3 { margin-bottom: 8px; }
.carte-mini { padding: 20px; gap: 8px; }
.carte-mini strong { font-size: 1.04rem; }

@media (max-width: 960px) {
  .devis-geo { grid-template-columns: 1fr; }
  .voisines { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .devis-geo { padding: 20px; }
  .voisines { grid-template-columns: repeat(2, 1fr); }
  .geo-actions .bouton { width: 100%; text-align: center; }
}

/* ---- images ----------------------------------------------------------- */
/* Elles sont generees a part et versionnees : au premier build d'un site elles
 * n'existent pas. Rien ici ne doit dependre de leur presence. */
.encart-img { width: calc(100% + 56px); margin: -28px -28px 20px; height: 190px;
              object-fit: cover; display: block; border-radius: var(--rayon) var(--rayon) 0 0; }
