/* =========================================================
   Groupe Levinergy — Site test
   Conforme à la charte graphique v.1 — 2026
   ========================================================= */

:root {
  /* Palette officielle Levinergy */
  --bleu-levinergy: #02234C;   /* Couleur signature */
  --blanc: #FFFFFF;
  --encre: #0E1A2E;            /* Texte principal / fond "nuit profonde" */
  --creme: #F6F4EF;            /* Arrière-plan */
  --graphite: #6B6F78;         /* Texte secondaire */
  --pierre: #D9D6CC;           /* Filets */

  /* Variantes utilitaires */
  --bleu-deep: #01152F;        /* Variante plus profonde pour gradients */
  --bleu-mid: #0A3570;         /* Bleu intermédiaire pour accents */
  --bleu-light: #5B7AAE;       /* Bleu clair pour highlights */
  --bleu-haze: #D7E0EE;        /* Bleu très pâle pour fonds */
  --bleu-hover: #03315C;
  --bleu-glow: rgba(2, 35, 76, 0.08);
  --creme-dark: #ECE8DD;
  --white-12: rgba(255, 255, 255, 0.12);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-80: rgba(255, 255, 255, 0.8);

  /* Spacing */
  --container: 1200px;
  --radius: 8px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* =========================================================
   TYPOGRAPHY — Charte Levinergy
   ========================================================= */

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

.display {
  font-size: clamp(40px, 5.5vw, 74px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 20px 0 16px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.5;
  color: var(--white-80);
  max-width: 560px;
  margin: 0 auto 28px;
  font-weight: 300;
}

.display .light {
  display: block;
  font-weight: 300;
  font-size: 0.56em;
  letter-spacing: 0;
  margin-top: 12px;
  line-height: 1.2;
  color: var(--white-80);
}

/* Accent en vert pâle pour mettre en avant un mot clef dans le hero */
.display .light-accent {
  display: block;
  font-weight: 300;
  color: var(--bleu-light);
}

/* Badges trust sous le hero */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.hero-badge {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white-80);
  padding: 8px 16px;
  border: 1px solid var(--white-12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* =========================================================
   NOS SOLUTIONS CEE (inspiré GEM Isolation)
   ========================================================= */

.solutions-cee {
  padding: 120px 0;
  background: var(--blanc);
  position: relative;
}

.solutions-cee .section-title { color: var(--bleu-levinergy); }
.solutions-cee .overline { color: var(--graphite); }
.solutions-cee .section-sub {
  max-width: 640px;
  margin: 0 0 56px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* Cartes plus compactes quand elles sont à 5 par ligne */
.solutions-grid .solution-card .solution-image { aspect-ratio: 3 / 2; }
.solutions-grid .solution-body { padding: 18px 18px 22px; }
.solutions-grid .solution-tag { font-size: 10px; padding: 4px 8px; margin-bottom: 10px; }
.solutions-grid h3 { font-size: 17px; line-height: 1.25; margin-bottom: 6px; }
.solutions-grid .solution-card p {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.solutions-grid .solution-cee { font-size: 11px; padding-top: 10px; }

/* =========================================================
   Filtres par catégorie (chips + fade des cartes)
   ========================================================= */

.solutions-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 36px;
  padding: 6px;
  background: var(--creme);
  border: 1px solid var(--pierre);
  border-radius: 999px;
  width: fit-content;
}

.sf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--graphite);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  white-space: nowrap;
}

.sf-chip:hover { color: var(--bleu-levinergy); }

.sf-chip.is-active {
  background: var(--bleu-levinergy);
  color: var(--blanc);
  box-shadow: 0 4px 14px rgba(2, 35, 76, 0.18);
}

.sf-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(2, 35, 76, 0.08);
  color: var(--bleu-levinergy);
  font-size: 11px;
  font-weight: 700;
  transition: all 0.25s;
}

.sf-chip.is-active .sf-count {
  background: rgba(255, 255, 255, 0.22);
  color: var(--blanc);
}

/* État filtré : carte masquée = scale + opacité + taille 0 */
.solution-card {
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.solution-card.is-hidden {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.solution-card {
  background: var(--creme);
  border: 1px solid var(--pierre);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.35s,
              border-color 0.35s;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(2, 35, 76, 0.12);
  border-color: var(--bleu-levinergy);
}

.solution-image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--bleu-levinergy);
  filter: grayscale(25%) brightness(0.88);
  transition: filter 0.4s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.solution-card:hover .solution-image {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.04);
}

/* 10 solutions — images Unsplash (mêmes thèmes que GEM Isolation) */
.solution-image-1 { background-image: url("https://images.unsplash.com/photo-1565043589221-1a6fd9ae45c7?q=80&w=1200&auto=format&fit=crop"); }       /* Déstratification : entrepôt / grand volume */
.solution-image-2 { background-image: url("https://images.unsplash.com/photo-1581094288338-2314dddb7ece?q=80&w=1200&auto=format&fit=crop"); }       /* Calorifugeage : tuyauterie isolée */
.solution-image-3 { background-image: url("https://images.unsplash.com/photo-1581092160562-40aa08e78837?q=80&w=1200&auto=format&fit=crop"); }       /* Points singuliers : vannes */
.solution-image-4 { background-image: url("https://images.unsplash.com/photo-1504280390367-361c6d9f38f4?q=80&w=1200&auto=format&fit=crop"); }       /* Plancher bas : parking/ss-sol */
.solution-image-5 { background-image: url("https://images.unsplash.com/photo-1558618666-fcd25c85cd64?q=80&w=1200&auto=format&fit=crop"); }       /* Combles : toiture */
.solution-image-6 { background-image: url("https://images.unsplash.com/photo-1776860150305-108ed577d7d4?q=80&w=1200&auto=format&fit=crop"); }       /* PAC : unité extérieure */
.solution-image-7 { background-image: url("https://images.unsplash.com/photo-1714596282575-82d224db8c70?q=80&w=1200&auto=format&fit=crop"); }       /* GTB : armoire/automate */
.solution-image-8 { background-image: url("https://images.unsplash.com/photo-1507582020474-9a35b7d455d9?q=80&w=1200&auto=format&fit=crop"); }       /* Éclairage LED */
.solution-image-9 { background-image: url("https://images.unsplash.com/photo-1581092580497-e0d23cbdf1dc?q=80&w=1200&auto=format&fit=crop"); }       /* Air comprimé : compresseur */
.solution-image-10 { background-image: url("https://images.unsplash.com/photo-1581092921461-eab62e97a780?q=80&w=1200&auto=format&fit=crop"); }      /* Régulation HP/BP : manomètres */

/* Tag featured pour la N°1 (Déstratification) */
.solution-tag-featured {
  background: var(--bleu-levinergy) !important;
  color: var(--blanc) !important;
  box-shadow: 0 2px 8px rgba(2, 35, 76, 0.25);
}

.solution-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.solution-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bleu-levinergy);
  padding: 5px 10px;
  background: var(--bleu-haze);
  border-radius: 6px;
  margin-bottom: 14px;
}

