/* Site vitrine JEG Energy : couleurs du logo (marine, bleu ciel). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --fond: #eef2f6;
  --surface: #ffffff;
  --marine: #12284c;
  --nuit: #0b1a33;
  --encre: #12284c;
  --encre-douce: #4a5d7c;
  --ciel: #4aa3d4;
  --froid: #1f9fd6;
  --trait: rgba(18, 40, 76, 0.14);
  --titre: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --texte: "Manrope", "Segoe UI", system-ui, sans-serif;
  --marge: clamp(20px, 5vw, 72px);
  --sortie: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3, .hero__big, .zone__titre {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
:focus-visible { outline: 3px solid var(--ciel); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--marine); color: #fff; padding: 12px 18px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--marine); color: #fff;
  font: 700 1rem/1 var(--texte); text-decoration: none;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: transform 0.25s var(--sortie), background-color 0.25s var(--sortie);
}
.btn:hover { background: #1b3a6b; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.btn--large { min-height: 58px; width: 100%; font-size: 1.0625rem; }
.btn--clair { background: #fff; color: var(--marine); }
.btn--clair:hover { background: #dcebf6; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* En-tête */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--marge);
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background-color 0.3s var(--sortie), box-shadow 0.3s var(--sortie);
}
.top.est-colle { background: rgba(238, 242, 246, 0.88); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--trait); }
.top__logo img { width: 118px; }
.top__nav { display: flex; gap: 28px; margin-left: auto; }
.top__nav a {
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  padding: 12px 2px; border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--sortie);
}
.top__nav a:hover { border-color: var(--ciel); }

