/* ==========================================================
   GRAND EST CLIMATISATION — Talange (57)
   DA "Ingénierie du confort" : le froid et le chaud comme
   système visuel. Illustrations techniques, pas de stock photo.
   ========================================================== */

:root {
  --nuit:      #0A1A24;
  --nuit-2:    #0E2532;
  --acier:     #16394A;
  --acier-2:   #1E4A5F;
  --bleu:      #2E9BC9;
  --glace:     #7FD4F0;
  --chaud:     #E8703A;
  --chaud-2:   #F5A26B;
  --blanc:     #F2F7F9;
  --gris:      #8AA5B2;
  --gris-fonce:#5A7280;

  --display: "Sora", "Segoe UI", sans-serif;
  --body:    "IBM Plex Sans", "Segoe UI", sans-serif;

  --wrap: min(1200px, 90vw);
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--nuit);
  color: var(--blanc);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
::selection { background: var(--bleu); color: var(--nuit); }

.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- Typographie ---------- */
.display { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--glace);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.eyebrow--chaud { color: var(--chaud-2); }

.lead { color: var(--gris); font-size: 1.06rem; max-width: 58ch; }

/* ---------- Icônes ---------- */
.icon {
  width: 1.1em; height: 1.1em; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.7em;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer;
  min-height: 48px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--chaud { background: var(--chaud); color: #fff; }
.btn--chaud:hover { background: #D4602C; }
.btn--froid { background: var(--bleu); color: var(--nuit); }
.btn--froid:hover { background: var(--glace); }
.btn--ligne { border: 1.5px solid rgba(242,247,249,.3); }
.btn--ligne:hover { border-color: var(--glace); color: var(--glace); }

/* ---------- En-tête ---------- */
.head {
  position: fixed; inset: 0 0 auto; z-index: 60;
  padding: 1rem 0;
  transition: padding .3s ease;
}
.head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10,26,36,.94);
  border-bottom: 1px solid rgba(127,212,240,.15);
  opacity: 0; transition: opacity .3s ease;
}
.head.scrolled { padding: .6rem 0; }
.head.scrolled::before { opacity: 1; }
.head__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand svg { width: 42px; height: 42px; }
.brand__txt { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; line-height: 1.15; }
.brand__txt span { display: block; font-family: var(--body); font-weight: 500; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 500; padding: .6em .9em; border-radius: var(--r); transition: color .2s ease; }
.nav a:not(.btn):hover { color: var(--glace); }
.nav .btn { margin-left: .6rem; padding: .7em 1.3em; min-height: 44px; }

.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 71; }
.burger span, .burger::before, .burger::after {
  content: ""; display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--blanc); margin: 5px auto;
  transition: transform .3s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span { opacity: 0; }
.burger[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 70;
    flex-direction: column; justify-content: center; gap: .6rem;
    background: var(--nuit-2);
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.22,1,.36,1);
  }
  .nav.open { transform: none; }
  .nav a { font-family: var(--display); font-weight: 700; font-size: 1.6rem; }
  .nav .btn { margin-top: 1.2rem; font-family: var(--body); font-size: 1rem; }
}

/* ---------- Héro ---------- */
.hero {
  position: relative;
  padding: clamp(8rem, 16vh, 11rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 12% 18%, rgba(46,155,201,.28), transparent 65%),
    radial-gradient(ellipse 55% 45% at 88% 78%, rgba(232,112,58,.22), transparent 65%);
  pointer-events: none;
}
/* Texture de grille de ventilateur, très sourde */
.hero__tex {
  position: absolute; inset: 0;
  background: url("../assets/img/texture-ventilateur.webp") center/cover no-repeat;
  opacity: .1;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.hero__in { position: relative; z-index: 2; display: grid; gap: 3rem; }
@media (min-width: 1000px) { .hero__in { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 4rem; } }

.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 1rem 0; }
.hero h1 .froid { color: var(--glace); }
.hero h1 .chaud { color: var(--chaud-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 1.6rem; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 1.6rem; font-size: .86rem; color: var(--gris); }
.hero__meta b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--blanc); line-height: 1.1; }

/* Illustration technique du split */
.hero__fig { display: flex; justify-content: center; }
.hero__fig svg { width: 100%; max-width: 460px; height: auto; }
@media (max-width: 999px) { .hero__fig { order: -1; max-width: 380px; margin-inline: auto; } }

/* Flux d'air animé */
.flux { stroke-dasharray: 5 9; animation: flux 2.4s linear infinite; }
@keyframes flux { to { stroke-dashoffset: -28; } }

