/* Vitrine « Thermostat » : Douce Chaleur Confort. Une seule variable pilote l'ambiance : --t (0 = 16 °C, froid ; 1 = 24 °C, chaud).
   site.js la recalcule à chaque mouvement du curseur, avec les couleurs et l'opacité des deux photos. Les valeurs ci-dessous sont
   l'état par défaut (23 °C, chaud) : c'est aussi ce que voit un visiteur sans JavaScript. */
:root {
  --t: .875;
  --p-chaud: 1;
  --p-froid: 0;
  --accent-vif: #ea7849;          /* traits, repères, graduations : jamais du texte */
  --accent-encre: #993c16;        /* texte, boutons (texte blanc dessus) : au moins 4,99 sur tous les fonds, 0 à 1 */
  --accent-clair: #fba880;        /* sur fond ardoise */
  --ciel-a: #fadac5;
  --ciel-b: #fef2e8;
  --teinte: #f6e7db;
  --encre: #16232d;
  --encre-douce: #41505b;
  --fond: #f3f6f8;
  --ardoise: #14212b;
  --ligne: rgba(22, 35, 45, .16);
  --etiquette: 2rem;
  --rayon: 4px;
  --echelle-froid: #2f7fd1;
  --echelle-tiede: #d9a441;
  --echelle-chaud: #ef6a4c;
}
body {
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--police-titre); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .6em; }
h2 { font-size: clamp(2.1rem, 1.1rem + 3.6vw, 4.1rem); }
h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); line-height: 1.15; }
p { margin: 0 0 1em; }
a { color: inherit; }
em { font-style: italic; }

.etiquette-demo { height: var(--etiquette); line-height: var(--etiquette); padding-block: 0; background: var(--ardoise); color: #fff; }

.repere { font-size: .8125rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-encre); margin-bottom: 1rem; }
.intro { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--encre-douce); max-width: 46ch; }