/* 1. Bannière : photo sur toute la largeur, feuilles d'infos posées dessus */
.hero { position: relative; }
.hero__stage { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: #0b1a33; }
.hero__photo { position: absolute; inset: 0; overflow: hidden; }
.hero__zoom { position: absolute; inset: 0; }
.hero__affiche, .hero__gl { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero__affiche { object-fit: cover; object-position: 50% 50%; }
.hero__gl { opacity: 0; transition: opacity 0.4s var(--sortie); }
.hero__gl.est-pret { opacity: 1; }
.hero__air { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__grade { position: absolute; inset: 0; pointer-events: none; }
.hero__grade--froid { background: #5fb4e6; mix-blend-mode: color; opacity: 0; }

.hero__feuilles {
  position: absolute; z-index: 2; left: var(--marge); bottom: clamp(28px, 6vh, 64px);
  width: min(680px, calc(100% - 2 * var(--marge))); display: grid; align-items: end;
}
.feuille { grid-area: 1 / 1; color: #fff; will-change: transform, opacity; }
/* Texte posé sur l'image : un voile sombre du côté du texte, pas de cadre */
.hero__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 12, 28, 0.8) 0%, rgba(5, 12, 28, 0.5) 36%, rgba(5, 12, 28, 0) 66%),
    linear-gradient(0deg, rgba(5, 12, 28, 0.5) 0%, rgba(5, 12, 28, 0) 42%);
}
.hero .t-froid { color: #8fd3ff; }
.feuille--2, .feuille--3, .feuille--4 { opacity: 0; visibility: hidden; }
.hero h1 { font-size: clamp(2rem, 3.5vw, 3.375rem); }
.hero__big { font-size: clamp(1.875rem, 3.2vw, 3rem); }
.hero__lead { margin-top: 18px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); font-weight: 500; max-width: 38ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }
.t-froid { color: #1c7fb8; }
.link-tel { font: 700 1.125rem/1 var(--titre); text-decoration: none; padding: 16px 4px; border-bottom: 2px solid currentColor; }

.jauge {
  position: absolute; z-index: 2; right: var(--marge); bottom: clamp(28px, 6vh, 64px); width: min(340px, 40vw);
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  background: rgba(255, 255, 255, 0.94); border-radius: 999px;
  font: 700 0.8125rem/1 var(--texte); letter-spacing: 0.04em; color: var(--marine);
}
.jauge__rail { position: relative; flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #c5cfdb, var(--froid)); }
.jauge__curseur { position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 4px solid var(--marine); }
.jauge__mot--froid { color: #0b6b99; }

@media (max-width: 767px) {
  .hero__affiche { object-position: 84% 50%; }
  .hero__feuilles { left: 14px; bottom: max(14px, env(safe-area-inset-bottom)); width: calc(100% - 28px); }
  .hero__photo::after { background: linear-gradient(0deg, rgba(5, 12, 28, 0.9) 0%, rgba(5, 12, 28, 0.65) 42%, rgba(5, 12, 28, 0) 72%); }
  .hero__actions { margin-top: 20px; }
  .jauge { left: 14px; right: 14px; top: 72px; bottom: auto; width: auto; }
}

/* 2. Prestations : une photo de clim par métier */
.presta { background: var(--fond); }
.presta__pin { overflow: hidden; }
.presta__piste { display: flex; flex-direction: column; gap: 20px; padding: 96px var(--marge); }
.presta__intro { max-width: 520px; flex: none; }
.presta__intro h2 { font-size: clamp(2.125rem, 4.4vw, 3.75rem); }
.presta__intro p { margin-top: 20px; color: var(--encre-douce); font-size: 1.125rem; }
.carte { flex: none; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: var(--surface); }
.carte__photo { flex: 1 1 auto; min-height: 250px; overflow: hidden; background: #dfe5ec; }
.carte__photo img { width: 100%; height: 100%; object-fit: cover; }
.carte__texte { flex: none; padding: 26px 28px 30px; }
.carte h3 { font-size: clamp(1.625rem, 2.3vw, 2.125rem); }
.carte p { margin-top: 12px; color: var(--encre-douce); }
.carte .btn { margin-top: 22px; }

@media (min-width: 900px) {
  .presta__pin { height: 100vh; display: flex; align-items: center; }
  .presta__piste { flex-direction: row; align-items: stretch; gap: 28px; width: max-content; padding: 0 var(--marge); height: min(72vh, 660px); will-change: transform; }
  .presta__intro { width: 32vw; align-self: center; }
  .carte { width: min(34vw, 500px); }
  .carte__photo { min-height: 0; }
}

/* 3. Méthode : titre fixe, feuilles qui s'empilent */
.methode { background: var(--nuit); color: #fff; padding: clamp(88px, 14vh, 160px) var(--marge); display: grid; gap: 48px; }
.methode__titre h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); max-width: 12ch; }
.methode__titre p { margin-top: 20px; color: #c3d1e6; font-size: 1.125rem; max-width: 30ch; }
.methode__titre .btn { margin-top: 32px; }
.etapes { display: grid; gap: 28px; padding-bottom: 6vh; }
.etape {
  position: sticky; top: calc(84px + var(--i, 0) * 16px);
  min-height: 280px; padding: clamp(26px, 3.4vw, 44px);
  background: var(--surface); color: var(--encre); border-radius: 26px;
  box-shadow: 0 -14px 34px -18px rgba(0, 0, 0, 0.55);
  transform-origin: 50% 0; will-change: transform;
}
.etape:nth-child(2) { --i: 1; }
.etape:nth-child(3) { --i: 2; }
.etape:nth-child(4) { --i: 3; }
.etape__no { display: block; margin-bottom: 26px; font: 700 clamp(3rem, 6vw, 5rem)/0.9 var(--titre); color: #1c7fb8; }
.etape h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.etape p { margin-top: 12px; color: var(--encre-douce); max-width: 50ch; }
@media (min-width: 900px) {
  .methode { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .methode__titre { position: sticky; top: 130px; }
  .etape { top: calc(120px + var(--i, 0) * 22px); min-height: 320px; }
}

/* 4. Zone : cartes */
.zone { padding: clamp(88px, 14vh, 160px) var(--marge); display: grid; gap: 48px; }
.zone h2 { font-size: clamp(2.125rem, 4.4vw, 3.75rem); max-width: 14ch; }
.zone__texte > p { margin-top: 20px; font-size: 1.125rem; max-width: 36ch; color: var(--encre-douce); }
.zone__depts { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; border-top: 1px solid var(--trait); }
.zone__depts li { display: flex; align-items: baseline; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--trait); font-weight: 600; }
.zone__depts b { font: 700 1.375rem/1 var(--titre); color: #1c7fb8; min-width: 2ch; }
.zone__cartes { display: grid; gap: 20px; align-items: center; }
.zone__france, .zone__idf { margin: 0; }
.zone__france svg, .zone__idf svg { display: block; width: 100%; height: auto; }
.region { fill: #d5dfea; stroke: var(--fond); stroke-width: 1.4; stroke-linejoin: round; }
.region--idf { fill: #1c7fb8; }
.zone__idf { padding: clamp(16px, 2.4vw, 28px); background: var(--surface); border-radius: 26px; }
.zone__idf figcaption { margin-top: 12px; font: 700 1.125rem/1.2 var(--titre); }
.dept { fill: #a9d6f0; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; }
.dept--95 { fill: var(--marine); }
.dept__no { font: 700 13px/1 var(--titre); fill: var(--marine); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.dept__no:last-of-type { fill: #fff; }
@media (min-width: 900px) {
  .zone { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: center; }
  .zone__cartes { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; }
}

/* 5. Contact */
.contact { display: grid; gap: 48px; padding: clamp(72px, 12vh, 140px) var(--marge); background: #dfe8f1; }
.contact h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); }
.contact__infos > p { margin-top: 20px; font-size: 1.125rem; max-width: 36ch; }
.coord { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--trait); }
.coord > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--trait); }
.coord dt { color: var(--encre-douce); font-weight: 600; }
.coord dd { font: 700 1.1875rem/1.2 var(--titre); text-align: right; }
.coord a { text-decoration: none; border-bottom: 2px solid var(--ciel); padding: 6px 0; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: clamp(22px, 3.5vw, 40px); background: var(--surface); border-radius: 26px; align-self: start; }
.champ { grid-column: 1 / -1; display: grid; gap: 8px; }
.champ label { font-weight: 700; font-size: 0.9375rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: 500 1rem/1.4 var(--texte); color: var(--encre);
  background: #f4f7fa; border: 1.5px solid #c9d4e1; border-radius: 14px;
  transition: border-color 0.2s var(--sortie), background-color 0.2s var(--sortie);
}
.champ textarea { resize: vertical; min-height: 120px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--marine); background: #fff; }
.champ.est-faux input, .champ.est-faux textarea { border-color: #b42318; }
.champ--piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn, .form__etat, .form__note { grid-column: 1 / -1; }
.form__etat { min-height: 1.6em; font-weight: 700; }
.form__etat.est-ok { color: #0b6b4f; }
.form__etat.est-erreur { color: #b42318; }
.form__note { font-size: 0.875rem; color: var(--encre-douce); }
@media (min-width: 560px) { .champ--demi { grid-column: span 1; } }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; } }

/* Pied */
.pied { padding: 48px var(--marge) max(40px, env(safe-area-inset-bottom)); background: var(--fond); display: grid; gap: 24px; }
.pied > img { width: 150px; }
.pied__mentions summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.pied__mentions p { margin-top: 10px; font-size: 0.9375rem; color: var(--encre-douce); max-width: 80ch; }
.pied__copy { font-size: 0.875rem; color: var(--encre-douce); }

/* Téléphone */
@media (max-width: 767px) {
  .top__nav { display: none; }
  .top .btn--small { margin-left: auto; }
  .top__logo img { width: 96px; }
}

/* Bannière : textes centrés en hauteur, plus gros (ils se dissipent au défilement), badge Daikin */
.hero__feuilles { left: clamp(20px, 8vw, 140px); bottom: auto; top: 50%; transform: translateY(-46%); width: min(840px, 58vw); align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 5.4vw, 5.5rem); }
.hero__big { font-size: clamp(2.5rem, 4.8vw, 4.75rem); }
.hero__lead { margin-top: 24px; font-size: clamp(1.125rem, 1.6vw, 1.4375rem); max-width: 34ch; }
.hero__photo::after { background: linear-gradient(90deg, rgba(5, 12, 28, 0.84) 0%, rgba(5, 12, 28, 0.58) 40%, rgba(5, 12, 28, 0) 74%); }
.hero__badge {
  position: absolute; z-index: 2; right: var(--marge); bottom: clamp(24px, 5vh, 48px);
  display: flex; align-items: center; gap: 16px;
  color: #fff; font: 700 1.125rem/1.2 var(--titre); letter-spacing: 0.01em;
}
.hero__badge img { width: 168px; height: auto; }
/* voile sombre dans le coin du badge, pour que le texte et le logo ressortent sur l'image */
.hero__stage::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: min(720px, 60%); height: 34%; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at 100% 100%, rgba(5, 12, 28, 0.82) 0%, rgba(5, 12, 28, 0.5) 45%, rgba(5, 12, 28, 0) 72%);
}
@media (max-width: 767px) {
  .hero__feuilles { left: 20px; width: calc(100% - 40px); top: auto; bottom: 104px; transform: none; align-items: end; }
  .hero h1 { font-size: 2.5rem; }
  .hero__big { font-size: 2.25rem; }
  .hero__photo::after { background: linear-gradient(0deg, rgba(5, 12, 28, 0.93) 0%, rgba(5, 12, 28, 0.72) 46%, rgba(5, 12, 28, 0) 80%); }
  .hero__badge { left: 20px; right: auto; bottom: max(22px, env(safe-area-inset-bottom)); gap: 12px; font-size: 0.9375rem; }
  .hero__badge img { width: 118px; }
  .hero__stage::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .top, .champ input, .champ select, .champ textarea { transition: none; }
}
