/* Site vitrine JEG Energy : couleurs du logo (marine, bleu ciel), orange pour le chaud. */
@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;
  --chaud: #f0661a;
  --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 */
.hero { position: relative; }
.hero__stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #dfe5ec; }
.hero__shots, .shot, .hero__grade, .hero__air { position: absolute; inset: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--1 img { object-position: 62% 50%; }
.shot--2 img { object-position: 30% 50%; }
.shot--3 img { object-position: 70% 50%; }
.shot { will-change: transform, opacity; }
.shot--2, .shot--3 { opacity: 0; }
.hero__grade { pointer-events: none; mix-blend-mode: multiply; }
.hero__grade--chaud { background: linear-gradient(115deg, #ffd9b0 0%, #ffb37c 45%, #ff9a5c 100%); opacity: 0.85; }
.hero__grade--froid { background: linear-gradient(115deg, #d3f0ff 0%, #9bdcff 50%, #6cc8f5 100%); opacity: 0; }
.hero__air { width: 100%; height: 100%; pointer-events: none; }

.hero__copy { position: absolute; z-index: 2; max-width: min(620px, calc(100% - 2 * var(--marge))); }
.hero__copy--1 { left: var(--marge); bottom: clamp(88px, 14vh, 150px); }
.hero__copy--2 { right: var(--marge); top: 34%; text-align: right; opacity: 0; visibility: hidden; }
.hero__copy--3 { left: var(--marge); top: clamp(110px, 20vh, 220px); opacity: 0; visibility: hidden; }
.hero h1 { font-size: clamp(2.75rem, 7.4vw, 6.25rem); }
.hero__big { font-size: clamp(2.25rem, 5.4vw, 4.5rem); }
.hero__lead { margin-top: 20px; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); font-weight: 500; max-width: 34ch; }
.hero__copy--2 .hero__lead { margin-left: auto; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 30px; }
.t-chaud { color: var(--chaud); }
.t-froid { color: #0e7fb5; }
.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, 56px);
  display: flex; align-items: center; gap: 14px;
  font: 700 0.8125rem/1 var(--texte); letter-spacing: 0.04em;
}
.jauge__rail { position: relative; width: clamp(120px, 16vw, 220px); height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--chaud), #cfd8e3 50%, 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--chaud { color: #b84a0c; }
.jauge__mot--froid { color: #0b6b99; }

/* 2. Prestations */
.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 { position: relative; flex: none; border-radius: 26px; overflow: hidden; background: var(--surface); }
.carte h3 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.carte p { margin-top: 14px; }
.carte--photo { min-height: 440px; display: flex; align-items: flex-end; color: #fff; background: var(--nuit); }
.carte--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carte__texte { position: relative; width: 100%; padding: 120px 28px 28px; background: linear-gradient(180deg, rgba(11, 26, 51, 0) 0%, rgba(11, 26, 51, 0.82) 62%); }
.carte--plein { padding: 32px 28px; display: flex; flex-direction: column; }
.carte--plein ul { margin-top: auto; padding-top: 32px; display: grid; gap: 0; }
.carte--plein li { padding: 14px 0; border-top: 1px solid var(--trait); font-weight: 700; }
.carte--nuit { background: var(--marine); color: #fff; }
.carte--nuit .btn { margin-top: auto; align-self: flex-start; }
.carte--nuit p { margin-bottom: 32px; }

@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(68vh, 620px); will-change: transform; }
  .presta__intro { width: 34vw; align-self: center; }
  .carte { width: min(30vw, 440px); min-height: 0; }
  .carte--large { width: min(46vw, 700px); }
}

/* 3. Méthode */
.methode { overflow: hidden; background: var(--nuit); color: #fff; padding: clamp(88px, 14vh, 160px) var(--marge); }
.methode h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); max-width: 14ch; }
.methode__corps { position: relative; margin-top: clamp(48px, 8vh, 96px); max-width: 860px; }
.methode__ligne { position: absolute; left: 0; top: 0; width: 40px; height: 100%; }
.methode__fond, .methode__trace { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; }
.methode__fond { stroke: rgba(255, 255, 255, 0.14); }
.methode__trace { stroke: var(--ciel); stroke-dasharray: 1; stroke-dashoffset: 0; }
.etapes { display: grid; gap: clamp(48px, 9vh, 96px); padding: 8px 0 8px 72px; }
.etape { position: relative; }
.etape__puce { position: absolute; left: -61px; top: 8px; width: 19px; height: 19px; border-radius: 50%; background: var(--nuit); border: 3px solid var(--ciel); }
.etape h3 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
.etape p { margin-top: 12px; color: #c3d1e6; max-width: 52ch; }

/* 4. Zone */
.zone { padding: clamp(88px, 14vh, 160px) var(--marge); overflow: hidden; }
.zone__sur { font-weight: 700; color: var(--encre-douce); }
.zone__titre { margin-top: 12px; font-size: clamp(4rem, 16.5vw, 17rem); line-height: 0.88; letter-spacing: -0.045em; }
.zone__titre span { display: block; will-change: transform; }
.zone__titre span:last-child { color: #1c7fb8; text-align: right; }
.zone__texte { margin-top: 36px; font-size: clamp(1.125rem, 1.8vw, 1.5rem); font-weight: 500; max-width: 30ch; }
.zone__depts { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--trait); }
.zone__depts li { display: flex; align-items: baseline; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--trait); font-weight: 600; }
.zone__depts b { font: 700 1.5rem/1 var(--titre); color: #1c7fb8; min-width: 2ch; }
@media (min-width: 900px) { .zone__depts { grid-template-columns: repeat(4, minmax(0, 1fr)); column-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: #c2410c; }
.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: #b3360a; }
.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; }
  .hero__copy--1 { bottom: 96px; }
  .hero__copy--2 { top: 104px; text-align: left; right: auto; left: var(--marge); }
  .shot--2 img { object-position: 30% 100%; }
  .hero__copy--2 .hero__lead { margin-left: 0; }
  .jauge { left: var(--marge); right: auto; bottom: 34px; }
  .shot--1 img { object-position: 58% 50%; }
}

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