/* =========================================================================
   GROUPE N2M — Composants
   Styles des écrans. Le design system fournit les tokens ; ici on assemble.
   ========================================================================= */

/* ======================================================= EN-TÊTE DU SITE */

/* ⚠️ L'EN-TÊTE EST BLANC ET OPAQUE EN PERMANENCE (29/10/2026).
   Il était transparent en haut de page et ne se remplissait qu'au défilement.
   Sur un site blanc, cette bascule n'a plus d'objet : elle faisait clignoter
   la barre au premier mouvement de molette.
   L'opacité ne décale rien : `.gn2m-tete-page` réserve déjà 11rem en haut et
   `.gn2m-hero` 9rem, pour une barre haute de 5,25rem.
   Les couleurs se lisent sur `:root`, qui porte la palette claire — cet
   en-tête n'est dans aucune section thémée. */
.gn2m-entete-site {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: var(--neige);
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
  border-bottom: 1px solid var(--trait);
}

/* Au défilement, l'en-tête se décolle du contenu par une ombre plutôt que par
   un changement de couleur : sur du blanc, un filet seul ne se voit plus dès
   que du texte passe dessous. */
.gn2m-entete-site[data-fixe="oui"] {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--trait);
  box-shadow: 0 10px 30px -24px rgba(11, 13, 22, 0.55);
}

/* ⚠️ L'ENTÊTE NE SUIT PAS LA LARGEUR DE LECTURE — ET C'ÉTAIT LA VRAIE CAUSE.
   Le conteneur porte `.gn2m-page`, qui plafonne à `--page` (1 312 px). C'est
   la bonne mesure pour du texte : au-delà, l'œil perd la ligne suivante.
   Mais logo + menu + actions réclament **1 613 px** avec onze entrées — et
   dès huit entrées, on dépassait déjà les 1 312.
   Le contenu débordait donc du conteneur, EN SILENCE : il s'étalait dans les
   marges de la page sans créer de barre de défilement horizontale, donc sans
   qu'aucune mesure de débordement ne le signale. Seul le bouton « Nous
   contacter », tout à droite, finissait hors de l'écran.
   C'est ce qui a fait remonter deux seuils pour rien les 12 et 13/10 : on
   soignait le symptôme à des largeurs données, pas la cause.
   Une barre de navigation prend la largeur disponible, pas la mesure de
   lecture. */
.gn2m-entete-site__inner { max-width: min(100%, 1760px); }

.gn2m-entete-site__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e3);
  min-height: 5.25rem;
}

.gn2m-marque {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--texte);
}

.gn2m-marque__sigle {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 2px solid var(--or);
  border-radius: 3px;
  font-family: var(--police-titre), sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--accent-texte);
}

.gn2m-marque__sigle--grand {
  width: 4rem; height: 4rem;
  font-size: 1.6rem;
}

/* Le logo officiel remplace le sigle composé. Sa hauteur est fixée, sa
   largeur suit : les quatre déclinaisons de la planche n'ont pas le même
   rapport, et c'est la hauteur qui doit s'aligner sur le reste de l'en-tête. */
.gn2m-marque__logo {
  height: 3.1rem;
  width: auto;
  flex: none;
}

.gn2m-pied__logo {
  height: 4rem;
  width: auto;
  margin-bottom: var(--e1);
}

.gn2m-marque__texte { display: grid; line-height: 1.15; }
.gn2m-marque__texte strong {
  font-family: var(--police-titre), sans-serif;
  font-size: 1.22rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gn2m-marque__texte em {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texte-faible);
  /* ⚠️ LA SIGNATURE NE SE REPLIE PAS. Avec le menu passé à onze entrées, le
     bloc de marque se retrouve à l'étroit et « Protection, performance,
     transformation » tombait sur TROIS lignes, poussant l'en-tête à 87 px et
     lui donnant l'air bricolé — l'inverse de l'institutionnel demandé.
     Une signature sur deux lignes n'est pas une signature. */
  white-space: nowrap;
}

/* Sous 1150 px, la place manque pour de bon : la signature s'efface plutôt
   que de rétrécir jusqu'à l'illisible. Le nom du groupe suffit. */
@media (max-width: 1150px) {
  .gn2m-marque__texte em { display: none; }
}

/* ⚠️ GOUTTIÈRE ET CORPS FLUIDES, PAS PAR PALIERS.
   Le menu est passé de 8 à 9 puis à 11 entrées en deux jours, et chaque
   ajout a rouvert un trou entre deux seuils : à chaque fois une largeur où
   le bouton « Nous contacter » sortait de l'écran, et à chaque fois il a
   fallu remonter la requête média. Un `clamp()` s'adapte tout seul — la
   prochaine entrée ne rouvrira pas de trou. */
.gn2m-nav__liste {
  display: flex;
  /* ⚠️ Élargi le 23/10 : avec six entrées rangées en poches au lieu de onze
     à plat, la barre est bien plus courte et l'ancien écart la tassait au
     milieu d'un espace vide. Le `clamp()` reste la garantie que la prochaine
     entrée ne rouvrira pas un trou — et que rien ne chevauche le logo en
     deçà de 1280 px. */
  gap: clamp(0.8rem, 1.7vw, 2.4rem);
  margin: 0; padding: 0;
  list-style: none;
}

.gn2m-nav__liste a {
  position: relative;
  /* Un intitulé de menu ne se coupe jamais en deux lignes : la barre perd
     son alignement et l'en-tête grandit. */
  white-space: nowrap;
  font-size: clamp(0.78rem, 0.78vw, 0.92rem);
  font-weight: 500;
  color: var(--texte-doux);
  padding-block: 0.4rem;
  transition: color var(--t-court);
}

.gn2m-nav__liste a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--or);
  transition: right var(--t);
}

.gn2m-nav__liste a:hover { color: var(--texte); }
.gn2m-nav__liste a:hover::after { right: 0; }

.gn2m-entete-site__actions {
  display: flex;
  align-items: center;
  gap: var(--e2);
}

.gn2m-tel {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--texte-doux);
  transition: color var(--t-court);
}
.gn2m-tel:hover { color: var(--accent-texte); }

.gn2m-btn--compact { padding: 0.7rem 1.25rem; font-size: 0.88rem; white-space: nowrap; }

.gn2m-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem; height: 2.75rem;
  background: transparent;
  border: 1px solid var(--trait-fort);
  border-radius: 3px;
  cursor: pointer;
}
.gn2m-burger__trait {
  display: block;
  width: 1.15rem; height: 2px;
  margin-inline: auto;
  background: var(--texte);
  transition: transform var(--t-court), opacity var(--t-court);
}
.gn2m-burger[aria-expanded="true"] .gn2m-burger__trait:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gn2m-burger[aria-expanded="true"] .gn2m-burger__trait:nth-child(2) { opacity: 0; }
.gn2m-burger[aria-expanded="true"] .gn2m-burger__trait:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.gn2m-progression {
  height: 2px;
  background: transparent;
}
.gn2m-progression span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--or);
  transition: width 90ms linear;
}

.gn2m-menu-mobile {
  position: fixed;
  inset: 5.25rem 0 auto;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--trait);
  box-shadow: 0 24px 50px -30px rgba(11, 13, 22, 0.5);
  padding: var(--e3);
}
.gn2m-menu-mobile__liste {
  display: grid;
  gap: var(--e1);
  margin: 0; padding: 0;
  list-style: none;
  max-width: var(--page);
  margin-inline: auto;
}
.gn2m-menu-mobile__liste a {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--police-titre), sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--texte);
  border-bottom: 1px solid var(--trait);
}
.gn2m-menu-mobile__liste a:hover { color: var(--accent-texte); }

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

.gn2m-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--neige);
  color: var(--texte);
  padding-block: 9rem var(--e10);
  isolation: isolate;
}

.gn2m-hero__fond {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.gn2m-hero__fond img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
  /* L'image est traitée pour que le texte reste lisible dessus, sans
     dépendre de ce qu'elle contient. */
  /* ⚠️ INVERSE depuis le 29/10 : la photo était ASSOMBRIE (brightness 0.62)
     pour porter du texte blanc. Sur fond clair, c'est le contraire — on
     l'éclaircit jusqu'à ce qu'elle ne soit plus qu'une texture sous le texte
     en encre. */
  filter: grayscale(0.5) contrast(0.92) brightness(1.22);
  opacity: 0.55;
  transform: scale(1.08);
  will-change: transform;
}

/* Deux voiles superposés : un dégradé vertical pour asseoir le texte, une
   teinte or très faible pour lier l'image à la charte. */
.gn2m-hero__fond::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Au-dessus du canvas (z-index 1) : les particules reprennent les couleurs
     de la photo, elles doivent recevoir le même voile, sinon le texte se perd
     sur l'image en pleine lumière. */
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.62) 38%, rgba(255,255,255,.9) 100%),
    linear-gradient(100deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.5) 55%, transparent 80%),
    radial-gradient(70% 60% at 78% 22%, rgba(244,170,34,.1), transparent 70%);
}

.gn2m-hero__contenu {
  position: relative;
  display: grid;
  gap: var(--e3);
  max-width: var(--page);
}

.gn2m-hero .gn2m-titre {
  max-width: 16ch;
}

.gn2m-hero__chapo {
  color: var(--texte-doux);
  max-width: 44rem;
}

.gn2m-hero__reperes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e6);
  margin: var(--e4) 0 0;
  padding: var(--e3) 0 0;
  list-style: none;
  border-top: 1px solid var(--trait);
}

.gn2m-hero__reperes li { display: grid; gap: 0.1rem; }

.gn2m-hero__reperes strong {
  font-family: var(--police-titre), sans-serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-texte);
}

.gn2m-hero__reperes span {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.gn2m-hero__invite {
  position: absolute;
  left: 50%; bottom: var(--e4);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.gn2m-hero__invite span {
  width: 1px; height: 2.6rem;
  background: linear-gradient(to bottom, var(--or), transparent);
  animation: gn2m-descend 2.4s var(--ease) infinite;
}

@keyframes gn2m-descend {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: .4; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

/* ============================================================== CHIFFRES */

.gn2m-chiffres { margin: 0; padding: 0; list-style: none; }

.gn2m-chiffre {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: var(--e4) var(--e3);
  background: var(--carte);
  border: 1px solid var(--trait);
  border-top: 3px solid var(--accent);
  border-radius: var(--rayon-l);
}

.gn2m-chiffre__valeur {
  font-family: var(--police-titre), sans-serif;
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--encre);
  font-variant-numeric: tabular-nums;
}

.gn2m-chiffre__libelle { font-size: 1.05rem; font-weight: 600; }
.gn2m-chiffre__precision { font-size: 0.85rem; color: var(--texte-faible); line-height: 1.5; }

/* ============================================================= PRÉSIDENT */





.gn2m-citation {
  margin: 0;
  font-family: var(--police-titre), sans-serif;
  font-size: clamp(1.5rem, 3.1vw, 2.35rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--encre);
  border-left: 4px solid var(--accent);
  padding-left: var(--e3);
}


/* ============================================================== FILIALES */

.gn2m-filiale .gn2m-carte__media { aspect-ratio: 16 / 11; }

.gn2m-filiale__domaine {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-texte);
}

.gn2m-filiale__nom {
  font-size: 1.6rem;
  text-transform: uppercase;
}

.gn2m-filiale__nom a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.gn2m-filiale__phrase { color: var(--texte-doux); font-size: 0.96rem; }

.gn2m-puces {
  display: grid;
  gap: 0.35rem;
  margin: 0; padding: 0;
  list-style: none;
}

.gn2m-puces li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--texte-faible);
}

.gn2m-puces li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.58em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.gn2m-filiale__aller {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--e1);
  padding-top: var(--e2);
  border-top: 1px solid var(--trait);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--texte-faible);
  transition: color var(--t-court);
}

.gn2m-carte:hover .gn2m-filiale__aller { color: var(--accent-texte); }

/* ================================================================ CHAÎNE */

.gn2m-chaine { margin: 0; padding: 0; list-style: none; }

.gn2m-etape {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--e3);
  align-items: start;
}

.gn2m-etape__rail {
  position: relative;
  display: grid;
  justify-items: center;
  height: 100%;
  min-height: 8rem;
}

.gn2m-etape__rail::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--trait);
}

.gn2m-etape:first-child .gn2m-etape__rail::before { top: 1.75rem; }
.gn2m-etape:last-child  .gn2m-etape__rail::before { bottom: calc(100% - 1.75rem); }

.gn2m-etape__pastille {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--fond);
  color: var(--accent-texte);
  font-family: var(--police-titre), sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.gn2m-etape__corps {
  display: grid;
  gap: var(--e2);
  max-width: 46rem;
  padding-bottom: var(--e8);
}

.gn2m-etape__moment {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.gn2m-etape__titre { font-size: clamp(1.35rem, 2.7vw, 2rem); }
.gn2m-etape__recit { color: var(--texte-doux); }

.gn2m-etape__filiale {
  justify-self: start;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-texte);
}

.gn2m-mention {
  max-width: 48rem;
  margin-top: var(--e4);
  padding: var(--e3);
  background: var(--fond-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--rayon);
  font-size: 0.92rem;
  color: var(--texte-doux);
}

.gn2m-mention em { font-size: 0.82rem; color: var(--texte-faible); }

/* ============================================================ COUVERTURE */

.gn2m-couverture {
  display: grid;
  grid-template-columns: minmax(18rem, .85fr) minmax(20rem, 1.15fr);
  gap: var(--e8);
  align-items: center;
}

.gn2m-couverture__texte { display: grid; gap: var(--e3); }

.gn2m-pays,
.gn2m-certifs { margin: 0; padding: 0; list-style: none; }

.gn2m-pays {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gn2m-pays li {
  padding: 0.35rem 0.85rem;
  border: 1px dashed var(--trait-fort);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--texte-doux);
}

.gn2m-certifs {
  display: grid;
  gap: var(--e2);
  margin-top: var(--e2);
}

.gn2m-certifs li {
  display: grid;
  gap: 0.15rem;
  padding-left: var(--e2);
  border-left: 2px solid var(--or);
}

.gn2m-certifs strong { font-size: 1rem; }
.gn2m-certifs span { font-size: 0.85rem; color: var(--texte-faible); }

