:root {
  --navy-deep: #081524;
  --navy-900: #0c2138;
  --navy: #16436e;
  --navy-soft: #1d5288;
  --solar: #f7b910;
  --solar-soft: #ffd65c;
  --amber: #ff9e2c;
  --cream: #fbf6ec;
  --paper: #ffffff;
  --ink: #10243a;
  --ink-soft: #4a5f76;
  --radius: 22px;
  --glass: rgba(8, 21, 36, 0.58);
  --glass-hi: rgba(22, 67, 110, 0.62);
  --glass-brd: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 24px 60px rgba(2, 8, 16, 0.45);
  --glass-blur: blur(16px);
  --cookie-banner-h: 0px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Figtree", system-ui, sans-serif;
  background: var(--navy-deep);
  color: #eaf2fa;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---------- Skip to content (a11y) ---------- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 24px;
  background: var(--solar);
  color: var(--navy-deep);
  font-weight: 600;
  border-radius: 0 0 12px 12px;
  font-size: 0.92rem;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

/* ---------- Scroll progress bar ---------- */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--solar), var(--amber), var(--solar-soft));
  z-index: 100;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(247, 185, 16, 0.6);
}

/* ---------- Séquence d'images : fond fixe de toute la page ----------
   Le canvas reste collé au viewport ; toutes les sections défilent par-dessus
   pendant que les 300 images avancent sur toute la hauteur du document.
   Voile global minimal : la lisibilité vient des panneaux, pas d'un fond plein. */
#bgSeq {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
  /* Fond de secours : visible tant que le canvas (transparent) n'a rien
     dessiné, pour ne jamais montrer d'écran noir sur mobile lent. */
  background: linear-gradient(180deg, #081524 0%, #16436E 55%, #F7B910 100%);
}
/* Petit écran / connexion économe : image fixe (balise <img>, insérée en JS)
   à la place de la séquence. Le dégradé reste en second plan de secours si
   l'image ne charge pas. */
#bgSeq.bg-static img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#frames {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8, 21, 36, 0.46) 0%,
    rgba(22, 67, 110, 0.22) 46%,
    rgba(8, 21, 36, 0.14) 100%
  );
}
.bg-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 21, 36, 0.5) 0%,
    transparent 22%,
    transparent 74%,
    rgba(5, 13, 24, 0.55) 100%
  );
}
/* Panneaux flottants : seuls les blocs de contenu portent un verre sombre. */
.glass-panel {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
/* Les titres flottent sans panneau : un halo dense les décolle de l'image. */
h2,
.lead,
.eyebrow {
  text-shadow:
    0 4px 34px rgba(3, 10, 20, 0.85),
    0 1px 3px rgba(3, 10, 20, 0.55);
}
h1,
h2,
h3 {
  font-family: "Archivo", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}
::selection {
  background: var(--solar);
  color: var(--navy-deep);
}

/* ---------- Header ---------- */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 56px);
  transition:
    background 0.4s,
    backdrop-filter 0.4s,
    box-shadow 0.4s;
}
header.scrolled {
  background: rgba(8, 21, 36, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
header .brand img {
  height: 46px;
  width: auto;
}
header nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-weight: 600;
  font-size: 0.92rem;
}
header nav a.navlink {
  opacity: 0.85;
  transition:
    opacity 0.2s,
    color 0.2s;
}
header nav a.navlink:hover {
  opacity: 1;
  color: var(--solar-soft);
}
/* Active nav link highlighting */
header nav a.navlink.active {
  opacity: 1;
  color: var(--solar);
}

/* ---------- Hamburger button ---------- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 62;
  padding: 10px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #eaf2fa;
  border-radius: 4px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s;
  position: absolute;
  left: 10px;
}
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 28px; }

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 21, 36, 0.7);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.mobile-nav-overlay.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: rgba(8, 21, 36, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--glass-brd);
  z-index: 58;
  padding: 100px 32px 40px;
  transform: translateX(100%);
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
  overflow-y: auto;
}
.mobile-nav.open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}
.mobile-nav a {
  display: block;
  padding: 18px 0;
  font-size: 1.12rem;
  font-weight: 700;
  font-family: "Archivo", sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s, padding-left 0.3s;
}
.mobile-nav a:hover {
  color: var(--solar-soft);
  padding-left: 8px;
}
.mobile-nav .btn {
  margin-top: 28px;
  width: 100%;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  background: var(--solar);
  color: var(--navy-deep);
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 10px 30px -8px rgba(247, 185, 16, 0.55);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s;
  position: relative;
  overflow: visible;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -8px rgba(247, 185, 16, 0.7);
  background: var(--solar-soft);
  color: var(--navy-deep);
}
.btn.small {
  padding: 11px 22px;
  font-size: 0.9rem;
}
.btn.ghost {
  background: transparent;
  color: #eaf2fa;
  border: 1.5px solid rgba(234, 242, 250, 0.35);
  box-shadow: none;
}
.btn.ghost:hover {
  border-color: var(--solar);
  color: var(--solar-soft);
  background: rgba(247, 185, 16, 0.06);
}

/* CTA pulse ring animation */
.btn.pulse-ring::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid var(--solar);
  opacity: 0;
  animation: ctaPulse 2.8s ease-out infinite;
}
@keyframes ctaPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

