@import url('/assets/fonts/fonts.css');

/* ============================================================
   7G GROUPE — Site vitrine
   Charte 2025 : bleu nuit institutionnel + 5 couleurs de pôles
   ============================================================ */

:root {
  /* Institutionnel */
  --blue:        #0C3D63;
  --blue-deep:   #072B47;
  --blue-mid:    #14547F;
  --blue-soft:   #E8F0F7;
  --blue-tint:   #F4F8FC;

  /* Pôles — ordre imposé par la charte */
  --energie:      #9C92C3;
  --formation:    #57BDE6;
  --prevention:   #F3953F;
  --incendie:     #E8484D;
  --signaletique: #2CAA66;

  /* Neutres */
  --ink:      #0F1D2A;
  --body:     #3C4C5C;
  --muted:    #6B7C8C;
  --line:     #DDE5EC;
  --line-soft:#EDF1F5;
  --surface:  #FFFFFF;
  --alt:      #F5F8FB;

  /* Mesures */
  --wrap: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(12,61,99,.06), 0 2px 8px rgba(12,61,99,.05);
  --shadow:    0 2px 6px rgba(12,61,99,.07), 0 12px 32px rgba(12,61,99,.09);
  --shadow-lg: 0 8px 20px rgba(12,61,99,.10), 0 32px 64px rgba(12,61,99,.14);
  --header-h: 82px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

/* Garde-fou contre un défilement horizontal accidentel.
   `clip` et non `hidden` : `hidden` créerait un conteneur de défilement
   qui désactiverait le `position: sticky` de l'en-tête. */
body { max-width: 100%; overflow-x: clip; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .display {
  font-family: 'Lexend', 'Inter', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.022em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.1vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
h4 { font-size: 1.02rem; }

p { text-wrap: pretty; }
a { color: var(--blue-mid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.15rem; }
li { margin-bottom: .4rem; }
strong { color: var(--ink); font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--blue-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 3rem, 780px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ============================================================
   EN-TÊTE + NAVIGATION
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); border-color: var(--line); }

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.6rem;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }

.nav-item { position: relative; }

.nav-link {
  display: flex; align-items: center; gap: .32rem;
  font-size: .935rem; font-weight: 500; color: var(--body);
  text-decoration: none; padding: .6rem .78rem; border-radius: 9px;
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-link:hover { color: var(--blue); background: var(--blue-tint); }
.nav-link[aria-current="page"], .nav-item.is-active > .nav-link { color: var(--blue); font-weight: 600; }

.nav-link .chev { width: 11px; height: 11px; transition: transform .22s var(--ease); opacity: .55; }
.nav-item:hover .chev, .nav-item.open .chev { transform: rotate(180deg); }

/* Sous-menus */
.submenu {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 268px; padding: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  list-style: none;
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu, .nav-item.open .submenu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.submenu li { margin: 0; }
.submenu a {
  display: flex; align-items: center; gap: .7rem;
  padding: .58rem .7rem; border-radius: 9px;
  font-size: .92rem; color: var(--body); text-decoration: none; font-weight: 500;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.submenu a:hover { background: var(--blue-tint); color: var(--blue); }
.submenu .dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.submenu .sub-note { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; margin-top: 1px; }

.header-actions { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }

.nav-mobile-actions { display: none; }

.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.burger span { display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .22s var(--ease); }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; transition: .22s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: 'Inter', sans-serif; font-size: .93rem; font-weight: 600;
  padding: .72rem 1.25rem; border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), background .18s var(--ease),
              box-shadow .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(7,43,71,.3); }
.btn-primary:hover { background: var(--blue-deep); box-shadow: 0 6px 18px rgba(12,61,99,.28); }

.btn-fire { background: var(--incendie); color: #fff; }
.btn-fire:hover { background: #d33a3f; box-shadow: 0 6px 18px rgba(232,72,77,.32); }

.btn-outline { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); background: var(--blue-tint); }

.btn-ghost { background: transparent; color: var(--body); }
.btn-ghost:hover { background: var(--blue-tint); color: var(--blue); }

.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.55); }

.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { box-shadow: 0 8px 24px rgba(0,0,0,.2); }

.btn-lg { font-size: 1rem; padding: .95rem 1.7rem; border-radius: 11px; }
.btn-block { width: 100%; }

/* ============================================================
   SECTIONS & PRIMITIVES
   ============================================================ */

section { position: relative; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-sm { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.section-alt { background: var(--alt); }
.section-blue { background: var(--blue); color: rgba(255,255,255,.82); }
.section-blue h2, .section-blue h3, .section-blue h4 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .755rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-mid); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-blue .eyebrow { color: rgba(255,255,255,.7); }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.17rem); color: var(--muted); margin-top: 1rem; }
.section-blue .lead { color: rgba(255,255,255,.75); }

.grid { display: grid; gap: 1.5rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.split.wide-right { grid-template-columns: .85fr 1.15fr; }
.split.wide-left  { grid-template-columns: 1.15fr .85fr; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: .6rem; }
.card p { font-size: .95rem; }

.pill {
  display: inline-flex; align-items: center; gap: .42rem;
  font-size: .78rem; font-weight: 600; padding: .3rem .7rem;
  border-radius: 100px; background: var(--blue-soft); color: var(--blue);
}

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

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #0A3357 0%, var(--blue) 42%, #10598C 100%);
  color: rgba(255,255,255,.84);
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 82% 6%, rgba(87,189,230,.22), transparent 62%),
    radial-gradient(680px 420px at 4% 96%, rgba(232,72,77,.16), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 35%, transparent 100%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.8); max-width: 34rem; }