.gn2m-carte-geo {
  margin: 0;
  padding: var(--e3);
  background: var(--fond-2);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-l);
}

.gn2m-carte-geo svg { width: 100%; height: auto; overflow: visible; }

.gn2m-carte-geo__point circle { fill: var(--nuit); stroke: var(--or); stroke-width: 2; }
.gn2m-carte-geo__point.est-siege circle { fill: var(--or); }
.gn2m-carte-geo__halo {
  fill: var(--or) !important;
  stroke: none !important;
  opacity: .18;
  animation: gn2m-pulse 2.8s var(--ease) infinite;
}

@keyframes gn2m-pulse {
  0%, 100% { transform-origin: center; opacity: .1; }
  50%      { opacity: .3; }
}

.gn2m-carte-geo__point text {
  fill: var(--texte-doux);
  font-family: var(--police-texte), sans-serif;
  font-size: 17px;
  font-weight: 500;
}

.gn2m-carte-geo figcaption {
  margin-top: var(--e2);
  font-size: 0.82rem;
  color: var(--texte-faible);
}

/* ================================================================= APPEL */

/* ⚠️ UN APLAT, PAS UN DEGRADE. Le degrade faisait passer la bande par trois
   ors differents (#F4AA22, #ffd642, #ffca1a) : trois couleurs la ou la charte
   en donne une. Un aplat est aussi plus franc a l'impression et sur les
   ecrans mal calibres, qui sont la regle a Dakar. 10,4:1 avec le noir. */
.gn2m-appel,
.gn2m-or {
  --fond: var(--or);
  --fond-2: var(--or);
  --carte: var(--neige);
  --texte: var(--nuit);
  --texte-doux: rgba(5, 7, 10, 0.78);
  --texte-faible: rgba(5, 7, 10, 0.62);
  --accent: var(--nuit);
  --accent-texte: var(--nuit);
  --trait: rgba(5, 7, 10, 0.22);
  --trait-fort: rgba(5, 7, 10, 0.4);
  background: var(--or);
  color: var(--nuit);
}

.gn2m-appel .gn2m-titre em { color: rgba(6, 7, 13, .62); }
.gn2m-appel .gn2m-chapo {
  color: rgba(6, 7, 13, .78);
  /* Le titre de cette bande n'a pas de marge basse : sans cela la phrase
     vient se coller sous les jambages. */
  margin-top: var(--e2);
  max-width: 46ch;
}

.gn2m-appel__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e4);
}

.gn2m-appel .gn2m-btn {
  background: var(--nuit);
  border-color: var(--nuit);
  color: #fff;
}
.gn2m-appel .gn2m-btn:hover { background: #1a1d2e; border-color: #1a1d2e; }

.gn2m-appel .gn2m-btn-2 { border-color: rgba(6, 7, 13, .38); color: var(--nuit); }
.gn2m-appel .gn2m-btn-2:hover { border-color: var(--nuit); color: var(--nuit); }

/* ============================================================ PIED DE PAGE */

/* ⚠️ LE PIED EST CLAIR DEPUIS LE 29/10/2026. Son élément porte désormais
   `gn2m-clair` au lieu de `gn2m-nuit` : les jetons de texte et de filet
   basculent seuls, il n'y a presque rien à repeindre ici.
   Le filet du haut n'est pas décoratif : sur les pages sans la bande or
   (contact, mentions légales), le pied touche directement du blanc et se
   fondrait dans la page sans lui. */
.gn2m-pied {
  background: var(--neige);
  color: var(--texte);
  border-top: 1px solid var(--trait);
  padding-block: var(--e10) var(--e4);
}

.gn2m-pied__haut {
  display: grid;
  grid-template-columns: minmax(16rem, 1.5fr) repeat(3, minmax(10rem, 1fr));
  gap: var(--e6) var(--e4);
  padding-bottom: var(--e6);
}

.gn2m-pied__marque { display: grid; gap: var(--e2); align-content: start; }
.gn2m-pied__baseline {
  font-family: var(--police-titre), sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-texte);
}
.gn2m-pied__resume { font-size: 0.9rem; color: var(--texte-doux); max-width: 30rem; }

.gn2m-pied__col { display: grid; gap: var(--e2); align-content: start; }

.gn2m-pied__titre {
  font-family: var(--police-titre), sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texte);
}

.gn2m-pied__col ul,
.gn2m-pied__tels { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }

.gn2m-pied__col a {
  font-size: 0.9rem;
  color: var(--texte-doux);
  transition: color var(--t-court);
}
.gn2m-pied__col a:hover { color: var(--accent-texte); }

.gn2m-pied__adresse {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--texte-doux);
  line-height: 1.7;
}

.gn2m-pied__tels a { font-weight: 600; color: var(--texte); }
.gn2m-pied__tels a:hover { color: var(--accent-texte); }

.gn2m-pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--e2);
  padding-top: var(--e3);
  font-size: 0.82rem;
  color: var(--texte-faible);
}

.gn2m-signature {
  border-bottom: 1px solid var(--trait-fort);
  padding-bottom: 1px;
  transition: color var(--t-court), border-color var(--t-court);
}
.gn2m-signature:hover { color: var(--or); border-bottom-color: var(--or); }

/* ============================================================== RÉVÉLATION */

/* L'état initial n'est posé QUE si le JS a pris la main : sans script, rien
   n'est caché. Une révélation au défilement ne doit jamais pouvoir laisser un
   bloc invisible. */
.js-motion [data-reveal],
.js-motion [data-titre-anime] {
  opacity: 0;
  transform: translateY(1.75rem);
}

@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal],
  .js-motion [data-titre-anime] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ================================================================ ÉCRANS */

/* ------------------------------------------------------------------------
   L'ENTÊTE ENTRE 1 280 ET 1 400 px — LE TROU QUI MANQUAIT

   ⚠️ Mesuré le 12/10/2026 : logo + menu + actions réclament **1 353 px**
   pour tenir. Le repli en burger n'arrivait qu'à 900 px. Entre les deux,
   quatre cents pixels de largeurs parmi les plus répandues — **1 366 est
   l'une des résolutions de portable les plus courantes au monde** — où le
   bouton « Nous contacter » sortait tout simplement de l'écran.

   Le défaut ne se voyait ni à 1 920 (ça tient), ni à 900 (le burger prend le
   relais) : exactement entre les deux tailles qu'on teste d'habitude.

   Deux paliers plutôt qu'un seul saut :
     sous 1 600 px  on resserre — gouttières, corps du texte, bouton
     sous 1 400 px  le burger prend la main
     ⚠️ SEUILS RELEVÉS LE 13/10/2026, quand le menu est passé de huit à NEUF
     entrées (ajout de « Nos solutions »). Mesuré à ce moment-là : 189 + 955
     + 299 = 1 443 px pour 1 392 disponibles à 1 440 — le bouton « Nous
     contacter » finissait à 1 572, hors écran, sur une largeur très
     courante. Chaque entrée ajoutée coûte une centaine de pixels : la
     prochaine obligera à remonter encore, ou à alléger le menu. Le cahier
     des charges demande d'ailleurs qu'il « reste simple ».
   ------------------------------------------------------------------------ */

@media (max-width: 1700px) {
  .gn2m-btn--compact { padding: 0.65rem 1rem; font-size: 0.84rem; }

  /* Le numéro passe en icône seule : le lien `tel:` reste cliquable, et on
     récupère la largeur du numéro écrit en toutes lettres — environ 130 px,
     la plus grosse économie disponible sans toucher au menu. */
  .gn2m-tel span { display: none; }
  .gn2m-tel { gap: 0; }
}

@media (max-width: 1100px) {
  .gn2m-couverture { grid-template-columns: 1fr; gap: var(--e4); }
  .gn2m-pied__haut { grid-template-columns: 1fr 1fr; }
}

/* Le numéro de téléphone disparaît en premier : c'est lui qui élargit le plus
   la barre d'actions, et le bouton flottant d'appel le remplace. */
@media (max-width: 1400px) {
  .gn2m-tel { display: none; }
}

/* ⚠️ SEUIL DESCENDU DE 1400 À 1200 px le 23/10/2026.
   1400 datait des onze entrées à plat, qui ne tenaient plus en dessous. Avec
   six entrées rangées en poches la barre ne fait plus que ~540 px : à 1200 px
   il reste encore ~245 px de dégagement (mesuré). Au seuil précédent, un
   portable en 1280 ou 1366 — la largeur la plus répandue — recevait le menu
   burger alors que le vrai menu y tenait sans peine. */
@media (max-width: 1200px) {
  .gn2m-nav { display: none; }
  .gn2m-burger { display: flex; }
}

@media (max-width: 640px) {
  .gn2m-section { padding-block: var(--e10); }
  .gn2m-hero { padding-block: 8rem var(--e8); }
  .gn2m-hero__reperes { gap: var(--e4); }
  .gn2m-pied__haut { grid-template-columns: 1fr; }
  .gn2m-etape { grid-template-columns: 3.25rem 1fr; gap: var(--e2); }
  .gn2m-etape__pastille { width: 2.75rem; height: 2.75rem; font-size: 1.15rem; }
  .gn2m-marque__texte { display: none; }
  .gn2m-btn--compact { display: none; }
}

/* Masque des lignes du titre animé : chaque ligne monte DERRIÈRE une fenêtre
   au lieu d'apparaître en fondu. C'est ce détail qui distingue une animation
   travaillée d'un simple fondu. Le masque est posé par le JS ; sans lui, rien
   ne change. */
/* ===================================================== LE TITRE QUI SE TAPE
   Le masquage est porté par `.gn2m-titre--tape`, une classe que JavaScript
   ajoute. Sans JavaScript, aucune règle ici ne s'applique et le titre est
   simplement lisible — c'est la condition pour qu'un effet n'efface jamais un
   contenu. Et le texte reste TOUJOURS dans le DOM : on joue sur l'opacité des
   lettres, on ne les retire pas. */
.gn2m-titre--tape .gn2m-lettre { opacity: 0; }

.gn2m-curseur {
  display: inline-block;
  width: 0.07em;
  min-width: 2px;
  height: 0.78em;
  margin-left: 0.04em;
  vertical-align: baseline;
  translate: 0 0.06em;
  background: var(--or-profond);
  animation: gn2m-clignote 0.68s step-end infinite;
}

/* Sur les bandeaux sombres — l'immense majorité des en-têtes — le curseur
   reprend l'or vif, qui y tient 12:1. L'or profond est réservé au fond clair,
   où l'or vif tomberait à 1,67:1. */
.gn2m-sombre .gn2m-curseur,
.gn2m-nuit .gn2m-curseur { background: var(--or); }

@keyframes gn2m-clignote {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Mouvement réduit : le script ne découpe même pas le titre. Ce filet ne sert
   que si une classe traînait d'un chargement précédent. */
@media (prefers-reduced-motion: reduce) {
  .gn2m-titre--tape .gn2m-lettre { opacity: 1 !important; }
  .gn2m-curseur { animation: none; }
}

.gn2m-ligne-masque {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.gn2m-ligne { display: block; will-change: transform; }

/* Article générique (index.php) */
.gn2m-article { display: grid; gap: var(--e4); }
.gn2m-article__media { margin: 0; border-radius: var(--rayon-l); overflow: hidden; }
.gn2m-article__contenu { display: grid; gap: var(--e3); font-size: 1.08rem; }
.gn2m-article__contenu h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: var(--e3); }
.gn2m-article__contenu a { color: var(--accent-texte); text-decoration: underline; }

/* ======================================================= PAGES INTÉRIEURES */

.gn2m-contact,
.gn2m-page-simple,
.gn2m-404 { padding-top: 10rem; }

.gn2m-contact__colonnes {
  display: grid;
  grid-template-columns: minmax(20rem, 1.5fr) minmax(14rem, .72fr);
  gap: var(--e6);
  align-items: start;
}

/* ---- Formulaire ---- */

.gn2m-formulaire {
  display: grid;
  gap: var(--e3);
  padding: var(--e5);
  background: var(--carte);
  border: 1px solid var(--trait);
  border-top: 3px solid var(--accent);
  border-radius: var(--rayon-l);
  box-shadow: var(--ombre);
}

.gn2m-champ-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--e3);
}

.gn2m-champ { display: grid; gap: 0.45rem; }

.gn2m-champ label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--texte);
}

.gn2m-champ label span { color: var(--accent-texte); }

.gn2m-champ input,
.gn2m-champ select,
.gn2m-champ textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--fond);
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon);
  color: var(--texte);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color var(--t-court), box-shadow var(--t-court);
}

.gn2m-champ textarea { resize: vertical; min-height: 9.5rem; }

.gn2m-champ input::placeholder,
.gn2m-champ textarea::placeholder { color: var(--texte-faible); }

/* Les champs du formulaire ne coupent PLUS l'anneau de focus.
   L'ancienne règle faisait `outline: none` et se reposait sur une bordure or
   (1,67:1 sur blanc) et un voile à 12 % d'opacité : au clavier, on ne voyait
   pas dans quel champ on écrivait — sur le formulaire de contact, c'est-à-dire
   sur le seul chemin de conversion du site.
   On garde le changement de bordure comme indice secondaire, en or profond
   qui lui se voit, et on laisse l'anneau global faire son travail. */
.gn2m-champ input:focus-visible,
.gn2m-champ select:focus-visible,
.gn2m-champ textarea:focus-visible {
  border-color: var(--or-profond);
}

.gn2m-aide,
.gn2m-mention-legale {
  font-size: 0.82rem;
  color: var(--texte-faible);
  line-height: 1.6;
}

.gn2m-formulaire .gn2m-btn { justify-self: start; }