/* ---------- Sections ---------- */
/* Rythme vertical resserré : 150px max → 88px entre les sections. */
section {
  position: relative;
  padding: clamp(52px, 6.4vw, 88px) clamp(20px, 6vw, 72px);
  z-index: 2;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--solar);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--solar);
  border-radius: 2px;
}
h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 18px;
}
.lead {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 660px;
  color: rgba(234, 242, 250, 0.78);
}
.light .lead {
  color: var(--ink-soft);
}
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.65, 0.25, 1),
    transform 0.9s cubic-bezier(0.2, 0.65, 0.25, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 {
  transition-delay: 0.12s;
}
.reveal.d2 {
  transition-delay: 0.24s;
}
.reveal.d3 {
  transition-delay: 0.36s;
}

/* ---------- Section dividers ---------- */
.section-divider {
  display: block;
  width: 100%;
  height: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(247, 185, 16, 0.25) 20%,
    rgba(247, 185, 16, 0.45) 50%,
    rgba(247, 185, 16, 0.25) 80%,
    transparent 100%
  );
  position: relative;
  z-index: 2;
}
.section-divider::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 9px;
  background: radial-gradient(ellipse, rgba(247, 185, 16, 0.15) 0%, transparent 70%);
  filter: blur(4px);
}

/* ---------- HERO ---------- */
/* Le ciel dégradé et le soleil CSS sont retirés : la séquence vidéo les remplace. */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 130px;
  background: none;
}
#sun {
  display: none;
}
/* Une seule colonne depuis le retrait de l'illustration : le texte n'est plus
   bridé à la moitié de la largeur, les deux CTA tiennent donc sur une ligne. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}
.hero-copy {
  max-width: 880px;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5.3vw, 4.2rem);
  font-weight: 900;
  margin-bottom: 22px;
}
.hero-copy h1 .sun-word {
  background: linear-gradient(
    100deg,
    var(--solar) 20%,
    #ffe9a8 50%,
    var(--solar) 80%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--solar);
  animation: shine 5s linear infinite;
}
@keyframes shine {
  to {
    background-position: -200% 0;
  }
}
.hero-copy p {
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  color: rgba(234, 242, 250, 0.84);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  align-items: center;
}
.hero-badges {
  display: flex;
  gap: 26px;
  margin-top: 42px;
  flex-wrap: wrap;
}
.hero-badges div {
  font-size: 0.86rem;
  color: rgba(234, 242, 250, 0.72);
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero-badges svg {
  width: 18px;
  height: 18px;
  flex: none;
}
/* L'illustration de maison a été retirée : la séquence vidéo occupe le hero. */
.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(234, 242, 250, 0.6);
}
.scroll-hint span {
  display: block;
  width: 2px;
  height: 38px;
  background: linear-gradient(var(--solar), transparent);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: top;
  }
  56% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ---------- Sections claires ---------- */
