/* Air Climatis Energy — feuille de style */
:root {
  --encre: #14213D;
  --azur: #1F5FBF;
  --azur-clair: #E3EDF9;
  --soleil: #E4502B;
  --papier: #F6F8FB;
  --brume: #D7E1EC;
  --gris: #55657A;
  --blanc: #FFFFFF;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --texte: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mesure: 68ch;
  --large: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--papier);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azur); text-underline-offset: 3px; }
a:hover { color: var(--encre); }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 105%; margin-bottom: 0.4em; }
p { margin: 0 0 1em; max-width: var(--mesure); }

.enveloppe { width: min(100% - 2.5rem, var(--large)); margin-inline: auto; }
.lien-evitement { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: .6rem 1rem; z-index: 10; }
.lien-evitement:focus { left: 1rem; }

/* En-tête */
.entete { background: var(--encre); position: sticky; top: 0; z-index: 5; }
.entete .enveloppe { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.marque { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--encre); }
.marque img { height: 54px; width: auto; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.marque-texte { font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: 1.15rem; line-height: 1; }
.marque-texte small { display: block; font-family: var(--texte); font-weight: 500; font-size: .78rem; color: var(--gris); font-stretch: 100%; margin-top: .2rem; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #9cc2ff; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.bouton-tel {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--soleil); color: #fff !important; text-decoration: none !important;
  font-weight: 700; padding: .65rem 1.05rem; border-radius: 6px; white-space: nowrap;
}
.bouton-tel:hover { background: #c63f1e; }
.menu-bouton { display: none; background: none; border: 1px solid #3a4b6e; border-radius: 6px; padding: .5rem .7rem; font: inherit; color: #fff; cursor: pointer; }
@media (max-width: 860px) {
  .menu-bouton { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--encre); flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem 1.4rem; border-top: 1px solid #2c3b5a; gap: .9rem; }
  .nav.ouvert { display: flex; }
}

/* Boutons */
.bouton { display: inline-block; font-weight: 700; text-decoration: none; padding: .85rem 1.3rem; border-radius: 6px; border: 2px solid transparent; }
.bouton-plein { background: var(--azur); color: #fff; }
.bouton-plein:hover { background: var(--encre); color: #fff; }
.bouton-contour { border-color: currentColor; color: var(--encre); }
.bouton-contour:hover { background: var(--encre); color: #fff; border-color: var(--encre); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Héros thermomètre : dehors / chez vous */
.heros { background: var(--blanc); }
.thermo { display: grid; grid-template-columns: 1fr 1fr; }
.thermo > div { padding: clamp(1.4rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(220px, 34vw, 380px); }
.dehors { background: var(--soleil); }
.dedans { background: var(--azur); }
.degres { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(5rem, 15vw, 11.5rem); line-height: .82; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.degres sup { font-size: .42em; vertical-align: top; position: relative; top: .12em; margin-left: .04em; }
.lieu { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 600; margin-top: .9rem; opacity: .95; }
.heros-texte { padding-block: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: end; }
.heros-texte .chapo { font-size: 1.18rem; color: var(--gris); }
.preuves { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.preuves li { padding-left: 1.6rem; position: relative; }
.preuves li::before { content: ""; position: absolute; left: 0; top: .55em; width: .75rem; height: .75rem; border-radius: 50%; background: var(--azur); }
.etoiles { color: #E8A317; letter-spacing: .08em; }
@media (max-width: 760px) {
  .heros-texte { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Bandeaux */
.bloc { padding-block: clamp(3rem, 7vw, 5.5rem); }
.bloc-blanc { background: var(--blanc); }
.bloc-encre { background: var(--encre); color: #fff; }
.bloc-encre a { color: #fff; }
.bloc-encre p { color: #d6deea; }
.intro { max-width: 46rem; margin-bottom: 2.4rem; }
.intro p { color: var(--gris); font-size: 1.08rem; }

/* Services : liste en lignes, pas de cartes */
.services { border-top: 2px solid var(--encre); }
.service { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr auto; gap: 1.5rem 2.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--brume); align-items: baseline; }
.service h3 { margin: 0; }
.service p { margin: 0; color: var(--gris); }
.service a { font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: .5rem; } }

/* Avis */
.avis-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem; }
.avis blockquote { margin: 0 0 .8rem; font-size: 1.08rem; line-height: 1.55; }
.avis figcaption { font-weight: 600; color: #fff; }
.avis figcaption span { font-weight: 400; color: #aab8cc; }
.note-google { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.note-google strong { font-family: var(--display); font-stretch: 125%; font-size: 3.4rem; line-height: 1; }

/* Zones */
.communes { columns: 3 12rem; column-gap: 2rem; list-style: none; padding: 0; margin: 0; }
.communes li { break-inside: avoid; padding: .45rem 0; border-bottom: 1px solid var(--brume); }
.communes a { text-decoration: none; font-weight: 600; }
.communes a:hover { text-decoration: underline; }

/* Étapes (vraie séquence) */
.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem; }
.etapes li { counter-increment: etape; border-top: 3px solid var(--azur); padding-top: 1rem; }
.etapes li::before { content: counter(etape); font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 2rem; color: var(--azur); display: block; line-height: 1; margin-bottom: .5rem; }
.etapes p { color: var(--gris); margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--brume); padding: 1.1rem 0; }
.faq details:first-of-type { border-top: 2px solid var(--encre); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--azur); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; color: var(--gris); }

/* Page intérieure */
.tete-page { background: var(--blanc); border-bottom: 1px solid var(--brume); padding-block: clamp(2.2rem, 5vw, 3.8rem); }
.tete-page .chapo { font-size: 1.15rem; color: var(--gris); }
.fil { font-size: .9rem; color: var(--gris); margin-bottom: 1rem; }
.fil a { color: var(--gris); }
.colonnes { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.encart { background: var(--azur-clair); border-left: 4px solid var(--azur); padding: 1.5rem; border-radius: 0 8px 8px 0; position: sticky; top: 96px; }
.encart h2 { font-size: 1.3rem; }
.encart p { font-size: .98rem; }
.contenu h2 { margin-top: 2.2rem; }
.contenu h2:first-child { margin-top: 0; }
.contenu ul { padding-left: 1.2rem; max-width: var(--mesure); }
.contenu li { margin-bottom: .4rem; }
@media (max-width: 860px) { .colonnes { grid-template-columns: 1fr; } .encart { position: static; } }

/* Réalisations */
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1rem; }
@media (max-width: 860px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
.galerie figure { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; }
.galerie figcaption { font-size: .92rem; color: var(--gris); margin-top: .4rem; }

/* Formulaire */
.formulaire { display: grid; gap: 1.1rem; max-width: 36rem; }
.formulaire label { font-weight: 600; display: block; margin-bottom: .35rem; }
.formulaire input, .formulaire select, .formulaire textarea {
  width: 100%; font: inherit; padding: .75rem .85rem; border: 1px solid #b9c6d6; border-radius: 6px; background: #fff; color: var(--encre);
}
.formulaire textarea { min-height: 8rem; resize: vertical; }
.formulaire button { justify-self: start; font: inherit; cursor: pointer; }
.aide { font-size: .9rem; color: var(--gris); }
.cache { position: absolute; left: -9999px; }

/* Appel final */
.appel { background: var(--azur); color: #fff; }
.appel .enveloppe { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: clamp(2.2rem, 5vw, 3.4rem); }
.appel h2 { margin: 0; color: #fff; }
.appel p { margin: .4rem 0 0; color: #dce8fa; }
.appel .bouton-contour { color: #fff; }
.appel .bouton-contour:hover { background: #fff; color: var(--azur); border-color: #fff; }

/* Pied de page */
.pied { background: var(--encre); color: #c9d3e1; padding-block: 3rem 2rem; font-size: .95rem; }
.pied a { color: #fff; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.pied h2 { font-size: 1.05rem; color: #fff; font-stretch: 105%; margin-bottom: .8rem; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.pied-bas { border-top: 1px solid #2c3b5a; margin-top: 2.2rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }
@media (max-width: 760px) { .pied-grille { grid-template-columns: 1fr; } }

/* Bouton d'appel flottant mobile */
.appel-mobile { display: none; }
@media (max-width: 640px) {
  .appel-mobile { display: flex; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 6; justify-content: center; box-shadow: 0 6px 20px rgba(20,33,61,.25); padding: .9rem; }
  body { padding-bottom: 5rem; }
  .entete .bouton-tel { display: none; }
}

.photo-service { margin: 1.2rem 0 0; max-width: 340px; }
.photo-service img { border-radius: 8px; }
.photo-service figcaption { font-size: .92rem; color: var(--gris); margin-top: .4rem; }