/* Le piège à robots : hors flux, invisible, hors parcours clavier. */
.gn2m-piege {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---- Message de retour après envoi ---- */

.gn2m-retour {
  display: grid;
  gap: 0.4rem;
  max-width: 46rem;
  margin-bottom: var(--e4);
  padding: var(--e3) var(--e4);
  border-radius: var(--rayon-l);
  border-left: 4px solid var(--accent);
  background: var(--fond-2);
}

/* ⚠️ Succès et erreur ne se jouent plus sur la COULEUR. Le site tient en
   blanc, or et noir (décision du 19/10/2026) : il n'y a plus de vert ni de
   rouge à dépenser. Ce n'est pas un appauvrissement — s'appuyer sur la seule
   couleur pour signaler une erreur est de toute façon proscrit (WCAG 1.4.1),
   le message écrit a toujours fait le travail. Reste l'épaisseur du filet :
   l'erreur est franche et noire, le succès discret et or. */
.gn2m-retour--succes { border-left-color: var(--accent); }
.gn2m-retour--erreur { border-left-color: var(--encre); border-left-width: 6px; }

.gn2m-retour__titre {
  font-family: var(--police-titre), sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.gn2m-retour__tels {
  display: flex;
  gap: var(--e3);
  margin-top: var(--e1);
  font-weight: 700;
}

.gn2m-retour__tels a { color: var(--accent-texte); }

/* ---- Colonne latérale ---- */

.gn2m-contact__aside {
  display: grid;
  gap: var(--e2);
  align-content: start;
  padding: var(--e4);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-l);
  background: var(--fond-2);
}

.gn2m-aside__titre {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texte-faible);
  margin-top: var(--e2);
}

.gn2m-aside__titre:first-child { margin-top: 0; }

.gn2m-aside__tels,
.gn2m-aside__liens { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }

.gn2m-aside__tels a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-texte);
}

.gn2m-aside__liens a {
  font-size: 0.9rem;
  color: var(--texte-doux);
  transition: color var(--t-court);
}

.gn2m-aside__liens a:hover { color: var(--accent-texte); }

.gn2m-aside__adresse {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--texte-doux);
  line-height: 1.75;
}

/* ---- Page simple ---- */

.gn2m-page-simple__media {
  margin: 0 0 var(--e5);
  border-radius: var(--rayon-l);
  overflow: hidden;
}

/* ---- 404 ---- */

.gn2m-404__lien {
  display: grid;
  gap: 0.3rem;
  padding: var(--e3);
  background: var(--carte);
  border: 1px solid var(--trait);
  border-left: 3px solid var(--accent, var(--or));
  border-radius: var(--rayon);
  transition: transform var(--t-court), border-color var(--t-court);
}

.gn2m-404__lien:hover { transform: translateX(4px); border-color: var(--accent); }

.gn2m-404__nom {
  font-family: var(--police-titre), sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-texte);
}

.gn2m-404__domaine { font-size: 0.88rem; color: var(--texte-doux); }

@media (max-width: 900px) {
  .gn2m-contact__colonnes { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .gn2m-champ-double { grid-template-columns: 1fr; }
  .gn2m-formulaire { padding: var(--e3); }
  .gn2m-contact, .gn2m-page-simple, .gn2m-404 { padding-top: 8rem; }
}

/* ====================================================== ÉCRAN D'OUVERTURE */

/* Le rideau est visible par défaut et masqué par <noscript> quand le
   JavaScript est absent. L'inverse — l'afficher via une classe posée par un
   script différé — ferait clignoter la page avant qu'il n'apparaisse.
   Un écran d'ouverture bloqué est un site mort : il se lève toujours, au pire
   par le chronomètre de 3,5 secondes. */
.gn2m-ouverture {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--nuit);
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   PIÈGE PAYÉ : l'attribut HTML `hidden` applique `display: none` via la
   feuille du navigateur — mais TOUTE règle CSS qui définit `display` l'écrase,
   y compris celle juste au-dessus. Le script posait bien `hidden` sur le
   rideau, et le rideau restait affiché : un panneau noir en z-index 300
   par-dessus tout le site, sur toutes les pages.
   Cette règle rend `hidden` de nouveau efficace. À ne jamais retirer.
   --------------------------------------------------------------------------- */
.gn2m-ouverture[hidden] {
  display: none !important;
}

.gn2m-verrouille, .gn2m-verrouille body { overflow: hidden; }

.gn2m-ouverture__inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: var(--e2);
  text-align: center;
  transition: opacity 500ms var(--ease), transform 700ms var(--ease);
}

.gn2m-ouverture[data-etat="ouvert"] .gn2m-ouverture__inner {
  opacity: 0;
  transform: translateY(-1.5rem);
}

.gn2m-ouverture__nom {
  display: flex;
  gap: 0.06em;
  font-family: var(--police-titre), sans-serif;
  font-size: clamp(2.5rem, 9vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
}

.gn2m-ouverture__nom span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotateX(-70deg);
  transition: opacity 520ms var(--ease), transform 620ms var(--ease);
}

.gn2m-ouverture__nom span[data-visible="oui"] {
  opacity: 1;
  transform: none;
}

.gn2m-ouverture__baseline {
  font-size: clamp(0.72rem, 1.6vw, 0.92rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--or);
  opacity: 0;
  animation: gn2m-apparait 900ms var(--ease) 700ms forwards;
}

@keyframes gn2m-apparait { to { opacity: 1; } }

.gn2m-ouverture__compte {
  margin-top: var(--e4);
  font-family: var(--police-titre), sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}

/* Les deux volets qui s'écartent */
.gn2m-ouverture__volet {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: var(--nuit);
  z-index: 1;
  transition: transform 1100ms cubic-bezier(0.76, 0, 0.24, 1);
}

.gn2m-ouverture__volet--haut { top: 0; }
.gn2m-ouverture__volet--bas  { bottom: 0; }

.gn2m-ouverture[data-etat="ouvert"] .gn2m-ouverture__volet--haut { transform: translateY(-101%); }
.gn2m-ouverture[data-etat="ouvert"] .gn2m-ouverture__volet--bas  { transform: translateY(101%); }

/* ---------------------------------------------------------------------------
   GARDE-FOU EN CSS PUR — le rideau se lève tout seul au bout de 4 secondes.
   Il ne dépend d'AUCUN script : si le module ne se charge pas, si une erreur
   JavaScript survient, si le réseau coupe en cours de route, le site s'ouvre
   quand même. Payé cher : une erreur de chargement a laissé le rideau fermé
   sur toute la page, et le garde-fou qui devait l'éviter vivait dans le
   script en panne.
   L'animation est ensuite neutralisée par l'attribut posé par le JS, qui
   prend le relais avec sa propre transition, plus rapide.
   --------------------------------------------------------------------------- */
@keyframes gn2m-secours-haut { to { transform: translateY(-101%); } }
@keyframes gn2m-secours-bas  { to { transform: translateY(101%); } }
@keyframes gn2m-secours-fond { to { opacity: 0; visibility: hidden; } }

.gn2m-ouverture[data-etat="ferme"] {
  animation: gn2m-secours-fond 600ms var(--ease) 4.6s forwards;
}
.gn2m-ouverture[data-etat="ferme"] .gn2m-ouverture__volet--haut {
  animation: gn2m-secours-haut 1100ms cubic-bezier(0.76, 0, 0.24, 1) 4s forwards;
}
.gn2m-ouverture[data-etat="ferme"] .gn2m-ouverture__volet--bas {
  animation: gn2m-secours-bas 1100ms cubic-bezier(0.76, 0, 0.24, 1) 4s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .gn2m-ouverture { display: none; }
}

/* ------------------------------------------------------------------------
   L'OUVERTURE, RESSERRÉE SUR TÉLÉPHONE

   ⚠️ Le compteur n'était que la moitié du problème. Même une fois le rideau
   « levé », les deux volets coulissaient encore **1 100 ms** et l'intérieur
   s'effaçait en 700 ms : le contenu restait couvert tout ce temps. Mesuré le
   12/10/2026, l'ouverture complète coûtait environ trois secondes sur
   téléphone — davantage que les 169,6 Ko de Three.js que le garde-fou venait
   d'économiser.

   On s'accroche à `data-gn2m-allege`, l'attribut que pose déjà le garde-fou
   d'appareil (voir `appareilContraint()` dans experience.js) : UN seul
   jugement sur l'appareil, pas deux règles qui pourraient diverger. Le tempo
   du compteur, lui, est resserré côté script par la même condition.
   ------------------------------------------------------------------------ */
:root[data-gn2m-allege] .gn2m-ouverture__volet {
  transition-duration: 480ms;
}

:root[data-gn2m-allege] .gn2m-ouverture__inner {
  transition-duration: 240ms, 320ms;   /* opacity, transform */
}

/* ------------------------------------------------------------------------
   ET LE GARDE-FOU CSS AUSSI.

   ⚠️ Celui-ci NE PEUT PAS s'accrocher à `data-gn2m-allege` : l'attribut est
   posé par le script, et ce garde-fou existe précisément pour le cas où le
   script ne tourne pas. Il lui faut donc une condition que le CSS évalue
   seul — d'où la requête média, qui reprend mot pour mot le dernier test de
   `appareilContraint()`.

   Sans ça, un téléphone dont le JavaScript échoue attendrait quatre secondes
   devant un écran noir, alors que tout le reste a été resserré.
   ------------------------------------------------------------------------ */
@media (max-width: 899px) and (pointer: coarse) {
  .gn2m-ouverture[data-etat="ferme"] {
    animation-delay: 1.9s;
    animation-duration: 400ms;
  }
  .gn2m-ouverture[data-etat="ferme"] .gn2m-ouverture__volet--haut,
  .gn2m-ouverture[data-etat="ferme"] .gn2m-ouverture__volet--bas {
    animation-delay: 1.5s;
    animation-duration: 520ms;
  }
}

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


/* Quand la scène tourne, le canvas prend le relais et la photo s'efface. */

/* ================================================ TRAVERSÉE HORIZONTALE */

.gn2m-horizontal {
  position: relative;
  background: var(--fond);
  color: var(--texte);
  overflow: hidden;
  padding-block: var(--e10) 0;
}

.gn2m-horizontal__entete {
  display: grid;
  gap: var(--e2);
  margin-bottom: var(--e6);
}

.gn2m-horizontal__piste {
  display: flex;
  gap: var(--e3);
  padding-inline: var(--e3);
  padding-bottom: var(--e10);
  will-change: transform;
}

/* ------------------------------------------------------------------------
   LA BANDE DES FILIALES AVANCE TOUTE SEULE

   ⚠️ Elle était accrochée au défilement (ScrollTrigger `pin` + `scrub`) :
   rien ne bougeait tant que personne ne faisait tourner la molette, et la
   page mesurait 17 000 px de haut parce que la traversée horizontale
   consommait du défilement vertical.

   Le mouvement est maintenant une ANIMATION CSS : elle tourne sans script,
   le navigateur la joue sur le compositeur, et elle ne coûte rien au fil
   principal. Le script ne fait que deux choses — dupliquer les panneaux pour
   que la boucle soit sans couture, et calculer la durée d'après la largeur
   réelle (voir motion.js).

   ⚠️ L'animation n'est posée QUE si `data-defile="auto"` est présent, et cet
   attribut n'arrive qu'une fois la copie faite. Sans JavaScript, la piste ne
   contient qu'un jeu de panneaux : l'animer ferait disparaître la bande dans
   le vide à mi-course.
   ------------------------------------------------------------------------ */

.gn2m-horizontal__piste[data-defile="auto"] {
  width: max-content;
  animation: gn2m-piste-defile var(--gn2m-piste-duree, 170s) linear infinite;
}

@keyframes gn2m-piste-defile {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* On s'arrête quand quelqu'un regarde — à la souris comme au clavier.
   `:focus-within` compte autant que `:hover` : sans lui, une bande qui
   continue d'avancer emporte hors de l'écran le lien qu'on vient d'atteindre
   en tabulant. */
@media (pointer: fine) {
  .gn2m-horizontal:hover .gn2m-horizontal__piste[data-defile="auto"] {
    animation-play-state: paused;
  }
}

.gn2m-horizontal__piste[data-defile="auto"]:focus-within {
  animation-play-state: paused;
}

/* Mouvement réduit : la bande ne bouge plus du tout, et redevient une piste
   qu'on fait glisser au doigt ou à la molette horizontale. Rien n'est perdu,
   tout reste atteignable. */
@media (prefers-reduced-motion: reduce) {
  .gn2m-horizontal__piste[data-defile="auto"] {
    animation: none;
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .gn2m-horizontal__piste[data-defile="auto"] > * { scroll-snap-align: start; }
  .gn2m-horizontal__piste [data-panneau-copie] { display: none; }
}

/* Sans la traversée pilotée au défilement, le corps des panneaux n'a plus de
   raison de se redresser à l'entrée : il est lisible d'emblée. */
.gn2m-panneau__corps { opacity: 1; transform: none; }


/* ⚠️ UNE SEULE COLONNE, DEPUIS QUE LE MEDIA EST UN LOGO.
   Le panneau etait coupe en deux : photo a gauche, texte a droite. Une photo
   remplit sa moitie quelle que soit la hauteur ; un logo, non. Mesure le
   19/10/2026 : le logo de N2M Securite s'affichait en 240x74 au milieu d'une
   colonne blanche de 415x1013 — perdu dans le vide, le panneau avait l'air
   casse. Le logo passe donc EN TETE, comme un en-tete de papier a lettres,
   et le panneau se resserre. */
.gn2m-panneau {
  position: relative;
  flex: 0 0 auto;
  width: min(31rem, 86vw);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  gap: 0;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-l);
  overflow: hidden;
}

.gn2m-panneau::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
  z-index: 3;
}

.gn2m-panneau__media { position: relative; overflow: hidden; background: var(--fond-2); }

.gn2m-panneau__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--ease);
}

.gn2m-panneau:hover .gn2m-panneau__media img { transform: scale(1.05); }

/* ---- Le logo officiel, a la place de la photo -------------------------
   ⚠️ LES SEPT LOGOS N'ONT PAS LA MEME FORME : celui de N2M Electronics est
   une plaque 3,3:1, celui de N2M Intelligence est presque carre. Les caler
   sur la largeur ecraserait le premier et ferait deborder le second. On les
   enferme donc dans une BOITE commune et on laisse `object-fit: contain`
   choisir la contrainte — chaque logo occupe la meme surface optique, quelle
   que soit sa forme. */
.gn2m-panneau__media--logo {
  display: grid;
  place-items: center;
  min-height: 9rem;
  padding: var(--e4);
  background: var(--neige);
  border-bottom: 1px solid var(--trait);
}