/* Anciennes sections claires : plus de fond crème, texte inversé en clair. */
.light {
  background: none;
  color: #eaf2fa;
}
.light h2 {
  color: #fff;
}
.light .lead {
  color: rgba(234, 242, 250, 0.82);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 38px;
}
.card {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  padding: 36px 30px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition:
    transform 0.35s,
    box-shadow 0.35s,
    background 0.35s,
    border-color 0.35s;
}
.card:hover {
  transform: translateY(-8px);
  background: var(--glass-hi);
  box-shadow:
    0 34px 74px rgba(2, 8, 16, 0.55),
    0 0 30px -5px rgba(247, 185, 16, 0.15);
  border-color: rgba(247, 185, 16, 0.3);
}
.card .ico {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--solar), var(--amber));
  box-shadow: 0 10px 24px -8px rgba(247, 185, 16, 0.6);
}
.card .ico svg {
  width: 28px;
  height: 28px;
  stroke: var(--navy-deep);
}
.card h3 {
  font-size: 1.22rem;
  color: #fff;
  margin-bottom: 10px;
}
.card p {
  color: rgba(234, 242, 250, 0.78);
  font-size: 0.97rem;
}

/* ---------- STATS ---------- */
#stats {
  background: none;
  overflow: hidden;
}
/* Les 4 statistiques sur une seule ligne. */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}
.stat {
  text-align: center;
  padding: 30px 14px 26px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition:
    transform 0.35s,
    background 0.35s,
    border-color 0.35s;
}
.stat:hover {
  transform: translateY(-6px);
  background: var(--glass-hi);
}
/* Stats glow when count completes */
.stat.counted {
  border-color: rgba(247, 185, 16, 0.35);
}
.stat.counted b {
  filter: drop-shadow(0 0 18px rgba(247, 185, 16, 0.5));
}
/* Taille calibrée pour que les 4 cases tiennent sur une ligne (~276px chacune). */
.stat b {
  font-family: "Archivo", sans-serif;
  font-size: clamp(2.6rem, 4.9vw, 84px);
  font-weight: 900;
  color: var(--solar);
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  line-height: 0.95;
  margin-bottom: 10px;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 40px rgba(247, 185, 16, 0.3);
  transition: filter 0.6s ease;
}
.stat b .aff {
  font-size: clamp(1rem, 1.5vw, 26px);
  opacity: 0.95;
  letter-spacing: 0;
}
.stat b .aff.pre {
  margin-right: 3px;
}
.stat b .aff.unit {
  margin-left: 8px;
}
.stat b .aff.pct {
  margin-left: 2px;
}
/* `>` indispensable : sans lui cette règle attrape aussi .count dans le <b>
   et écrase la taille du chiffre par celle du libellé. */