/* ---------- en-tête flottant ---------- */
.entete { position: fixed; top: var(--etiquette); left: 0; right: 0; z-index: 70; color: var(--encre); background: rgba(243, 246, 248, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: box-shadow .25s; }
html.defile .entete { top: 0; background: rgba(243, 246, 248, .96); box-shadow: 0 1px 0 var(--ligne); }
.entete-interieur { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.marque { display: inline-flex; align-items: center; gap: .7rem; min-height: 2.75rem; font-family: var(--police-titre); font-weight: 600; font-size: 1.3rem; text-decoration: none; letter-spacing: -.01em; }
@media (max-width: 520px) { .marque { font-size: 1.05rem; gap: .55rem; } }
.marque-trait { width: 5px; height: 1.6rem; background: linear-gradient(180deg, var(--echelle-chaud), var(--echelle-tiede) 50%, var(--echelle-froid)); border-radius: 2px; }
.entete-temp { display: none; margin: 0 0 0 auto; font-size: .875rem; color: var(--encre-douce); }
.entete-temp b { font-family: var(--police-titre); font-size: 1.05rem; font-weight: 500; color: var(--accent-encre); margin-left: .35rem; font-variant-numeric: tabular-nums; }
.entete-appel { display: none; align-items: center; min-height: 2.75rem; margin-left: auto; font-weight: 800; color: var(--accent-encre); text-decoration: none; }
@media (min-width: 768px) and (max-width: 899px) { .entete-appel { display: inline-flex; } }
.menu ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; font-weight: 600; }
.menu a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent-vif); text-decoration-thickness: 2px; }
.menu-telephone { font-weight: 800 !important; color: var(--accent-encre); }
.menu-bouton { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: 0 .9rem; background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: var(--rayon); font: inherit; font-weight: 700; }
.menu-bouton-barres { width: 1.1rem; height: 2px; background: currentColor; position: relative; }
.menu-bouton-barres::before, .menu-bouton-barres::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.menu-bouton-barres::before { top: -6px; }
.menu-bouton-barres::after { top: 6px; }
@media (min-width: 900px) {
  .menu { display: flex; align-items: center; gap: 2rem; }
}
@media (min-width: 1120px) { .entete-temp { display: block; } .entete-temp + .menu, .entete-temp ~ .menu { margin-left: 0; } .entete-temp { margin-right: 2rem; } }
@media (max-width: 899px) {
  .menu { position: absolute; top: 100%; left: 0; right: 0; padding: 1rem var(--gouttiere) 1.5rem; background: var(--ardoise); color: #fff; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu li a, .menu-telephone { display: block; padding: .85rem 0; }
  .menu-telephone { border-top: 1px solid rgba(255, 255, 255, .25); margin-top: .5rem; color: #fff; }
}

/* ---------- boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.5rem; background: var(--accent-encre); color: #fff; border: 1.5px solid var(--accent-encre); border-radius: var(--rayon); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: filter .2s; }
.bouton:hover { filter: brightness(.88); }
.bouton-contour { background: transparent; border-color: var(--encre); color: var(--encre); }
.bouton-contour:hover { background: var(--encre); color: #fff; filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }

/* ---------- ouverture : le thermostat ---------- */
.ouverture { position: relative; min-height: calc(100svh - var(--etiquette)); display: flex; align-items: center; overflow: hidden; isolation: isolate; color: var(--encre); }
.ouverture-fond { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(48% 62% at 76% 46%, var(--ciel-b), transparent 72%),
  linear-gradient(158deg, var(--ciel-a), var(--ciel-b) 78%); }
.ouverture-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; padding-block: 5.4rem 2.5rem; align-items: center; }
/* étroit : le thermostat monte juste après le titre (le curseur est la signature, il doit tenir dans le premier écran) */
.ouverture-texte { display: contents; }
.surtitre { order: 1; }
.ouverture h1 { order: 2; }
.thermostat { order: 3; }
.chapo { order: 4; }
.ouverture .actions { order: 5; }
@media (min-width: 600px) { .ouverture-grille { padding-block: 6.5rem 3.5rem; } }
@media (min-width: 1000px) {
  .ouverture-grille { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(2rem, 5vw, 6rem); padding-block: 7rem 3rem; }
  .ouverture-texte { display: block; }
}
.surtitre { font-size: .8125rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-encre); margin: 0 0 .2rem; }
.ouverture h1 { font-size: clamp(2.6rem, .9rem + 6vw, 6.1rem); line-height: 1; letter-spacing: -.03em; max-width: 11ch; margin: 0 0 .25em; font-weight: 400; }
.ouverture h1 em { color: var(--accent-encre); font-weight: 300; }
.chapo { font-size: clamp(1.0625rem, 1rem + .5vw, 1.375rem); max-width: 40ch; color: var(--encre-douce); margin: .5rem 0 0; }
.ouverture .actions { margin-top: .75rem; }
@media (min-width: 1000px) {
  .surtitre { margin-bottom: 1.25rem; }
  .ouverture h1 { margin-bottom: .45em; }
  .chapo { margin: 0 0 1em; }
  .ouverture .actions { margin-top: 1.75rem; }
}

.thermostat { position: relative; width: 100%; max-width: 31rem; justify-self: center; margin-block: 2.4rem .5rem; }
@media (min-width: 1000px) { .thermostat { max-width: none; justify-self: stretch; margin-block: 0; } }
.cadran { position: absolute; width: 118%; max-width: none; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; overflow: visible; }
@media (min-width: 1000px) { .cadran { width: 118%; top: 41%; } }
.cadran line { stroke: var(--accent-vif); stroke-width: 1.4; opacity: .6; stroke-linecap: round; }
.cadran .grand { stroke-width: 2.6; opacity: 1; }
.cadran-aiguille { transform: rotate(calc(var(--t) * 240deg - 120deg)); transform-origin: 0 0; fill: var(--accent-encre); }
.thermostat-photo { position: relative; z-index: 1; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--rayon) var(--rayon) 0 0; background: var(--ciel-a); }
.photo-chaud, .photo-froid { position: absolute; inset: 0; }
.photo-chaud { z-index: 2; opacity: var(--p-chaud); }
.photo-froid { z-index: 1; opacity: var(--p-froid); }
.photo-froid::after { content: ""; position: absolute; inset: 0; background: #3d78bd; mix-blend-mode: multiply; opacity: .22; }
.photo-chaud::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 80% at 80% 90%, rgba(255, 150, 70, .34), transparent 72%); mix-blend-mode: soft-light; }
.photo-img { width: 100%; height: 100%; object-fit: cover; }