.gn2m-panneau__media--logo .gn2m-logo-filiale {
  width: auto;
  height: auto;
  max-width: min(100%, 13rem);
  max-height: 4.6rem;
  object-fit: contain;
  transition: transform 1.3s var(--ease), filter var(--t);
}

.gn2m-panneau:hover .gn2m-panneau__media--logo .gn2m-logo-filiale { transform: scale(1.04); }

/* N2M Habitat n'a pas de logo : son nom est compose. */
.gn2m-logo-mot {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  font-family: var(--police-titre), sans-serif;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--encre);
}
.gn2m-logo-mot__sigle { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; }
.gn2m-logo-mot__suite {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--texte-faible);
}

/* LES LOGOS DES FILIALES SONT SERVIS DANS LEURS COULEURS D'ORIGINE.
   Demande de M. Sall, 30/10/2026 : « enlever le grayscale sur les logos
   filiales dans la section écosystème, mettre les couleurs normales ».

   ⚠️ CECI ANNULE LA CONSIGNE DU 19/10. La direction avait demandé trois couleurs
   pour tout le site — blanc, or, noir — et les logos étaient désaturés à
   l'affichage pour s'y tenir : ceux d'Intelligence et de NVI Facility sont
   bleus, ceux de NVI Intérim et de DPM rouges, soit quatre couleurs de plus
   sur la page. C'est un arbitrage de marque, pas un réglage technique : si
   la question revient, elle se tranche au niveau de la direction du groupe,
   pas ici.

   Les fichiers n'ont jamais été modifiés — la désaturation était un filtre
   d'affichage. Les retirer rend donc la forme officielle exacte, sans rien
   recoloriser.

   Pour revenir au monochrome : `filter: grayscale(1) contrast(1.12)` sur
   `.gn2m-logo-filiale`. Le `contrast` n'était pas décoratif, il rattrapait
   le gris moyen d'un bleu ou d'un rouge saturé — sans lui, NVI Facility
   ressortait plus pâle que N2M Electronics, qui est déjà noir. */
.gn2m-logo-filiale { filter: none; }

.gn2m-panneau__corps {
  display: grid;
  align-content: start;
  gap: var(--e2);
  padding: var(--e5) var(--e4);
}

.gn2m-panneau__compte {
  font-family: var(--police-titre), sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-texte);
  font-variant-numeric: tabular-nums;
}

.gn2m-panneau__compte span {
  font-size: 1rem;
  color: var(--texte-faible);
  letter-spacing: 0.08em;
}

.gn2m-panneau__domaine {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.gn2m-panneau__nom {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
  line-height: 1;
}

.gn2m-panneau__nom a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.gn2m-panneau__nom a:hover { color: var(--accent-texte); }

.gn2m-panneau__baseline {
  font-style: italic;
  color: var(--accent-texte);
  font-size: 0.95rem;
}

.gn2m-panneau__phrase { color: var(--texte-doux); font-size: 0.97rem; }

.gn2m-panneau__aller {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: var(--e1);
  padding-top: var(--e2);
  border-top: 1px solid var(--trait);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--texte-faible);
  transition: color var(--t-court), gap var(--t-court);
}

.gn2m-panneau:hover .gn2m-panneau__aller { color: var(--accent-texte); gap: 0.8rem; }

/* Sous 900 px, pas de traversée : les panneaux s'empilent normalement. */
@media (max-width: 900px) {
  .gn2m-horizontal { padding-bottom: var(--e10); }
  /* ⚠️ Les panneaux s'EMPILENT ici : pas de bande qui défile sous 901 px.
     Si la fenêtre a été réduite depuis une taille d'ordinateur, les copies
     faites par le script sont déjà dans le document — on les retire de la
     mise en page, sinon on empile quatorze panneaux au lieu de sept. */
  .gn2m-horizontal__piste,
  .gn2m-horizontal__piste[data-defile="auto"] {
    flex-direction: column;
    padding-bottom: 0;
    width: auto;
    animation: none;
    transform: none !important;
  }
  .gn2m-horizontal__piste [data-panneau-copie] { display: none; }
  .gn2m-panneau { width: 100%; grid-template-columns: 1fr; }
  .gn2m-panneau__media { aspect-ratio: 16 / 10; }
  .gn2m-horizontal__jauge { display: none; }
}


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

.gn2m-secteurs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--e2);
}

.gn2m-secteur {
  display: grid;
  align-content: start;
  gap: var(--e2);
  padding: var(--e4) var(--e3);
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-l);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.gn2m-secteur:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombre);
  border-color: var(--or);
}

.gn2m-secteur__icone {
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: var(--rayon);
  background: var(--or-voile);
  color: var(--accent-texte);
}

.gn2m-secteur__nom { font-size: 1.28rem; text-transform: uppercase; }
.gn2m-secteur__phrase { font-size: 0.92rem; color: var(--texte-doux); }

/* Le lien vers LA page du sujet chez la filiale. Il porte le poids du
   maillage : on lui donne la couleur de la maison et de quoi etre touche. */
.gn2m-entite-ligne__aller {
  margin-top: var(--e2);
}

.gn2m-entite-ligne__aller a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.5rem;
  color: var(--accent-texte);
  font-weight: 600;
  font-size: 0.93rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-court);
}

.gn2m-entite-ligne__aller a:hover { border-bottom-color: currentColor; }

.gn2m-entite-ligne__aller svg { flex: 0 0 auto; }

/* Les contraintes d'un secteur vont toujours par quatre : deux colonnes
   donnent un carre, trois laissent une carte orpheline. */
.gn2m-exigences {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr));
}

/* Liste compacte des secteurs — l'accueil en présente dix-sept. On y cherche
   LE sien, on ne les lit pas tous : une rangée par secteur, le détail sur sa
   propre page. */
.gn2m-secteurs--index {
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
  gap: 0.75rem;
}

.gn2m-secteur--compact {
  grid-template-columns: auto 1fr;
  /* L'icone se cale sur le titre : centree, elle flotte au milieu des
     pastilles quand elles passent sur trois lignes. */
  align-items: start;
  gap: var(--e2);
  padding: 0.95rem 1.15rem;
}

.gn2m-secteur--compact:hover { transform: none; box-shadow: none; }

.gn2m-secteur--compact .gn2m-secteur__icone {
  width: 2.6rem;
  height: 2.6rem;
  margin-top: 0.1rem;
}

.gn2m-secteur--compact .gn2m-secteur__nom {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.gn2m-secteur__texte { display: grid; gap: 0.4rem; min-width: 0; }

.gn2m-secteur__marques {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: var(--e1) 0 0;
  padding: var(--e2) 0 0;
  border-top: 1px solid var(--trait);
  list-style: none;
}

.gn2m-secteur__marques li {
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-texte);
}

/* =============================================================== GALERIE */

.gn2m-galerie {
  background: var(--fond);
  color: var(--texte);
  padding-block: var(--e12);
  overflow: hidden;
}

.gn2m-galerie .gn2m-entete { margin-bottom: var(--e6); }

.gn2m-galerie__bande {
  display: flex;
  gap: var(--e2);
  width: max-content;
  will-change: transform;
  /* La série est doublée dans le HTML : translater d'exactement la moitié
     ramène la bande à son point de départ, sans raccord visible. Le défilement
     est AUTONOME — il ne dépend ni du défilement de la page ni de JavaScript.
     Une seule transformation sur un seul élément : c'est le compositeur qui
     travaille, pas le processeur. */
  animation: gn2m-bande-defile 64s linear infinite;
}

@keyframes gn2m-bande-defile {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* On s'arrête quand le visiteur veut regarder une photo. Uniquement au
   pointeur fin : sur un écran tactile, `:hover` reste collé après un appui. */
@media (pointer: fine) {
  .gn2m-galerie:hover .gn2m-galerie__bande,
  .gn2m-galerie__bande:focus-within { animation-play-state: paused; }
}

@media (prefers-reduced-motion: reduce) {
  .gn2m-galerie__bande { animation: none; }
}

.gn2m-galerie__vignette {
  flex: 0 0 auto;
  width: clamp(19rem, 32vw, 32rem);
  margin: 0;
  border-radius: var(--rayon-l);
  overflow: hidden;
  background: var(--fond-2);
}

.gn2m-galerie__vignette img {
  width: 100%;
  /* L'attribut height du HTML devient une hauteur DEFINIE : sans ce
     height:auto, aspect-ratio est ignore et la vignette prend 933 px de haut. */
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(0.15);
  transition: filter var(--t), transform var(--t);
}

.gn2m-galerie__vignette:hover img { filter: none; transform: scale(1.04); }

/* Le nom de l'entreprise sous chaque photo : sur le site d'un groupe, un
   visage doit dire de quelle maison il est, sinon la bande laisse croire que
   le groupe se résume à celle qui a fourni les photos. */
.gn2m-galerie__vignette {
  position: relative;
  --accent: var(--or);
}

.gn2m-galerie__entite {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1rem 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(6, 7, 13, 0.88) 62%);
  font-family: var(--police-titre), sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.gn2m-galerie__entite::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 2px;
  margin-right: 0.6rem;
  vertical-align: middle;
  background: var(--accent);
}

/* Sans JavaScript, la bande ne glisse pas : elle devient défilable au doigt. */
html:not(.js-motion) .gn2m-galerie__bande {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--e3);
}

/* =========================================================== ENGAGEMENTS */

.gn2m-engagement {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--e3);
  align-items: start;
  padding: var(--e4) var(--e3);
  background: var(--carte);
  border: 1px solid var(--trait);
  border-left: 3px solid var(--accent);
  border-radius: var(--rayon-l);
}

.gn2m-engagement__icone {
  display: grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--or-voile);
  color: var(--accent-texte);
}

.gn2m-engagement__titre {
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.gn2m-engagement__texte { color: var(--texte-doux); font-size: 0.95rem; }

/* ============================================================= QUESTIONS */

.gn2m-questions {
  display: grid;
  grid-template-columns: minmax(16rem, .8fr) minmax(20rem, 1.2fr);
  gap: var(--e6);
  align-items: start;
}

.gn2m-questions__entete { position: sticky; top: 7.5rem; display: grid; gap: var(--e3); }

.gn2m-questions__liste { display: grid; gap: 0; }

.gn2m-question {
  border-bottom: 1px solid var(--trait);
}

.gn2m-question summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e2);
  padding: var(--e3) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--police-titre), sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--texte);
  transition: color var(--t-court);
}

.gn2m-question summary::-webkit-details-marker { display: none; }
.gn2m-question summary:hover { color: var(--accent-texte); }

.gn2m-question summary svg {
  flex: 0 0 auto;
  color: var(--accent-texte);
  transition: transform var(--t);
}

.gn2m-question[open] summary svg { transform: rotate(45deg); }

.gn2m-question p {
  padding: 0 0 var(--e3);
  max-width: 44rem;
  color: var(--texte-doux);
}

@media (max-width: 900px) {
  .gn2m-questions { grid-template-columns: 1fr; gap: var(--e4); }
  .gn2m-questions__entete { position: static; }
  .gn2m-engagement { grid-template-columns: 1fr; gap: var(--e2); }
}

/* ========================================================= TÊTE DE PAGE */

.gn2m-tete-page {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 62vh;
  padding-block: 11rem var(--e8);
  background: var(--nuit);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.gn2m-tete-page--sobre {
  min-height: 46vh;
  background:
    radial-gradient(70% 70% at 78% 18%, rgba(245,194,0,.16), transparent 68%),
    var(--nuit);
}

.gn2m-tete-page__fond { position: absolute; inset: 0; z-index: -2; }

.gn2m-tete-page__fond img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: grayscale(.4) brightness(.5);
}

.gn2m-tete-page__fond::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,7,13,.88) 0%, rgba(6,7,13,.5) 45%, rgba(6,7,13,.95) 100%),
    linear-gradient(100deg, rgba(6,7,13,.86) 0%, transparent 72%);
}

.gn2m-tete-page__contenu { position: relative; display: grid; gap: var(--e3); max-width: 52rem; }
.gn2m-tete-page .gn2m-chapo { color: rgba(255,255,255,.84); }

/* ================================================ LISTE DES ENTREPRISES */

.gn2m-tableau-entites { display: grid; gap: var(--e2); }

.gn2m-entite-ligne {
  display: grid;
  gap: 0.5rem;
  padding: var(--e3) var(--e4);
  background: var(--carte);
  border: 1px solid var(--trait);
  border-left: 4px solid var(--accent, var(--or));
  border-radius: var(--rayon);
  transition: transform var(--t-court), border-color var(--t-court);
}

.gn2m-entite-ligne:hover { transform: translateX(5px); }

.gn2m-entite-ligne__nom {
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--accent-texte);
}

.gn2m-entite-ligne__domaine {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.gn2m-entite-ligne__phrase { color: var(--texte-doux); max-width: 56rem; }

/* ====================================================== OFFRES D'EMPLOI */

.gn2m-offres { display: grid; gap: var(--e2); }

.gn2m-offre {
  display: grid;
  gap: var(--e2);
  padding: var(--e4);
  background: var(--carte);
  border: 1px solid var(--trait);
  border-top: 3px solid var(--accent);
  border-radius: var(--rayon-l);
}

.gn2m-offre__titre { font-size: 1.5rem; text-transform: uppercase; }

.gn2m-offre__meta {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.gn2m-offre__texte { color: var(--texte-doux); }
.gn2m-offre .gn2m-btn-2 { justify-self: start; }

/* Quand il n'y a rien à afficher, on le dit — on ne laisse pas un blanc. */
.gn2m-vide {
  max-width: 44rem;
  padding: var(--e5);
  background: var(--fond-2);
  border: 1px dashed var(--trait-fort);
  border-radius: var(--rayon-l);
  color: var(--texte-doux);
}

/* ============================================================ PAGINATION */

.gn2m-section .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 2.6rem; height: 2.6rem;
  padding-inline: 0.7rem;
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--texte-doux);
  transition: border-color var(--t-court), color var(--t-court);
}

.gn2m-section .page-numbers:hover { border-color: var(--or); color: var(--accent-texte); }

.gn2m-section .page-numbers.current {
  background: var(--or);
  border-color: var(--or);
  color: var(--nuit);
}

.gn2m-section .navigation.pagination,
.gn2m-section nav.pagination { margin-top: var(--e6); display: flex; gap: 0.4rem; flex-wrap: wrap; }

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