.stat > span {
  font-size: clamp(0.72rem, 0.88vw, 0.86rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(234, 242, 250, 0.78);
  display: block;
  text-wrap: balance;
}

/* ---------- SERVICES ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 38px;
}
.svc {
  position: relative;
  border-radius: var(--radius);
  padding: 38px 30px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-brd);
  transition: transform 0.35s, border-color 0.35s;
}
.svc:hover {
  transform: translateY(-8px);
  border-color: rgba(247, 185, 16, 0.3);
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 90% at 50% -10%,
    rgba(247, 185, 16, 0.22),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.4s;
}
.svc:hover::before {
  opacity: 1;
}
.svc .big-ico {
  margin-bottom: auto;
  font-size: 0;
}
.svc .big-ico svg {
  width: 52px;
  height: 52px;
  stroke: var(--solar);
}
.svc h3 {
  font-size: 1.35rem;
  margin: 26px 0 10px;
}
.svc p {
  color: rgba(234, 242, 250, 0.72);
  font-size: 0.95rem;
}
.pillars {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
  justify-content: center;
}
.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  background: rgba(247, 185, 16, 0.1);
  border: 1px solid rgba(247, 185, 16, 0.35);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--solar-soft);
}

/* ---------- ÉTAPES ---------- */
.timeline {
  position: relative;
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 6%;
  right: 6%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--solar), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s cubic-bezier(0.2, 0.65, 0.25, 1);
}
.timeline.in::before {
  transform: scaleX(1);
}
.step {
  text-align: center;
  padding: 28px 20px 26px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition:
    transform 0.35s,
    background 0.35s;
}
.step:hover {
  transform: translateY(-6px);
  background: var(--glass-hi);
}
.step .dot {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 3px solid var(--solar);
  color: var(--navy);
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 26px -10px rgba(247, 185, 16, 0.7);
  animation: dotRipple 3s ease-in-out infinite;
}
@keyframes dotRipple {
  0%, 100% { box-shadow: 0 10px 26px -10px rgba(247, 185, 16, 0.7); }
  50% { box-shadow: 0 10px 26px -10px rgba(247, 185, 16, 0.7), 0 0 0 8px rgba(247, 185, 16, 0.08); }
}
.step h3 {
  color: #fff;
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.step p {
  color: rgba(234, 242, 250, 0.75);
  font-size: 0.92rem;
}

/* ---------- FAQ ---------- */
#faq {
  background: none;
}
.faq-list {
  margin-top: 34px;
  display: grid;
  gap: 14px;
  max-width: 900px;
}
.faq-item {
  border: 1px solid var(--glass-brd);
  border-radius: 18px;
  background: var(--glass);
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition:
    border-color 0.3s,
    background 0.3s;
}
.faq-item.open {
  border-color: rgba(247, 185, 16, 0.45);
  background: rgba(22, 67, 110, 0.62);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: #eaf2fa;
  text-align: left;
  cursor: pointer;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1.04rem;
  font-weight: 700;
  font-family: "Archivo", sans-serif;
  letter-spacing: -0.01em;
}
.faq-q:hover {
  color: var(--solar-soft);
}
.faq-ico {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(247, 185, 16, 0.5);
  display: grid;
  place-items: center;
  transition:
    transform 0.35s,
    background 0.35s;
}
.faq-item.open .faq-ico {
  transform: rotate(45deg);
  background: var(--solar);
}
.faq-ico svg {
  width: 14px;
  height: 14px;
  stroke: var(--solar);
  stroke-width: 2.6;
  transition: stroke 0.35s;
}
.faq-item.open .faq-ico svg {
  stroke: var(--navy-deep);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.2, 0.65, 0.25, 1);
}
.faq-a p {
  padding: 0 26px 26px;
  color: rgba(234, 242, 250, 0.75);
  font-size: 0.98rem;
}

/* ---------- FORMULAIRE MULTI-ÉTAPES ---------- */
#lead {
  background: none;
  overflow: hidden;
}
.lead-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 3;
}
.lead-points {
  list-style: none;
  margin-top: 30px;
  display: grid;
  gap: 16px;
}
.lead-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: rgba(234, 242, 250, 0.88);
}
.lead-points svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
}
/* Verre assombri : sans fond de section, le formulaire doit porter son propre contraste. */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 28px;
  padding: clamp(26px, 3.6vw, 42px);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
/* Le bloc de texte à gauche du formulaire flotte lui aussi sur un panneau. */
.lead-copy {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 28px;
  padding: clamp(26px, 3vw, 36px);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

/* barre de progression */
.progress {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  margin-bottom: 8px;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--solar), var(--amber));
  transition: width 0.45s cubic-bezier(0.2, 0.65, 0.25, 1);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: rgba(234, 242, 250, 0.6);
  margin-bottom: 22px;
  letter-spacing: 0.04em;
}
#progressWrap {
  display: none;
}

/* écrans */
.screen {
  display: none;
  animation: fadeUp 0.45s cubic-bezier(0.2, 0.65, 0.25, 1);
}
.screen.active {
  display: block;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.screen h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 10px;
}
.screen .q-sub {
  font-size: 0.92rem;
  color: rgba(234, 242, 250, 0.7);
  margin-bottom: 24px;
}

/* écran intro */
.intro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}
.intro-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(247, 185, 16, 0.13);
  border: 1px solid rgba(247, 185, 16, 0.35);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--solar-soft);
}
.intro-badges svg {
  width: 15px;
  height: 15px;
}
.zone-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--solar);
  margin-bottom: 14px;
}

