/* =============================================================================
   N2M SÉCURITÉ — Design System
   Version: 1.0.0 | P1
   ============================================================================= */

/* ── Variables globales ──────────────────────────────────────────────────── */
/* ════════════════════════════════════════════════════════════════════
   SYSTÈME DE COULEURS SÉMANTIQUE — 2 palettes (dark = défaut, light)
   Tout le thème consomme ces variables ; les anciens noms --n2m-* sont
   aliasés dessous → bascule automatique sans toucher le reste du CSS.
   ════════════════════════════════════════════════════════════════════ */
:root,
[data-theme="dark"] {
  /* Fonds */
  --bg-primary:    #050508;
  --bg-secondary:  #0A1628;
  --bg-tertiary:   #162545;
  /* Textes */
  --text-primary:   #FFFFFF;
  --text-secondary: #B8C4D0;
  --text-muted:     #8892A4;
  /* Accent */
  --accent:       #F5C200;
  --accent-dim:   #C89B00;
  --accent-glow:  rgba(245,194,0,0.25);
  /* Bordures */
  --border:        rgba(245,194,0,0.12);
  --border-hover:  rgba(245,194,0,0.5);
  /* Composants */
  --card-bg:        #0A1628;
  --card-bg-hover:  #162545;
  --nav-bg:         rgba(5,5,8,0.93);
  --overlay:        rgba(5,5,8,0.6);
  --input-bg:       #0A1628;
  --input-border:   rgba(245,194,0,0.2);
  --input-focus:    rgba(245,194,0,0.5);
  --surface-soft:   rgba(255,255,255,0.04);
  --hairline:       rgba(255,255,255,0.10);
  /* Modal / popup */
  --modal-bg:       rgba(5,5,8,0.95);
  --modal-surface:  #0A1628;
  /* Portail */
  --portal-bg:      #0A1628;
  --portal-surface: #162545;
  --portal-border:  rgba(245,194,0,0.15);
  /* Statuts (identiques dans les 2 modes) */
  --status-ok:     #10B981;
  --status-warn:   #F97316;
  --status-danger: #EF4444;
  --status-info:   #06B6D4;

  /* ── ALIAS rétro-compatibilité (anciens noms → nouveaux) ── */
  --n2m-black:    var(--bg-primary);
  --n2m-navy:     var(--bg-secondary);
  --n2m-navy-mid: var(--bg-tertiary);
  --n2m-white:    var(--text-primary);
  --n2m-muted:    var(--text-muted);
  --n2m-gold:     var(--accent);
  --n2m-gold-dim: var(--accent-dim);
  --n2m-glow:     var(--accent-glow);
  --n2m-border:   var(--border);
  --n2m-surface:  var(--surface-soft);
  --n2m-hairline: var(--hairline);
  --n2m-text:     var(--text-secondary);
  --n2m-text-secondary: var(--text-secondary);
  --n2m-card-bg:  var(--card-bg);
  --n2m-bg-secondary: var(--bg-secondary);
  --header-bg:    var(--nav-bg);
  --service-accent: var(--accent);
  --service-glow:   var(--accent-glow);

  /* Typographie */
  --font-display:    'Barlow Condensed', sans-serif;
  --font-body:       'Inter', sans-serif;
  --font-mono:       'Orbitron', monospace;
  /* Spacing & Layout */
  --container-max:   1280px;
  --section-py:      88px;
  --card-radius:     4px;
  --btn-radius:      2px;
  --gap-sm:          12px;
  --gap-md:          24px;
  --gap-lg:          48px;
  /* Transitions */
  --transition:      0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  /* Header */
  --header-h:        76px;
}