.gn2m-exigence {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: var(--e4);
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-l);
}

.gn2m-exigence__numero {
  font-family: var(--police-titre), sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  /* ⚠️ L'OR VIF NE VA PAS ICI. Ce numéro vit sur fond CLAIR dans les trois
     gabarits qui l'emploient — page secteur, page d'offre, page Preuves
     (`gn2m-clair`, `gn2m-clair`, `gn2m-brume`). L'or de la charte y tient
     1,98:1, l'ancien 1,67:1 : dans les deux cas il disparaît presque.
     Le défaut est antérieur à la charte ; il est sorti en revoyant la
     palette, pas en la changeant. On passe donc à l'or profond, et on
     rebascule sur l'or vif là où le fond est sombre. */
  color: var(--accent-texte);
  font-variant-numeric: tabular-nums;
}

.gn2m-exigence__titre { font-size: 1.3rem; text-transform: uppercase; }
.gn2m-exigence__texte { color: var(--texte-doux); font-size: 0.95rem; }

.gn2m-secteur--lien { position: relative; }

.gn2m-secteur--lien .gn2m-secteur__nom a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.gn2m-secteur--lien:hover .gn2m-filiale__aller { color: var(--accent-texte); }

.gn2m-secteurs-liens {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e1);
  margin: var(--e3) 0 0;
  padding: 0;
  list-style: none;
}

.gn2m-secteurs-liens a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--trait-fort);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--texte-doux);
  transition: border-color var(--t-court), color var(--t-court);
}

.gn2m-secteurs-liens a:hover { border-color: var(--or); color: var(--accent-texte); }

/* ========================================== RÉALISATIONS PAR ENTREPRISE */

.gn2m-realisations {
  margin-top: var(--e6);
  padding-top: var(--e4);
  border-top: 1px solid var(--trait);
}

.gn2m-realisations__titre {
  font-family: var(--police-titre), sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texte-faible);
  margin-bottom: var(--e3);
}

.gn2m-realisations__liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--e2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gn2m-realisations__liste li {
  display: grid;
  gap: 0.15rem;
  padding: var(--e2) 0 var(--e2) var(--e2);
  border-left: 2px solid var(--or);
}

.gn2m-realisations__liste strong {
  font-family: var(--police-titre), sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--texte);
  font-variant-numeric: tabular-nums;
}

.gn2m-realisations__quoi { font-size: 0.92rem; color: var(--texte-doux); }

.gn2m-realisations__par {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.gn2m-realisations__note {
  margin-top: var(--e3);
  max-width: 52rem;
  font-size: 0.82rem;
  color: var(--texte-faible);
  line-height: 1.6;
}

/* ============================================ FICHES DÉTAILLÉES ENTREPRISES */

.gn2m-fiches { display: grid; gap: var(--e4); }

.gn2m-fiche {
  display: grid;
  gap: var(--e3);
  padding: var(--e5);
  background: var(--carte);
  border: 1px solid var(--trait);
  border-top: 4px solid var(--accent, var(--or));
  border-radius: var(--rayon-l);
}

.gn2m-fiche__tete {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: var(--e3);
  padding-bottom: var(--e2);
  border-bottom: 1px solid var(--trait);
}

.gn2m-fiche__domaine {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.gn2m-fiche__nom {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1.05;
}

.gn2m-fiche__nom a { color: var(--accent-texte); }

.gn2m-fiche__baseline {
  font-style: italic;
  color: var(--texte-doux);
  font-size: 0.95rem;
}

.gn2m-fiche__chiffres {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
}

.gn2m-fiche__chiffres li { font-size: 0.85rem; color: var(--texte-faible); }

.gn2m-fiche__chiffres strong {
  font-family: var(--police-titre), sans-serif;
  font-size: 1.35rem;
  color: var(--accent-texte);
  margin-right: 0.2rem;
}

.gn2m-fiche__accroche {
  font-size: 1.12rem;
  color: var(--texte);
  max-width: 54rem;
}

/* Le « pourquoi » : l'argument, mis en évidence sans être criard. */
.gn2m-fiche__pourquoi {
  padding-left: var(--e3);
  border-left: 3px solid var(--accent, var(--or));
  color: var(--texte-doux);
  font-size: 1rem;
  max-width: 54rem;
}

.gn2m-fiche__services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--e2) var(--e4);
  padding-top: var(--e2);
}

.gn2m-prestation { display: grid; gap: 0.3rem; align-content: start; }

.gn2m-prestation__titre {
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--texte);
}

.gn2m-prestation__texte { font-size: 0.9rem; color: var(--texte-doux); line-height: 1.6; }

.gn2m-fiche__cibles,
.gn2m-panneau__cibles {
  display: grid;
  gap: 0.25rem;
  padding-top: var(--e2);
  border-top: 1px solid var(--trait);
  font-size: 0.88rem;
  color: var(--texte-doux);
}

.gn2m-fiche__cibles span,
.gn2m-panneau__cibles span,
.gn2m-panneau__secteurs > span:first-child {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

/* Les secteurs d'une entreprise — le maillage dans l'autre sens.
   En ligne et non en grille : c'est une phrase, pas une liste, et le panneau
   est déjà dense. Les liens prennent l'accent de l'entreprise. */
.gn2m-panneau__secteurs {
  padding-top: var(--e2);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--texte-doux);
}

.gn2m-panneau__secteurs > span:first-child {
  display: block;
  margin-bottom: 0.15rem;
}

.gn2m-panneau__secteurs a {
  color: var(--accent-texte);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent, var(--or)) 45%, transparent);
  transition: text-decoration-color var(--t-court);
}

.gn2m-panneau__secteurs a:hover {
  text-decoration-color: currentColor;
}

.gn2m-panneau__secteurs-reste { color: var(--texte-faible); }

.gn2m-fiche__aller a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-texte);
  transition: gap var(--t-court);
}

.gn2m-fiche__aller a:hover { gap: 0.8rem; }

/* Le « pourquoi » dans les panneaux horizontaux */
.gn2m-panneau__pourquoi {
  padding-left: var(--e2);
  border-left: 2px solid var(--accent);
  font-size: 0.9rem;
  color: var(--texte-faible);
  font-style: italic;
}

@media (max-width: 640px) {
  .gn2m-fiche { padding: var(--e3); }
  .gn2m-fiche__chiffres { text-align: left; }
}

/* ========================================================================
   LE DÉCOR 3D PERMANENT — RETIRÉ LE 29/10/2026
   ------------------------------------------------------------------------
   Il posait un canvas fixe derrière tout le document, que les sections
   sombres laissaient voir par transparence. Le site étant passé au blanc,
   plus aucune section ne le montrait : compté sur la page rendue, zéro
   section translucide. Le canvas tournait pour rien.

   ⚠️ Une de ses règles ABAISSAIT le z-index de l'en-tête de 100 à 60. En la
   retirant, l'en-tête retrouve son 100 de base — donc il reste au-dessus de
   `main`, et les poches du menu continuent de s'ouvrir. C'est le défaut du
   21/10 : vérifié après coup, il ne se rouvre pas.
   ======================================================================== */

/* ======================================================================
   TÉLÉPHONE — ce qui se lit et ce qui se touche
   ----------------------------------------------------------------------
   Relevé à 390 px sur les quinze pages : aucune ne débordait, mais des
   libellés descendaient à 11 px et des liens de liste n'offraient que
   17 px de hauteur à toucher. Les deux se paient sur un téléphone tenu
   à bout de bras, dans la rue, à Dakar.
   ====================================================================== */

/* Le bouton de repli est créé par le script, et seulement sur téléphone.
   S'il reste après un élargissement de la fenêtre, il ne doit plus paraître. */
.gn2m-panneau__replier { display: none; }

@media (max-width: 768px) {

  /* --- Les six entreprises, repliées ----------------------------------- */
  /* Dépliées, elles font huit écrans et demi. L'identité reste visible,
     le détail attend qu'on le demande. */
  .gn2m-panneau[data-repli="ferme"] .gn2m-panneau__detail { display: none; }

  .gn2m-panneau__replier {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-block: 0.4rem 0.2rem;
    padding: 0.7rem 1.1rem;
    background: transparent;
    border: 1px solid var(--accent, var(--or));
    border-radius: 999px;
    color: var(--accent-texte);
    font-family: var(--police-titre), sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--t-court), color var(--t-court);
  }

  .gn2m-panneau__replier svg { transition: transform var(--t-court); }
  .gn2m-panneau__replier[aria-expanded="true"] svg { transform: rotate(180deg); }


  /* --- Plancher de lisibilité : aucun libellé sous 13 px --------------- */
  .gn2m-hero__invite,
  .gn2m-panneau__domaine,
  .gn2m-fiche__domaine,
  .gn2m-entite-ligne__domaine,
  .gn2m-secteur__marques li,
  .gn2m-realisations__par,
  .gn2m-etape__moment,
  .gn2m-etape__filiale,
  .gn2m-galerie__entite,
  .gn2m-aside__titre,
  .gn2m-pied__titre { font-size: 0.83rem; }

  /* --- Ce qui se touche : une rangée entière, pas une ligne de texte --- */
  .gn2m-pied__col ul,
  .gn2m-pied__tels,
  .gn2m-aside__liens,
  .gn2m-aside__tels { gap: 0.2rem; }

  .gn2m-pied__col ul li a,
  .gn2m-pied__tels li a,
  .gn2m-aside__liens li a {
    display: block;
    padding-block: 0.7rem;
  }

  .gn2m-aside__tels li a {
    display: block;
    padding-block: 0.6rem;
  }

  /* Dix-sept secteurs, donc dix-sept liens : chacun doit offrir sa rangée. */
  .gn2m-secteur--compact .gn2m-secteur__nom a {
    display: block;
    padding-block: 0.7rem;
  }

  .gn2m-fiche__aller a,
  .gn2m-tete-page__contenu .gn2m-surtitre a {
    display: inline-block;
    padding-block: 0.6rem;
  }

  .gn2m-signature {
    display: inline-block;
    padding-block: 0.7rem;
  }

  /* --- Les champs de formulaire ---------------------------------------- */
  /* 16 px pile : en dessous, iOS zoome tout seul dès qu'on touche un champ,
     la page saute et le visiteur perd le fil. La valeur est en px, pas en
     rem : c'est la taille CALCULÉE que Safari regarde. */
  .gn2m-champ input,
  .gn2m-champ select,
  .gn2m-champ textarea { font-size: 16px; }

  /* Deux champs côte à côte, c'est deux champs trop étroits. */
  .gn2m-champ-double { grid-template-columns: 1fr; }

  /* --- Le décor ne doit pas traverser le texte ------------------------- */
  /* En pleine largeur, chaque ligne de texte croise le maillage. On baisse
     le décor plutôt que de fermer les sections : la profondeur reste, elle
     cesse seulement de se battre avec les mots. */
}

/* ======================================================================
   LE CONFIGURATEUR DE BESOIN
   ----------------------------------------------------------------------
   Les étapes sont visibles par défaut : c'est le script qui les replie.
   Rien ici ne masque quoi que ce soit — sans JavaScript, les quatre
   questions se lisent d'un trait.
   ====================================================================== */

.gn2m-conf { max-width: 58rem; margin-inline: auto; }

.gn2m-conf__jauge {
  display: flex;
  align-items: center;
  gap: var(--e2);
  font-size: 0.82rem;
  color: var(--texte-faible);
  margin-bottom: var(--e4);
}
.gn2m-conf__jauge strong { color: var(--texte); font-variant-numeric: tabular-nums; }

.gn2m-conf__barre {
  flex: 1;
  height: 3px;
  background: var(--trait);
  border-radius: 2px;
  overflow: hidden;
}
.gn2m-conf__barre > span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--or-profond);
  transition: width var(--t);
}

.gn2m-conf__etape { border: 0; padding: 0; margin: 0 0 var(--e4); }

.gn2m-conf__etape legend {
  display: block;
  width: 100%;
  font-family: var(--police-titre), sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: var(--e3);
}

.gn2m-conf__numero {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--accent-texte);
  margin-bottom: 0.4rem;
}

.gn2m-conf__aide {
  display: block;
  font-family: var(--police-texte), sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
  text-transform: none;
  color: var(--texte-doux);
  margin-top: 0.5rem;
}

.gn2m-conf__famille {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texte-faible);
  margin: var(--e3) 0 0.6rem;
}
.gn2m-conf__famille:first-of-type { margin-top: 0; }

.gn2m-conf__grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.6rem;
}
.gn2m-conf__grille--large { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }

/* Le choix lui-même. Le bouton natif est masqué visuellement mais RESTE
   focusable : c'est lui qui porte le focus clavier, et l'anneau est reporté
   sur l'étiquette par `:focus-visible + span`. */
.gn2m-conf__choix { position: relative; display: block; cursor: pointer; }
.gn2m-conf__choix input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
}

.gn2m-conf__choix-corps {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--carte);
  transition: border-color var(--t-court), background var(--t-court), transform var(--t-court);
}
.gn2m-conf__choix--detaille .gn2m-conf__choix-corps { align-items: flex-start; }

.gn2m-conf__choix:hover .gn2m-conf__choix-corps { border-color: var(--trait-fort); transform: translateY(-1px); }

.gn2m-conf__choix input:checked + .gn2m-conf__choix-corps {
  border-color: var(--or-profond);
  box-shadow: inset 0 0 0 1px var(--or-profond);
  background: var(--or-voile);
}

.gn2m-conf__choix input:focus-visible + .gn2m-conf__choix-corps {
  outline: 3px solid var(--nuit);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--or);
}

.gn2m-conf__choix-icone { color: var(--accent-texte); flex: none; line-height: 0; }
.gn2m-conf__choix-titre { display: block; font-weight: 600; line-height: 1.3; }
.gn2m-conf__choix-detail {
  display: block;
  font-size: 0.86rem;
  color: var(--texte-doux);
  line-height: 1.45;
  margin-top: 0.2rem;
}

.gn2m-conf__etape--manque .gn2m-conf__choix-corps { border-color: var(--encre); border-width: 2px; }

.gn2m-conf__erreur {
  color: var(--texte);
  font-weight: 600;
  margin: 0 0 var(--e2);
}