.solution-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--encre);
  margin-bottom: 8px;
}

.solution-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--graphite);
  margin: 0 0 16px;
  flex-grow: 1;
}

.solution-cee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bleu-levinergy);
  padding-top: 12px;
  border-top: 1px solid var(--pierre);
}

.solution-cee::before {
  content: '◆';
  color: var(--bleu-light);
  font-size: 10px;
}

/* Mention conditionnelle "(selon éligibilité)" — italique fine */
.cee-cond {
  font-style: italic;
  font-weight: 400;
  font-size: 0.78em;
  opacity: 0.75;
  letter-spacing: 0;
  margin-left: 4px;
  white-space: nowrap;
}

/* =========================================================
   BANDEAU FINANCEMENT CEE
   ========================================================= */

.financement-cee {
  padding: 120px 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, var(--bleu-mid) 0%, var(--bleu-levinergy) 50%, var(--encre) 100%);
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.accent-bright {
  color: #7BFFCB;
  font-weight: 700;
}

/* Header centré : overline + titre + lead */
.financement-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
}
.financement-head .section-title {
  color: var(--blanc);
  margin: 12px 0 20px;
}
.financement-head .lead {
  color: var(--white-80);
  margin: 0 auto;
  max-width: 680px;
}

/* Grille 3 cards stat — DA cohérente avec décret-tertiaire */
.financement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 52px;
}

.financement-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 40px 32px 36px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.financement-card:hover {
  border-color: rgba(123, 255, 203, 0.35);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.financement-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(123, 255, 203, 0.18) 0%, rgba(45, 153, 104, 0.06) 100%);
  border: 1px solid rgba(123, 255, 203, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7BFFCB;
  font-size: 22px;
}

.financement-card-value {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(44px, 5.5vw, 64px);
  font-weight: 800;
  color: #7BFFCB;
  letter-spacing: -0.022em;
  line-height: 1;
  margin-bottom: 10px;
}

.financement-card-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blanc);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.financement-card p {
  font-size: 14px;
  color: var(--white-60);
  margin: 0;
  line-height: 1.55;
}

/* CTA final centré */
.financement-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.financement-trust {
  color: var(--white-60);
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.financement-trust i {
  color: #7BFFCB;
  font-size: 13px;
}

/* =========================================================
   CONSENT CHECKBOX (formulaire)
   ========================================================= */

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--graphite);
  cursor: pointer;
  padding: 4px 0;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--bleu-levinergy);
  cursor: pointer;
}

.contact-info a {
  color: var(--bleu-levinergy);
  text-decoration: none;
  font-weight: 600;
}
.contact-info a:hover { text-decoration: underline; }

/* =========================================================
   FOOTER LEGAL (infos Pappers)
   ========================================================= */

.footer-legal {
  margin-top: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--white-12);
  border-bottom: 1px solid var(--white-12);
}

.footer-legal p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--white-60);
  margin: 0;
}

.footer-legal strong {
  color: var(--blanc);
  letter-spacing: 0.05em;
}

.footer-address a {
  color: var(--white-60);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-address a:hover { color: var(--blanc); }

/* =========================================================
   RESPONSIVE pour nouvelles sections
   ========================================================= */

/* Laptop moyen : 4 colonnes (10 cartes = 3 rangs, le dernier avec 2 cartes) */
@media (max-width: 1200px) {
  .solutions-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 900px) {
  .financement-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Tablette / petit laptop : 2 colonnes */
@media (max-width: 768px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .solutions-cee { padding: 72px 0; }
  .financement-cee { padding: 72px 0; }

  /* #2 — CARROUSEL solutions sur mobile : scroll horizontal swipe + snap */
  .solutions-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 4px 24px 14px;
    margin: 0 -24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .solutions-grid::-webkit-scrollbar { display: none; }
  .solutions-grid .solution-card {
    scroll-snap-align: start;
    flex: 0 0 82vw;
    max-width: 320px;
  }
  .solutions-grid .solution-body { padding: 18px 18px 22px; }
  .solutions-grid h3 { font-size: 17px; }
  .solutions-grid .solution-card p { font-size: 13px; margin-bottom: 12px; }

  /* Hint visuel : indicateur de swipe sous le carrousel */
  .solutions-cee .container::after {
    content: '← Faites glisser pour explorer →';
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--graphite);
    opacity: 0.8;
  }

  /* #6 — FILTRES : scroll horizontal sans bordure conteneur sur mobile */
  .solutions-filters {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin: 0 -24px 28px;
    padding: 0 24px;
    border: none;
    background: transparent;
    border-radius: 0;
  }
  .solutions-filters::-webkit-scrollbar { display: none; }
  .sf-chip {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 13px;
    background: var(--blanc);
    border: 1px solid var(--pierre);
  }
  .sf-chip.is-active {
    border-color: var(--bleu-levinergy);
  }

  /* #3 — BADGES HERO : empilés en colonne, plus larges */
  .hero-badges {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 24px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-badge {
    font-size: 12px;
    padding: 9px 16px;
    text-align: center;
  }

  .financement-card { padding: 32px 24px; }
  .financement-card-value { font-size: 44px; }
}

/* #9 — Cacher le bouton CTA inline sur très petit écran (le burger contient le menu) */
@media (max-width: 480px) {
  .nav-cta { display: none; }
}

.section-title {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  position: relative;
}

/* Ligne qui se dessine sous les titres de section */
.section-title.center::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: currentColor;
  margin: 20px auto 0;
  opacity: 0.4;
  transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}

.section-title.center.title-revealed::after { width: 48px; }

.section-sub {
  color: var(--graphite);
  font-size: 17px;
  max-width: 720px;
  margin: 0 auto 56px;
  font-weight: 400;
}

/* Intertitre — Montserrat Bold MAJ, +18% interlettrage */
.overline {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 20px;
}

.overline.on-dark { color: var(--white-60); }

.overline.center,
.section-title.center,
.section-sub.center {
  display: block;
  text-align: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--white-20);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-80);
}

.tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blanc);
}

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--white-80);
  max-width: 640px;
  margin: 0 auto 40px;
  font-weight: 300;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}

/* Effet shine qui suit le curseur */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 120px at var(--mx) var(--my),
    rgba(255, 255, 255, 0.25),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.btn:hover::before { opacity: 1; }

.btn > * { position: relative; z-index: 1; }

.btn-sm { padding: 11px 22px; font-size: 13px; }

/* CTA principal : blanc sur fond bleu */
.btn-primary {
  background: var(--blanc);
  color: var(--bleu-levinergy);
}

.btn-primary:hover {
  background: var(--creme);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Variante sur fond clair */
.btn-primary-dark {
  background: var(--bleu-levinergy);
  color: var(--blanc);
}

.btn-primary-dark:hover {
  background: var(--bleu-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--bleu-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--blanc);
  border-color: var(--white-20);
}

.btn-ghost:hover {
  border-color: var(--blanc);
  background: var(--white-12);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--bleu-levinergy);
  border-color: var(--pierre);
}

.btn-ghost-dark:hover {
  border-color: var(--bleu-levinergy);
  background: var(--blanc);
}

/* =========================================================
   NAV
   ========================================================= */

.nav-wrap {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), top 0.3s;
}

.nav-wrap.scrolled { top: 12px; }
.nav-wrap.scrolled .nav {
  background: rgba(2, 35, 76, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: var(--container);
  padding: 10px 14px 10px 28px;
  background: rgba(2, 35, 76, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-12);
  border-radius: 999px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  color: var(--blanc);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
  opacity: 0.85;
}

.nav-links a:hover { opacity: 1; }

/* =========================================================
   MEGA-MENU NOS SOLUTIONS (style GEM Isolation)
   ========================================================= */

.nav-mega { position: relative; }

.nav-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-mega-trigger i {
  font-size: 10px;
  transition: transform 0.25s;
}

.nav-mega:hover .nav-mega-trigger i,
.nav-mega.is-open .nav-mega-trigger i {
  transform: rotate(180deg);
}

.nav-mega-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(760px, 90vw);
  background: var(--blanc);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(2, 35, 76, 0.22), 0 8px 20px rgba(2, 35, 76, 0.08);
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 60;
  border: 1px solid rgba(2, 35, 76, 0.08);
}

/* Pont invisible pour que le hover ne se coupe pas entre trigger et panel */
.nav-mega-panel::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0; right: 0;
  height: 18px;
}

.nav-mega:hover .nav-mega-panel,
.nav-mega.is-open .nav-mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   MEGA-MENU — REFONTE V3 : grosses icônes colorées propres
   Sélecteurs scopés via .mega-text pour éviter conflits
   ========================================================= */

/* --- Couleur de l'icône par data-color (appliquée sur l'élément <i>) --- */
.mega-item .mega-icon i,
.mega-featured .mega-icon i {
  font-size: inherit;
  color: inherit;
  line-height: 1;
}