[data-theme="light"] {
  /* Fonds */
  --bg-primary:    #FFFFFF;
  --bg-secondary:  #F4F6F9;
  --bg-tertiary:   #E8ECF2;
  /* Textes */
  --text-primary:   #0A1628;
  --text-secondary: #2D3E55;
  --text-muted:     #5A6A7E;
  /* Accent (or assombri pour le contraste sur blanc) */
  --accent:       #C89B00;
  --accent-dim:   #9A7400;
  --accent-glow:  rgba(200,155,0,0.2);
  /* Bordures */
  --border:        rgba(10,22,40,0.1);
  --border-hover:  rgba(10,22,40,0.3);
  /* Composants */
  --card-bg:        #F4F6F9;
  --card-bg-hover:  #E8ECF2;
  --nav-bg:         rgba(255,255,255,0.95);
  --overlay:        rgba(10,22,40,0.45);
  --input-bg:       #FFFFFF;
  --input-border:   rgba(10,22,40,0.2);
  --input-focus:    rgba(200,155,0,0.4);
  --surface-soft:   #FFFFFF;
  --hairline:       rgba(10,22,40,0.14);
  /* Modal / popup */
  --modal-bg:       rgba(255,255,255,0.98);
  --modal-surface:  #F4F6F9;
  /* Portail */
  --portal-bg:      #F4F6F9;
  --portal-surface: #E8ECF2;
  --portal-border:  rgba(10,22,40,0.12);
  /* Statuts */
  --status-info:    #0284C7;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--n2m-black);
  color: var(--n2m-white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Accessibilité : lien d'évitement + focus clavier visible ────────────── */
.n2m-skip-link {
  position: fixed;
  top: -120px;
  left: 12px;
  z-index: 100000;
  background: var(--n2m-gold);
  color: #050508;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: top .2s ease;
}
.n2m-skip-link:focus { top: 12px; outline: 2px solid #050508; outline-offset: 2px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--n2m-gold);
  outline-offset: 2px;
  border-radius: 2px;
}
#n2m-contenu { scroll-margin-top: 90px; }
#n2m-contenu:focus { outline: none; }

/* Texte réservé aux lecteurs d'écran (accessibilité). */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Formulaire de recherche brandé ──────────────────────────────────────── */
.n2m-searchform {
  display: flex;
  gap: 8px;
  max-width: 560px;
  width: 100%;
}
.n2m-searchform__input {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  outline: none;
}
.n2m-searchform__input::placeholder { color: var(--text-muted); }
.n2m-searchform__input:focus { border-color: var(--n2m-gold); box-shadow: 0 0 0 3px var(--n2m-glow); }
.n2m-searchform__btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--n2m-gold); color: #050508;
  border: 0; border-radius: 10px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; font-size: .85rem;
  padding: 0 18px;
  transition: background .2s, transform .2s;
}
.n2m-searchform__btn:hover { background: var(--n2m-gold-dim, #C89B00); transform: translateY(-1px); }
@media (max-width: 480px) {
  .n2m-searchform__btn span { display: none; }
}

/* ── Respect de « réduire les animations » (accessibilité / confort) ──────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

img, video, svg { display: block; max-width: 100%; }

a {
  color: var(--n2m-gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--n2m-gold-dim); }

/* ── Container ────────────────────────────────────────────────────────────── */
.n2m-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 1024px) {
  .n2m-container { padding-inline: 48px; }
}

/* ── Section base ─────────────────────────────────────────────────────────── */
.n2m-section {
  padding-block: var(--section-py);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.n2m-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Section dark */
.n2m-section--dark  { background: var(--n2m-black); }
.n2m-section--navy  { background: var(--n2m-navy); }
.n2m-section--mid   { background: var(--n2m-navy-mid); }

/* ── Typographie ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--n2m-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.n2m-h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.n2m-h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}
.n2m-h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
}
.n2m-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--n2m-gold);
}

/* Chiffres / stats */
.n2m-stat-value {
  font-family: var(--font-mono);
  font-weight: 900;
  color: var(--n2m-gold);
}

/* Accent gold sur titre */
.n2m-title-gold  { color: var(--n2m-gold); }
.n2m-title-muted { color: var(--n2m-muted); }

/* Section header */
.n2m-section-header {
  text-align: center;
  margin-bottom: var(--gap-lg);
}
.n2m-section-header .n2m-label {
  display: block;
  margin-bottom: 12px;
}
.n2m-section-header p {
  max-width: 600px;
  margin-inline: auto;
  color: var(--n2m-muted);
  font-size: 1.05rem;
  margin-top: 12px;
}

/* Diviseur gold */
.n2m-divider {
  width: 56px;
  height: 3px;
  background: var(--n2m-gold);
  margin: 16px auto 0;
}
.n2m-divider--left { margin-left: 0; }

/* ── Grille utilitaires ───────────────────────────────────────────────────── */
.n2m-grid-2 {
  display: grid;
  gap: var(--gap-md);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.n2m-grid-3 {
  display: grid;
  gap: var(--gap-md);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.n2m-grid-4 {
  display: grid;
  gap: var(--gap-md);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ── Pattern hexagonal ────────────────────────────────────────────────────── */
.hex-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V17L28 0l28 17v33L28 66zm0-5.4L52 47V20L28 5.4 4 20v27L28 60.6z' fill='%23F5C200' fill-opacity='0.07'/%3E%3C/svg%3E");
}

/* ── Utilitaires ──────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-gold   { color: var(--n2m-gold) !important; }
.text-muted  { color: var(--n2m-muted) !important; }
.text-white  { color: var(--n2m-white) !important; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--gap-sm); }
.gap-md { gap: var(--gap-md); }

/* ── Hero section layout ─────────────────────────────────────────────────── */
.n2m-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--n2m-black);
}
.n2m-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.n2m-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.n2m-hero__overlay {
  position: absolute;
  inset: 0;
  /* P-corr 4 : overlay allégé (~0.6) — la vidéo respire, le texte reste lisible */
  background: linear-gradient(
    135deg,
    rgba(5, 5, 8, 0.68) 0%,
    rgba(5, 5, 8, 0.52) 55%,
    rgba(5, 5, 8, 0.6) 100%
  );
}
.n2m-hero__hex {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.35;
}
.n2m-hero__inner {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-lg);
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
}
.n2m-hero__content {
  flex: 1;
  max-width: 620px;
}
.n2m-hero__h1 {
  margin-block: 16px 24px;
  line-height: 1.0;
}
.n2m-hero__sub {
  color: var(--n2m-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}
.n2m-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.n2m-hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--n2m-muted);
}
.n2m-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--n2m-gold) 0%, transparent 100%);
  animation: pulseRing 2s ease-in-out infinite;
}