.gn2m-conf__nav { margin-top: var(--e4); }

/* ---- Le résultat ---------------------------------------------------- */

.gn2m-conf-resultat { max-width: 58rem; margin-inline: auto; }
.gn2m-conf-resultat .gn2m-chapo { margin-bottom: var(--e5); }
.gn2m-conf-resultat .gn2m-chapo a { color: var(--accent-texte); text-decoration: underline; text-underline-offset: 3px; }

.gn2m-conf-urgence {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  padding: var(--e2) var(--e3);
  border-left: 4px solid var(--encre);
  background: var(--fond-2);
  margin-bottom: var(--e4);
  font-weight: 600;
}
.gn2m-conf-urgence a { color: var(--accent-texte); text-decoration: underline; text-underline-offset: 3px; }

.gn2m-conf-fiches { display: grid; gap: var(--e3); }

.gn2m-conf-fiche {
  padding: var(--e3);
  border: 1px solid var(--trait);
  border-left: 4px solid var(--accent, var(--or));
  border-radius: var(--rayon);
  background: var(--carte);
}
.gn2m-conf-fiche--pilote { box-shadow: var(--ombre); }

.gn2m-conf-fiche__rang {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texte-faible);
}
.gn2m-conf-fiche--pilote .gn2m-conf-fiche__rang { color: var(--accent-texte); }

.gn2m-conf-fiche__nom {
  font-family: var(--police-titre), sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0.3rem 0 0.2rem;
}
.gn2m-conf-fiche__domaine { font-size: 0.9rem; color: var(--texte-doux); }

.gn2m-conf-fiche__motif {
  margin-top: var(--e2);
  font-size: 0.9rem;
  color: var(--texte-doux);
}
.gn2m-conf-fiche__motif span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texte-faible);
  margin-bottom: 0.15rem;
}

.gn2m-conf-fiche .gn2m-puces { margin-top: var(--e2); }

.gn2m-conf-fiche__aller { margin-top: var(--e3); }
.gn2m-conf-fiche__aller a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--accent-texte);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gn2m-conf-actions { margin-top: var(--e5); }

@media (max-width: 700px) {
  .gn2m-conf__grille,
  .gn2m-conf__grille--large { grid-template-columns: 1fr; }
  .gn2m-conf__nav .gn2m-btn,
  .gn2m-conf__nav .gn2m-btn-2 { flex: 1 1 auto; justify-content: center; }
}

/* La légende de la ronde du hero : elle nomme l'entreprise que les particules
   sont en train de composer. Posée par le script, jamais visible sans lui. */

@keyframes gn2m-entite-entre {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
}

@media (max-width: 700px) {
}

/* ============================================= LES PAGES ENTREPRISE
   /filiales/ et /filiales/<slug>/. Ces pages SITUENT une entreprise dans le
   groupe ; elles ne la vendent pas. L'habillage suit : sobre, dense en
   information, et l'accent de l'entreprise comme seul signal de couleur. */

/* ---- Le bandeau d'une fiche ---- */
.gn2m-tete-filiale .gn2m-tete-page__contenu { gap: var(--e2); }

.gn2m-filiale-tete__domaine {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-texte);
}

.gn2m-filiale-tete__baseline {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

.gn2m-filiale-tete__chiffres {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e3);
  margin: var(--e2) 0 0;
  padding: 0;
  list-style: none;
}

.gn2m-filiale-tete__chiffres li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.gn2m-filiale-tete__chiffres strong {
  display: block;
  font-family: var(--police-titre), sans-serif;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--accent-texte);
}

.gn2m-filiale-tete__aller { margin-top: var(--e2); }

.gn2m-filiale-tete__aller .gn2m-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---- Le « pourquoi » : une seule phrase, qu'on veut lue ---- */
.gn2m-filiale__pourquoi {
  max-width: 44rem;
  margin-top: var(--e2);
  font-size: clamp(1.1rem, 2.1vw, 1.45rem);
  line-height: 1.55;
  color: var(--texte);
  border-left: 3px solid var(--accent, var(--or));
  padding-left: var(--e3);
}

/* ---- Les prestations, en grille numérotée ---- */
.gn2m-prestations {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

.gn2m-prestation--fiche {
  gap: 0.5rem;
  padding: var(--e3);
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-m);
}

.gn2m-prestation__numero {
  font-family: var(--police-titre), sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-texte);
  font-variant-numeric: tabular-nums;
}

/* ---- Les entreprises voisines ---- */
.gn2m-voisines {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.gn2m-voisine {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: var(--e3);
  background: var(--carte);
  border: 1px solid var(--trait);
  border-left: 3px solid var(--accent, var(--or));
  border-radius: var(--rayon-m);
  color: inherit;
  text-decoration: none;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.gn2m-voisine:hover {
  transform: translateY(-3px);
  border-color: var(--accent, var(--or));
}

.gn2m-voisine__nom {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-texte);
}

.gn2m-voisine__domaine {
  font-size: 0.82rem;
  color: var(--texte-doux);
  line-height: 1.5;
}

.gn2m-voisine__compte {
  padding-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--texte-faible);
}

.gn2m-voisine__compte strong {
  font-family: var(--police-titre), sans-serif;
  font-size: 1.1rem;
  color: var(--texte);
}

/* ---- Les secteurs d'une entreprise : une phrase, pas un tableau ---- */
.gn2m-liste-secteurs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: var(--e2) 0 0;
  padding: 0;
  list-style: none;
}

.gn2m-liste-secteurs a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  background: var(--fond-2);
  border: 1px solid var(--trait);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--texte);
  text-decoration: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.gn2m-liste-secteurs a:hover {
  border-color: var(--accent, var(--or));
  background: color-mix(in srgb, var(--accent, var(--or)) 10%, var(--fond-2));
}

/* ---- Le hub ---- */
.gn2m-filiales-hub {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
}

.gn2m-carte-filiale {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: var(--e4) var(--e3);
  background: var(--carte);
  border: 1px solid var(--trait);
  border-top: 3px solid var(--accent, var(--or));
  border-radius: var(--rayon-m);
}

.gn2m-carte-filiale__compte {
  font-family: var(--police-titre), sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-texte);
  font-variant-numeric: tabular-nums;
}

.gn2m-carte-filiale__domaine {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.gn2m-carte-filiale__nom { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.gn2m-carte-filiale__nom a { color: var(--texte); text-decoration: none; }
.gn2m-carte-filiale__nom a:hover { color: var(--accent-texte); }

.gn2m-carte-filiale__phrase {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--texte-doux);
}

.gn2m-carte-filiale__meta {
  font-size: 0.8rem;
  color: var(--texte-faible);
  font-variant-numeric: tabular-nums;
}

.gn2m-carte-filiale__liens {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2) var(--e3);
  padding-top: var(--e2);
  margin-top: auto;
  border-top: 1px solid var(--trait);
  font-size: 0.88rem;
}

.gn2m-carte-filiale__fiche { font-weight: 600; color: var(--accent-texte); }

.gn2m-carte-filiale__site,
.gn2m-fiche__externe {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--texte-faible);
}

.gn2m-carte-filiale__site:hover,
.gn2m-fiche__externe:hover { color: var(--texte); }

/* ---- La vue d'ensemble de « Le groupe », allégée ---- */
.gn2m-fiche__meta {
  font-size: 0.82rem;
  color: var(--texte-faible);
  font-variant-numeric: tabular-nums;
}

.gn2m-fiche__aller {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2) var(--e4);
  align-items: center;
}

/* ============================================= LES OFFRES TRANSVERSALES
   /solutions/ et /solutions/<slug>/. Le gabarit en huit blocs est imposé par
   le §9 du cahier des charges ; l'habillage reprend tout ce qui existe déjà
   (formulaires, questions, exigences, listes de secteurs) et n'ajoute que ce
   qui n'avait pas d'équivalent : les rôles, les preuves et le modèle. */

/* ---- Le bandeau ---- */
.gn2m-offre-tete__entites {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: var(--e2);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.gn2m-offre-tete__entites > span:first-child {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-texte);
}

.gn2m-offre-tete__entites a { color: rgba(255, 255, 255, 0.86); }
.gn2m-offre-tete__entites a:hover { color: var(--accent-texte); }

/* ---- 1. Le problème : une seule phrase, qu'on veut lue ---- */
.gn2m-offre__probleme {
  max-width: 46rem;
  margin-top: var(--e2);
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  line-height: 1.55;
  color: var(--texte);
  border-left: 3px solid var(--accent, var(--or));
  padding-left: var(--e3);
}

/* ---- 2. Ce qui est livré ---- */
.gn2m-offre__livre {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: var(--e2) var(--e4);
  margin: var(--e4) 0 0;
  padding: 0;
  list-style: none;
}

.gn2m-offre__livre li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--texte-doux);
}

.gn2m-offre__livre li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent, var(--or));
}

/* ---- 3. Qui fait quoi ---- */
.gn2m-offre__roles {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.gn2m-role {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  padding: var(--e3);
  background: var(--carte);
  border: 1px solid var(--trait);
  border-top: 3px solid var(--accent, var(--or));
  border-radius: var(--rayon-m);
}

.gn2m-role__verbe {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-texte);
}

.gn2m-role__nom { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.gn2m-role__nom a { color: var(--texte); text-decoration: none; }
.gn2m-role__nom a:hover { color: var(--accent-texte); }

.gn2m-role__texte { font-size: 0.9rem; line-height: 1.6; color: var(--texte-doux); }

/* ---- 5 et 6. Les preuves et le modèle, côte à côte ---- */
.gn2m-offre__deux {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: var(--e6) var(--e8);
}

.gn2m-offre__preuves,
.gn2m-offre__modele {
  margin: var(--e3) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--e2);
}

.gn2m-offre__preuves li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--texte-doux);
}

.gn2m-offre__preuves strong {
  font-family: var(--police-titre), sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-texte);
  font-variant-numeric: tabular-nums;
}

.gn2m-offre__modele li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--texte-doux);
}

.gn2m-offre__modele li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.7rem;
  height: 2px;
  background: var(--accent, var(--or));
}

/* La note qui dit ce qu'on ne publie pas — et pourquoi. Elle compte autant
   que la liste au-dessus : c'est elle qui évite qu'on prenne l'absence de
   chiffres pour un oubli. */
.gn2m-offre__note {
  margin-top: var(--e3);
  padding-top: var(--e2);
  border-top: 1px solid var(--trait);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--texte-faible);
}

/* ---- 8. Le formulaire dédié ---- */
.gn2m-offre__demande {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--e6) var(--e8);
  align-items: start;
}

.gn2m-formulaire--offre { margin-top: 0; }

/* ---- Le hub ---- */
.gn2m-offres {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.gn2m-carte-offre {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: var(--e3);
  background: var(--carte);
  border: 1px solid var(--trait);
  border-left: 3px solid var(--accent, var(--or));
  border-radius: var(--rayon-m);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.gn2m-carte-offre:hover {
  transform: translateY(-3px);
  border-color: var(--accent, var(--or));
}

.gn2m-carte-offre__nom { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.gn2m-carte-offre__nom a { color: var(--texte); text-decoration: none; }
.gn2m-carte-offre__nom a:hover { color: var(--accent-texte); }

.gn2m-carte-offre__promesse {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--texte-doux);
}

.gn2m-carte-offre__entites {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--texte-faible);
}

.gn2m-carte-offre__aller {
  padding-top: var(--e2);
  margin-top: auto;
  border-top: 1px solid var(--trait);
  font-size: 0.88rem;
  font-weight: 600;
}

.gn2m-carte-offre__aller a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-texte);
}

/* ================================================ PREUVES ET RESSOURCES
   /preuves/, /ressources/ et /ressources/<slug>/. On réutilise tout ce qui
   existe (exigences, listes de secteurs, appels) et on n'ajoute que ce qui
   n'avait pas d'équivalent. */

/* ---- Les chiffres, avec leur provenance ---- */
.gn2m-preuves-chiffres {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.gn2m-preuve-chiffre {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: var(--e3);
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-m);
}

.gn2m-preuve-chiffre__valeur {
  font-family: var(--police-titre), sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-texte);
  font-variant-numeric: tabular-nums;
}

.gn2m-preuve-chiffre__valeur span { font-size: 0.6em; }

.gn2m-preuve-chiffre__libelle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte);
}

.gn2m-preuve-chiffre__precision {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--texte-doux);
}

/* La provenance EST la preuve : elle se lit, elle ne se devine pas. */
.gn2m-preuve-chiffre__source {
  display: grid;
  gap: 0.2rem;
  padding-top: var(--e2);
  margin-top: auto;
  border-top: 1px solid var(--trait);
  font-size: 0.82rem;
  color: var(--texte-faible);
}

.gn2m-preuve-chiffre__source span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---- Les certifications ---- */
.gn2m-certifs {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.gn2m-certif {
  display: grid;
  gap: 0.3rem;
  align-content: start;
  padding: var(--e3);
  border: 1px solid var(--trait);
  border-left: 3px solid var(--accent);
  border-radius: var(--rayon-m);
}

.gn2m-certif__nom {
  font-family: var(--police-titre), sans-serif;
  font-size: 1.5rem;
  line-height: 1.1;
  /* ⚠️ Le jeton, parce que cette section a CHANGE DE FOND. Les
     certifications etaient sur un aplat sombre, ou l'or vif tient 9,65:1.
     La section est passee en clair le 19/10/2026 et l'or y tombait a
     1,81:1 — illisible, et personne ne l'aurait vu sans mesure. */
  color: var(--accent-texte);
}

.gn2m-certif__portee { font-size: 0.9rem; color: var(--texte-doux); line-height: 1.5; }

.gn2m-certif__detenteur {
  padding-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

/* ---- Les moyens ---- */
.gn2m-moyens {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.gn2m-moyen { display: grid; gap: 0.3rem; align-content: start; }

.gn2m-moyen__valeur {
  font-family: var(--police-titre), sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-texte);
}

.gn2m-moyen__libelle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte);
}

.gn2m-moyen__detail { font-size: 0.9rem; line-height: 1.6; color: var(--texte-doux); }

/* ---- Les villes : des étiquettes, pas des liens ---- */
.gn2m-preuves-villes li span {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  background: var(--fond-2);
  border: 1px solid var(--trait);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--texte);
}

