/* =========================================================================
   IMMOTIC — Système éditorial « Fiche technique »
   Charte conservée : bleu #008AC5 · marine #003D58 / #07587E
   Type : Space Grotesk (titres) · Inter (corps) · IBM Plex Mono (labels techniques)
   Principe : grille visible, filets 1px, index numérotés, rayons ~0,
              négatif généreux, bleu en accent chirurgical.
   ========================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Tokens ---------- */
:root {
  /* Couleurs — issues de la charte, exploitées avec retenue */
  --ink:        #071c26;   /* texte principal, marine très sombre */
  --ink-soft:   #3a4f58;   /* texte secondaire */
  --ink-faint:  #566771;   /* légendes (assombri pour la lisibilité) */
  --navy:       #003d58;
  --navy-deep:  #05202e;   /* fonds pleins */
  --navy-800:   #062836;
  --blue:       #008ac5;   /* accent signal (grands titres, filets, boutons) */
  --blue-ink:   #076087;   /* bleu foncé — petits labels sur fond clair (AA) */
  --blue-bright:#1693c9;
  --blue-pale:  #d7eaf4;

  --paper:      #eef1f2;   /* fond général, papier froid */
  --paper-2:    #f6f8f9;   /* variante claire */
  --white:      #ffffff;

  --line:       rgba(7, 28, 38, .16);   /* filet standard */
  --line-soft:  rgba(7, 28, 38, .09);
  --line-light: rgba(255, 255, 255, .16);

  /* Type — lisibilité + présence (réf. dynamique type XEFI) */
  --display: "Space Grotesk", "Ubuntu", sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Mesures */
  --wrap: 1320px;
  --gut: clamp(20px, 4.5vw, 64px);   /* marge latérale */
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-2: cubic-bezier(.4, 0, .1, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-weight: 400;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: #fff; }

/* ---------- Typographie ---------- */
.display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--ink);
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -.018em; }

.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Label technique en filet (remplace les « badges/pills ») */
.tag {
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.tag::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--blue);
  display: inline-block;
}

.lead {
  font-size: clamp(1.12rem, 1.7vw, 1.42rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 300;
}
p { color: var(--ink-soft); }
strong { font-weight: 500; color: var(--ink); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.section { padding-block: clamp(72px, 11vh, 150px); position: relative; }
.divider { border-top: 1px solid var(--line); }

/* Grille 12 colonnes réutilisable */
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

/* Motif : fines verticales = colonnes de brassage */
.rulers { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.rulers::before, .rulers::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--line-soft);
}
.rulers::before { left: 33.33%; }
.rulers::after  { left: 66.66%; }

/* ============================ HEADER ============================ */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background .5s var(--ease), border-color .5s, box-shadow .5s;
  border-bottom: 1px solid transparent;
}
.masthead-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.brand { display: flex; align-items: center; height: 100%; }
.brand img { height: 34px; width: auto; transition: opacity .4s; }
.brand .logo-light { height: 80px; }
.brand .logo-dark  { display: none; }
.brand .logo-light { height: 48px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 42px); }
.nav-link {
  position: relative;
  font-size: .82rem;
  letter-spacing: .04em;
  font-weight: 500;
  padding: 4px 0;
  color: rgba(255, 255, 255, .82);
  transition: color .3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-link[aria-current="page"] { color: #fff; }

.nav-contact {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 10px 18px;
  color: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  transition: background .35s, color .35s, border-color .35s;
}
.nav-contact:hover { background: var(--blue); border-color: var(--blue); }
.nav-contact svg { width: 12px; height: 12px; }

/* Header en mode « clair » (posé sur fond clair, ou au scroll) */
.masthead.is-solid,
.masthead.scrolled {
  background: rgba(238, 241, 242, .86);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom-color: var(--line);
}
.masthead.is-solid .brand .logo-light,
.masthead.scrolled .brand .logo-light { display: none; }
.masthead.is-solid .brand .logo-dark,
.masthead.scrolled .brand .logo-dark { display: block; }
.masthead.is-solid .nav-link,
.masthead.scrolled .nav-link { color: var(--ink-soft); }
.masthead.is-solid .nav-link[aria-current="page"],
.masthead.scrolled .nav-link[aria-current="page"] { color: var(--ink); }
.masthead.is-solid .nav-contact,
.masthead.scrolled .nav-contact { color: var(--ink); border-color: var(--line); }
.masthead.is-solid .nav-contact:hover,
.masthead.scrolled .nav-contact:hover { color: #fff; border-color: var(--blue); }

/* Bouton menu (mobile) */
.menu-btn {
  display: none;
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  align-items: center; gap: 10px;
  color: #fff;
}
.masthead.is-solid .menu-btn, .masthead.scrolled .menu-btn { color: var(--ink); }
.menu-btn .bars { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-btn .bars span { width: 22px; height: 1.6px; background: currentColor; transition: transform .35s var(--ease), opacity .3s; }

/* Overlay menu plein écran (recomposé, pas un simple empilement) */
.nav-overlay {
  position: fixed; inset: 0; z-index: 190;
  background: var(--navy-deep);
  color: #fff;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 110px var(--gut) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
  pointer-events: none;
}
.nav-overlay.open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.nav-overlay ol { list-style: none; display: grid; align-content: center; gap: clamp(6px, 2vh, 18px); }
.nav-overlay li { overflow: hidden; }
.nav-overlay a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 11vw, 4.6rem);
  line-height: 1.02;
  color: #fff;
  transform: translateY(105%);
  transition: transform .7s var(--ease), color .3s;
}
.nav-overlay.open a { transform: translateY(0); }
.nav-overlay li:nth-child(1) a { transition-delay: .08s; }
.nav-overlay li:nth-child(2) a { transition-delay: .14s; }
.nav-overlay li:nth-child(3) a { transition-delay: .20s; }
.nav-overlay li:nth-child(4) a { transition-delay: .26s; }
.nav-overlay li:nth-child(5) a { transition-delay: .32s; }
.nav-overlay li:nth-child(6) a { transition-delay: .38s; }
.nav-overlay a:hover { color: var(--blue-bright); }
.nav-overlay a .idx { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: var(--blue-bright); align-self: flex-start; padding-top: .5em; }
.nav-overlay-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: rgba(255,255,255,.55); text-transform: uppercase; padding-top: 24px; border-top: 1px solid var(--line-light); }

/* ============================ BOUTONS ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 16px 26px;
  border: 1px solid var(--ink);
  color: var(--ink);
  position: relative; overflow: hidden;
  transition: color .45s var(--ease);
}
.btn .arrow { transition: transform .45s var(--ease); }
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1;
}
.btn:hover { color: #fff; }
.btn:hover::before { transform: translateY(0); }
.btn:hover .arrow { transform: translateX(6px); }
.btn.on-dark { border-color: rgba(255,255,255,.4); color: #fff; }
.btn.on-dark::before { background: var(--blue); }
.btn.on-dark:hover { color: #fff; border-color: var(--blue); }
.btn.solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.solid::before { background: var(--navy); }
.btn.solid:hover { border-color: var(--navy); }

/* Lien texte animé */
.ul-link {
  position: relative; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.ul-link .arrow { transition: transform .4s var(--ease); }
.ul-link::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.ul-link:hover::after { transform: scaleX(1); transform-origin: left; }
.ul-link:hover .arrow { transform: translateX(5px); }

/* ============================ FOOTER ============================ */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .74); position: relative; overflow: hidden; }
.footer-top { padding-block: clamp(64px, 9vh, 120px); position: relative; z-index: 1; }
.footer-bottom { position: relative; z-index: 1; }
.footer-cta { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding-bottom: clamp(48px, 7vh, 90px); border-bottom: 1px solid var(--line-light); }
.footer-cta h2 { color: #fff; font-size: clamp(2.4rem, 6vw, 5rem); line-height: .98; }
.footer-cta h2 em { font-style: normal; color: var(--blue-bright); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-top: clamp(44px, 6vh, 80px); }
.footer-brand img { height: 40px; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .95rem; max-width: 320px; font-weight: 300; }
.footer-col h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 18px; font-weight: 500; }
.footer-col a { display: block; padding: 6px 0; font-size: .93rem; color: rgba(255,255,255,.72); transition: color .3s, padding-left .3s; }
.footer-col a:hover { color: #fff; padding-left: 8px; }
.footer-addr { font-style: normal; font-size: .9rem; line-height: 1.65; color: rgba(255,255,255,.66); }
.footer-addr strong { color: #fff; font-weight: 500; }
.footer-addr .addr-sep { display: block; height: 10px; }
.footer-bottom { border-top: 1px solid var(--line-light); }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 24px; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.62); }