@media (max-width: 1023px) {
  .n2m-hero__inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 40px;
  }
  .n2m-hero__content { max-width: 100%; }
  .n2m-hero__sub { max-width: 100%; margin-inline: auto; }
  .n2m-hero__ctas { justify-content: center; }
  .n2m-hero__scroll { display: none; }
}

/* ── Hero canvas Three.js ─────────────────────────────────────────────────── */
#n2m-hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 767px) {
  #n2m-hero-canvas { opacity: 0.5; }
  /* Vidéo couvre le mobile en portrait (object-fit: cover déjà actif) */
  .n2m-hero__media { object-position: center center; }
}

/* ── Header / Nav ─────────────────────────────────────────────────────────── */
#n2m-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--n2m-border);
  transition: background var(--transition);
}
#n2m-header.scrolled {
  background: rgba(5, 5, 8, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.n2m-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.n2m-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--n2m-white);
  text-decoration: none;
  flex-shrink: 0;
}
.n2m-logo:hover { color: var(--n2m-white); }
.n2m-logo img { height: 40px; width: auto; }
.n2m-logo-text span { color: var(--n2m-gold); }
/* Logos PNG transparents : aucun blend-mode (s'adaptent à tous les modes) */
.n2m-logo-img { height: 52px; width: auto; display: block; object-fit: contain; }