/* ---- Ce que le client reçoit ---- */
.gn2m-livrables {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.gn2m-livrable {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  padding: var(--e3);
  border: 1px solid var(--trait);
  border-top: 3px solid var(--accent, var(--or));
  border-radius: var(--rayon-m);
}

.gn2m-livrable__titre { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.gn2m-livrable__texte { font-size: 0.9rem; line-height: 1.6; color: var(--texte-doux); }

.gn2m-livrable__par {
  padding-top: var(--e2);
  margin-top: auto;
  border-top: 1px solid var(--trait);
  font-size: 0.8rem;
}

.gn2m-livrable__par a { color: var(--accent-texte); font-weight: 600; }

/* ---- Les cartes de guide ---- */
.gn2m-guides {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.gn2m-carte-guide {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: var(--e3);
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-m);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.gn2m-carte-guide:hover { transform: translateY(-3px); border-color: var(--or); }

.gn2m-carte-guide__duree {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.gn2m-carte-guide__titre { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.gn2m-carte-guide__titre a { color: var(--texte); text-decoration: none; }
.gn2m-carte-guide__titre a:hover { color: var(--accent-texte); }

.gn2m-carte-guide__resume { font-size: 0.9rem; line-height: 1.6; color: var(--texte-doux); }

.gn2m-carte-guide__aller {
  padding-top: var(--e2);
  margin-top: auto;
  border-top: 1px solid var(--trait);
  font-size: 0.88rem;
  font-weight: 600;
}

.gn2m-carte-guide__aller a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-texte);
}

/* ---- La page d'un guide : une colonne, faite pour être lue ---- */
.gn2m-guide {
  display: grid;
  gap: var(--e6);
  max-width: 46rem;
}

.gn2m-guide__section { display: grid; gap: 0.5rem; }

.gn2m-guide__numero {
  font-family: var(--police-titre), sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-texte);
  font-variant-numeric: tabular-nums;
}

.gn2m-guide__titre {
  font-family: var(--police-titre), sans-serif;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--texte);
}

/* La mesure de lecture compte autant que le corps : au-delà de ~75 signes,
   l'œil perd la ligne suivante en revenant à la marge. */
.gn2m-guide__texte {
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 1.75;
  color: var(--texte-doux);
}

/* ================================================= DEVIS ET AUDIT
   /devis/ et /audit/. Le formulaire à gauche, ce qui rassure à droite :
   un formulaire qualifié se remplit mieux quand on voit, sans scroller,
   ce qui se passera ensuite. */

.gn2m-demande {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--e6) var(--e8);
  align-items: start;
}

@media (max-width: 980px) {
  .gn2m-demande { grid-template-columns: 1fr; }
}

.gn2m-demande__aside {
  position: sticky;
  /* 87 px mesurés sur l'entête au 13/10/2026 ; la variable n'existe pas
     encore, le repli est donc la valeur réelle et non une approximation. */
  top: calc(var(--hauteur-entete, 5.5rem) + var(--e3));
  display: grid;
  gap: var(--e2);
  padding: var(--e3);
  background: var(--fond-2);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-m);
}

/* Un rail collant n'a de sens que s'il tient dans la hauteur de l'écran ;
   en dessous, il se décolle pour ne pas couper son propre contenu. */
@media (max-height: 760px), (max-width: 980px) {
  .gn2m-demande__aside { position: static; }
}

.gn2m-formulaire--qualifie { margin-top: 0; }

/* ---- Les listes à cocher ---- */
.gn2m-cases { border: 0; padding: 0; margin: 0; }

.gn2m-cases legend {
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.gn2m-cases__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.5rem;
  margin-top: var(--e2);
}

/* La case entière est cliquable, pas seulement le carré de 14 px : sur
   téléphone, viser une case à cocher native est le premier abandon d'un
   formulaire. */
.gn2m-case {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-s, 8px);
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.gn2m-case:hover { border-color: var(--trait-fort); }

.gn2m-case input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  accent-color: var(--or-profond);
}

.gn2m-case:has(input:checked) {
  border-color: var(--or-profond);
  background: color-mix(in srgb, var(--or) 10%, var(--carte));
}

/* `:has()` n'est pas partout. Sans lui, la case cochée reste lisible — elle
   perd seulement son fond teinté, ce qui ne retire aucune information : la
   coche native, elle, est toujours là. */

/* ---- Le rail de droite ---- */
.gn2m-etapes-simple {
  display: grid;
  gap: var(--e2);
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--texte-doux);
}

.gn2m-etapes-simple li::marker {
  color: var(--accent-texte);
  font-weight: 700;
}

.gn2m-etapes-simple strong { color: var(--texte); }

/* =========================================================================
   LE BOUTON WHATSAPP
   -------------------------------------------------------------------------
   ⚠️ IL EST EN BAS À GAUCHE, PAS À DROITE. Sur téléphone, le pouce d'un
   droitier couvre le coin bas-droit : c'est là que se logent les boutons
   « retour en haut » et les bandeaux de consentement, et un bouton flottant
   de plus y devient un piège à clics involontaires. À gauche, il reste
   atteignable et ne recouvre rien.

   ⚠️ IL NE PORTE PAS LE VERT DE WHATSAPP. Le site tient en trois couleurs
   (blanc, or, noir) depuis le 19/10/2026 — y ajouter le #25D366 ruinerait la
   règle pour un bouton. Le glyphe de WhatsApp est reconnaissable par sa
   FORME ; c'est elle qui fait le travail, pas la couleur.
   ========================================================================= */

/* ---- Le menu des intentions ------------------------------------------ */

.gn2m-wa__menu {
  width: min(21rem, calc(100vw - 2 * var(--e3)));
  padding: var(--e3);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--rayon-l);
  background: var(--nuit);
  color: #f6f7fb;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
}

.gn2m-wa__menu[hidden] { display: none; }

.gn2m-wa__titre {
  font-family: var(--police-titre), sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: var(--e2);
}

.gn2m-wa__choix {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.6rem;
  border-radius: var(--rayon);
  font-size: 0.95rem;
  line-height: 1.3;
  color: #f6f7fb;
  transition: background var(--t-court), color var(--t-court);
}

.gn2m-wa__choix + .gn2m-wa__choix { border-top: 1px solid rgba(255, 255, 255, 0.08); }

.gn2m-wa__choix:hover,
.gn2m-wa__choix:focus-visible { background: rgba(244, 170, 34, 0.14); color: var(--or); }

.gn2m-wa__choix-icone { color: var(--or); flex: none; line-height: 0; }

.gn2m-wa__numero {
  margin-top: var(--e2);
  padding-top: var(--e2);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.62);
}

/* =========================================================================
   LE SÉLECTEUR DE LANGUE
   -------------------------------------------------------------------------
   ⚠️ LES DEUX LANGUES SONT AFFICHÉES, PAS SEULEMENT L'AUTRE. Un sélecteur qui
   ne montre que « EN » oblige le visiteur à deviner s'il clique pour passer en
   anglais ou s'il est déjà dessus. Deux libellés, celui qui est actif marqué.
   ========================================================================= */

.gn2m-langues {
  display: inline-flex;
  align-items: center;
  flex: none;
  border: 1px solid var(--trait-fort);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--police-titre), sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.gn2m-langues__item {
  padding: 0.35rem 0.6rem;
  color: var(--texte-doux);
  line-height: 1;
  transition: background var(--t-court), color var(--t-court);
}

.gn2m-langues__item[aria-current] {
  background: var(--or);
  color: var(--nuit);
}

a.gn2m-langues__item:hover,
a.gn2m-langues__item:focus-visible { color: var(--accent-texte); }

/* Sous 1150 px la signature disparaît déjà : le sélecteur reste, c'est une
   fonction, pas une décoration. Il passe simplement avant le téléphone. */
@media (max-width: 900px) {
  .gn2m-langues { font-size: 0.7rem; }
  .gn2m-langues__item { padding: 0.3rem 0.5rem; }
}

/* =========================================================================
   LE MENU EN POCHES (21/10/2026)
   -------------------------------------------------------------------------
   Onze entrées à plat chevauchaient le logo et ne se lisaient plus. Elles
   sont rangées en quatre poches, et CHAQUE PARENT RESTE UN LIEN : « Le
   groupe » mène toujours à sa page. Un parent qui ne mène nulle part oblige
   le visiteur à deviner laquelle de ses filles est la bonne.

   ⚠️ SANS JAVASCRIPT, les sous-menus restent accessibles : le survol seul
   suffit au bureau, et sur téléphone ils s'affichent dépliés (c'est la
   classe `gn2m-nav--js`, posée par le script, qui autorise le repli).
   ========================================================================= */

.gn2m-nav__liste > li { position: relative; }

/* La flèche qui annonce une poche. En `currentColor` : elle suit la couleur
   du lien, y compris au survol. */
.gn2m-nav__liste > .menu-item-has-children > a::before {
  content: "";
  position: absolute;
  right: -0.9rem;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.3rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  transition: transform var(--t-court), opacity var(--t-court);
}

.gn2m-nav__liste > .menu-item-has-children { margin-right: 0.9rem; }

.gn2m-nav__liste > .menu-item-has-children:hover > a::before,
.gn2m-nav__liste > .menu-item-has-children:focus-within > a::before {
  opacity: 1;
  transform: rotate(45deg) translate(1px, 1px);
}

/* ---- La poche elle-même ---------------------------------------------- */

.gn2m-nav__liste .sub-menu {
  position: absolute;
  top: 100%;
  left: -0.9rem;
  z-index: 200;
  min-width: 13.5rem;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  border: 1px solid var(--trait);
  border-radius: var(--rayon-l);
  background: var(--neige);
  /* Sur fond blanc, c'est l'OMBRE qui détache la poche, plus le contraste :
     une poche blanche sur une page blanche sans ombre paraît collée. */
  box-shadow: 0 26px 56px -24px rgba(11, 13, 22, 0.35);

  /* `visibility` plutôt que `display` : une poche repliée reste dans l'ordre
     de tabulation calculé, et la transition peut jouer. */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.35rem);
  transition: opacity var(--t-court), transform var(--t-court), visibility var(--t-court);
}

.gn2m-nav__liste > .menu-item-has-children:hover > .sub-menu,
.gn2m-nav__liste > .menu-item-has-children:focus-within > .sub-menu,
.gn2m-nav__liste > .menu-item-has-children[data-ouverte="oui"] > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Le verrou d'Échap. Il vient APRÈS la règle d'ouverture, à spécificité
   égale : c'est ce qui le laisse gagner. */
.gn2m-nav__liste > .menu-item-has-children[data-fermee="oui"] > .sub-menu {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.35rem);
}

/* Une bande invisible entre le parent et la poche : sans elle, le pointeur
   traverse un vide de quelques pixels et la poche se referme en route. */
.gn2m-nav__liste > .menu-item-has-children > .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.6rem;
  height: 0.6rem;
}

.gn2m-nav__liste .sub-menu a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--rayon);
  color: var(--texte-doux);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
}

/* Le soulignement animé de la barre n'a pas de sens dans une liste verticale. */
.gn2m-nav__liste .sub-menu a::after { display: none; }

.gn2m-nav__liste .sub-menu a:hover,
.gn2m-nav__liste .sub-menu a:focus-visible {
  background: rgba(244, 170, 34, 0.14);
  color: var(--accent-texte);
}

.gn2m-nav__liste .sub-menu .current-menu-item > a { color: var(--accent-texte); }

/* =========================================================================
   LE MENU DU TÉLÉPHONE : accordéon
   ========================================================================= */

.gn2m-menu-mobile__liste .sub-menu {
  margin: 0.2rem 0 0.6rem;
  padding: 0 0 0 var(--e2);
  list-style: none;
  border-left: 1px solid rgba(244, 170, 34, 0.3);
}

.gn2m-menu-mobile__liste .sub-menu a {
  padding: 0.55rem 0;
  font-size: 0.95rem;
  opacity: 0.86;
}

/* Replié seulement si le script a pris la main. */
.gn2m-nav--js .gn2m-menu-mobile__liste .menu-item-has-children > .sub-menu { display: none; }
.gn2m-nav--js .gn2m-menu-mobile__liste .menu-item-has-children[data-ouverte="oui"] > .sub-menu { display: block; }

/* Le bouton de dépli, créé par le script, posé À CÔTÉ du lien du parent :
   le parent reste cliquable, et la poche s'ouvre sans quitter la page. */
.gn2m-poche-bascule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: 0.35rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex: none;
}

.gn2m-poche-bascule::before {
  content: "";
  width: 0.46rem;
  height: 0.46rem;
  margin-top: -0.2rem;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--t-court);
}

.gn2m-poche-bascule[aria-expanded="true"]::before {
  margin-top: 0.2rem;
  transform: rotate(225deg);
}

.gn2m-menu-mobile__liste .menu-item-has-children > a { display: inline-block; }

/* Le lien du parent et son bouton sur une même ligne. */
.gn2m-menu-mobile__liste .gn2m-poche-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

/* =========================================================================
   LES ACTIONS FLOTTANTES — appel et WhatsApp (21/10/2026)
   -------------------------------------------------------------------------
   À DROITE, et en rond. Deux voies réellement différentes : le fixe du
   standard pour l'appel, le mobile pour WhatsApp. Deux boutons qui sonnent
   le même téléphone n'apportent rien.

   ⚠️ LE VERT EST CELUI DE WHATSAPP, et c'est une exception assumée aux trois
   couleurs de la charte : un logo n'est reconnu que dans sa couleur, et
   « mettre le logo WhatsApp » n'a de sens que comme ça. Le bouton d'appel,
   lui, reste en noir et or — c'est le nôtre.
   ========================================================================= */

.gn2m-flottant {
  position: fixed;
  right: var(--e3);
  bottom: var(--e3);
  z-index: 120;
  display: grid;
  justify-items: end;
  gap: 0.7rem;
}

.gn2m-flottant__wa { position: relative; display: grid; justify-items: end; gap: 0.7rem; }

.gn2m-flottant__action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 14px 32px -12px rgba(5, 7, 10, 0.7);
  transition: transform var(--t-court), box-shadow var(--t-court), filter var(--t-court);
}