/* ============================ REVEALS ============================ */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* Équivalents en classe : les blocs Gutenberg natifs n'acceptent pas
   d'attribut data-*, mais acceptent une classe CSS personnalisée.
   .rv et .rv-stagger sont donc les jumeaux de [data-reveal] / [data-stagger]. */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv-stagger.in > * { opacity: 1; transform: none; }
.rv-stagger.in > *:nth-child(1) { transition-delay: .04s; }
.rv-stagger.in > *:nth-child(2) { transition-delay: .10s; }
.rv-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.rv-stagger.in > *:nth-child(4) { transition-delay: .22s; }
[data-reveal-line] { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
[data-reveal-line].in { transform: scaleX(1); }

/* Masque de révélation pour titres */
.line-mask { overflow: hidden; display: block; }
.line-mask > * { display: block; transform: translateY(102%); transition: transform 1s var(--ease); }
.line-mask.in > * { transform: translateY(0); }

/* Duotone image (cohérence charte) */
.duo { position: relative; background: var(--navy-deep); overflow: hidden; }
.duo img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform 1.2s var(--ease); }
.duo::after { content: ""; position: absolute; inset: 0; mix-blend-mode: multiply; }
.duo:hover img { transform: scale(1.04); }

/* ============================ EMPLACEMENTS IMAGE ============================ */
/* Bloc repère « prêt à remplir » : glissez un <img> en 1er enfant, il recouvre. */
.imgslot { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); display: grid; place-items: center; }
.imgslot::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.18); pointer-events: none; z-index: 2; }
.imgslot::after { content: attr(data-label); position: absolute; z-index: 2; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); text-align: center; padding: 0 20px; }
.imgslot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; }
.imgslot.duo::after { z-index: 4; }

/* Mur de logos clients (page Références) */
.logo-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logo-tile { position: relative; overflow: visible; min-width: 0; background: var(--white); aspect-ratio: 3 / 2; display: grid; place-items: center; transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.logo-tile:hover { background: var(--paper-2); }
/* Le logo est en absolu : il ne peut pas modifier la hauteur de la tuile (tuiles uniformes) */
.logo-tile img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 90%; max-height: 88%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .5s var(--ease), opacity .5s var(--ease), transform .5s var(--ease); }
/* Icônes carrées basse définition : plafond dédié (évite la sur-pixellisation) */
.logo-tile img[src$=".jpg"], .logo-tile img[alt="Recas"], .logo-tile img[alt="Proxim Wireless"], .logo-tile img[alt="PRTG / Paessler"] { max-width: 64%; max-height: 64%; }
/* Logos clients : boîte de rendu identique pour tous.
   width/height fixes + object-fit:contain => les petits logos sont agrandis,
   les larges remplissent la largeur, sans jamais déformer ni déborder. */
.logo-tile img[src*="/clients/"] { width: 76%; height: 64%; max-width: none; max-height: none; object-fit: contain; }
.logo-tile .ph { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); text-align: center; }
.logo-tile .name { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 1.9vw, 1.4rem); letter-spacing: -.01em; color: var(--ink-soft); text-align: center; line-height: 1.1; transition: color .4s, opacity .4s; }

/* Survol : le logo passe en COULEUR + info-bulle fléchée (catégorie + nom) */
.logo-tile:hover { z-index: 6; }
.logo-tile:hover img { filter: none !important; opacity: 1 !important; }
.logo-tile:hover .name { color: var(--ink) !important; opacity: 1 !important; }

/* La bulle (catégorie sur la 1re ligne, nom sur la 2e) */
.logo-tile::after {
  content: attr(data-cat-label) "\A" attr(data-brand);
  white-space: pre-line;
  position: absolute; bottom: calc(100% + 11px); left: 50%;
  transform: translate(-50%, 7px);
  width: max-content; max-width: 210px;
  background: var(--navy-deep); color: #fff;
  padding: 9px 15px;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .09em;
  text-transform: uppercase; line-height: 1.6; text-align: center;
  opacity: 0; pointer-events: none; z-index: 8;
  box-shadow: 0 14px 30px rgba(5, 32, 46, .3);
  transition: opacity .28s var(--ease), transform .34s var(--ease);
}
/* La flèche sous la bulle */
.logo-tile::before {
  content: ""; position: absolute; bottom: calc(100% + 5px); left: 50%;
  transform: translate(-50%, 7px);
  border: 6px solid transparent; border-top-color: var(--navy-deep);
  opacity: 0; pointer-events: none; z-index: 8;
  transition: opacity .28s var(--ease), transform .34s var(--ease);
}
.logo-tile:hover::after, .logo-tile:hover::before { opacity: 1; transform: translate(-50%, 0); }