/* options */
.opts {
  display: grid;
  gap: 12px;
}
.opts.two {
  grid-template-columns: 1fr 1fr;
}
.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 17px 20px;
  border-radius: 16px;
  background: rgba(8, 21, 36, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  color: #eaf2fa;
  font-size: 0.97rem;
  font-weight: 600;
  transition:
    border-color 0.22s,
    background 0.22s,
    transform 0.22s;
}
.opt:hover {
  border-color: var(--solar);
  background: rgba(247, 185, 16, 0.1);
  transform: translateX(4px);
}
.opt.selected {
  border-color: var(--solar);
  background: rgba(247, 185, 16, 0.16);
}
.opt .mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  transition:
    border-color 0.22s,
    background 0.22s;
}
.opt:hover .mark,
.opt.selected .mark {
  border-color: var(--solar);
  background: var(--solar);
}
.opt .mark svg {
  width: 12px;
  height: 12px;
  stroke: var(--navy-deep);
  stroke-width: 3.4;
  opacity: 0;
  transition: opacity 0.22s;
}
.opt:hover .mark svg,
.opt.selected .mark svg {
  opacity: 1;
}
.opt small {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: rgba(234, 242, 250, 0.6);
  margin-top: 2px;
}

/* champs */
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: rgba(234, 242, 250, 0.85);
}
.field input,
.field textarea {
  width: 100%;
  padding: 15px 17px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.97rem;
  background: rgba(8, 21, 36, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  outline: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.field textarea {
  resize: vertical;
  min-height: 80px;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--solar);
  box-shadow: 0 0 0 4px rgba(247, 185, 16, 0.18);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(234, 242, 250, 0.4);
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.err {
  color: #ffb4a2;
  font-size: 0.82rem;
  margin-top: 8px;
  display: none;
}
.err.show {
  display: block;
}
.rgpd {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: rgba(234, 242, 250, 0.72);
  margin: 6px 0 20px;
  cursor: pointer;
}
.rgpd input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--solar);
  flex: none;
}

/* navigation */
.nav-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.back-btn {
  background: none;
  border: none;
  color: rgba(234, 242, 250, 0.6);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 4px;
  transition: color 0.22s;
}
.back-btn:hover {
  color: var(--solar-soft);
}
.nav-row .btn {
  flex: 1;
}
.or {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(234, 242, 250, 0.5);
  font-size: 0.8rem;
  margin: 20px 0 14px;
}
.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  background: #25d366;
  color: #08331a;
  transition: transform 0.25s;
  box-shadow: 0 10px 28px -10px rgba(37, 211, 102, 0.7);
}
.wa-btn:hover {
  transform: translateY(-3px);
}
.form-note {
  font-size: 0.78rem;
  color: rgba(234, 242, 250, 0.55);
  margin-top: 16px;
  text-align: center;
}

/* écrans finaux */
.final-ico {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--solar), var(--amber));
  box-shadow: 0 16px 40px -12px rgba(247, 185, 16, 0.7);
}
.final-ico svg {
  width: 38px;
  height: 38px;
  stroke: var(--navy-deep);
  stroke-width: 3;
}
.final-ico.soft {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.final-ico.soft svg {
  stroke: var(--solar);
}
.recap {
  background: rgba(8, 21, 36, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 22px 0;
  font-size: 0.88rem;
}
.recap div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  color: rgba(234, 242, 250, 0.75);
}
.recap div b {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

/* WhatsApp flottant */
#waFloat {
  position: fixed;
  right: 22px;
  bottom: calc(22px + var(--cookie-banner-h));
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px -8px rgba(37, 211, 102, 0.75);
  animation: pulse 2.6s ease-in-out infinite;
  transition: bottom 0.3s ease;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}
#waFloat svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
/* WhatsApp tooltip */
.wa-tooltip {
  position: fixed;
  right: 90px;
  bottom: calc(34px + var(--cookie-banner-h));
  z-index: 60;
  padding: 10px 18px;
  background: rgba(8, 21, 36, 0.9);
  border: 1px solid var(--glass-brd);
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #eaf2fa;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s, transform 0.3s, bottom 0.3s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.wa-tooltip.visible {
  opacity: 1;
  transform: translateX(0);
}
.wa-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(8, 21, 36, 0.9);
  border-right: 1px solid var(--glass-brd);
  border-top: 1px solid var(--glass-brd);
}