/* Groupe « marque » : logo + badges certifications côte à côte */
.n2m-header-brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.n2m-header-certs {
  display: flex;               /* visibles sur TOUTES les tailles, mobile inclus */
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  border-left: 1px solid var(--n2m-border);
}
.n2m-header-cert {
  height: 34px;
  width: auto;
  display: block;
}
/* Sur tablette étroite : badges compactés pour ne pas serrer le header */
@media (max-width: 1023px) {
  .n2m-header-certs { padding-left: 10px; gap: 8px; }
  .n2m-header-cert { height: 28px; }
}
/* Sur mobile : logo + certifs compactés pour tout faire tenir */
@media (max-width: 600px) {
  .n2m-header-certs { padding-left: 8px; gap: 6px; }
  .n2m-header-cert { height: 22px; }
  .n2m-logo-img { height: 40px; }
}

/* Nav desktop */
#n2m-nav-desktop {
  display: none;
}
/* Nav desktop dès 1280px (8 entrées : tout rentre sans hamburger).
   Le header s'élargit au-delà de 1280 et se resserre (padding réduit,
   liens resserrés) pour loger menu + lang + 2 CTA + toggle sans rognage. */
@media (min-width: 1280px) {
  #n2m-nav-desktop {
    display: flex;
    align-items: center;
    gap: 2px;
  }
  #n2m-header .n2m-header-inner { max-width: 1560px; padding-inline: 24px; }
  .n2m-nav-link { padding: 6px 7px; }
  .n2m-nav-actions { gap: 6px; }
}

.n2m-nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--n2m-muted);
  padding: 6px 8px;
  border-radius: 2px;
  transition: color var(--transition);
  white-space: nowrap;
}
.n2m-nav-link:hover,
.n2m-nav-link.active {
  color: var(--n2m-white);
}
.n2m-nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--n2m-gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.n2m-nav-link:hover::after,
.n2m-nav-link.active::after {
  transform: scaleX(1);
}

/* ══════════════════════════════════════════════════════════════════
   HEADER À COULEUR FIXE — blanc (mode clair) / or N2M (mode sombre)
   Les 3 logos sont transparents et conçus pour fond clair → header
   toujours clair, lisibles dans les 2 modes. Menu en texte foncé.
   (Les menus déroulants .n2m-dropdown gardent leur fond navy, non touchés.)
══════════════════════════════════════════════════════════════════ */
/* Header TOUJOURS BLANC — identique en mode clair ET sombre (ne change jamais). */
#n2m-header,
#n2m-header.scrolled,
[data-theme="light"] #n2m-header,
[data-theme="light"] #n2m-header.scrolled {
  background: #FFFFFF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(10,22,40,0.10) !important;
  box-shadow: 0 1px 18px rgba(10,22,40,0.08) !important;
}

/* Menu : texte foncé (lisible sur blanc ET sur jaune), dans les 2 modes */
#n2m-header .n2m-nav-link { color: #0A1628; }
#n2m-header .n2m-nav-link:hover,
#n2m-header .n2m-nav-link.active { color: #000000; }
#n2m-header .n2m-nav-link::after { background: #0A1628; }

/* Sélecteur de langue + lien « Évaluer mon besoin » : foncés */
#n2m-header .n2m-lang-switcher a { color: rgba(10,22,40,0.55); }
#n2m-header .n2m-lang-switcher a.active { color: #0A1628; }
#n2m-header .n2m-lang-switcher span { color: rgba(10,22,40,0.3); }
#n2m-header .n2m-diag-link { color: #0A1628 !important; border-color: rgba(10,22,40,0.35) !important; }
#n2m-header .n2m-diag-link:hover { color: #000 !important; }

/* Séparateur des certifs + taille logo */
#n2m-header .n2m-header-certs { border-left-color: rgba(10,22,40,0.18) !important; }