/* État « mis en lumière » au clic d'une catégorie */
.logo-tile.dim img { opacity: .12 !important; filter: grayscale(1) !important; transform: translate(-50%, -50%) !important; }
.logo-tile.dim .name { opacity: .16 !important; }
.logo-tile.lit { background: #fff; box-shadow: inset 0 0 0 2px var(--blue); z-index: 2; }
.logo-tile.lit img { opacity: 1 !important; filter: none !important; transform: translate(-50%, -50%) scale(1.08) !important; }
.logo-tile.lit .name { color: var(--blue) !important; opacity: 1 !important; }
.logo-wall.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .logo-wall.cols-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .logo-wall, .logo-wall.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Partenaires — index par domaine */
.domains-hint { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink-faint); margin-bottom: clamp(18px, 3vh, 30px); }
.domains-hint span { color: var(--blue); }
.domains { border-top: 1px solid var(--line); }
.domain-row { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 3vw, 44px); padding-block: clamp(24px, 3.6vh, 42px); padding-inline: clamp(10px, 1.5vw, 20px); margin-inline: calc(-1 * clamp(10px, 1.5vw, 20px)); border-bottom: 1px solid var(--line); align-items: baseline; cursor: pointer; user-select: none; transition: padding-left .5s var(--ease), background .4s var(--ease); }
.domain-row:hover { background: var(--paper-2); }
.domain-row:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
/* filet d'accent qui se déploie à gauche quand actif */
.domain-row::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.domain-row.active::before { transform: scaleY(1); }
.domain-row.active { background: linear-gradient(90deg, rgba(0,138,197,.07), transparent 70%); }
.domain-row.active h3, .domain-row.active h3 .num { color: var(--blue); }
.domain-row.active .domain-brands { color: var(--blue-ink); }
.domain-row h3 { display: flex; align-items: baseline; gap: 14px; font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.95rem); line-height: 1.1; color: var(--ink); transition: color .4s; }
.domain-row h3 .num { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .06em; color: var(--blue-ink); transition: color .4s; }
.domain-brands { display: flex; flex-wrap: wrap; align-items: baseline; font-size: 1.04rem; color: var(--ink-soft); transition: color .4s; }
.domain-brands span { position: relative; padding-right: 15px; margin-right: 15px; white-space: nowrap; }
.domain-brands span:not(:last-child)::after { content: "/"; position: absolute; right: -3px; color: var(--blue); }
@media (max-width: 720px) {
  .domain-row { grid-template-columns: 1fr; gap: 12px; }
}