.console { position: relative; z-index: 1; padding: 1rem 1.25rem 1rem; background: var(--ardoise); color: #fff; border-radius: 0 0 var(--rayon) var(--rayon); box-shadow: 0 34px 60px -30px rgba(22, 35, 45, .6); }
.console-tete { display: block; }
.curseur-titre { display: block; font-size: .8125rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-clair); }
.curseur-aide { display: block; font-size: .875rem; line-height: 1.4; color: #cfd8de; margin-top: .15rem; }
.console-valeur { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: .25rem; }
.valeur { display: block; font-family: var(--police-titre); font-weight: 350; font-size: clamp(3.9rem, 2.2rem + 6.4vw, 7.6rem); line-height: .95; letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum", "tnum"; }
.valeur-unite { font-size: .36em; font-weight: 400; letter-spacing: 0; margin-left: .05em; color: var(--accent-clair); }
.ambiance { margin: 0 0 .55rem; font-size: .875rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-clair); text-align: right; }

.curseur-champ { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 2.75rem; margin: .1rem 0 0; background: transparent; cursor: ew-resize; touch-action: pan-y; }
.curseur-champ::-webkit-slider-runnable-track { height: 12px; border-radius: 2px; background: linear-gradient(90deg, var(--echelle-froid), var(--echelle-tiede) 52%, var(--echelle-chaud)); }
.curseur-champ::-moz-range-track { height: 12px; border-radius: 2px; background: linear-gradient(90deg, var(--echelle-froid), var(--echelle-tiede) 52%, var(--echelle-chaud)); }
.curseur-champ::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 40px; margin-top: -14px; background: #fff; border: 3px solid var(--ardoise); border-radius: 4px; box-shadow: 0 0 0 1.5px #fff, 0 4px 12px rgba(0, 0, 0, .5); }
.curseur-champ::-moz-range-thumb { width: 14px; height: 34px; background: #fff; border: 3px solid var(--ardoise); border-radius: 4px; box-shadow: 0 0 0 1.5px #fff, 0 4px 12px rgba(0, 0, 0, .5); }
.curseur-champ:focus { outline: none; }
.curseur-champ:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--ardoise), 0 0 0 6px #fff; }
.curseur-champ:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--ardoise), 0 0 0 6px #fff; }
.curseur-echelle { display: flex; justify-content: space-between; padding-inline: 4px; font-size: .8125rem; font-weight: 700; color: #cfd8de; font-variant-numeric: tabular-nums; }
.legende { margin: .9rem 0 0; font-family: var(--police-titre); font-style: italic; font-size: 1.1875rem; line-height: 1.35; color: var(--encre); min-height: 2.7em; position: relative; z-index: 1; }
/* sans JavaScript : la commande ne ferait rien, on ne la montre pas ; la valeur reste affichée */
html:not(.js) .curseur-champ, html:not(.js) .curseur-echelle, html:not(.js) .curseur-aide, html:not(.js) .legende { display: none; }

/* ---------- prestations : onglets ---------- */
.prestations { padding-block: clamp(4rem, 9vw, 8rem); }
.section-tete { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-tete h2 { max-width: 16ch; }
.onglets-liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 2px solid var(--ligne); }
.onglet { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-height: 4.5rem; padding: 1rem 1.1rem 1.15rem; margin-bottom: -2px; background: transparent; color: var(--encre-douce); border: 0; border-bottom: 5px solid transparent; font: inherit; text-align: left; cursor: pointer; }
.onglet:hover { color: var(--encre); }
.onglet-num { font-family: var(--police-titre); font-size: .95rem; font-weight: 600; color: var(--accent-encre); }
.onglet-nom { font-weight: 800; font-size: 1.0625rem; line-height: 1.25; }
.onglet[aria-selected="true"] { color: var(--encre); border-bottom-color: var(--accent-vif); background: linear-gradient(180deg, transparent 30%, var(--teinte)); }
.onglet:focus-visible { outline-offset: -4px; }
html:not(.js) .onglets-liste { display: none; }
.panneau { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4.5vw, 5rem); align-items: center; padding-top: clamp(2rem, 4vw, 3.5rem); }
.panneau[hidden] { display: none; }
html:not(.js) .panneau + .panneau { border-top: 1px solid var(--ligne); margin-top: 2rem; }
.panneau:focus-visible { outline-offset: 6px; }
.panneau-photo { height: clamp(22rem, 62vh, 35rem); }
.panneau-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--rayon); }
.panneau-texte h3 { max-width: 20ch; }
.panneau-texte > p:not(.actions) { max-width: 52ch; color: var(--encre-douce); font-size: 1.125rem; }
.liste-coche { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .75rem; max-width: 52ch; }
.liste-coche li { position: relative; padding-left: 2rem; font-weight: 600; }
.liste-coche li::before { content: ""; position: absolute; left: 0; top: .42em; width: .95rem; height: .5rem; border-left: 3px solid var(--accent-encre); border-bottom: 3px solid var(--accent-encre); transform: rotate(-45deg); }
@media (max-width: 899px) {
  .onglets-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; gap: 0; border-top: 1px solid var(--ligne); }
  .onglet { border-bottom: 1px solid var(--ligne); margin-bottom: 0; border-left: 5px solid transparent; padding: .9rem .9rem; }
  .onglet[aria-selected="true"] { border-bottom-color: var(--ligne); border-left-color: var(--accent-vif); }
  .panneau { grid-template-columns: minmax(0, 1fr); }
  .panneau-photo { height: auto; aspect-ratio: 16 / 11; max-height: 55svh; }
  .panneau-img { aspect-ratio: 16 / 11; max-height: 55svh; }
}