.hero .eyebrow { color: rgba(255,255,255,.72); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* Bandeau de page intérieure */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--blue-deep) 0%, var(--blue) 100%);
  color: rgba(255,255,255,.8);
  padding: clamp(3rem, 5.5vw, 4.6rem) 0 clamp(3.2rem, 6vw, 5rem);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 400px at 88% 0%, var(--accent, rgba(87,189,230,.3)), transparent 65%);
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: rgba(255,255,255,.78); max-width: 46rem; }

.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .82rem; margin-bottom: 1.4rem; color: rgba(255,255,255,.55); }
.crumbs a { color: rgba(255,255,255,.78); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   PÔLES
   ============================================================ */

.pole-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }

.pole-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.35rem; text-decoration: none; overflow: hidden;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.pole-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--c); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.pole-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pole-card:hover::before { transform: scaleX(1); }
.pole-card img { width: 54px; height: 54px; border-radius: 12px; margin-bottom: 1.05rem; }
.pole-card h3 { font-size: 1.06rem; color: var(--ink); margin-bottom: .45rem; }
.pole-card p { font-size: .87rem; color: var(--muted); line-height: 1.55; flex: 1; }
.pole-card .more {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.1rem;
  font-size: .84rem; font-weight: 600; color: var(--c);
}
.pole-card .more svg { width: 14px; height: 14px; transition: transform .22s var(--ease); }
.pole-card:hover .more svg { transform: translateX(4px); }

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

/* auto-fit : un bandeau de 3 chiffres remplit la largeur, pas de case vide */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: rgba(255,255,255,.16); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--blue); padding: 2rem 1.5rem; text-align: center; }
.stat .num { font-family: 'Lexend', sans-serif; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; color: #fff; line-height: 1; letter-spacing: -.03em; }
.stat .num sup { font-size: .45em; vertical-align: super; margin-left: 2px; font-weight: 600; }
.stat .lbl { font-size: .83rem; color: rgba(255,255,255,.68); margin-top: .6rem; line-height: 1.4; }

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

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: 'Lexend', sans-serif; font-size: .95rem; font-weight: 700; color: var(--blue);
  background: var(--blue-soft); width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
}
.step::after {
  content: ''; position: absolute; top: 19px; left: 46px; right: -.6rem; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 10px);
}
.step:last-child::after { display: none; }
.step h4 { margin-bottom: .45rem; font-size: 1.02rem; }
.step p { font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* ============================================================
   VISUELS / SCHÉMAS
   ============================================================ */

.figure {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.figure svg { width: 100%; height: auto; }
.figure figcaption {
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line-soft);
  font-size: .84rem; color: var(--muted); line-height: 1.5;
}
.figure figcaption b { color: var(--ink); font-weight: 600; }
.figure-flat { background: transparent; border: 0; padding: 0; box-shadow: none; }

.media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--blue-soft), #fff);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* Vidéo */
.video-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--blue-deep); box-shadow: var(--shadow-lg); aspect-ratio: 16/9;
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: rgba(255,255,255,.7); padding: 2rem; gap: .6rem;
}

/* ============================================================
   RÉFÉRENCES / SECTEURS
   ============================================================ */

