/* site.css — roofingplanner.com, refonte du 22/11/2026 (retour du propriétaire : couleurs de la niche, design moderne, envie de lire, beaucoup d'images).
   Charpente tirée « split-moderne » gardée (titres sur deux lignes dont la seconde en italique, chiffres réels en très grand, images inclinées encadrées,
   liste éditoriale à filets) ; palette refaite pour évoquer la toiture : ardoise #2f3f48 (marque) + terre cuite #c2410c (boutons seulement),
   fonds alternés anthracite #1e2529 / crème #f4efe7. Police système unique (Bahnschrift), graisses 400/700, une seule hauteur de ligne, zéro dégradé. */
:root { --color-brand: #2f3f48; --color-cta: #c2410c; --font-main: Bahnschrift, 'DIN Alternate', 'Arial Narrow', Arial, sans-serif;
  --nuit: #1e2529; --nuit2: #263036; --creme: #f4efe7; --papier: #fbf8f3; --texte: #232a2e; --doux: #5d666b; --filet: #d8cfc1; --clair: #eae4da;
  --large: 74rem; --lecture: 44rem; }
* { box-sizing: border-box; font-family: var(--font-main); }
body { margin: 0; background: var(--papier); color: var(--texte); font-size: 18px; line-height: 1.65; font-weight: 400; }
a { color: var(--color-brand); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 700; line-height: 1.65; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(30px, 4.2vw, 46px); }
h2 { font-size: clamp(24px, 2.8vw, 32px); margin-top: 1.8em; }
h3 { font-size: 21px; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1.2em; }
.l2 { display: block; font-style: italic; font-weight: 400; }
.cadre { width: min(var(--large), 100% - 2.6rem); margin-inline: auto; }
.trait { display: inline; border-bottom: 4px solid currentColor; padding-bottom: 2px; }

/* en-tête : posé sur la photo quand la page en a une, sinon bandeau anthracite */
.haut { background: var(--nuit); position: relative; z-index: 5; }
.sur-photo .haut { position: absolute; inset: 0 0 auto 0; background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.haut .cadre { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; padding: .7rem 0; }
.haut .logo img { height: 58px; width: auto; }
.haut nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.8rem; }
.haut nav a { color: var(--creme); text-decoration: none; font-weight: 700; font-size: 16px; }
.haut nav a:hover { text-decoration: underline; }
#m, .burger { display: none; }