.mega-icon[data-color="bleu"]         { color: #4A6CA0; }
.mega-icon[data-color="vert"]         { color: #2D9968; }
.mega-icon[data-color="violet"]       { color: #7C53C5; }
.mega-icon[data-color="orange"]       { color: #C76A38; }
.mega-icon[data-color="rose"]         { color: #BD5184; }
.mega-icon[data-color="beige"]        { color: #8E6F4A; }
.mega-icon[data-color="vert-fonce"]   { color: #1F7D4A; }
.mega-icon[data-color="orange-fonce"] { color: #B14820; }
.mega-icon[data-color="jaune"]        { color: #B58D1A; }

/* --- Solution phare --- */
.mega-featured {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(77, 223, 165, 0.15) 0%, rgba(45, 153, 104, 0.06) 100%);
  border: 1px solid rgba(45, 153, 104, 0.22);
  border-radius: 16px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: all 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  opacity: 1 !important;
  position: relative;
  overflow: hidden;
}
.mega-featured:hover {
  background: linear-gradient(135deg, rgba(77, 223, 165, 0.24) 0%, rgba(45, 153, 104, 0.10) 100%);
  border-color: rgba(45, 153, 104, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(45, 153, 104, 0.16);
}
.mega-featured:hover .mega-icon-featured i { transform: scale(1.08) rotate(-4deg); }

.mega-featured > div > strong {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: #1a6e42;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.mega-featured > div > span {
  display: block;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.mega-badge {
  display: inline-block;
  padding: 3px 9px;
  background: #1a6e42;
  color: var(--blanc);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  box-shadow: 0 2px 6px rgba(26, 110, 66, 0.3);
}

/* --- Grille items --- */
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px;
  border-radius: 11px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
  opacity: 1 !important;
  border: 1px solid transparent;
}
.mega-item:hover {
  background: rgba(2, 35, 76, 0.045);
  border-color: rgba(2, 35, 76, 0.08);
}
.mega-item:hover .mega-icon i {
  transform: scale(1.12);
}

.mega-item > div > strong {
  display: block;
  color: var(--encre);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.005em;
}
.mega-item > div > span {
  display: block;
  color: var(--graphite);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

/* --- Icône standard : juste l'icône, BIG, en couleur, pas de carré --- */
.mega-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-size: 30px;
  color: var(--bleu-levinergy);
  background: transparent;
}
.mega-icon i {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --- Icône phare : grosse bulle verte vibrante avec icône blanche --- */
.mega-icon-featured {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #5EE6B0 0%, #2D9968 100%);
  color: var(--blanc);
  font-size: 28px;
  border-radius: 16px;
  box-shadow:
    0 8px 20px rgba(45, 153, 104, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* --- Mega secteurs : 3 cols --- */
.nav-mega-panel-sectors { width: min(820px, 92vw); }
.mega-grid-sectors { grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
@media (max-width: 980px) { .mega-grid-sectors { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, #0a3570 0%, #02234C 45%, #01152F 100%);
  color: var(--blanc);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Grille de points statique en fond */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.14) 1px, transparent 0);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Canvas des particules flottantes — opacité pleine */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
}

/* Orbe lumineux qui se déplace en fond */
.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle, rgba(91, 122, 174, 0.35) 0%, rgba(10, 53, 112, 0.15) 40%, transparent 70%);
  filter: blur(30px);
  animation: heroOrbit 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

/* 2e orbe côté opposé */
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background:
    radial-gradient(circle, rgba(10, 53, 112, 0.5) 0%, rgba(91, 122, 174, 0.2) 40%, transparent 70%);
  filter: blur(40px);
  animation: heroOrbit2 22s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroOrbit {
  0%   { transform: translate(-50%, 0) scale(1); }
  50%  { transform: translate(-45%, 40px) scale(1.1); }
  100% { transform: translate(-55%, -30px) scale(0.95); }
}

@keyframes heroOrbit2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, -60px) scale(1.15); }
}

/* Lignes "énergie" qui traversent le hero */
.hero-beam {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  animation: beamFall 4s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.hero-beam:nth-child(1) { left: 12%; animation-delay: 0s; }
.hero-beam:nth-child(2) { left: 33%; animation-delay: 1.2s; }
.hero-beam:nth-child(3) { left: 58%; animation-delay: 2.4s; }
.hero-beam:nth-child(4) { left: 82%; animation-delay: 3.1s; }

@keyframes beamFall {
  0%   { transform: translateY(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* =========================================================
   STATS
   ========================================================= */

.stats {
  padding: 120px 0;
  background:
    linear-gradient(180deg, var(--creme) 0%, #FDFBF5 100%);
  position: relative;
  overflow: hidden;
}

/* Accent diagonal discret en fond */
.stats::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(91, 122, 174, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.stats .section-title {
  text-align: center;
  margin-bottom: 64px;
  color: var(--bleu-levinergy);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--pierre);
  border: 1px solid var(--pierre);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-card {
  padding: 48px 40px;
  background: var(--creme);
  transition: background 0.3s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.stat-card:hover {
  background: var(--blanc);
  transform: translateY(-4px);
}

.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 72px;
  font-weight: 700;
  color: var(--bleu-levinergy);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.stat-label {
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--encre);
  margin-bottom: 16px;
}

.stat-card p {
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  font-weight: 400;
}

/* =========================================================
   EXPERTISE / CEE (grid-2 blocks)
   ========================================================= */

/* =========================================================
   PIN-SCROLL — Savoir Acheter / Savoir Consommer
   ========================================================= */

.expertise-pin {
  position: relative;
  /* 2 états → hauteur = 1.5 écran pour rester compact */
  height: 150vh;
  background: var(--blanc);
}

.pin-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

/* --- Visuel qui swap --- */
.pin-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 35, 76, 0.15);
}

.visual-frame {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.visual-frame.is-active {
  opacity: 1;
  transform: scale(1);
}

.visual-frame-1 {
  background-image:
    linear-gradient(135deg, rgba(2,35,76,0.3), rgba(10,53,112,0.5)),
    url("https://images.unsplash.com/photo-1558403194-611308249627?q=80&w=1200&auto=format&fit=crop");
}
.visual-frame-2 {
  background-image:
    linear-gradient(135deg, rgba(2,35,76,0.3), rgba(91,122,174,0.5)),
    url("https://images.unsplash.com/photo-1466611653911-95081537e5b7?q=80&w=1200&auto=format&fit=crop");
}

/* Indicateur pagination (dots) */
.pin-indicator {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.pin-indicator .dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.4s;
}

.pin-indicator .dot.is-active {
  background: var(--blanc);
  width: 44px;
}

/* --- Contenu qui swap --- */
.pin-content {
  position: relative;
  min-height: 540px;
  max-height: calc(100vh - 120px);
}

.pin-state {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

.pin-state.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pin-kicker {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--graphite);
  margin-bottom: 16px;
}

.pin-state .section-title {
  color: var(--bleu-levinergy);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
  margin-bottom: 14px;
}

.pin-state > p {
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 300;
  margin-bottom: 22px;
}

/* Espacement réduit pour la feature-list dans le pin-content */
.pin-state .feature-list { gap: 14px; }
.pin-state .feature-list li { padding-bottom: 14px; }
.pin-state .feature-list strong { font-size: 15px; margin-bottom: 2px; }
.pin-state .feature-list p { font-size: 13px; line-height: 1.5; }
.pin-state .feature-list .icon { width: 40px; height: 40px; }
.pin-state .feature-list .icon svg { width: 18px; height: 18px; }
.pin-state .feature-list li { grid-template-columns: 40px 1fr; gap: 14px; }
.pin-state .pin-kicker { font-size: 13px; margin-bottom: 10px; }
.pin-state .overline { margin-bottom: 10px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

.grid-2.reverse .expertise-visual { order: -1; }

.expertise-text .section-title {
  color: var(--bleu-levinergy);
}

.expertise-text > p {
  color: var(--graphite);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feature-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--pierre);
}

.feature-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.feature-list .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--bleu-levinergy), var(--bleu-mid));
  color: var(--blanc);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.feature-list .icon svg {
  width: 22px;
  height: 22px;
}

.feature-list li:hover .icon {
  transform: scale(1.08) rotate(-4deg);
}

.feature-list strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--encre);
  margin-bottom: 6px;
}

.feature-list p {
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.visual-card {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--bleu-levinergy)
    url("https://images.unsplash.com/photo-1497435334941-8c899ee9e8e9?q=80&w=1200&auto=format&fit=crop")
    center/cover;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s linear;
  will-change: transform;
}

.visual-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,35,76,0.2) 0%, rgba(2,35,76,0.55) 100%);
}

.visual-card-alt {
  background: var(--bleu-levinergy)
    url("https://images.unsplash.com/photo-1509391366360-2e959784a276?q=80&w=1200&auto=format&fit=crop")
    center/cover;
}

/* =========================================================
   SECTEURS
   ========================================================= */

.sectors {
  padding: 120px 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, var(--bleu-mid) 0%, var(--bleu-levinergy) 50%, var(--encre) 100%);
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

/* Grille de points subtile en fond */
.sectors::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

.sectors .section-title { color: var(--blanc); }
.sectors .section-sub { color: var(--white-60); }

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--white-12);
  border: 1px solid var(--white-12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* =========================================================
   Bento 9 cartes — grille TRULY IRRÉGULIÈRE
   4 rows × 4 cols, mix de tailles (1×1, 2×1, 2×2, 4×1)
   Layout :
     Row 1: [Santé 2×2 featured][Coll][Rés]
     Row 2: [Santé continue    ][Com][Bur]
     Row 3: [Hôt wide 2×1 ][Dis][Indu]
     Row 4: [Agriculture banner full width 4×1]
   ========================================================= */

.sectors-grid.bento-9 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.bento-9 .sector-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s;
}

.bento-9 .sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

/* 1 — Santé : grande carte featured 2×2 (top-left) */
.bento-9 .sector-card:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.bento-9 .sector-card:nth-child(1) h3 {
  font-size: 36px;
  letter-spacing: -0.02em;
}
.bento-9 .sector-card:nth-child(1) p {
  font-size: 15px;
  max-width: 80%;
}
.bento-9 .sector-card:nth-child(1) .sector-icon {
  width: 60px;
  height: 60px;
  font-size: 28px;
}

/* 6 — Hôtellerie : wide 2×1 (rangée 3, gauche) */
.bento-9 .sector-card:nth-child(6) {
  grid-column: span 2;
}
.bento-9 .sector-card:nth-child(6) h3 {
  font-size: 26px;
}

/* 9 — Agriculture : bannière pleine largeur (rangée 4) */
.bento-9 .sector-card:nth-child(9) {
  grid-column: span 4;
}
.bento-9 .sector-card:nth-child(9) h3 {
  font-size: 30px;
}
.bento-9 .sector-card:nth-child(9) p {
  font-size: 15px;
  max-width: 60%;
}

/* Tablette : 2 cols, on garde Santé en featured et Agri full width */
@media (max-width: 1024px) {
  .sectors-grid.bento-9 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .bento-9 .sector-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .bento-9 .sector-card:nth-child(6) { grid-column: span 2; }
  .bento-9 .sector-card:nth-child(9) { grid-column: span 2; }
}

/* Mobile : tout en 1 colonne empilée — rangées auto pour éviter le clip du contenu */
@media (max-width: 640px) {
  .sectors-grid.bento-9 {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }
  .bento-9 .sector-card {
    padding: 22px 20px;
    min-height: 200px;
  }
  .bento-9 .sector-card:nth-child(1),
  .bento-9 .sector-card:nth-child(6),
  .bento-9 .sector-card:nth-child(9) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .bento-9 .sector-card .sector-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    margin-bottom: 12px;
    border-radius: 12px;
  }
  .bento-9 .sector-card:nth-child(1) .sector-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
  .bento-9 .sector-card h3 { font-size: 19px; margin-bottom: 6px; }
  .bento-9 .sector-card p { font-size: 13px; max-width: 100%; margin-bottom: 14px; }
  .bento-9 .sector-card:nth-child(1) h3 { font-size: 22px; }
  .bento-9 .sector-card:nth-child(1) p,
  .bento-9 .sector-card:nth-child(9) p { font-size: 13px; max-width: 100%; }
  .bento-9 .sector-card:nth-child(6) h3,
  .bento-9 .sector-card:nth-child(9) h3 { font-size: 19px; }
  .bento-9 .sector-card .sector-badge {
    padding: 5px 11px;
    font-size: 11px;
  }
}

/* Bento — rectangle 4 colonnes × 2 rangées avec cartes irrégulières */

/* =========================================================
   Section Secteurs — 9 cartes style Eco Environnement (home)
   ========================================================= */

.sectors-9 {
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, var(--bleu-mid) 0%, var(--bleu-levinergy) 50%, var(--encre) 100%);
}

.sectors-grid.sectors-eco {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-top: 12px;
}

.sector-eco {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.sector-eco::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  opacity: 0;
  transition: all 0.3s;
}

.sector-eco:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  padding-right: 50px;
}
.sector-eco:hover::after { opacity: 0.85; right: 22px; }

.sector-eco-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.sector-eco:hover .sector-eco-icon { transform: scale(1.06); }

.sector-eco-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--blanc);
  letter-spacing: -0.005em;
}