/* ---------- méthode : fond ardoise, thermomètre vertical ---------- */
.etapes { background: var(--ardoise); color: #fff; padding-block: clamp(4rem, 9vw, 8rem); }
.etapes .repere { color: var(--accent-clair); }
.etapes .intro { color: #cfd8de; }
.etapes-interieur { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (min-width: 900px) { .etapes-interieur { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 7rem); } }
.etapes-photo { margin-top: 2rem; }
.etapes-img { width: 100%; max-height: min(600px, 70vh); aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--rayon); }
.etapes-liste { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.etapes-liste::before { content: ""; position: absolute; left: 2.15rem; top: 1rem; bottom: 1rem; width: 3px; background: linear-gradient(180deg, #8dbcf0, #cfc198 40%, #ff9f86); border-radius: 2px; }
.etapes-liste li { position: relative; display: grid; grid-template-columns: 4.3rem minmax(0, 1fr); gap: 1.5rem; padding-block: 1.6rem; }
.etapes-liste li + li { border-top: 1px solid rgba(255, 255, 255, .12); }
.etape-num { align-self: start; justify-self: center; z-index: 1; min-width: 4.3rem; padding: .2rem 0; background: var(--ardoise); font-family: var(--police-titre); font-size: 2.4rem; font-weight: 300; line-height: 1.1; text-align: center; font-variant-numeric: lining-nums; }
.etapes-liste li:nth-child(1) .etape-num { color: #8dbcf0; }
.etapes-liste li:nth-child(2) .etape-num { color: #cfc198; }
.etapes-liste li:nth-child(3) .etape-num { color: #f5b875; }
.etapes-liste li:nth-child(4) .etape-num { color: #ff9f86; }
.etapes-liste h3 { font-size: 1.7rem; margin-bottom: .35em; }
.etapes-liste p { margin: 0; color: #cfd8de; max-width: 40ch; }

/* ---------- zone ---------- */
.zone { padding-block: clamp(4rem, 9vw, 8rem); }
.zone-interieur { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (min-width: 900px) { .zone-interieur { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 6rem); } }
.zone-liste { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.zone-liste li { padding: .55rem 1rem; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); font-weight: 700; }
.zone-liste li:first-child { border-color: var(--accent-encre); color: var(--accent-encre); }
.avis { margin: 2rem 0 0; padding: 1.1rem 1.25rem; border: 1.5px dashed #7c8b96; border-radius: var(--rayon); color: var(--encre-douce); font-family: var(--police-titre); font-style: italic; font-size: 1.15rem; max-width: 34rem; }
.carte { display: block; width: 100%; height: auto; max-width: 34rem; margin-inline: auto; overflow: visible; }
.carte-anneau { fill: none; stroke: var(--accent-vif); stroke-width: 1.5; stroke-dasharray: 3 7; stroke-linecap: round; opacity: .8; }
.carte-route { fill: none; stroke: rgba(22, 35, 45, .13); stroke-width: 9; stroke-linecap: round; }
.carte-route.fin { stroke-width: 4; }
.carte-lien { stroke: var(--accent-vif); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.carte-point { fill: #fff; stroke: var(--encre); stroke-width: 3; }
.carte-centre { fill: var(--accent-encre); }
.carte-centre-halo { fill: var(--accent-vif); opacity: .28; }
.zone-carte { position: relative; max-width: 34rem; margin-inline: auto; width: 100%; }
.carte-nom { position: absolute; padding: .15rem .45rem; background: var(--fond); border-radius: 2px; font-size: .875rem; font-weight: 700; line-height: 1.3; color: var(--encre); white-space: nowrap; }
.carte-nom.fort { font-family: var(--police-titre); font-size: 1.45rem; font-weight: 600; color: var(--accent-encre); transform: translateX(-50%); }
.carte-nom.n1 { left: 50%; top: 54.5%; }
.carte-nom.n2 { left: 35.7%; top: 20.5%; transform: translateX(-100%); }
.carte-nom.n3 { left: 65.2%; top: 69%; transform: translateX(-50%); }
.carte-nom.n4 { left: 62.5%; top: 87.7%; transform: translateX(-50%); }
.carte-nom.n5 { left: 33.9%; top: 76.8%; transform: translateX(-50%); }
@media (min-width: 520px) { .carte-nom { font-size: 1rem; } }

/* ---------- contact ---------- */
.contact { background: var(--teinte); padding-block: clamp(4rem, 9vw, 8rem); }
.contact-interieur { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .contact-interieur { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); } }
.contact-tel { display: inline-block; padding-block: .4rem; font-family: var(--police-titre); font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); font-weight: 400; text-decoration: none; letter-spacing: -.02em; }
address { font-style: normal; margin-bottom: 1.25rem; }
.horaires { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.25rem; margin: 0; }
.horaires dt { font-weight: 800; }
.horaires dd { margin: 0; }
.formulaire { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; border-radius: var(--rayon); box-shadow: 0 24px 50px -30px rgba(22, 35, 45, .45); }
.champ label { display: block; font-weight: 700; margin-bottom: .35rem; }
.champ-requis { color: var(--accent-encre); }
.champ input, .champ textarea { width: 100%; min-height: 3rem; padding: .7rem .9rem; background: #fff; color: var(--encre); border: 1.5px solid #7c8b96; border-radius: var(--rayon); font: inherit; }
.champ textarea { min-height: 8rem; resize: vertical; }
.formulaire-statut { padding: .9rem 1rem; background: var(--fond); border-left: 4px solid var(--accent-encre); border-radius: var(--rayon); margin: 0; }

/* ---------- pied ---------- */
.pied { background: var(--ardoise); color: #fff; }
.pied-interieur { padding-block: 3rem 1rem; }
.pied-nom { font-family: var(--police-titre); font-size: 1.6rem; font-weight: 500; }
.pied a { display: inline-block; padding-block: .35rem; }
.mention-pied { border-top: 1px solid rgba(255, 255, 255, .2); color: #d5dce1; }

/* ---------- barre d'appel (téléphone) ---------- */
.barre-appel a { background: var(--accent-encre); color: #fff; font-weight: 800; }