/* Page Partenaires : mur de logos à gauche, catégories cliquables sticky à droite. */
.partners-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.partners-split .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.partners-aside { position: sticky; top: 96px; }
.partners-aside .domains-hint { margin-bottom: 14px; }
.partners-aside .domains { border-top: 1px solid var(--line); }
.partners-aside .domain-row { grid-template-columns: 1fr; gap: 6px; padding-block: 15px; padding-inline: 12px; margin-inline: -12px; align-items: start; }
.partners-aside .domain-row h3 { font-size: 1.28rem; gap: 12px; }
.partners-aside .domain-brands { font-size: .98rem; }
.partners-aside .domain-brands span { padding-right: 12px; margin-right: 12px; }
@media (max-width: 900px) {
  .partners-split { grid-template-columns: 1fr; }
  .partners-aside { position: static; }
  .partners-split .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .partners-split .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Vignette d'actualité (magazine) */
.mag-thumb { grid-column: auto; }

/* Bandeau image plein cadre (page Métiers) */
.metier-band { aspect-ratio: 16 / 6; margin-block: clamp(30px, 6vh, 76px); }
@media (max-width: 640px) { .metier-band { aspect-ratio: 4 / 3; } }

/* ============================ MOTION (réf. XEFI) ============================ */

/* Barre de progression du scroll */
.scroll-prog {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: left; z-index: 300;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  will-change: transform;
}

/* Curseur d'accent (desktop, pointeur fin) */
.cursor { position: fixed; top: 0; left: 0; width: 34px; height: 34px; border: 1px solid var(--blue); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 400; transition: width .35s var(--ease), height .35s var(--ease), background .35s, border-color .35s, opacity .3s; mix-blend-mode: normal; opacity: 0; }
.cursor.on { opacity: 1; }
.cursor.hot { width: 58px; height: 58px; background: rgba(0,138,197,.12); border-color: var(--blue); }
.cursor.dark { border-color: rgba(255,255,255,.7); }
.cursor-dot { position: fixed; top: 0; left: 0; width: 5px; height: 5px; background: var(--blue); border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; z-index: 400; opacity: 0; transition: opacity .3s; }
.cursor-dot.on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* Parallaxe : préparé pour le JS */
[data-parallax] { will-change: transform; }

/* Révélations enrichies + cascade */
[data-reveal].from-left  { transform: translateX(-34px); }
[data-reveal].from-right { transform: translateX(34px); }
[data-reveal].scale-in   { transform: scale(.96); }
[data-reveal].in.from-left, [data-reveal].in.from-right, [data-reveal].in.scale-in { transform: none; }

[data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(1) { transition-delay: .04s; }
[data-stagger].in > *:nth-child(2) { transition-delay: .10s; }
[data-stagger].in > *:nth-child(3) { transition-delay: .16s; }
[data-stagger].in > *:nth-child(4) { transition-delay: .22s; }
[data-stagger].in > *:nth-child(5) { transition-delay: .28s; }
[data-stagger].in > *:nth-child(6) { transition-delay: .34s; }
[data-stagger].in > *:nth-child(7) { transition-delay: .40s; }
[data-stagger].in > *:nth-child(8) { transition-delay: .46s; }

/* Halo animé dans les blocs marine */
.glow-move { position: absolute; width: 60vw; height: 60vw; max-width: 780px; max-height: 780px; border-radius: 50%; background: radial-gradient(circle, rgba(22,147,201,.42), transparent 62%); filter: blur(16px); pointer-events: none; z-index: 0; animation: floatGlow 16s var(--ease-2) infinite alternate; }
@keyframes floatGlow {
  0%   { transform: translate(10%, -10%) scale(1); }
  100% { transform: translate(-14%, 12%) scale(1.22); }
}

/* Signal qui parcourt la fibre en boucle */
.cover-fiber .signal { stroke: #7fd0f4; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 260; filter: drop-shadow(0 0 6px rgba(127,208,244,.9)); animation: runSignal 3.4s linear infinite; }
@keyframes runSignal { from { stroke-dashoffset: 268; } to { stroke-dashoffset: 0; } }

/* Points de connexion pulsés */
.node { animation: pulseNode 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.node:nth-child(2) { animation-delay: .6s; }
.node:nth-child(3) { animation-delay: 1.2s; }
@keyframes pulseNode { 0%,100% { opacity: .4; r: 3; } 50% { opacity: 1; r: 5; } }

/* Soulignement animé sous les gros titres */
.h-underline { position: relative; display: inline-block; }
.h-underline::after { content: ""; position: absolute; left: 0; bottom: -.12em; height: .09em; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.h-underline.in::after { transform: scaleX(1); }

/* Chiffres façon compteur mécanique */
[data-count] { font-variant-numeric: tabular-nums; }

/* ============================ ACCESSIBILITÉ ============================ */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 12px 18px; z-index: 999; }
.skip:focus { left: 12px; top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal], [data-reveal-line], .line-mask > *, [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  [data-parallax] { transform: none !important; }
  .cursor, .cursor-dot, .glow-move, .scroll-prog { display: none !important; }
}

/* =========================================================================
   ACCUEIL
   ========================================================================= */
.cover {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;
  overflow: hidden;
}
/* Image de fond du hero (optionnelle — voir commentaire dans index.html) */
.cover-photo { position: absolute; inset: 0; z-index: 0; background-position: center; background-size: cover; background-repeat: no-repeat; opacity: .24; mix-blend-mode: luminosity; }
/* trame de brassage sur la couverture */
.cover-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  mask-image: linear-gradient(180deg, transparent, #000 30%);
  opacity: .6;
}
/* brins de fibre optique (SVG plein cadre à droite) */
.cover-fiber { position: absolute; top: 0; right: -6%; height: 100%; width: 55%; z-index: 0; opacity: .8; }
.cover-fiber path { fill: none; stroke-width: 1.2; stroke-linecap: round; }
.cover-fiber .f-draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.4s var(--ease) forwards; }
.cover-fiber .f-draw:nth-child(2) { animation-delay: .25s; }
.cover-fiber .f-draw:nth-child(3) { animation-delay: .5s; }
.cover-fiber .f-draw:nth-child(4) { animation-delay: .75s; }
.cover-fiber .f-draw:nth-child(5) { animation-delay: 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.cover-in { position: relative; z-index: 1; width: 100%;   padding-bottom: clamp(70px, 12vh, 140px); }
.cover-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 40px); align-items: end; }
.cover-title { grid-column: 1 / 11; }
.cover-title .tag { color: var(--blue-bright); margin-bottom: clamp(20px, 4vh, 40px); }
.cover-title .tag::before { background: var(--blue-bright); }
.cover-title h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7.2vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: #fff;
  text-wrap: balance;
}
.cover-title h1 em { font-style: normal; color: var(--blue-bright); }
.cover-title h1 .thin { color: rgba(255,255,255,.5); }
.cover-aside { grid-column: 11 / 13; align-self: end; text-align: right; }
.cover-aside p { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; font-weight: bold; line-height: 1.8; color: rgb(255, 255, 255); text-transform: uppercase; }

.cover-lead { grid-column: 1 / 8; margin-top: clamp(28px, 5vh, 52px); }
.cover-lead p { color: rgba(255,255,255,.8); font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 300; }

/* Ledger — bandeau de données */
.ledger {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line-light);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.ledger div { padding: clamp(18px, 3vh, 30px) 0; padding-right: 20px; border-left: 1px solid var(--line-light); padding-left: clamp(14px, 2vw, 28px); }
.ledger div:first-child { border-left: none; padding-left: 0; }
.ledger dt { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.6rem); color: #fff; line-height: 1; margin-bottom: 6px; }
.ledger dd { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* Marqueur de chapitre dans la marge */
.chapter { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 40px); }
.chapter-mark { grid-column: 1 / 3; }
.chapter-mark .mono { color: var(--blue-ink); display: block; }
.chapter-mark .mono + .mono { color: var(--ink-faint); margin-top: 6px; }
.chapter-body { grid-column: 3 / 13; }

/* Manifeste */
.manifesto .statement {
  grid-column: 3 / 9;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
}
.manifesto .statement em { font-style: normal; color: var(--blue); }
.manifesto .sub { grid-column: 3 / 9; margin-top: clamp(28px, 4vh, 48px); }
.manifesto .sub p { font-size: 1.06rem; }
.manifesto .mf-figure { grid-column: 9 / 13; grid-row: 1 / 3; align-self: stretch; min-height: clamp(300px, 44vh, 460px); }

/* Index métiers */
.index-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(20px, 4vh, 44px); }
.index-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.idx-list { border-top: 1px solid var(--line); }
.idx-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 4fr) minmax(0, 5fr) 40px;
  gap: clamp(14px, 2.5vw, 36px);
  align-items: center;
  padding: clamp(22px, 3vh, 34px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left .5s var(--ease);
}
.idx-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--blue); opacity: .05; transition: width .5s var(--ease); z-index: 0;
}
.idx-row:hover { padding-left: 22px; }
.idx-row:hover::before { width: 100%; }
.idx-row > * { position: relative; z-index: 1; }
.idx-num { font-family: var(--mono); font-size: .8rem; color: var(--blue-ink); letter-spacing: .05em; }
.idx-name { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: var(--ink); line-height: 1.02; transition: color .3s; }
.idx-row:hover .idx-name { color: var(--navy); }
.idx-desc { color: var(--ink-soft); font-size: .96rem; }
.idx-arrow { justify-self: end; color: var(--blue); transform: translateX(-6px); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.idx-row:hover .idx-arrow { transform: translateX(0); opacity: 1; }

/* Vocation — bloc marine plein cadre */
.vocation { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.vocation .rulers::before, .vocation .rulers::after { background: rgba(255,255,255,.06); }
.vocation-in { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 40px); }
.vocation .tag { grid-column: 1 / 13; margin-bottom: clamp(24px, 4vh, 44px); color: var(--blue-bright); }
.vocation .tag::before { background: var(--blue-bright); }
.vocation h2 { grid-column: 1 / 11; color: #fff; font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.04; }
.vocation h2 em { font-style: normal; color: var(--blue-bright); }
.vocation .vtext { grid-column: 7 / 13; margin-top: clamp(28px, 4vh, 48px); }
.vocation .vtext p { color: rgba(255,255,255,.78); font-size: 1.08rem; font-weight: 300; }
.vocation .vtext .btn { margin-top: 32px; }

/* Atelier — image duotone + texte décalé */
.atelier-in { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.atelier-fig { grid-column: 1 / 6; aspect-ratio: 3 / 4; }
.atelier-body { grid-column: 7 / 13; }
.atelier-body h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); margin-bottom: 26px; line-height: 1.06; }
.atelier-defs { border-top: 1px solid var(--line); }
.atelier-defs .row { display: grid; grid-template-columns: 42px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.atelier-defs .row .n { font-family: var(--mono); font-size: .74rem; color: var(--blue-ink); padding-top: 4px; }
.atelier-defs .row h3 { font-family: var(--sans); font-weight: 500; font-size: 1.06rem; letter-spacing: 0; margin-bottom: 5px; color: var(--ink); }
.atelier-defs .row p { font-size: .95rem; }

/* Chiffres — ledger éditorial */
.figures-in { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 40px); align-items: end; }
.figures-lead { grid-column: 1 / 5; }
.figures-lead h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.06; }
.figures-lead > .mono { display: block; color: var(--blue-ink); margin-bottom: 18px; }
.figures-nums { grid-column: 6 / 13; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.figures-nums div { padding-top: 24px; border-left: 1px solid var(--line); padding-left: 18px; }
.figures-nums div:first-child { border-left: none; padding-left: 0; }
.figures-nums dt { font-family: var(--display); font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: .9; color: var(--navy); }
.figures-nums dd { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 10px; }
/* Variante « libellés » (mots plutôt que nombres) : plus compacte, sans césure hasardeuse */
.figures-nums--text dt { font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; min-height: 2.2em; display: flex; align-items: flex-start; }

/* Références — ligne typographique défilante */
.refs { background: var(--paper-2); border-block: 1px solid var(--line); overflow: hidden; }
.refs-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px,3vw,40px); align-items: end; margin-bottom: clamp(28px,4vh,44px); }
.refs-head .mono { grid-column: 1 / 3; color: var(--blue-ink); }
.refs-head p { grid-column: 3 / 10; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.1; color: var(--ink); }
.marquee { display: flex; overflow: hidden; user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { display: flex; align-items: center; gap: 0; flex: none; animation: scroll-x 32s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li { font-family: var(--display); font-size: clamp(1.6rem, 3.2vw, 2.6rem); color: var(--ink); white-space: nowrap; padding: 0 clamp(22px, 3vw, 44px); display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); }
.marquee li::after { content: "/"; color: var(--blue); font-family: var(--sans); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* Actualités — liste magazine */
.news-head { display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(20px,3vw,40px); align-items: end; margin-bottom: clamp(24px,4vh,44px); }
.news-head h2 { grid-column: 1 / 9; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.news-head .more { grid-column: 10 / 13; justify-self: end; align-self: end; }
.post {
  display: grid; grid-template-columns: 150px 1fr 200px; gap: clamp(16px, 3vw, 40px);
  align-items: baseline; padding: clamp(24px, 3.4vh, 40px) 0;
  border-top: 1px solid var(--line); transition: padding-left .5s var(--ease);
}
.post:last-child { border-bottom: 1px solid var(--line); }
.post:hover { padding-left: 16px; }
.post .meta { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); }
.post h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: var(--ink); line-height: 1.06; transition: color .3s; }
.post:hover h3 { color: var(--navy); }
.post p { font-size: .93rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .cover-title { grid-column: 1 / 13; }
  .cover-aside { display: none; }
  .cover-lead { grid-column: 1 / 13; }
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger div:nth-child(3) { border-left: none; padding-left: 0; }
  .ledger div:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
  .chapter { grid-template-columns: 1fr; gap: 18px; }
  .chapter-mark, .chapter-body { grid-column: 1 / -1; }
  .manifesto .statement, .manifesto .sub, .manifesto .mf-figure { grid-column: 1 / -1; }
  .manifesto .mf-figure { grid-row: auto; aspect-ratio: 3 / 2; min-height: 0; margin-top: 28px; }
  .vocation h2, .vocation .vtext, .vocation .tag { grid-column: 1 / -1; }
  .atelier-fig { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .atelier-body { grid-column: 1 / -1; }
  .figures-lead, .figures-nums { grid-column: 1 / -1; }
  .figures-nums { grid-template-columns: repeat(2, 1fr); row-gap: 24px; margin-top: 28px; }
  .figures-nums div:nth-child(3) { border-left: none; padding-left: 0; }
  .refs-head p { grid-column: 1 / -1; }
  .refs-head .mono { grid-column: 1 / -1; margin-bottom: 12px; }
  .news-head h2 { grid-column: 1 / -1; }
  .news-head .more { grid-column: 1 / -1; justify-self: start; margin-top: 16px; }
  .idx-row { grid-template-columns: 44px 1fr 24px; }
  .idx-desc { display: none; }
  .post { grid-template-columns: 1fr; gap: 8px; }
  .post .excerpt { display: none; }
}

/* =========================================================================
   PAGES INTERNES
   ========================================================================= */

/* ---- En-tête de page (famille commune, remplie différemment par page) ---- */
.page-head { position: relative; overflow: hidden; padding-top: clamp(120px, 18vh, 190px); padding-bottom: clamp(46px, 8vh, 100px); border-bottom: 1px solid var(--line); }
.page-head--dark { background: var(--navy-deep); color: #fff; border-bottom-color: var(--line-light); }
.ph-ghost { position: absolute; right: -2%; bottom: -8%; font-family: var(--display); font-weight: 700; font-size: clamp(9rem, 30vw, 26rem); line-height: .8; letter-spacing: -.04em; color: var(--ink); opacity: .04; pointer-events: none; user-select: none; z-index: 0; }
.page-head--dark .ph-ghost { color: #fff; opacity: .05; }
.ph-in { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 40px); align-items: end; }
.ph-label { grid-column: 1 / -1; margin-bottom: clamp(22px, 5vh, 52px); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ph-label .mono { color: var(--blue-ink); }
.ph-label .crumb { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.page-head--dark .ph-label .crumb { color: rgba(255,255,255,.5); }
.page-head--dark .ph-label .mono { color: var(--blue-bright); }
.ph-title { grid-column: 1 / 11; font-family: var(--display); font-weight: 600; font-size: clamp(2.5rem, 6.6vw, 5.6rem); line-height: 1.0; letter-spacing: -.03em; }
.page-head--dark .ph-title { color: #fff; }
.ph-title em { font-style: normal; color: var(--blue); }
.page-head--dark .ph-title em { color: var(--blue-bright); }
.ph-lead { grid-column: 1 / 8; margin-top: clamp(24px, 4vh, 40px); font-size: clamp(1.06rem, 1.6vw, 1.32rem); font-weight: 300; line-height: 1.5; color: var(--ink-soft); }
.page-head--dark .ph-lead { color: rgba(255,255,255,.78); }

/* ---- MÉTIERS : fiche technique — grille alignée, cohérente sur chaque bloc ---- */
.metier-block { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(22px, 3vw, 48px); padding-block: clamp(46px, 8vh, 96px); border-bottom: 1px solid var(--line); scroll-margin-top: 100px; align-items: start; }
/* Image du métier : format fixe, recadrage propre, numéro en surimpression */
.mb-media { grid-column: 1 / 5; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-deep); align-self: start; }
.mb-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Images métiers en blocs natifs WordPress (wp:image) : forcer le remplissage
   du cadre — WordPress applique sinon height:auto sur .wp-block-image img, ce qui
   laisse un vide (ex. Électricité, image large) ou un letterbox (ex. Flexitel). */
.metier-block .mb-media img { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover !important; }
.flexitel-more { margin-top: 20px; }
#flexitel { cursor: pointer; transition: background .4s var(--ease); }
#flexitel:hover { background: rgba(0,0,0,.02); }
#flexitel .mb-media img { transition: transform 1.2s var(--ease); }
#flexitel:hover .mb-media img { transform: scale(1.04); }
#flexitel:hover .flexitel-more .arrow { transform: translateX(4px); }
#flexitel .flexitel-more .arrow { transition: transform .35s var(--ease); display: inline-block; }
/* Le visuel Flexitel est un logo sur fond blanc (pas une photo) : un recadrage
   "cover" tronquait les bords du mot "Flexitel". On l'affiche en entier. */
#flexitel .mb-media img { object-fit: contain; }

/* Câblage cuivre/fibre : la photo est un montage 2x2 dont le quart
   supérieur gauche est un fond quasi noir sans intérêt ; on zoome et on
   recadre vers les connecteurs (haut droit / bas) plutôt que ce coin vide. */
#cablage .mb-media img { transform: scale(1.35); transform-origin: 68% 60%; }
#cablage .mb-media:hover img { transform: scale(1.42); transform-origin: 68% 60%; }
.mb-num-badge { position: absolute; top: 12px; left: 15px; z-index: 4; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 2.2rem); line-height: 1; color: #fff; letter-spacing: -.02em; text-shadow: 0 2px 16px rgba(2, 16, 24, .45); }
/* ------------------------------------------------------------------------
   Compatibilité éditeur de blocs WordPress.
   Sur un thème classique, WordPress enveloppe le contenu de chaque bloc
   « Groupe » dans un <div class="wp-block-group__inner-container">. Nos
   grilles sur-mesure (manifeste, atelier, blocs métiers, services, contact)
   ne verraient alors qu'un seul enfant. On rend ce conteneur transparent :
   les vrais éléments redeviennent enfants directs de la grille, sans rien
   changer à l'édition (le contenu reste 100 % modifiable en blocs).
   ------------------------------------------------------------------------ */
.wp-block-group__inner-container { display: contents; }

/* Badge chiffré automatique (blocs métiers en images natives WordPress). */
.metiers-list { counter-reset: metier; }
.metiers-list .metier-block { counter-increment: metier; }
.metiers-list .metier-block .mb-media { margin: 0; }
.metiers-list .metier-block .mb-media::after { content: counter(metier, decimal-leading-zero); position: absolute; top: 12px; left: 15px; z-index: 4; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 2.2rem); line-height: 1; color: #fff; letter-spacing: -.02em; text-shadow: 0 2px 16px rgba(2, 16, 24, .45); }
.mb-main { grid-column: 5 / 10; }
.mb-main h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.05; margin-bottom: 18px; }
.mb-main p { font-size: 1.04rem; max-width: 52ch; }
.mb-tags { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; }
.mb-tags span { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); position: relative; padding-left: 16px; }
.mb-tags span::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 1px; background: var(--blue); }
.mb-spec { grid-column: 10 / 13; align-self: start; border: 1px solid var(--line); padding: 24px 20px; background: var(--paper-2); }
.mb-spec h3 { font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 14px; }
.mb-spec ul { display: grid; }
.mb-spec li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: .92rem; color: var(--ink-soft); }
.mb-spec li:first-child { border-top: none; }
.mb-spec li b { color: var(--ink); font-weight: 500; }

/* ---- SERVICES : colonne documentaire ---- */
.svc-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 56px); }
.svc-aside { grid-column: 1 / 4; align-self: start; position: sticky; top: 110px; }
.svc-aside h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.06; margin-bottom: 18px; }
.svc-aside p { font-size: .98rem; }
.svc-aside > .mono { display: block; color: var(--blue-ink); margin-bottom: 16px; }
.svc-list { grid-column: 5 / 13; }
.svc-item { padding-block: clamp(34px, 5vh, 60px); border-top: 1px solid var(--line); position: relative; }
.svc-item:first-child { border-top: none; padding-top: 0; }
.svc-item .n { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--blue-ink); }
.svc-item h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.05; margin: 12px 0 14px; }
.svc-item p { font-size: 1.04rem; max-width: 54ch; }
.svc-item .kw { margin-top: 20px; font-family: var(--mono); font-size: .82rem; letter-spacing: .05em; color: var(--ink-soft); text-transform: uppercase; line-height: 1.9; }
/* L'éditeur enregistre le gras en <strong> : les deux balises sont acceptées. */
.svc-item .kw b, .svc-item .kw strong { color: var(--blue-ink); font-weight: 500; }

