/* Thermique Façade — design repris de l'ancien site (WordPress Avada, 2019-2021) :
   en-tête latéral beige à gauche, titres fins gris ardoise, boutons rouge corail en capitales.
   Couleurs et polices : une seule place, :root. */
:root {
  --ardoise: #595f6b;          /* titres, menu, pied de page (ancien site) */
  --texte: #666b75;            /* texte courant */
  --rouge: #f05858;            /* couleur principale de l'ancien site */
  --rouge-fonce: #d23c3c;      /* liens et boutons : même teinte, assez contrastée pour être lisible */
  --rouge-survol: #b93131;
  --vert: #40b048;             /* vert du logo */
  --bleu: #005078;             /* bleu du logo */
  --beige: #f1f0ec;            /* fond de l'en-tête latéral (ancien site) */
  --gris-clair: #f6f6f6;       /* barre de titre des pages */
  --bordure: #e0dede;
  --fond: #ffffff;
  --largeur: 1100px;
  --largeur-entete: 325px;
  --police-texte: "Open Sans", Arial, Helvetica, sans-serif;
  --police-titres: Roboto, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Open Sans (SIL Open Font License 1.1), hébergée sur le site : aucun appel à Google */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/open-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/open-sans-700.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--texte);
  background: var(--fond);
}
img { max-width: 100%; height: auto; }
a { color: var(--rouge-fonce); }
a:hover { color: var(--rouge-survol); }
strong { color: var(--ardoise); }

h1, h2, h3 { font-family: var(--police-titres); font-weight: 300; color: var(--ardoise); line-height: 1.2; margin: 1.4em 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 0; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.5rem; }
.sous-titre { font-family: var(--police-titres); font-weight: 300; font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--ardoise); line-height: 1.4; margin: -.2em 0 1.2em; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 30px; }
.section { padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); }
.section > h2:first-child, .section .colonne > h2:first-child, .section-fond h2:first-child { margin-top: 0; }
.section-fond { background: var(--beige); }

.aller-au-contenu { position: absolute; left: -999px; }
.aller-au-contenu:focus { left: 16px; top: 8px; background: var(--fond); padding: 8px 12px; z-index: 10; }

/* En-tête : colonne beige à gauche sur grand écran, bandeau en haut sur mobile */
.entete { background: var(--beige); }
.marque { display: inline-block; line-height: 0; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--ardoise); text-decoration: none; font-size: 1rem; }
.menu a:hover { color: var(--rouge); }
.menu a[aria-current="page"] { color: var(--rouge-fonce); }
.entete-contact { margin: 0; font-weight: 700; }
.entete-contact a { color: var(--ardoise); text-decoration: none; }
.entete-contact a:hover { color: var(--rouge); }

@media (min-width: 1000px) {
  .page { display: grid; grid-template-columns: var(--largeur-entete) minmax(0, 1fr); min-height: 100vh; }
  .entete { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 31px 0 31px; }
  .marque { margin: 0 60px 31px; }
  .menu a { display: block; padding: 9px 60px; border-left: 3px solid transparent; }
  .menu a[aria-current="page"] { border-left-color: var(--rouge); }
  .entete-contact { padding: 24px 60px 0; }
}
@media (max-width: 999.98px) {
  .entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 16px; }
  .marque img { width: 128px; }
  .entete-contact { order: 2; }
  .navigation { order: 3; flex-basis: 100%; }
  .menu { display: flex; flex-wrap: wrap; gap: 2px 18px; }
  .menu a { display: inline-block; padding: 4px 0; border-bottom: 2px solid transparent; }
  .menu a[aria-current="page"] { border-bottom-color: var(--rouge); }
  .conteneur { padding: 0 16px; }
}