/* Variantes couleur des icônes secteur (Eco Env palette) */
.sector-eco[data-color="vert"]        .sector-eco-icon { background: rgba(64, 187, 138, 0.22); color: #57D6A2; }
.sector-eco[data-color="rose"]        .sector-eco-icon { background: rgba(220, 124, 168, 0.22); color: #E89DC0; }
.sector-eco[data-color="bleu"]        .sector-eco-icon { background: rgba(91, 122, 174, 0.28); color: #97B7E0; }
.sector-eco[data-color="orange"]      .sector-eco-icon { background: rgba(232, 145, 95, 0.25); color: #F0AC83; }
.sector-eco[data-color="beige"]       .sector-eco-icon { background: rgba(184, 152, 110, 0.28); color: #D4B594; }
.sector-eco[data-color="orange-fonce"].sector-eco-icon { background: rgba(212, 94, 42, 0.25); color: #F08966; }
.sector-eco[data-color="vert-fonce"]  .sector-eco-icon { background: rgba(31, 125, 74, 0.28); color: #4DBB80; }
.sector-eco[data-color="violet"]      .sector-eco-icon { background: rgba(156, 113, 219, 0.25); color: #C8A8F0; }
.sector-eco[data-color="jaune"]       .sector-eco-icon { background: rgba(197, 164, 58, 0.28); color: #E5C870; }

@media (max-width: 1024px) {
  .sectors-grid.sectors-eco { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sectors-grid.sectors-eco { grid-template-columns: 1fr; }
  .sector-eco { padding: 16px 18px; }
  .sector-eco-icon { width: 48px; height: 48px; font-size: 19px; }
  .sector-eco-name { font-size: 16px; }
}

.sectors-grid.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 320px;
  gap: 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.bento .bento-std,
.bento .bento-wide,
.bento .bento-hero {
  display: flex;
  flex-direction: column;
  grid-row: span 1;
}

/* Cartes standard : 1 colonne */
.bento .bento-std { grid-column: span 1; }

/* Cartes larges avec image de fond : 2 colonnes */
.bento .bento-wide,
.bento .bento-hero { grid-column: span 2; }

.sector-card {
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sector-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(91, 122, 174, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Badge dans les cartes — poussé en bas de la carte */
.sector-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 12px;
  background: rgba(91, 122, 174, 0.15);
  border: 1px solid rgba(91, 122, 174, 0.35);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #AEC2DE;
}

/* Cartes avec image de fond */
.sector-card.has-image {
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Overlay bleu gradient pour lisibilité du texte */
.sector-card.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(2, 35, 76, 0.94) 0%,
    rgba(2, 35, 76, 0.82) 40%,
    rgba(14, 26, 46, 0.72) 100%
  );
  transition: opacity 0.4s;
  z-index: 0;
}

/* Ombre sous le titre pour mieux ressortir sur l'image */
.sector-card.has-image h3 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.sector-card.has-image p {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.sector-card.has-image:hover::before {
  opacity: 0.85;
}

.sector-card.has-image > * {
  position: relative;
  z-index: 1;
}

/* Icône des cartes image : plus présente */
.sector-card.has-image .sector-icon {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--blanc);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Texte plus contrasté sur les cartes image */
.sector-card.has-image h3 {
  color: var(--blanc);
}

.sector-card.has-image p {
  color: rgba(255, 255, 255, 0.85);
}

.sector-card.has-image .sector-badge {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--blanc);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Barre accent colorée en haut de chaque carte */
.sector-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--card-accent, var(--bleu-light));
  opacity: 0.7;
  transition: opacity 0.3s;
}

.sector-card:hover::after { opacity: 1; }

/* Chaque secteur a sa teinte d'accent */
.sector-card:nth-child(1) { --card-accent: #5B7AAE; }
.sector-card:nth-child(2) { --card-accent: #7FA0CC; }
.sector-card:nth-child(3) { --card-accent: #3E5A8B; }
.sector-card:nth-child(4) { --card-accent: #8BA8D0; }
.sector-card:nth-child(5) { --card-accent: #6B8AB8; }
.sector-card:nth-child(6) { --card-accent: #AEC2DE; }

/* Spotlight qui suit le curseur */
.sector-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 200px at var(--mx) var(--my),
    rgba(255, 255, 255, 0.08),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.sector-card:hover::before { opacity: 1; }
.sector-card:hover .sector-icon {
  background: var(--white-20);
  transform: scale(1.1);
}

.sector-card > * { position: relative; z-index: 1; }

.sector-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(91, 122, 174, 0.25), rgba(91, 122, 174, 0.08));
  border: 1px solid rgba(91, 122, 174, 0.35);
  border-radius: 14px;
  color: #AEC2DE;
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sector-icon svg {
  width: 24px;
  height: 24px;
}

.sector-card:hover .sector-icon {
  background: linear-gradient(135deg, rgba(174, 194, 222, 0.35), rgba(91, 122, 174, 0.15));
  transform: scale(1.08) rotate(-5deg);
  color: var(--blanc);
}

.sector-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--blanc);
}

.sector-card p {
  color: var(--white-60);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

/* =========================================================
   PROCESS
   ========================================================= */

.process {
  padding: 120px 0;
  background:
    linear-gradient(180deg, var(--creme) 0%, var(--bleu-haze) 100%);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(91, 122, 174, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.process .section-title { color: var(--bleu-levinergy); }

.steps {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 110px 56px 1fr;
  column-gap: 24px;
  row-gap: 12px;
  align-items: start;
  padding: 40px 0 40px 20px;
  border-bottom: 1px solid var(--pierre);
}

/* Barre accent gauche : 0 → 3px bleu, révélée au hover */
.step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--bleu-levinergy);
  border-radius: 2px;
  transition: height 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.step:hover::before { height: calc(100% - 28px); }
.step:hover .step-num { opacity: 1; }

.step:last-child { border-bottom: none; }

.step-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 72px;
  font-weight: 300;
  color: var(--bleu-levinergy);
  line-height: 1;
  letter-spacing: -0.02em;
  opacity: 0.45;
  transition: opacity 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  grid-row: 1 / span 2;
}

/* Icône de l'étape — statique, pas d'anim au hover */
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--bleu-haze);
  color: var(--bleu-levinergy);
  border-radius: 14px;
  font-size: 22px;
  margin-top: 8px;
}

.step-body {
  min-width: 0;
}

.step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bleu-levinergy);
  padding: 4px 10px;
  background: var(--bleu-haze);
  border-radius: 5px;
  margin-bottom: 10px;
}

.step-body h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  color: var(--encre);
  line-height: 1.2;
  margin: 0 0 10px;
}

.step-body > p {
  color: var(--graphite);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 680px;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 24px;
}

.step-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--encre);
  line-height: 1.5;
}

.step-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 2px;
  background: var(--bleu-light);
  border-radius: 2px;
}

.step h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--encre);
}

.step p {
  color: var(--graphite);
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  padding: 120px 0;
  background:
    linear-gradient(180deg, var(--bleu-haze) 0%, var(--blanc) 40%);
  position: relative;
  overflow: hidden;
}

.contact .section-title { color: var(--bleu-levinergy); }
.contact > .container > .grid-2 { gap: 80px; align-items: start; }

.contact-info {
  margin-top: 32px;
  padding: 28px;
  background: var(--creme);
  border-radius: var(--radius-lg);
}

.contact-info p {
  margin: 8px 0;
  color: var(--graphite);
  font-size: 14px;
}

.contact-info strong {
  color: var(--encre);
  font-weight: 700;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px;
  background: var(--creme);
  border-radius: var(--radius-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 15px 18px;
  background: var(--blanc);
  border: 1px solid var(--pierre);
  border-radius: var(--radius);
  color: var(--encre);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--graphite);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--bleu-levinergy);
  box-shadow: 0 0 0 3px var(--bleu-glow);
}

.contact-form button {
  margin-top: 8px;
  border: none;
}

/* =========================================================
   CUSTOM SELECT (remplace le dropdown natif du navigateur)
   ========================================================= */

.custom-select {
  position: relative;
  font-family: inherit;
}

.cs-button {
  width: 100%;
  padding: 15px 18px;
  background: var(--blanc);
  border: 1px solid var(--pierre);
  border-radius: var(--radius);
  color: var(--encre);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s;
}

.cs-button:hover { border-color: var(--bleu-levinergy); }

.cs-button[aria-expanded="true"] {
  border-color: var(--bleu-levinergy);
  box-shadow: 0 0 0 3px var(--bleu-glow);
}

.cs-value { color: var(--graphite); }
.cs-value.has-value { color: var(--encre); font-weight: 500; }

.cs-caret {
  color: var(--graphite);
  font-size: 12px;
  transition: transform 0.25s;
}

.cs-button[aria-expanded="true"] .cs-caret {
  transform: rotate(180deg);
  color: var(--bleu-levinergy);
}

.cs-options {
  list-style: none;
  margin: 4px 0 0;
  padding: 6px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--blanc);
  border: 1px solid var(--pierre);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(2, 35, 76, 0.12);
  z-index: 10;
  max-height: 320px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}

.cs-options.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cs-options li {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--encre);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-options li:hover,
.cs-options li[aria-selected="true"] {
  background: var(--bleu-haze);
  color: var(--bleu-levinergy);
}

.cs-options li[aria-selected="true"]::before {
  content: '✓';
  color: var(--bleu-levinergy);
  font-weight: 700;
}

/* Liens dans le consentement RGPD */
.form-consent a {
  color: var(--bleu-levinergy);
  text-decoration: underline;
}
.form-consent a:hover { color: var(--encre); }

.contact-text > p {
  color: var(--graphite);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  padding: 80px 0 40px;
  background: var(--bleu-levinergy);
  color: var(--white-80);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--white-12);
}