.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.sector {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #fff; padding: 1.7rem;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sector .ico { width: 46px; height: 46px; border-radius: 11px; background: var(--blue-soft); display: grid; place-items: center; margin-bottom: 1.1rem; }
.sector .ico svg { width: 24px; height: 24px; stroke: var(--blue); }
.sector h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.sector p { font-size: .9rem; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.tag { font-size: .76rem; padding: .25rem .6rem; border-radius: 6px; background: var(--alt); color: var(--muted); border: 1px solid var(--line-soft); }

/* ============================================================
   FORMULAIRES
   ============================================================ */

.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .87rem; font-weight: 600; color: var(--ink); margin-bottom: .42rem; }
.field .hint { font-size: .8rem; color: var(--muted); font-weight: 400; margin-top: .3rem; }
.input, .select, .textarea {
  width: 100%; font-family: inherit; font-size: .97rem; color: var(--ink);
  padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(20,84,127,.14);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .87rem; color: var(--muted); }
.check input { margin-top: .25rem; width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; }

.alert { padding: .9rem 1.1rem; border-radius: 10px; font-size: .89rem; display: flex; gap: .65rem; align-items: flex-start; margin-bottom: 1.2rem; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-err { background: #FEF2F2; color: #9B2226; border: 1px solid #FBD5D5; }
.alert-ok  { background: #ECFDF5; color: #1B6B4A; border: 1px solid #C6F0DC; }
.alert-info{ background: var(--blue-tint); color: var(--blue); border: 1px solid var(--blue-soft); }

/* ============================================================
   ESPACE CLIENT
   ============================================================ */

.auth-shell { display: grid; place-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0; background: var(--alt); min-height: 68vh; }
.auth-card {
  width: min(100% - 2.5rem, 470px); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.8rem); box-shadow: var(--shadow);
}
.auth-card .lock { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); display: grid; place-items: center; margin-bottom: 1.4rem; }
.auth-card .lock svg { width: 25px; height: 25px; stroke: var(--blue); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: .5rem; }
.auth-card > p { font-size: .93rem; color: var(--muted); margin-bottom: 1.8rem; }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 3rem; letter-spacing: .06em; }
.pw-toggle {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; border-radius: 8px; color: var(--muted);
}
.pw-toggle:hover { background: var(--alt); color: var(--blue); }
.pw-toggle svg { width: 18px; height: 18px; }

.auth-foot { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); font-size: .85rem; color: var(--muted); }