/* ---- Bouton « Détails » + panneau dépliable (métiers & services) ---- */
.detail-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-ink); background: none; border: 1px solid var(--line); padding: 11px 18px; cursor: pointer; transition: color .3s, border-color .3s, background .3s; }
.detail-btn:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.detail-btn .pm { font-family: var(--sans); font-size: 1.05rem; line-height: 0; transition: transform .45s var(--ease); }
.detail-btn[aria-expanded="true"] .pm { transform: rotate(135deg); }
.detail-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.detail-panel > .detail-inner { overflow: hidden; min-height: 0; }
.detail-panel.open { grid-template-rows: 1fr; }
.detail-inner p { margin-top: 26px; font-size: 1rem; color: var(--ink-soft); max-width: 60ch; }
.detail-inner ul { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.detail-inner li { position: relative; padding-left: 20px; font-size: .95rem; color: var(--ink-soft); }
.detail-inner li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 1px; background: var(--blue); }
.detail-inner li b, .detail-inner li strong { color: var(--ink); font-weight: 500; }

/* ---- FAQ : questions / réponses éditoriales ---- */
.faq-group { margin-bottom: clamp(38px, 6.5vh, 78px); }
.faq-group > .mono { display: block; color: var(--blue-ink); margin-bottom: 16px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 3vw, 44px); padding-block: clamp(20px, 3.2vh, 34px); border-bottom: 1px solid var(--line); align-items: start; }
.faq-item h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.25; color: var(--ink); }
.faq-item p { font-size: 1rem; color: var(--ink-soft); max-width: 62ch; }
.faq-item p + p { margin-top: 10px; }
@media (max-width: 720px) {
  .faq-item { grid-template-columns: 1fr; gap: 10px; }
}