/* ---------- Bande de confiance ---------- */
.trust { border-block: 1px solid rgba(127,212,240,.16); background: var(--nuit-2); }
.trust__in { display: grid; gap: 1.6rem; padding: 2.2rem 0; }
@media (min-width: 720px) { .trust__in { grid-template-columns: repeat(4, 1fr); } }
.trust__item { display: flex; gap: .85rem; align-items: flex-start; }
.trust__item .icon { width: 20px; height: 20px; color: var(--bleu); margin-top: .2rem; }
.trust__item strong { display: block; font-family: var(--display); font-weight: 700; font-size: .98rem; }
.trust__item span { font-size: .84rem; color: var(--gris); }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section--alt { background: var(--nuit-2); }
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 62ch; }
.section__head h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin: .8rem 0 1rem; }

/* ---------- Prestations ---------- */
.presta { display: grid; gap: 1.5rem; }
@media (min-width: 700px)  { .presta { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .presta { grid-template-columns: repeat(4, 1fr); } }

.carte {
  background: linear-gradient(170deg, rgba(30,74,95,.5), rgba(14,37,50,.5));
  border: 1px solid rgba(127,212,240,.18);
  border-radius: 14px;
  padding: 1.9rem 1.5rem;
  display: flex; flex-direction: column; gap: .9rem;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.carte:hover { border-color: var(--bleu); transform: translateY(-3px); }
.carte__fig { height: 76px; display: flex; align-items: center; }
.carte__fig svg { height: 100%; width: auto; }
.carte h3 { font-family: var(--display); font-weight: 700; font-size: 1.18rem; }
.carte p { font-size: .92rem; color: var(--gris); flex: 1; }
.carte ul { display: flex; flex-wrap: wrap; gap: .4rem; }
.carte li {
  font-size: .74rem; font-weight: 500;
  padding: .3em .75em; border-radius: 999px;
  background: rgba(127,212,240,.12); color: var(--glace);
}
.carte--chaud { background: linear-gradient(170deg, rgba(120,55,28,.42), rgba(14,37,50,.5)); border-color: rgba(245,162,107,.24); }
.carte--chaud:hover { border-color: var(--chaud); }
.carte--chaud li { background: rgba(245,162,107,.14); color: var(--chaud-2); }

/* ---------- Marques installées ---------- */
.marques {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 2rem;
  margin-top: 2.6rem; padding-top: 1.8rem;
  border-top: 1px solid rgba(127,212,240,.16);
}
.marques span {
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gris-fonce);
}
.marques b {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: var(--gris); letter-spacing: .01em;
}

/* ---------- Réalisations ---------- */
.real {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px)  { .real { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) {
  .real { grid-template-columns: repeat(4, 1fr); }
  /* la première photo occupe deux cases pour casser la régularité */
  .real figure:first-child { grid-column: span 2; grid-row: span 2; }
}
.real figure {
  position: relative;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(127,212,240,.18);
  background: var(--nuit-2);
}
.real img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.real figcaption {
  position: absolute; inset: auto 0 0;
  padding: 2.4rem .9rem .8rem;
  font-size: .8rem; font-weight: 500; color: #fff;
  background: linear-gradient(transparent, rgba(6,15,22,.9));
}
.real figcaption b { display: block; font-family: var(--display); font-weight: 700; font-size: .88rem; }
.real figcaption span { color: #B6DDEC; }

/* ---------- Été / hiver ---------- */
.saisons { display: grid; gap: 0; border-radius: 16px; overflow: hidden; }
@media (min-width: 860px) { .saisons { grid-template-columns: 1fr 1fr; } }
.saison { padding: clamp(2rem, 4vw, 3.4rem); }
.saison h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: .7rem 0 .8rem; }
.saison p { font-size: .97rem; }
.saison--ete { background: linear-gradient(160deg, #12435C, #0E2532); }
.saison--ete p { color: #B6DDEC; }
.saison--hiver { background: linear-gradient(160deg, #6B3018, #2A1810); }
.saison--hiver h3 { color: var(--chaud-2); }
.saison--hiver p { color: #E8C3AC; }
.saison__temp { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 8vw, 5rem); line-height: 1; opacity: .28; }

/* ---------- Étapes ---------- */
.etapes { counter-reset: e; display: grid; gap: 0; }
.etape {
  counter-increment: e;
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(127,212,240,.14);
  align-items: start;
}
.etape:first-child { border-top: 1px solid rgba(127,212,240,.14); }
.etape::before {
  content: counter(e, decimal-leading-zero);
  font-family: var(--display); font-weight: 800; font-size: 1.6rem;
  color: var(--bleu);
  min-width: 2.4rem;
}
.etape h3 { font-family: var(--display); font-weight: 700; font-size: 1.12rem; margin-bottom: .3rem; }
.etape p { font-size: .93rem; color: var(--gris); max-width: 62ch; }

/* ---------- Zone ---------- */
.zone { display: grid; gap: 2.5rem; }
@media (min-width: 920px) { .zone { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; } }
.villes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.villes li {
  font-size: .85rem; font-weight: 500;
  padding: .45em 1em; border-radius: 999px;
  border: 1px solid rgba(127,212,240,.24);
  color: var(--glace);
}
.map { border-radius: 14px; overflow: hidden; border: 1px solid rgba(127,212,240,.22); aspect-ratio: 4/3.2; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.5) invert(.92) hue-rotate(170deg) contrast(.85); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.coord { display: grid; gap: 1.4rem; }
.coord__l { display: flex; gap: 1rem; align-items: flex-start; }
.coord__l .icon { width: 20px; height: 20px; color: var(--bleu); margin-top: .3rem; }
.coord__l h4 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gris); font-weight: 600; margin-bottom: .25rem; }
.coord__l a { text-decoration: none; border-bottom: 1px solid rgba(46,155,201,.5); padding-block: .4rem; display: inline-block; }
.coord__l a:hover { color: var(--glace); border-color: var(--glace); }

/* Champ que le client doit renseigner : visible, pas cassé */
.todo {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .88rem; font-style: italic;
  color: var(--gris-fonce);
  border: 1px dashed rgba(138,165,178,.45);
  border-radius: 999px; padding: .3em .9em;
}

.encart {
  background: linear-gradient(165deg, rgba(46,155,201,.16), rgba(232,112,58,.12));
  border: 1px solid rgba(127,212,240,.22);
  border-radius: 16px;
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
}
.encart h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .7rem; }
.encart p { color: var(--gris); margin-bottom: 1.6rem; }
.encart .btn { width: 100%; }
.encart .btn + .btn { margin-top: .7rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 820px; }
.faq details {
  border: 1px solid rgba(127,212,240,.18);
  border-radius: 12px;
  background: rgba(14,37,50,.6);
  overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 1.4rem;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 56px;
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--glace); }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none;
  border-right: 2px solid var(--bleu); border-bottom: 2px solid var(--bleu);
  transform: rotate(45deg) translate(-2px,-2px);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px,-3px); }
.faq p { padding: 0 1.4rem 1.3rem; font-size: .93rem; color: var(--gris); max-width: 70ch; }

/* ---------- Pied ---------- */
.foot { background: #060F16; padding: 3rem 0 2rem; border-top: 1px solid rgba(127,212,240,.14); }
.foot__in { display: grid; gap: 1.8rem; }
@media (min-width: 800px) { .foot__in { grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; } }
.foot h4 { font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); margin-bottom: .9rem; }
.foot ul { display: grid; gap: .1rem; }
.foot a {
  text-decoration: none; font-size: .9rem; color: var(--blanc);
  display: inline-flex; align-items: center; min-height: 44px;
  transition: color .2s ease;
}
.foot a:hover { color: var(--glace); }
.foot p { font-size: .86rem; color: var(--gris); }
.foot__bas {
  margin-top: 2.4rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(127,212,240,.12);
  font-size: .78rem; color: var(--gris-fonce);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
}
.foot__bas a { font-size: .78rem; color: var(--gris); }

/* ---------- Barre fixe mobile ---------- */
.sticky {
  position: fixed; inset: auto 0 0; z-index: 55;
  display: none; gap: 1px;
  background: rgba(127,212,240,.2);
  transform: translateY(105%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.sticky.show { transform: none; }
.sticky a {
  flex: 1; min-height: 54px;
  display: flex; align-items: center; justify-content: center; gap: .5em;
  text-decoration: none; font-size: .88rem; font-weight: 600;
  background: var(--nuit-2);
}
.sticky a.primary { background: var(--chaud); color: #fff; }
@media (max-width: 780px) { .sticky { display: flex; } .foot { padding-bottom: 5.5rem; } }

/* ---------- Révélations ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.22,1,.36,1); }
.rv.on { opacity: 1; transform: none; }
.rv-1 { transition-delay: .07s; } .rv-2 { transition-delay: .14s; } .rv-3 { transition-delay: .21s; }

/* ---------- A11y ---------- */
:focus-visible { outline: 2px solid var(--glace); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--bleu); color: var(--nuit); padding: .9em 1.4em; font-weight: 600; }
.skip:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .12s !important; }
  .rv { opacity: 1; transform: none; }
  .flux { animation: none; }
}