/* boutons : la terre cuite n'existe que sur eux */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-width: 15rem; min-height: 3.1rem; padding: 0 1.6rem; background: var(--color-cta); color: #fff; border: 0; border-radius: 3px;
  font-size: 16px; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.bouton:hover { background: #a8380a; }
.bouton.fantome { background: transparent; border: 2px solid var(--creme); color: var(--creme); }

/* hero plein écran */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; background-size: cover; background-position: center 40%; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.hero .cadre { position: relative; text-align: center; padding: 7.5rem 0 4rem; }
.hero h1 { font-size: clamp(32px, 4.6vw, 46px); max-width: 52rem; margin: 0 auto .5em; }
.hero p.chapo { font-size: 19px; max-width: 40rem; margin: 0 auto 1.8rem; color: #f1ece4; }
.mini { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: .8rem; align-items: end; max-width: 50rem; margin: 0 auto; background: rgba(251, 248, 243, .97); color: var(--texte); padding: 1.1rem 1.2rem; border-radius: 4px; text-align: left; }
.mini label, .outil label { display: block; font-weight: 700; font-size: 15px; }
.mini input, .mini select, .calc input, .calc select, .outil input, .outil select { display: block; width: 100%; margin-top: .3rem; padding: .6rem .65rem; font-size: 16px; border: 1px solid #b7ad9e; border-radius: 3px; background: #fff; color: var(--texte); }
.petit-blanc { font-size: 14px; color: #ddd6cb; margin-top: 1rem; }

/* bandes alternées */
.bande { padding: 4.2rem 0; }
.bande.nuit { background: var(--nuit); color: var(--creme); }
.bande.nuit a { color: var(--creme); }
.bande.creme { background: var(--creme); }
.bande h2:first-child { margin-top: 0; }
.intro-bande { max-width: 42rem; color: inherit; opacity: .92; }

/* chiffres réels en très grand */
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); }
.chiffres div { padding: .4rem 2rem .4rem 0; }
.chiffres div + div { border-left: 1px solid rgba(244, 239, 231, .25); padding-left: 2rem; }
.chiffres strong { display: block; font-size: clamp(42px, 5.4vw, 66px); line-height: 1.65; }
.chiffres span { font-size: 15px; opacity: .85; }

/* cartes à vignette 4:3 : seul le titre est cliquable */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.4rem 2rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.cartes figure { margin: 0 0 1rem; aspect-ratio: 4 / 3; overflow: hidden; background: var(--clair); }
.cartes figure img { width: 100%; height: 100%; object-fit: cover; }
.cartes h3 { margin: 0 0 .4rem; font-size: 20px; }
.cartes h3 a { color: inherit; text-decoration: none; }
.cartes h3 a:hover { text-decoration: underline; }
.cartes p { font-size: 16px; color: var(--doux); margin: 0; }
.nuit .cartes p { color: #cfc8bd; }
.cartes .rubrique { font-size: 15px; color: var(--doux); margin: 0 0 .3rem; }

/* blocs éditoriaux à filets, image inclinée encadrée */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; align-items: center; padding: 2.6rem 0; border-top: 1px solid var(--filet); }
.service:first-of-type { border-top: 0; }
.service figure { margin: 0; background: #fff; padding: .55rem; border: 1px solid var(--filet); transform: rotate(-1.3deg); }
.service:nth-of-type(even) figure { transform: rotate(1.3deg); order: 2; }
.service figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service h2 { margin-top: 0; }
.liens-service { list-style: none; padding: 0; margin: 0; }
.liens-service li { padding: .45rem 0; border-top: 1px solid var(--filet); }

/* quiz et outils dans le contenu */
.outil { background: var(--nuit); color: var(--creme); padding: 1.8rem 1.8rem 1.6rem; margin: 2.4rem 0; border-radius: 4px; clear: both; }
.outil h3 { margin-top: 0; font-size: 22px; }
.outil .grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; margin: .9rem 0 1.1rem; }
.outil select, .outil input { border-color: #55636b; }
.outil .resultat-outil { font-size: 19px; margin: .6rem 0 0; }
.outil .resultat-outil strong { font-size: 26px; }
.outil .note { font-size: 14px; color: #c9c1b5; margin: .8rem 0 0; }
.quiz ol { padding-left: 1.2rem; margin: .8rem 0 1rem; }
.quiz li { margin-bottom: 1rem; }
.quiz fieldset { border: 0; padding: 0; margin: .3rem 0 0; }
.quiz label { display: block; font-weight: 400; padding: .2rem 0; cursor: pointer; }
.quiz input { display: inline; width: auto; margin: 0 .4rem 0 0; }
.quiz .verdict { display: none; border-top: 1px solid #4a575e; padding-top: 1rem; margin-top: 1rem; }
.quiz .verdict.vu { display: block; }

/* article */
.tete-article { position: relative; min-height: 68vh; display: flex; align-items: center; background-size: cover; background-position: center; color: #fff; }
.tete-article::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.tete-article .cadre { position: relative; padding: 7rem 0 4rem; text-align: center; }
.tete-article h1 { max-width: 50rem; margin: 0 auto .6rem; }
.tete-article .meta { color: #e6dfd4; font-size: 16px; }
.texte { width: min(var(--lecture), 100% - 2.6rem); margin: 3rem auto 3.4rem; }
.texte > p:first-of-type::first-letter { float: left; font-size: 3.6em; line-height: 1; padding: .08em .12em 0 0; color: var(--color-brand); font-weight: 700; }
.texte p { margin-bottom: 1.3em; }
.texte h2 { border-top: 2px solid var(--texte); padding-top: .8rem; clear: both; }
.texte figure { margin: .4rem 0 1.4rem; }
.texte figure.g { float: left; width: 48%; margin: .4rem 1.8rem 1.2rem -6rem; }
.texte figure.d { float: right; width: 48%; margin: .4rem -6rem 1.2rem 1.8rem; }
.texte figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.texte figcaption { color: var(--doux); font-size: 14px; margin-top: .4rem; font-style: italic; }
.sommaire { background: var(--creme); padding: 1.3rem 1.5rem; margin: 0 0 2.2rem; border-top: 3px solid var(--color-brand); }
.sommaire p { font-weight: 700; margin: 0 0 .5rem; }
.sommaire ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; font-size: 16px; }
.sommaire li { break-inside: avoid; margin-bottom: .25rem; }
.essentiel { background: var(--nuit); color: var(--creme); padding: 1.4rem 1.6rem; margin: 0 0 2.2rem; }
.essentiel ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.tableau { overflow-x: auto; margin: 0 0 1.4em; clear: both; }
table { border-collapse: collapse; width: 100%; font-size: 16px; background: #fff; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--filet); vertical-align: top; }
th { font-weight: 700; background: var(--brand-fond, #e9e3d8); border-bottom: 2px solid var(--texte); }
.sources li, .petit { color: var(--doux); font-size: 15px; }
.appel { background: var(--nuit); color: var(--creme); padding: 1.8rem; margin: 2.4rem 0; clear: both; text-align: center; border-radius: 4px; }
.appel p { margin: 0 0 1rem; }
.lies { background: var(--creme); padding: 3.4rem 0; }

/* calculateur pleine page */
.calc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 1.2rem; margin: 1.4rem 0 1.8rem; }
.calc label { font-weight: 700; font-size: 15px; }

/* pied */
.bas { background: var(--nuit); color: #ddd6cb; }
.bas .cadre { padding: 3rem 0 2.2rem; }
.bas a { color: var(--creme); }
.bas ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; }
.bas p { font-size: 14px; color: #b9b1a5; max-width: 62rem; }
.bas .logo-pied img { height: 54px; width: auto; margin-bottom: 1.2rem; }

/* composants d'éditorial en CSS pur, pour couper le texte (règle du propriétaire, 22/11/2026) */
.chiffre-cle { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; background: var(--creme); border-top: 3px solid var(--color-brand); padding: 1.2rem 1.4rem; margin: 1.8rem 0; clear: both; }
.chiffre-cle strong { font-size: clamp(30px, 4vw, 44px); color: var(--color-brand); line-height: 1.65; white-space: nowrap; }
.chiffre-cle span { font-size: 16px; color: var(--doux); }
.etapes { list-style: none; counter-reset: e; padding: 0; margin: 1.6rem 0 2rem; clear: both; }
.etapes li { counter-increment: e; position: relative; padding: 0 0 1.2rem 3.4rem; border-left: 2px solid var(--filet); margin-left: 1.1rem; }
.etapes li:last-child { border-left-color: transparent; }
.etapes li::before { content: counter(e); position: absolute; left: -1.15rem; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--color-brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.etapes li strong { display: block; }
.pour-contre { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.8rem 0; clear: both; }
.pour-contre > div { background: #fff; border: 1px solid var(--filet); padding: 1.1rem 1.3rem; }
.pour-contre h3 { margin-top: 0; font-size: 19px; }
.pour-contre ul { margin: 0; padding-left: 1.1rem; font-size: 16px; }
.checklist { list-style: none; padding: 0; margin: 1.4rem 0 2rem; background: var(--creme); padding: 1rem 1.3rem; clear: both; }
.checklist li { padding: .35rem 0; border-bottom: 1px solid var(--filet); }
.checklist li:last-child { border-bottom: 0; }
.checklist label { display: flex; gap: .7rem; align-items: baseline; cursor: pointer; }
.checklist input { accent-color: #2f3f48; width: 1.05rem; height: 1.05rem; flex: none; }
.checklist input:checked + span { text-decoration: line-through; color: var(--doux); }
.comparatif { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin: 1.8rem 0; clear: both; }
.comparatif > div { background: var(--nuit); color: var(--creme); padding: 1.1rem 1.2rem; }
.comparatif h3 { margin: 0 0 .4rem; font-size: 19px; }
.comparatif p { margin: 0; font-size: 15px; color: #d8d1c6; }
.a-retenir { border-left: 0; background: var(--nuit); color: var(--creme); padding: 1.2rem 1.4rem; margin: 1.8rem 0; clear: both; font-size: 17px; }
@media (max-width: 860px) { .pour-contre { grid-template-columns: 1fr; } .chiffre-cle { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .texte figure.g { margin-left: 0; } .texte figure.d { margin-right: 0; } }
@media (max-width: 860px) {
  .burger { display: block; cursor: pointer; font-weight: 700; color: var(--creme); }
  .haut nav { display: none; width: 100%; }
  .haut .cadre { flex-wrap: wrap; }
  #m:checked ~ nav { display: block; background: var(--nuit); padding: .6rem 0; }
  .haut nav ul { flex-direction: column; gap: .7rem; }
  .mini, .service, .calc, .chiffres { grid-template-columns: 1fr; }
  .service:nth-of-type(even) figure { order: 0; }
  .chiffres div + div { border-left: 0; border-top: 1px solid rgba(244, 239, 231, .25); padding-left: 0; }
  .texte figure.g, .texte figure.d { float: none; width: 100%; margin: .4rem 0 1.4rem; }
  .sommaire ol { columns: 1; }
  .bouton { width: 100%; min-width: 0; }
  .hero { min-height: 92vh; }
}