/* ---- RÉFÉRENCES ---- */
.ref-statement { grid-column: 1 / 11; font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.12; letter-spacing: -.02em; }
.ref-statement em { font-style: normal; color: var(--blue); }
.ref-index { border-top: 1px solid var(--line); }
.ref-row { display: grid; grid-template-columns: 64px 1fr auto; gap: clamp(16px, 3vw, 40px); align-items: baseline; padding: clamp(20px, 3vh, 32px) 0; border-bottom: 1px solid var(--line); transition: padding-left .5s var(--ease); }
.ref-row:hover { padding-left: 18px; }
.ref-row .n { font-family: var(--mono); font-size: .78rem; color: var(--blue-ink); }
.ref-row h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.05; }
.ref-row .cat { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sectors div { background: var(--paper); padding: clamp(22px, 3vw, 34px); }
.sectors .mono { color: var(--blue-ink); display: block; margin-bottom: 10px; }
.sectors h3 { font-size: 1.2rem; }
.guarantee { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.guarantee-in { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.guarantee .big { grid-column: 1 / 5; font-family: var(--display); font-weight: 700; font-size: clamp(5rem, 13vw, 11rem); line-height: .85; color: #fff; letter-spacing: -.04em; }
.guarantee .big em { font-style: normal; color: var(--blue-bright); display: block; font-size: .3em; letter-spacing: .1em; margin-top: 10px; }
.guarantee .txt { grid-column: 6 / 13; }
.guarantee .txt h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.1; margin-bottom: 16px; }
.guarantee .txt p { color: rgba(255,255,255,.78); font-weight: 300; }

/* ---- ACTUALITÉS : magazine ---- */
.feature { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-bottom: clamp(40px, 6vh, 80px); border-bottom: 1px solid var(--line); }
.feature-fig { grid-column: 1 / 7; aspect-ratio: 4 / 3; }
.feature-body { grid-column: 7 / 13; }
.feature-body .meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); }
.feature-body h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.04; margin: 16px 0 18px; }
.feature-body p { font-size: 1.08rem; max-width: 52ch; }
.mag-list { padding-top: clamp(20px, 4vh, 44px); }
.mag-item { display: grid; grid-template-columns: 150px 1fr 240px; gap: clamp(18px, 3vw, 44px); align-items: center; padding: clamp(22px, 3vh, 34px) 0; border-bottom: 1px solid var(--line); transition: padding-left .5s var(--ease); }
.mag-item:hover { padding-left: 16px; }
.mag-item .meta { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); align-self: start; padding-top: 4px; }
.mag-item h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.06; transition: color .3s; margin-bottom: 8px; }
.mag-item:hover h3 { color: var(--navy); }
.mag-item p { font-size: .93rem; }
.mag-thumb { aspect-ratio: 16 / 10; }