/* Bandeau d'accueil : grande photo assombrie, texte blanc à gauche */
.bandeau {
  display: flex; align-items: center; min-height: min(700px, 88vh); padding: 72px 0; color: #fff;
  background-color: #3a3e45;
  background-image: linear-gradient(90deg, rgba(20, 24, 30, .55), rgba(20, 24, 30, .1)), url("/assets/img/peintre-exterieur.jpg");
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.bandeau .conteneur { width: 100%; }
.bandeau h1 { color: #fff; max-width: 18ch; }
.bandeau-prestations { font-family: var(--police-titres); font-weight: 300; font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.5; margin: 0 0 1.6em; }
.bandeau-texte { max-width: 52ch; font-size: 1.05rem; }

/* Barre de titre des pages intérieures */
.titre-page { background: var(--gris-clair); border-top: 1px solid #d2d3d4; border-bottom: 1px solid #d2d3d4; }
.titre-page h1 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0; padding: 30px 0; }

/* Colonnes texte / image, comme l'ancien site */
.colonnes { display: grid; gap: 32px 56px; align-items: center; }
@media (min-width: 760px) {
  .colonnes { grid-template-columns: 1fr 1fr; }
  .colonnes-tiers { grid-template-columns: 1fr 2fr; }
  .colonnes-inverse > :first-child { order: 2; }
}
.colonne-image { text-align: center; }
.logo-vertical { width: 205px; }

/* Bande « engagement qualité » : texte blanc sur fond ardoise */
.bande-sombre { background: var(--ardoise); color: #fff; }
.bande-sombre h2, .bande-sombre .sous-titre, .bande-sombre strong { color: #fff; }
.bande-sombre p { max-width: 70ch; }

.bouton {
  display: inline-block; background: var(--rouge-fonce); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .875rem; letter-spacing: .05em; text-transform: uppercase;
  padding: 13px 29px; border-radius: 2px; transition: background-color .2s;
}
.bouton:hover { background: var(--rouge-survol); color: #fff; }

/* Cartes */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 24px 0; }
.carte { border: 1px solid var(--bordure); padding: 22px 24px; background: var(--fond); }
.carte h3, .carte-titre { margin-top: 0; font-size: 1.35rem; }

/* Réalisations : vignettes de l'ancien site (200 × 150), affichées à leur taille */
.chantiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; margin: 24px 0; }
.chantier { margin: 0; border: 1px solid var(--bordure); background: var(--fond); }
.chantier-image { display: flex; justify-content: center; background: var(--beige); padding: 12px; }
.chantier figcaption { padding: 12px 16px 14px; line-height: 1.5; }
.chantier-lieu { display: block; font-family: var(--police-titres); font-weight: 300; font-size: 1.3rem; color: var(--ardoise); }

.liste-points { list-style: none; padding-left: 0; }
.liste-points li { position: relative; padding-left: 1.8em; margin: .5em 0; }
.liste-points li::before { content: "✓"; position: absolute; left: 0; color: var(--vert); font-weight: 700; }
.etapes li { margin: .6em 0; }
.appel { text-align: center; }
.appel p { max-width: 62ch; margin-left: auto; margin-right: auto; }
.coordonnees { font-size: 1.05rem; }
.texte-legal { max-width: 80ch; }

/* Pied de page */
.pied { border-top: 1px solid var(--bordure); color: var(--ardoise); padding-top: 40px; font-size: .9rem; }
.pied a { color: var(--ardoise); }
.pied a:hover { color: var(--rouge); }
.pied-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 32px; }
.pied-nom { font-family: var(--police-titres); font-weight: 300; font-size: 1.3rem; margin-bottom: .3em; }
.pied-copyright { border-top: 1px solid var(--bordure); padding-top: 20px; padding-bottom: 20px; margin-bottom: 0; font-size: .75rem; }

/* Informations à compléter ([[…]] dans les sources) : bien visibles tant qu'elles restent */
.a-completer { background: #fff3b0; color: #6b4e00; border: 1px dashed #c9a400; border-radius: 4px; padding: 0 4px; font-style: italic; font-family: var(--police-texte); font-size: 1rem; font-weight: 400; }
.a-completer::before { content: "À compléter : "; font-weight: 700; font-style: normal; }