/* ---------- Bandeau de consentement aux cookies ---------- */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 920px;
  margin: 0 auto;
  background: rgba(8, 21, 36, 0.96);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 22px 26px;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-consent[hidden] {
  display: none;
}
.cookie-consent.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-consent-text {
  flex: 1 1 320px;
  font-size: 0.92rem;
  color: #eaf2fa;
  line-height: 1.55;
}
.cookie-consent-text a {
  color: var(--solar-soft);
  text-decoration: underline;
}
.cookie-consent-actions {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}
.cookie-btn {
  min-width: 130px;
}
@media (max-width: 640px) {
  .cookie-consent {
    padding: 18px;
  }
  .cookie-consent-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ---------- FOOTER ---------- */
/* Footer sans bande pleine : le contenu flotte dans son propre panneau. */
footer {
  background: none;
  padding: 40px clamp(20px, 6vw, 72px) 48px;
  position: relative;
  z-index: 2;
}
.foot-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 44px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  padding: 44px clamp(24px, 4vw, 40px);
}
footer img {
  height: 58px;
  width: auto;
  margin-bottom: 18px;
}
/* Badge de certification : fond blanc car le logo QualiPV est fait pour du clair. */
.certifs {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
/* 80px : lisible, et sous la hauteur native de 159px donc sans flou. */
.certifs img {
  height: 80px;
  width: auto;
  margin: 0;
  background: #fff;
  border-radius: 12px;
  padding: 9px 14px;
  box-shadow: 0 10px 26px rgba(2, 8, 16, 0.35);
}
footer p,
footer a {
  color: rgba(234, 242, 250, 0.65);
  font-size: 0.92rem;
}
footer h4 {
  font-family: "Archivo", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--solar);
  margin-bottom: 16px;
}
footer ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
/* Footer link hover underline animation */
footer ul a {
  position: relative;
  display: inline-block;
}
footer ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--solar-soft);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
footer ul a:hover::after {
  width: 100%;
}
footer a:hover {
  color: var(--solar-soft);
}
.copy {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px clamp(24px, 4vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(234, 242, 250, 0.55);
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-top-color: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 var(--radius) var(--radius);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hamburger {
    display: block;
  }
  header nav {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .cards,
  .svc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
  }
  .timeline::before {
    display: none;
  }
  .lead-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .cards,
  .svc-grid,
  .timeline,
  .foot-grid,
  .grid2,
  .opts.two {
    grid-template-columns: 1fr;
  }
  /* Trop étroit pour deux boutons côte à côte : on autorise le retour à la ligne. */
  .hero-ctas {
    flex-wrap: wrap;
  }
  .hero-ctas .btn {
    flex: 1 1 100%;
  }
  header .brand img {
    height: 38px;
  }
  .faq-q {
    font-size: 0.98rem;
    padding: 20px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
  #scrollProgress {
    display: none;
  }
}

/* ---------- Mobile : neutralise le verre dépoli (perf de scroll) ----------
   Sur mobile, la barre d'adresse fait varier la hauteur du viewport en
   continu ; chaque panneau en backdrop-filter doit alors être reflouté en
   plein écran à chaque frame, ce qui accroche le défilement. On désactive
   le flou et on compense visuellement en montant l'alpha du fond existant
   (même teinte, juste plus opaque). Le desktop (>900px) garde le verre
   dépoli intact. */
@media (max-width: 900px) {
  .glass-panel {
    background: rgba(8, 21, 36, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  header.scrolled {
    background: rgba(8, 21, 36, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .mobile-nav {
    background: rgba(8, 21, 36, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .card {
    background: rgba(8, 21, 36, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .stat {
    background: rgba(8, 21, 36, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .svc {
    background: rgba(8, 21, 36, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .step {
    background: rgba(8, 21, 36, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .faq-item {
    background: rgba(8, 21, 36, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .glass {
    background: rgba(8, 21, 36, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .lead-copy {
    background: rgba(8, 21, 36, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .wa-tooltip {
    background: rgba(8, 21, 36, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .wa-tooltip::after {
    background: rgba(8, 21, 36, 0.97);
  }
  .foot-grid {
    background: rgba(8, 21, 36, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .copy {
    background: rgba(8, 21, 36, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .cookie-consent {
    background: rgba(8, 21, 36, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