/* Bouton « Devis gratuit » : doré dans les 2 modes (header toujours blanc). */
#n2m-header .gold-btn,
[data-theme="light"] #n2m-header .gold-btn {
  background: var(--n2m-gold) !important; color: #0A1628 !important; border: 1px solid var(--n2m-gold) !important;
}
#n2m-header .gold-btn:hover,
[data-theme="light"] #n2m-header .gold-btn:hover { background: #E2A540 !important; border-color: #E2A540 !important; }

/* Toggle thème + burger : icônes/traits foncés sur header clair */
#n2m-header .n2m-theme-toggle { color: #0A1628; }
#n2m-header .n2m-burger span { background: #0A1628; }

/* Dropdown */
.n2m-nav-item { position: relative; }
.n2m-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--n2m-navy);
  border: 1px solid var(--n2m-border);
  border-radius: var(--card-radius);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
}
/* Pont invisible qui comble le gap entre le lien nav et le dropdown */
.n2m-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.n2m-nav-item:hover .n2m-dropdown,
.n2m-nav-item:focus-within .n2m-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.n2m-dropdown a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--n2m-muted);
  transition: background var(--transition), color var(--transition);
}
.n2m-dropdown a:hover {
  background: rgba(245, 194, 0, 0.06);
  color: var(--n2m-gold);
}
.n2m-dropdown-accent {
  width: 3px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 2px;
}

/* Nav actions */
.n2m-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.n2m-lang-switcher {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--n2m-muted);
  border: 1px solid var(--n2m-border);
  padding: 4px 7px;
  border-radius: 2px;
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.n2m-diag-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--n2m-muted);
  white-space: nowrap;
  transition: color var(--transition);
}
.n2m-diag-link:hover { color: var(--n2m-white); }
.n2m-lang-switcher a {
  color: var(--n2m-muted);
  transition: color var(--transition);
}
.n2m-lang-switcher a.active,
.n2m-lang-switcher a:hover { color: var(--n2m-gold); }
.n2m-lang-switcher span { color: var(--n2m-border); }

/* Burger */
.n2m-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1100;
}
@media (min-width: 1280px) { .n2m-burger { display: none; } }
.n2m-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--n2m-white);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}
.n2m-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.n2m-burger.open span:nth-child(2) { opacity: 0; }
.n2m-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Spacer pour fixed header ─────────────────────────────────────────────── */
.n2m-header-spacer { height: var(--header-h); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
#n2m-footer {
  background: var(--n2m-black);
  border-top: 1px solid rgba(245, 194, 0, 0.18);
}
.n2m-footer-grid {
  display: grid;
  gap: var(--gap-lg);
  grid-template-columns: 1fr;
  padding-block: 64px;
}
@media (min-width: 768px) {
  .n2m-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.n2m-footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--n2m-gold);
  margin-bottom: 16px;
}
.n2m-footer-col p {
  color: var(--n2m-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.n2m-footer-links { list-style: none; }
.n2m-footer-links li { margin-bottom: 8px; }
.n2m-footer-links a {
  color: var(--n2m-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.n2m-footer-links a:hover { color: var(--n2m-gold); }

.n2m-footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.n2m-footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--n2m-border);
  border-radius: 2px;
  color: var(--n2m-muted);
  font-size: 0.85rem;
  transition: border-color var(--transition), color var(--transition);
}
.n2m-footer-socials a:hover {
  border-color: var(--n2m-gold);
  color: var(--n2m-gold);
}

.n2m-footer-legal {
  border-top: 1px solid rgba(245, 194, 0, 0.12);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.n2m-footer-legal p,
.n2m-footer-legal a {
  font-size: 0.8rem;
  color: var(--n2m-muted);
}
.n2m-footer-legal a:hover { color: var(--n2m-gold); }
.n2m-footer-legal-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

/* ── Responsive utilities ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  :root { --section-py: 56px; }
}