/* ---- ARTICLE (actualité — single.php) ---- */
.post-single { max-width: 820px; margin-inline: auto; }
.post-hero { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-deep); margin-bottom: clamp(28px, 5vh, 52px); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { font-size: 1.12rem; line-height: 1.75; color: var(--ink-soft); }
.post-body > * + * { margin-top: 1.15em; }
.post-body p { max-width: 68ch; }
.post-body strong, .post-body b { color: var(--ink); font-weight: 600; }
.post-body em { color: var(--blue-ink); }
.post-body a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body a:hover { color: var(--blue); }
.post-body h2, .post-body h3, .post-body h4 { font-family: var(--display); color: var(--ink); line-height: 1.18; margin-top: 1.7em; }
.post-body h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
.post-body h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
.post-body h4 { font-size: 1.2rem; }
.post-body ul, .post-body ol { padding-left: 1.35em; max-width: 68ch; }
.post-body li { margin-top: .5em; }
.post-body li::marker { color: var(--blue); }
.post-body img { max-width: 100%; height: auto; display: block; }
.post-body figure { margin: clamp(24px, 4vh, 40px) 0; }
.post-body blockquote { border-left: 3px solid var(--blue); padding-left: 22px; margin-left: 0; color: var(--ink); font-size: 1.2rem; font-family: var(--display); }
.post-body hr { border: none; border-top: 1px solid var(--line); margin: clamp(30px, 5vh, 50px) 0; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(40px, 6vh, 70px); padding-top: 26px; border-top: 1px solid var(--line); }
.post-nav a { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--ink-soft); transition: color .3s; max-width: 45%; }
.post-nav a:hover { color: var(--blue); }
@media (max-width: 560px) {
  .post-body { font-size: 1.05rem; }
  .post-nav { flex-direction: column; gap: 14px; }
  .post-nav a { max-width: 100%; }
}

/* ---- COMMENTAIRES ---- */
.comments-area { max-width: 820px; margin: clamp(44px, 6vh, 74px) auto 0; padding-top: clamp(28px, 4vh, 44px); border-top: 1px solid var(--line); }
.comments-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--ink); margin-bottom: 28px; }
.comment-list { list-style: none; margin: 0 0 44px; padding: 0; }
.comment-list ol.children { list-style: none; margin: 0 0 0 clamp(18px, 4vw, 52px); padding: 0; }
.comment-body { padding: 22px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 600; color: var(--ink); font-style: normal; }
.comment-author .says { display: none; }
.comment-metadata { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.comment-metadata a { color: var(--ink-faint); }
.comment-content { color: var(--ink-soft); line-height: 1.7; }
.comment-content p { margin-top: 8px; }
.comment-content p:first-child { margin-top: 0; }
.reply { margin-top: 10px; }
.comment-reply-link { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-ink); }
.comment-reply-link:hover { color: var(--blue); }
.bypostauthor > .comment-body { border-left: 2px solid var(--blue); padding-left: 16px; }