.footer-brand {
  margin-bottom: 20px;
  display: inline-block;
}

.footer-brand img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-tag {
  color: var(--white-60);
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 300;
  max-width: 340px;
}

.footer-address {
  color: var(--white-60);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blanc);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--white-60);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--blanc); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  color: var(--white-60);
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* =========================================================
   VIDEO CTA SECTION
   ========================================================= */

.video-cta {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 120px 0;
  overflow: hidden;
  color: var(--blanc);
}

.video-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-cta-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(2, 35, 76, 0.85) 0%, rgba(2, 35, 76, 0.55) 50%, rgba(14, 26, 46, 0.85) 100%);
  z-index: 1;
}

.video-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.video-cta-content .section-title {
  color: var(--blanc);
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 24px;
}

.video-cta-content .section-title em {
  font-style: normal;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
}

.video-cta-content .lead {
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.85);
}

.video-cta-content .overline {
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   ANIMATIONS — reveal & entrance
   ========================================================= */

/* Reveal au scroll : état initial = invisible + décalé */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero : fade-in d'entrée */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-fade-in {
  opacity: 0;
  animation: heroFadeIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

/* Parallax via CSS var (set par JS) */
.visual-card {
  transform: translateY(var(--parallax, 0));
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* =========================================================
   NAV MOBILE — Hamburger + panneau latéral
   ========================================================= */

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 51;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blanc);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop invisible : sert uniquement à capturer le tap hors du dropdown */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 49;
  pointer-events: none;
}