/* Tableau de bord client */
.client-bar { background: var(--blue); color: #fff; padding: 1.15rem 0; }
.client-bar .wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.client-bar .who { font-size: .93rem; }
.client-bar .who b { color: #fff; display: block; font-family: 'Lexend', sans-serif; font-size: 1.08rem; }
.client-bar .who span { color: rgba(255,255,255,.65); font-size: .82rem; }
.client-bar form { margin-left: auto; }

.doc-list { display: flex; flex-direction: column; gap: .7rem; }
.doc {
  display: flex; align-items: center; gap: 1.05rem; padding: 1.05rem 1.25rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.doc:hover { border-color: var(--blue-mid); box-shadow: var(--shadow-sm); transform: translateX(3px); }
.doc .ft { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--blue-soft); color: var(--blue); font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
.doc .ft.pdf { background: #FDECEC; color: var(--incendie); }
.doc .meta { flex: 1; min-width: 0; }
.doc .meta b { display: block; font-size: .96rem; color: var(--ink); font-weight: 600; }
.doc .meta span { font-size: .81rem; color: var(--muted); }
.doc .dl { color: var(--muted); flex-shrink: 0; }
.doc .dl svg { width: 19px; height: 19px; }

.empty {
  text-align: center; padding: 3.5rem 1.5rem; border: 1px dashed var(--line);
  border-radius: var(--radius); background: var(--alt); color: var(--muted); font-size: .93rem;
}
.empty svg { width: 40px; height: 40px; stroke: var(--line); margin: 0 auto 1rem; }

/* ============================================================
   PAGES LÉGALES
   ============================================================ */

.legal-layout { display: grid; grid-template-columns: 256px 1fr; gap: 3.5rem; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-nav ul { list-style: none; padding: 0; }
.legal-nav li { margin: 0; }
.legal-nav a {
  display: block; padding: .68rem .9rem; border-radius: 9px; font-size: .91rem;
  color: var(--body); text-decoration: none; font-weight: 500; border-left: 2px solid transparent;
}
.legal-nav a:hover { background: var(--alt); color: var(--blue); }
.legal-nav a[aria-current="page"] { background: var(--blue-tint); color: var(--blue); font-weight: 600; border-left-color: var(--blue); }

.prose { max-width: 74ch; }
.prose h2 { font-size: 1.42rem; margin: 2.6rem 0 .9rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line-soft); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 1.8rem 0 .55rem; }
.prose p, .prose li { font-size: .955rem; }
.prose p { margin-bottom: .9rem; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.table-scroll { overflow-x: auto; margin: 1.2rem 0; border-radius: 8px; }
.table-scroll table { margin: 0 !important; min-width: 460px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .9rem; }
.prose th { text-align: left; background: var(--alt); font-weight: 600; color: var(--ink); }
.prose th, .prose td { padding: .7rem .9rem; border: 1px solid var(--line); vertical-align: top; }
.prose td:first-child { font-weight: 500; color: var(--ink); }
.prose .updated { font-size: .84rem; color: var(--muted); font-style: italic; margin-bottom: 2rem; }
.prose .todo { background: #FFF8E6; border: 1px solid #F5E0A8; color: #7A5B12; padding: .8rem 1rem; border-radius: 9px; font-size: .87rem; margin: 1rem 0; }

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

.site-footer { background: var(--blue-deep); color: rgba(255,255,255,.62); padding: clamp(3rem, 6vw, 4.5rem) 0 0; font-size: .9rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 1.1rem; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { font-size: .88rem; line-height: 1.65; max-width: 30ch; }
.footer-contact { margin-top: 1.3rem; display: flex; flex-direction: column; gap: .45rem; font-size: .87rem; }
.footer-contact a { color: rgba(255,255,255,.8); text-decoration: none; display: flex; align-items: center; gap: .55rem; }
.footer-contact a:hover { color: #fff; }
.footer-contact svg { width: 15px; height: 15px; opacity: .6; flex-shrink: 0; }

.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer li a { color: rgba(255,255,255,.62); text-decoration: none; font-size: .88rem; transition: color .16s var(--ease); }
.site-footer li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.11); padding: 1.5rem 0;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: .79rem; color: rgba(255,255,255,.45);
}
.footer-legal-line { line-height: 1.6; max-width: 62ch; }

/* ============================================================
   BANDEAU COOKIES
   ============================================================ */

.cookie-banner {
  position: fixed; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; z-index: 300;
  max-width: 560px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.4rem;
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner h4 { margin-bottom: .5rem; }
.cookie-banner p { font-size: .87rem; color: var(--muted); margin-bottom: 1.1rem; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ============================================================
   RÉVÉLATION AU DÉFILEMENT
   ============================================================ */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

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

@media (max-width: 1080px) {
  .pole-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2.2rem; }
  .step:nth-child(3)::after { display: none; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .legal-layout { grid-template-columns: 210px 1fr; gap: 2.5rem; }
}

@media (max-width: 940px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 90;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.2rem 1.5rem 3rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s var(--ease);
    border-top: 1px solid var(--line);
  }
  .nav.open { transform: translateX(0); }
  .nav-link { padding: .85rem .5rem; font-size: 1rem; border-radius: 0; border-bottom: 1px solid var(--line-soft); justify-content: space-between; }
  .nav-link:hover { background: transparent; }
  .submenu {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0;
    min-width: 0; padding: .3rem 0 .7rem .5rem; display: none;
  }
  .nav-item.open .submenu { display: block; transform: none; }
  .nav-mobile-actions { display: block; margin-top: 1.6rem; }
  .header-actions .btn-outline { display: none; }
  /* .nav passe en position fixe : il ne pousse plus les actions à droite, on le fait ici. */
  .header-actions { margin-left: auto; }
  .split, .split.wide-right, .split.wide-left { grid-template-columns: 1fr; gap: 2.5rem; }
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .legal-nav { position: static; }
  .legal-nav ul { display: flex; flex-wrap: wrap; gap: .4rem; }
  .legal-nav a { border: 1px solid var(--line); border-left-width: 1px; font-size: .85rem; padding: .5rem .8rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap, .wrap-narrow { width: min(100% - 2.2rem, var(--wrap)); }
  /* L'en-tête doit tenir sur une seule ligne : logo réduit, bouton client en icône seule. */
  .header-inner { gap: .7rem; }
  .btn-client .btn-label { display: none; }
  .btn-client { padding: .72rem .85rem; }
  .pole-grid, .g2, .g3, .g4, .sector-grid, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .brand img { height: 34px; }
  .cookie-banner { left: .8rem; right: .8rem; bottom: .8rem; }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .hero-actions, .legal-nav { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .prose { max-width: none; }
}