#respond { margin-top: 8px; }
.comment-reply-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--ink); margin-bottom: 10px; }
.comment-reply-title small { font-size: .8rem; margin-left: 12px; font-family: var(--sans); font-weight: 400; }
.comment-notes, .logged-in-as { font-size: .88rem; color: var(--ink-faint); margin-bottom: 22px; }
.comment-notes .required { color: var(--blue); }
.comment-form { display: grid; gap: 20px; }
.comment-form label { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink); background: transparent;
  border: none; border-bottom: 1px solid var(--line); padding: 10px 0; transition: border-color .35s;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-bottom-color: var(--blue); }
.comment-form textarea { resize: vertical; min-height: 130px; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form-cookies-consent label { margin: 0; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); }
.comment-form-cookies-consent input { margin-top: 3px; }
.form-submit { margin: 0; }
.comment-submit { cursor: pointer; border: none; }
.no-comments { color: var(--ink-faint); font-size: .9rem; }
@media (min-width: 620px) {
  .comment-form { grid-template-columns: 1fr 1fr; }
  .comment-form-comment, .comment-notes, .logged-in-as, .form-submit, .comment-form-cookies-consent { grid-column: 1 / -1; }
}

/* ---- CONTACT ---- */
.contact-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(30px, 5vw, 72px); }
.contact-aside { grid-column: 1 / 6; }
.contact-aside h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.08; margin-bottom: 26px; }
.contact-aside .big-mail { display: inline-block; font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 2rem); color: var(--ink); margin-bottom: 40px; }
.contact-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-blocks .mono { color: var(--blue-ink); display: block; margin-bottom: 10px; }
.contact-blocks address { font-style: normal; font-size: .95rem; line-height: 1.8; color: var(--ink-soft); }
.contact-blocks address strong { color: var(--ink); }
.contact-tel { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: .95rem; color: var(--ink); }
.contact-form { grid-column: 7 / 13; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form-field { position: relative; margin-bottom: 30px; }
.form-field label { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.form-field input, .form-field textarea { width: 100%; font-family: var(--sans); font-size: 1.05rem; color: var(--ink); background: transparent; border: none; border-bottom: 1px solid var(--line); padding: 10px 0; transition: border-color .35s; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-faint); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-bottom-color: var(--blue); }
.form-field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.form-field:focus-within::after { transform: scaleX(1); }
.form-note { color: #0a8a4f; font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; margin-top: 18px; }
.btn.form-submit { margin-top: 8px; }

@media (max-width: 900px) {
  .ph-title { grid-column: 1 / -1; }
  .ph-lead { grid-column: 1 / -1; }
  .metier-block { gap: 20px; }
  .mb-media { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .mb-main { grid-column: 1 / -1; }
  .mb-spec { grid-column: 1 / -1; margin-top: 24px; }
  .svc-aside { grid-column: 1 / -1; position: static; margin-bottom: 24px; }
  .svc-list { grid-column: 1 / -1; }
  .ref-statement { grid-column: 1 / -1; }
  .sectors { grid-template-columns: 1fr; }
  .guarantee .big { grid-column: 1 / -1; }
  .guarantee .txt { grid-column: 1 / -1; }
  .feature-fig { grid-column: 1 / -1; }
  .feature-body { grid-column: 1 / -1; }
  .mag-item { grid-template-columns: 1fr; gap: 6px; }
  .mag-item p { display: none; }
  .contact-aside, .contact-form { grid-column: 1 / -1; }
  .contact-blocks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .ref-row { grid-template-columns: 40px 1fr; }
  .ref-row .cat { display: none; }
  .contact-blocks { grid-template-columns: 1fr; }
}

/* ============================ RESPONSIVE GLOBAL ============================ */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-cta { grid-template-columns: 1fr; align-items: start; }
  .rulers::before, .rulers::after { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .masthead-in { height: 64px; }
}

/* ==================================================================
   COMPATIBILITÉ BLOCS GUTENBERG
   Le contenu des pages est composé de blocs natifs (groupe, titre,
   paragraphe, image, liste) pour rester modifiable dans l'éditeur.
   WordPress leur ajoute ses propres classes et un rythme vertical
   par défaut : on le neutralise pour conserver la grille du thème.
   ================================================================== */

/* WordPress applique un rythme vertical aux blocs de type « flux ».
   Le reset global du thème le neutralise déjà dans la plupart des cas,
   mais ces règles sont plus spécifiques et doivent être annulées ici. */
.is-layout-flow > *, .is-layout-constrained > * { margin-block-start: 0; }

/* Le bloc image encapsule l'image dans un <figure> : il doit rester
   transparent vis-à-vis de la mise en page. */
.wp-block-image { margin: 0; }
.wp-block-image img { display: block; width: 100%; height: auto; }

/* =========================================================================
   Modifications décembre 2026
   ========================================================================= */

/* Bandeau chiffres clés de l'accueil : 5 colonnes */
.ledger { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) {
  .ledger { grid-template-columns: repeat(3, 1fr); }
  .ledger div:nth-child(4) { border-left: none; padding-left: 0; }
}
@media (max-width: 760px) {
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger div:nth-child(4) { border-left: 1px solid var(--line-light); padding-left: clamp(14px, 2vw, 28px); }
  .ledger div:nth-child(odd) { border-left: none; padding-left: 0; }
  .ledger div:nth-child(5) { grid-column: 1 / -1; }
}

/* Engagements (Services) : 6 éléments sur 3 colonnes */
.figures-nums--six { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
.figures-nums--six div:nth-child(4) { border-left: none; padding-left: 0; }
@media (max-width: 760px) {
  .figures-nums--six { grid-template-columns: repeat(2, 1fr); }
  .figures-nums--six div:nth-child(4) { border-left: 1px solid var(--line); padding-left: 18px; }
  .figures-nums--six div:nth-child(odd) { border-left: none; padding-left: 0; }
}

/* Encadrés métiers : libellés longs à droite */
.mb-spec li span { text-align: right; }

/* Page Partenaires : logo IMMOTIC avec sa baseline, en grand */
.brand-band { padding-block: clamp(40px, 7vh, 80px) 0; }
.brand-band .wrap { display: flex; justify-content: center; }
.brand-baseline { width: min(760px, 100%); height: auto; }

/* Mur de logos : logo Réseau Entreprendre */
.logo-tile img[src*="reseau-entreprendre"] { max-height: 56px; }