.nav-backdrop.is-open {
  pointer-events: auto;
}

/* =========================================================
   BREAKPOINT : Tablette large (1024px)
   ========================================================= */

@media (max-width: 1024px) {
  .container { padding: 0 28px; }

  .nav { gap: 20px; }
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 14px; }

  /* Pin-scroll : hauteur réduite pour moins de scroll */
  .expertise-pin { height: 130vh; }
  .pin-grid { gap: 48px; }

  /* Bento : on réduit à 3 cols mais hero prend toute la largeur */
  .sectors-grid.bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
  }
  .bento .bento-hero {
    grid-column: span 3;
  }

  /* Stats & Steps un peu plus compacts */
  .stat-card { padding: 36px 28px; }
  .stat-value { font-size: 56px; }
  .step { gap: 32px; padding: 32px 0; }
  .step-num { font-size: 60px; }
}

/* =========================================================
   BREAKPOINT : Tablette / Mobile (900px)
   ========================================================= */

@media (max-width: 900px) {
  .container { padding: 0 24px; }

  /* --- NAV : hamburger + dropdown --- */
  .nav { padding: 8px 10px 8px 20px; gap: 12px; position: relative; }
  .brand img { height: 30px; }

  .nav-toggle { display: flex; }

  .nav-cta {
    padding: 9px 16px;
    font-size: 12px;
  }

  /* Menu dropdown compact qui sort par le haut à côté du burger */
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 6px;
    width: 240px;
    padding: 8px;
    background: rgba(2, 35, 76, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
    z-index: 50;
    pointer-events: none;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--blanc);
    border-radius: 10px;
    opacity: 0.85;
    transition: background 0.2s, opacity 0.2s;
  }

  .nav-links a:hover,
  .nav-links a:active {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
  }

  /* Mega-menu mobile : trigger cliquable + accordéon en dessous */
  .nav-mega { display: block; }
  .nav-mega .nav-mega-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--blanc);
    border-radius: 10px;
    opacity: 0.85;
    text-decoration: none;
    transition: background 0.2s, opacity 0.2s;
    cursor: pointer;
  }
  .nav-mega .nav-mega-trigger:hover,
  .nav-mega .nav-mega-trigger:active,
  .nav-mega.is-open .nav-mega-trigger {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
  }
  .nav-mega .nav-mega-trigger i {
    display: inline-block;
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.7;
  }

  /* Panneau accordéon mobile — look proche du desktop : panneau clair, icônes colorées, texte sombre */
  .nav-mega-panel,
  .nav-mega-panel-sectors {
    position: static;
    display: none;
    width: auto;
    max-height: none;
    background: var(--blanc);
    border: 1px solid rgba(2, 35, 76, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: 8px;
    margin: 4px 4px 6px;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  .nav-mega.is-open .nav-mega-panel {
    display: block;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-mega-panel::before { display: none; }

  /* Items en liste verticale */
  .nav-mega-panel .mega-grid,
  .nav-mega-panel .mega-grid-sectors {
    display: flex;
    flex-direction: column;
    gap: 0;
    grid-template-columns: none;
  }
  .nav-mega-panel .mega-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
  }
  .nav-mega-panel .mega-item:hover,
  .nav-mega-panel .mega-item:active {
    background: rgba(2, 35, 76, 0.05);
    border: none;
  }
  /* Icône comme sur desktop : juste le pictogramme en couleur, taille moyenne */
  .nav-mega-panel .mega-icon {
    width: 32px;
    height: 32px;
    font-size: 22px;
    background: transparent;
    border: none;
    margin: 0;
    flex-shrink: 0;
  }
  /* Solutions n'a pas de data-color → on garde le bleu Levinergy de base, bien visible sur fond clair */
  .nav-mega-panel .mega-item > div > strong {
    color: var(--encre);
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 1px;
    line-height: 1.2;
  }
  .nav-mega-panel .mega-item > div > span {
    color: var(--graphite);
    font-size: 11.5px;
    line-height: 1.35;
    font-weight: 500;
  }

  /* --- HERO --- */
  .hero { padding: 110px 0 80px; min-height: auto; }
  .hero-inner { padding: 0 4px; }
  .display {
    font-size: clamp(38px, 9vw, 60px);
    margin: 20px 0 16px;
  }
  .display .light { font-size: 0.55em; margin-top: 10px; }
  .lead { font-size: 16px; margin-bottom: 28px; }
  .hero-cta { gap: 12px; }

  /* --- Grid-2 générique (expertise / contact) --- */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .grid-2.reverse .expertise-visual { order: 0; }

  /* --- Pin-scroll : désactive le sticky → stacking vertical --- */
  .expertise-pin { height: auto; }
  .pin-sticky {
    position: static;
    height: auto;
    padding: 72px 0;
  }
  .pin-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Sur mobile : on cache le pin-visual original,
     chaque pin-state porte sa propre image en ::before */
  .pin-visual { display: none; }
  .pin-indicator { display: none; }

  .pin-content {
    min-height: auto;
    max-height: none;
  }
  .pin-state {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-bottom: 56px;
  }
  .pin-state:last-child { margin-bottom: 0; }
  .pin-state .section-title {
    font-size: clamp(28px, 5vw, 40px);
  }

  /* Image associée à chaque état (au-dessus du texte) */
  .pin-state::before {
    content: '';
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 360px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 50px rgba(2, 35, 76, 0.12);
    margin-bottom: 32px;
  }

  .pin-state[data-index="0"]::before {
    background-image:
      linear-gradient(135deg, rgba(2,35,76,0.25), rgba(10,53,112,0.45)),
      url("https://images.unsplash.com/photo-1558403194-611308249627?q=80&w=1200&auto=format&fit=crop");
  }

  .pin-state[data-index="1"]::before {
    background-image:
      linear-gradient(135deg, rgba(2,35,76,0.25), rgba(91,122,174,0.45)),
      url("https://images.unsplash.com/photo-1466611653911-95081537e5b7?q=80&w=1200&auto=format&fit=crop");
  }

  /* --- Stats --- */
  .stats-grid {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }
  .stat-card { padding: 36px 28px; }
  .stat-value { font-size: 52px; }

  /* --- Bento : 2 colonnes, toutes cartes 1 col --- */
  .sectors-grid.bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 260px;
    gap: 12px;
  }
  .bento .bento-std,
  .bento .bento-wide,
  .bento .bento-hero {
    grid-column: span 1;
    grid-row: span 1;
  }
  .sector-card { padding: 28px 24px; }

  /* --- Video CTA --- */
  .video-cta { padding: 80px 0; min-height: auto; }
  .video-cta-content .section-title {
    font-size: clamp(28px, 6vw, 44px);
  }
  .video-cta-content .lead { font-size: 15px; }

  /* --- Process steps --- */
  .step {
    grid-template-columns: 60px 48px 1fr;
    column-gap: 14px;
    row-gap: 10px;
    padding: 28px 0 28px 14px;
  }
  .step::before { display: none; } /* Pas de barre hover en tactile */
  .step-icon { width: 44px; height: 44px; font-size: 18px; margin-top: 4px; }
  .step-body h3 { font-size: 20px; }
  .step-body > p { font-size: 14px; }
  .step-list { grid-template-columns: 1fr; }
  .step-num { font-size: 44px; }
  .step h3 { font-size: 22px; }

  /* --- Footer --- */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* --- Contact form --- */
  .contact-form { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }

  /* --- Section padding générique plus compact --- */
  .stats, .sectors, .process, .contact { padding: 72px 0; }
}