.gn2m-flottant__action:hover,
.gn2m-flottant__action:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 40px -12px rgba(5, 7, 10, 0.8);
}

.gn2m-flottant__action svg { flex: none; }

/* L'appel : la charte du site. */
.gn2m-flottant__action--tel {
  background: var(--nuit);
  color: var(--or);
  border: 1px solid rgba(244, 170, 34, 0.35);
}

.gn2m-flottant__action--tel:hover,
.gn2m-flottant__action--tel:focus-visible { background: var(--or); color: var(--nuit); }

/* WhatsApp : sa couleur. #25D366 sur blanc donne 1,9:1 — donc le glyphe est
   BLANC sur le vert (4,2:1), jamais l'inverse, et le bouton porte un liseré
   sombre pour tenir sur un fond clair. */
.gn2m-flottant__action--wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 32px -12px rgba(18, 140, 70, 0.6), 0 0 0 1px rgba(5, 7, 10, 0.12);
}

.gn2m-flottant__action--wa:hover,
.gn2m-flottant__action--wa:focus-visible { filter: brightness(1.08); }

/* ---- L'étiquette au survol -------------------------------------------- */

.gn2m-flottant__bulle {
  position: absolute;
  right: calc(100% + 0.6rem);
  top: 50%;
  transform: translateY(-50%) translateX(0.35rem);
  padding: 0.35rem 0.65rem;
  border-radius: var(--rayon);
  background: var(--nuit);
  color: #fff;
  font-family: var(--police-titre), sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-court), transform var(--t-court);
}

.gn2m-flottant__action:hover .gn2m-flottant__bulle,
.gn2m-flottant__action:focus-visible .gn2m-flottant__bulle {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ---- Le menu des intentions, repositionné à droite -------------------- */

.gn2m-flottant .gn2m-wa__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.7rem);
  width: min(21rem, calc(100vw - 2 * var(--e3)));
  order: -1;
}

@media (max-width: 560px) {
  .gn2m-flottant { right: var(--e2); bottom: var(--e2); gap: 0.6rem; }
  .gn2m-flottant__action { width: 3.25rem; height: 3.25rem; }
  /* Au doigt, l'étiquette n'a pas de survol : elle ne sert à rien et peut
     déborder de l'écran. Le `title` et le texte masqué restent, eux. */
  .gn2m-flottant__bulle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gn2m-flottant__action,
  .gn2m-flottant__action:hover,
  .gn2m-flottant__bulle,
  .gn2m-nav__liste .sub-menu { transition: none; transform: none; }
  .gn2m-flottant__action:hover { transform: none; }
  .gn2m-flottant__action:hover .gn2m-flottant__bulle { transform: translateY(-50%); }
}

@media print { .gn2m-flottant { display: none; } }

/* =========================================================================
   LE CONFIGURATEUR — ce que le résultat doit dire en plus d'un nom (21/10)
   -------------------------------------------------------------------------
   Un diagnostic qui rend « voici une entreprise » ne justifie pas un groupe
   de sept. On ajoute donc trois choses, dans cet ordre :
     1. le RÉCAPITULATIF, pour relier le résultat aux réponses ;
     2. la CHAÎNE, qui est l'argument que seul un groupe peut tenir ;
     3. les OFFRES qui correspondent, pour sortir du « contactez-nous ».
   ========================================================================= */

/* ---- 1. Le récapitulatif des réponses, chaque puce ramène à son étape --- */

.gn2m-conf-recap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 var(--e3);
  padding: 0;
  list-style: none;
}

.gn2m-conf-recap__puce {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--trait);
  border-radius: 999px;
  background: var(--fond-2);
  color: var(--encre);
  font-size: 0.82rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t-court), background var(--t-court), color var(--t-court);
}

.gn2m-conf-recap__puce > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 18rem;
}

.gn2m-conf-recap__puce svg { flex: none; opacity: 0.5; }

.gn2m-conf-recap__puce:hover,
.gn2m-conf-recap__puce:focus-visible {
  border-color: var(--accent-texte);
  color: var(--accent-texte);
}

.gn2m-conf-recap__puce:hover svg,
.gn2m-conf-recap__puce:focus-visible svg { opacity: 1; }

/* ---- 2. La chaîne : qui fait quoi, dans quel ordre --------------------- */

.gn2m-conf-chaine,
.gn2m-conf-offres,
.gn2m-conf-preuves { margin-bottom: var(--e5); }

.gn2m-conf-chaine__titre {
  margin: 0.2rem 0 var(--e3);
  font-family: var(--police-titre), sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.15;
}

.gn2m-conf-chaine__liste {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: maillon;
}

.gn2m-conf-maillon {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--e3);
  padding: var(--e3) 0;
  border-top: 1px solid var(--trait);
}

.gn2m-conf-maillon:last-child { border-bottom: 1px solid var(--trait); }

/* Le fil qui relie les maillons : c'est lui qui dit « chaîne » et non
   « liste ». Il s'arrête au dernier, sinon il pend dans le vide. */
.gn2m-conf-maillon::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: calc(var(--e3) + 1.9rem);
  bottom: 0;
  width: 1px;
  background: var(--trait);
}

.gn2m-conf-maillon:last-child::before { display: none; }

.gn2m-conf-maillon__rang {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  border: 1px solid var(--trait);
  border-radius: 50%;
  background: var(--fond);
  font-family: var(--police-titre), sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--encre-douce);
}

.gn2m-conf-maillon--pilote .gn2m-conf-maillon__rang {
  border-color: var(--accent-texte);
  color: var(--accent-texte);
}

.gn2m-conf-maillon__corps { display: grid; gap: 0.15rem; }

.gn2m-conf-maillon__moment {
  font-family: var(--police-titre), sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.gn2m-conf-maillon__nom { font-size: 1.02rem; }
.gn2m-conf-maillon--pilote .gn2m-conf-maillon__nom { color: var(--accent-texte); }
.gn2m-conf-maillon__role { font-size: 0.9rem; color: var(--encre-douce); }

/* ---- 3. Les offres qui correspondent ----------------------------------- */

.gn2m-conf-offres__grille {
  display: grid;
  gap: var(--e3);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.gn2m-conf-offre {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: var(--e3);
  border: 1px solid var(--trait);
  /* ⚠️ LE MÊME JETON QUE SA JUMELLE `.gn2m-carte-offre`, et c'est volontaire
     même si `--rayon-m` n'est défini nulle part : les deux cartes d'offre
     doivent se ressembler aujourd'hui (coins droits) comme demain (si le
     jeton est un jour défini, elles s'arrondiront ensemble).
     Lui donner `--rayon-l` ici arrondissait la carte du configurateur
     pendant que celles du catalogue restaient droites — mesuré le 23/10 :
     10px contre 0. Une incohérence introduite en employant un jeton valide
     à côté d'un jeton mort. */
  border-radius: var(--rayon-m);
  background: var(--fond);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--t-court), transform var(--t-court), box-shadow var(--t-court);
}

.gn2m-conf-offre:hover,
.gn2m-conf-offre:focus-visible {
  border-color: var(--accent-texte);
  transform: translateY(-2px);
  box-shadow: var(--ombre);
}

.gn2m-conf-offre__nom {
  margin: 0;
  font-family: var(--police-titre), sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}

.gn2m-conf-offre__promesse { margin: 0; font-size: 0.88rem; color: var(--encre-douce); }

.gn2m-conf-offre__aller {
  margin-top: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-texte);
}

/* ---- 4. Les preuves des entreprises retenues --------------------------- */

.gn2m-conf-preuves__liste {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2) var(--e4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gn2m-conf-preuves__liste li { display: grid; gap: 0.1rem; }
.gn2m-conf-preuves__liste strong { font-family: var(--police-titre), sans-serif; font-size: 0.95rem; }
.gn2m-conf-preuves__liste span { font-size: 0.82rem; color: var(--encre-douce); }

@media (max-width: 560px) {
  .gn2m-conf-recap__puce > span:first-child { max-width: 11rem; }
  .gn2m-conf-maillon { gap: var(--e2); padding: var(--e2) 0; }
  .gn2m-conf-maillon::before { left: 1.05rem; top: calc(var(--e2) + 1.9rem); }
}

@media (prefers-reduced-motion: reduce) {
  .gn2m-conf-offre,
  .gn2m-conf-offre:hover { transition: none; transform: none; }
}

/* =========================================================================
   LES PHOTOS — en-têtes de page et cartes entreprise (23/10/2026)
   -------------------------------------------------------------------------
   Même parti que securite-n2m.com et nvi-facility.com, les deux sites de
   référence : la photo est un FOND, assombri, et le texte passe devant.

   ⚠️ LE VOILE N'EST PAS DÉCORATIF. Du texte blanc sur une photo claire
   descend sous 2:1 et devient illisible au soleil — c'est-à-dire dans la
   situation réelle d'un visiteur à Dakar. Le dégradé garantit le contraste
   quelle que soit la photo, y compris celles qu'on ajoutera plus tard.
   ========================================================================= */

.gn2m-tete-page--photo {
  position: relative;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

/* Le voile : opaque en bas (là où vit le texte), transparent en haut. */
.gn2m-tete-page--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.78) 0%, rgba(5, 7, 10, 0.88) 55%, rgba(5, 7, 10, 0.95) 100%);
}

/* ---- La photo d'une carte entreprise ---------------------------------- */

.gn2m-carte-filiale__media {
  position: relative;
  margin: calc(var(--e3) * -1) calc(var(--e3) * -1) var(--e3);
  overflow: hidden;
  border-radius: var(--rayon-m) var(--rayon-m) 0 0;
  aspect-ratio: 16 / 9;
  background: var(--fond-2);
}

.gn2m-carte-filiale__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t);
}

.gn2m-carte-filiale:hover .gn2m-carte-filiale__media img { transform: scale(1.04); }

/* Le numéro de la carte passe SUR la photo : sans ce fond, il disparaît
   dès que la photo est claire à cet endroit. */
.gn2m-carte-filiale__media + .gn2m-carte-filiale__compte,
.gn2m-carte-filiale__media ~ .gn2m-carte-filiale__compte { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .gn2m-carte-filiale__media img,
  .gn2m-carte-filiale:hover .gn2m-carte-filiale__media img { transition: none; transform: none; }
}

/* Un bandeau photo, pour les pages claires où un en-tête sombre changerait
   la nature de la page (Contact et son formulaire). */
.gn2m-bandeau-photo {
  margin: 0 0 var(--e5);
  overflow: hidden;
  border-radius: var(--rayon-m);
  aspect-ratio: 21 / 7;
  background: var(--fond-2);
}

.gn2m-bandeau-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 640px) { .gn2m-bandeau-photo { aspect-ratio: 16 / 9; } }

/* =========================================================================
   LA PHOTO DERRIÈRE LE LOGO, ET LA PHOTO DE CHAQUE ÉTAPE (23/10/2026)
   -------------------------------------------------------------------------
   ⚠️ LE LOGO GARDE SA PLAQUE CLAIRE. La demande du client du 19/10 était de
   RECONNAÎTRE LA MARQUE : la bande d'alors montrait du personnel sans logo et
   personne ne savait de quelle entreprise il s'agissait. La photo passe donc
   DERRIÈRE, assombrie ; le logo reste posé sur un fond clair et se lit comme
   avant. Les deux exigences tiennent ensemble.
   ========================================================================= */

.gn2m-panneau__media--photo {
  position: relative;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
  border-bottom-color: rgba(11, 13, 22, 0.28);
}

/* Le voile : il n'est pas décoratif. Sans lui, une photo claire derrière une
   plaque blanche donne deux blancs qui se confondent, et le logo flotte. */
.gn2m-panneau__media--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.42) 0%, rgba(5, 7, 10, 0.60) 100%);
}

.gn2m-panneau__plaque {
  position: relative;      /* au-dessus du voile */
  display: grid;
  place-items: center;
  padding: 0.9rem 1.3rem;
  border-radius: var(--rayon-m);
  background: var(--neige);
  box-shadow: 0 10px 28px -12px rgba(5, 7, 10, 0.55);
}

.gn2m-panneau__media--photo .gn2m-panneau__plaque img { max-height: 5.2rem; }

/* ---- La photo d'une étape de la chaîne -------------------------------- */

.gn2m-etape__media {
  /* ⚠️ BRIDEE EN LARGEUR, et c'est le point. Cinq photos en 16/9 pleine
     largeur empilaient cinq ecrans de haut : le recit, qui tient sa force de
     son ENCHAINEMENT, devenait une suite d'images sans rythme. Ici la photo
     illustre l'etape, elle ne la remplace pas. */
  max-width: 26rem;
  margin: 0 0 var(--e2);
  overflow: hidden;
  border-radius: var(--rayon-m);
  aspect-ratio: 16 / 10;
  background: var(--fond-2);
}

.gn2m-etape__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t);
}

.gn2m-etape:hover .gn2m-etape__media img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  .gn2m-etape__media img,
  .gn2m-etape:hover .gn2m-etape__media img { transition: none; transform: none; }
}

/* ===================================================== LES FONDS EN WEBP ==
   Mesuré le 29/10/2026 : les mêmes photos pèsent 2 438 Ko en JPEG et 1 241 Ko
   en WebP. Sur l'accueil, les six photos d'entreprise font 922 Ko à elles
   seules — c'est la moitié du poids de la page, sur la 4G de Dakar.

   ⚠️ POURQUOI UN `@supports` ET UNE CLASSE, ET PAS `image-set()` DIRECTEMENT.
   Une valeur invalide à l'évaluation ne retombe PAS sur la déclaration
   précédente : la propriété prend sa valeur initiale, donc `none`, et la photo
   DISPARAÎT sans aucun message. C'est exactement ce qui avait laissé onze
   cartes carrées en silence quand `--rayon-m` n'était pas défini.
   Deux conditions sont donc exigées : le navigateur comprend `image-set()`,
   ET le PHP a confirmé que le fichier `.webp` existe en posant la classe. */
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .gn2m-tete-page--photo.gn2m-fond-webp,
  .gn2m-panneau__media--photo.gn2m-fond-webp {
    background-image: image-set(
      var(--photo-webp) type("image/webp"),
      var(--photo)      type("image/jpeg")
    );
  }
}