/* =========================================================
   BREAKPOINT : Mobile (640px)
   ========================================================= */

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  .nav-wrap { top: 10px; }
  .nav-wrap.scrolled { top: 6px; }
  .nav { padding: 6px 8px 6px 16px; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }
  .brand img { height: 26px; }

  /* Hero */
  .hero { padding: 100px 0 60px; }
  .tag { font-size: 10px; padding: 6px 14px; letter-spacing: 0.08em; }
  .display {
    font-size: clamp(34px, 10vw, 48px);
  }
  .lead { font-size: 15px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }

  /* Section titles + overlines */
  .section-title { font-size: clamp(28px, 7vw, 40px); }
  .section-sub { font-size: 15px; }
  .overline { font-size: 12px; }

  /* Bento : 1 colonne = stacking complet sur très petit écran */
  .sectors-grid.bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }
  .sector-card { min-height: 220px; }

  /* Video CTA : full width button */
  .video-cta-content .btn { width: 100%; max-width: 320px; }

  /* Process */
  .step {
    grid-template-columns: 48px 40px 1fr;
    column-gap: 10px;
    row-gap: 8px;
    padding: 24px 0;
  }
  .step-num { font-size: 36px; }
  .step-icon { width: 36px; height: 36px; font-size: 14px; }
  .step-body h3 { font-size: 18px; }
  .step h3 { font-size: 20px; }

  /* Stats */
  .stat-value { font-size: 44px; }
  .stat-label { font-size: 13px; }

  /* Contact form */
  .contact-form {
    padding: 24px 20px;
    border-radius: 14px;
  }
  .contact-info { padding: 20px; }
  .contact-info p { font-size: 13px; }

  /* Footer */
  .footer { padding: 56px 0 28px; }
  .footer-logo { height: 32px; }

  /* Sections */
  .stats, .sectors, .process, .contact { padding: 56px 0; }
  .video-cta { padding: 56px 0; }
  .pin-sticky { padding: 56px 0; }

  /* Désactive animations hero coûteuses sur petit mobile */
  .hero-beam { display: none; }
}

/* =========================================================
   Très petits écrans (iPhone SE, <= 380px)
   ========================================================= */

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .display { font-size: 32px; line-height: 1.05; }
  .section-title { font-size: 26px; }
  .btn { padding: 13px 20px; font-size: 13px; }
  /* XS : repasser en 1 colonne pour les solutions (sinon trop tassé) */
  .solutions-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Empêcher les textes de déborder (défense en profondeur)
   ========================================================= */

h1, h2, h3, p { overflow-wrap: break-word; word-break: break-word; }
img, video { max-width: 100%; height: auto; }

/* =========================================================
   Support du landscape mobile (orientation)
   ========================================================= */

@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 90px 0 60px; }
  .display { font-size: clamp(32px, 5vw, 48px); }
}
