/* ==========================================================================
   Frerault Expertises — refonte 2026 · v12 « monument »
   Aucune couleur décorative. Nuit quasi-noire, blanc, crème.
   La monumentalité vient de la typographie, de l'espace et de la lumière.
   ========================================================================== */

:root {
  --creme: #f7f5f0;            /* crème chaude (sections alternées) */
  --blanc: #ffffff;
  --encre: #0a1626;            /* nuit profonde : titres, boutons, sections sombres */
  --encre-2: #101f36;
  --marine: #16334f;           /* réservé aux états (hover, focus) */
  --lumiere: rgba(255,255,255,0.55); /* seul « accent » sur fonds sombres */
  --texte: #3f4b59;
  --pierre: #7f8d9b;           /* gris-bleu secondaire */
  --hairline: #e7e4db;
  --hairline-sombre: rgba(255,255,255,0.14);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --t: 0.3s cubic-bezier(.4,0,.2,1);
  --maxw: 1280px;
  --r-carte: 10px;
  --r-panneau: 0px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; color: var(--encre); }

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

::selection { background: var(--encre); color: var(--blanc); }

/* ---------- Typographie ---------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 560;
  font-optical-sizing: auto;
  color: var(--encre);
  line-height: 1.03;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(3.2rem, 8.5vw, 7.5rem); line-height: 1.0; }
h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.04; }
h3 { font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.01em; }

h1 em, h2 em { font-style: italic; font-weight: 500; }

.kicker {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--pierre);
  margin-bottom: 28px;
}

.lead { font-size: 1.2rem; line-height: 1.75; }

/* Justification éditoriale : paragraphes longs uniquement, avec césure
   française pour éviter les « rivières » (l'attribut lang="fr" est requis) */
.lead, .split p, .tete p, .item-edito p, .article-corps p, .faq-body-inner p {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* ---------- Liens & boutons ---------- */

.lien {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--encre);
  transition: var(--t);
}

.lien::after {
  content: "→";
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  font-size: 0.9rem;
  transition: var(--t);
}

.lien:hover::after { background: var(--encre); border-color: var(--encre); color: var(--blanc); transform: translateX(4px); }

.lien.clair { color: var(--blanc); }
.lien.clair::after { border-color: rgba(255,255,255,0.35); }
.lien.clair:hover::after { background: var(--blanc); color: var(--encre); border-color: var(--blanc); }

.btn {
  display: inline-block;
  padding: 15px 34px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  background: var(--encre);
  color: var(--blanc);
  border: 1px solid var(--encre);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--t);
}

.btn:hover { background: var(--encre-2); border-color: var(--encre-2); }

.btn.electrique { background: var(--blanc); color: var(--encre); border-color: var(--blanc); }
.btn.electrique:hover { box-shadow: 0 12px 30px rgba(11,29,51,0.28); }

.btn.contour { background: transparent; color: var(--encre); border-color: rgba(22,21,15,0.25); }
.btn.contour:hover { border-color: var(--encre); box-shadow: none; }

.btn.clair { background: var(--blanc); color: var(--encre); border-color: var(--blanc); }

.section-noir .btn.contour, .cta .btn.contour, .hero-sombre .btn.contour {
  color: var(--blanc);
  border-color: rgba(255,255,255,0.4);
}

/* ---------- Barre d'annonce (façon RockFi) ---------- */

.annonce {
  background: var(--encre);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}

.annonce .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 11px;
  padding-bottom: 11px;
  flex-wrap: wrap;
  text-align: center;
}

.annonce .tag { color: var(--lumiere); font-weight: 600; white-space: nowrap; }
.annonce a.titre { color: var(--blanc); font-weight: 500; transition: var(--t); }
.annonce a.titre::after { content: "\00a0→"; color: var(--lumiere); }
.annonce a.titre:hover { opacity: 0.8; }
.annonce .date { color: rgba(255,255,255,0.45); white-space: nowrap; }

/* ---------- Header (blanc, net) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--t);
}

.site-header.plein { border-bottom-color: var(--hairline); }

.site-header .container {
  max-width: none;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

/* Logo d'origine blanc → inversé en encre sur fond clair */
.site-header .logo img { height: 38px; width: auto; filter: invert(1) brightness(0.2); }

.nav { display: flex; align-items: center; gap: 34px; }

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--texte);
  padding: 6px 0;
  transition: var(--t);
}

.nav a:hover, .nav a.active { color: var(--encre); }

.nav a.btn-nav {
  background: var(--encre);
  color: var(--blanc);
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 550;
}

.nav a.btn-nav:hover { background: var(--encre-2); }

.burger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 22px; position: relative; z-index: 102;
}
.burger span {
  display: block; position: absolute; left: 0;
  width: 100%; height: 2px; background: var(--encre);
  border-radius: 2px; transition: var(--t);
}
.burger span:nth-child(1) { top: 1px; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 19px; }
.burger.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ---------- Hero clair typographique (façon RockFi) ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  background: var(--encre);
  color: var(--blanc);
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.48;              /* photo en retrait : la nuit domine */
  /* Entrée cinématique puis respiration perpétuelle (Ken Burns) */
  animation:
    hero-entree 2.2s cubic-bezier(.22,.6,.3,1) both,
    kenburns 30s ease-in-out 2.2s infinite alternate;
}

@keyframes hero-entree {
  from { opacity: 0;    transform: scale(1.14); }
  to   { opacity: 0.48; transform: scale(1.06); }
}

@keyframes kenburns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.14); }
}

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,38,0.55) 0%, rgba(10,22,38,0.06) 45%, rgba(5,12,22,0.93) 100%);
}

.hero .container {
  position: relative; z-index: 2;
  width: 100%;
  padding-top: 140px;
  padding-bottom: 64px;
}

.hero h1 { max-width: 15ch; color: var(--blanc); }
.hero .kicker { color: var(--lumiere); }
.hero .sous-titre { margin-top: 26px; max-width: 560px; font-size: 1.08rem; color: rgba(255,255,255,0.85); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* Ligne rotative d'audiences */
.rotator-ligne {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: rgba(255,255,255,0.75);
}

.rotator {
  display: inline-block;
  font-style: italic;
  color: var(--blanc);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: opacity 0.35s ease;
}

.rotator.fondu { opacity: 0; }

/* Cartes photo empilées à droite du hero */
.hero-cartes { display: grid; gap: 18px; }

.hero-cartes .photo {
  border-radius: var(--r-carte);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(22,21,15,0.18);
  
}

.hero-cartes .photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }

/* Heros intérieurs : plus courts, une colonne */
.hero.court { min-height: 58svh; }
.hero.court .container {
  display: block;
  min-height: 0;
  padding-top: 130px;
  padding-bottom: 64px;
}

.hero.court h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }

.hero-pied {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.22);
  display: flex;
  gap: 14px 32px;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
}

.hero-pied strong { color: var(--blanc); font-weight: 600; }
.hero-pied a:hover { color: var(--blanc); }

/* Badge classement, en haut à droite sur la photo */
.hero-badge {
  position: absolute;
  top: 108px;
  right: 36px;
  z-index: 2;
  text-align: right;
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
}

.hero-badge strong {
  display: block;
  color: var(--blanc);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-badge span {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.85);
}

/* Carte Décideurs */
.carte-decideurs {
  background: var(--blanc);
  border-radius: var(--r-carte);
  padding: 26px 30px;
  box-shadow: 0 20px 50px rgba(22,21,15,0.1);
  
}

.carte-decideurs .marque {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre);
}

.carte-decideurs .marque span { color: var(--pierre); font-weight: 500; margin-left: 6px; }

.carte-decideurs .mention {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--encre);
  margin-top: 8px;
}

.carte-decideurs ul { list-style: none; margin-top: 8px; }
.carte-decideurs li {
  font-size: 0.84rem;
  padding: 2px 0;
  color: var(--texte);
}
.carte-decideurs li::before { content: "•"; color: var(--pierre); margin-right: 8px; }

/* ---------- Marquee certifications ---------- */

.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding: 40px 0 44px;
  background: var(--creme);
}

.marquee-titre {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--maxw);
  margin: 0 auto 30px;
  padding: 0 32px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pierre);
}

.marquee-titre::before,
.marquee-titre::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.marquee-titre span { flex: none; }

.marquee-piste {
  display: flex;
  align-items: stretch;
  gap: 64px;
  width: max-content;
  padding: 0 32px;
  animation: defile 38s linear infinite;
}

.marquee:hover .marquee-piste { animation-play-state: paused; }

/* Logos détourés visuellement : fonds blancs fondus dans la page
   (mix-blend-mode), teinte unique gris encre, hauteur strictement égale */
.marquee-piste a {
  display: flex;
  align-items: center;
  transition: var(--t);
}

.marquee-piste img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.05);
  mix-blend-mode: multiply;
  opacity: 0.6;
  transition: var(--t);
}

.marquee-piste a:hover img { filter: none; opacity: 1; }

@keyframes defile {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 32px)); } /* -50% + demi-gap : boucle sans à-coup */
}

/* ---------- Bandeau publication (repris par build.py) ---------- */

.pub-strip { background: var(--blanc); border-bottom: 1px solid var(--hairline); }

.pub-strip .container {
  display: flex; align-items: baseline; gap: 24px;
  padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap;
}

.pub-strip .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pierre); }
.pub-strip a.titre { font-weight: 550; color: var(--encre); }
.pub-strip a.titre:hover { opacity: 0.7; }
.pub-strip .date { font-size: 0.8rem; color: var(--pierre); margin-left: auto; }

/* ---------- Sections ---------- */

.section { padding: 150px 0; position: relative; }

.section-os {
  background: var(--creme);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-noir {
  background: var(--encre);
  color: rgba(255,255,255,0.75);
}

.section-noir h2, .section-noir h3 { color: var(--blanc); }
.section-noir .kicker { color: var(--lumiere); }

.tete { max-width: 860px; margin-bottom: 84px; }
.tete.centre { margin-left: auto; margin-right: auto; text-align: center; }
.tete p { margin-top: 24px; }

.filet { border-top: 1px solid var(--hairline); }

/* (monogramme « F » retiré : la lettre seule n'est pas le logo Frerault) */
.watermark { clip-path: inset(0); }
.watermark .container { position: relative; z-index: 1; }

/* Panneau promesse centré (façon « Une tarification fixe… ») */
.promesse { text-align: center; }
.promesse h2 { font-size: clamp(2.5rem, 5.4vw, 4.8rem); max-width: 20ch; margin: 0 auto; }

.promesse .points {
  display: flex;
  justify-content: center;
  gap: 14px 34px;
  flex-wrap: wrap;
  margin-top: 34px;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--texte);
}

.promesse .points span::before { content: "●"; font-size: 0.5rem; vertical-align: 2px; color: var(--encre); margin-right: 12px; }
.promesse .btn { margin-top: 54px; }

/* Trois preuves : affirmation lapidaire + ligne de preuve */
.preuves {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  max-width: 1060px;
  margin: 60px auto 0;
  text-align: left;
}

.preuves > div { border-top: 1px solid var(--encre); padding-top: 24px; }

.preuves h3 { font-size: 1.6rem; }

.preuves p {
  margin-top: 12px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--texte);
}

.bande-photo {
  height: 52vh;
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

/* ---------- Chiffres ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }

.stat .num {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  font-weight: 440;
  color: var(--encre);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.stat .num::before { content: "+"; font-size: 0.5em; vertical-align: 0.5em; margin-right: 2px; color: var(--pierre); }
.stat .num.brut::before { content: ""; }

.stat .label {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--pierre);
}

.section-noir .stat .num { color: var(--blanc); }

/* Bande « Le cabinet en chiffres » : fond nuit, filets, notes */
.chiffres .tete { margin-bottom: 64px; }
.chiffres .stats { gap: 0; }

.chiffres .stat {
  padding: 8px 32px 4px;
  border-left: 1px solid var(--hairline-sombre);
}

.chiffres .stat:first-child { padding-left: 0; border-left: none; }

.chiffres .stat .label {
  color: var(--blanc);
  font-weight: 550;
  letter-spacing: 0.02em;
}

.chiffres .stat .note {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.45);
}

/* ---------- Liste éditoriale ---------- */

.liste-edito { border-top: 1px solid var(--hairline); }

.item-edito {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
  transition: var(--t);
}

.item-edito:hover { padding-left: 6px; }

/* Numéros serif, façon sommaire d'édition */
.item-edito .no {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 440;
  line-height: 1.1;
  color: var(--pierre);
  transition: var(--t);
}

.item-edito:hover .no { color: var(--encre); }

.item-edito h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.item-edito p { font-size: 0.96rem; }

.section-noir .liste-edito, .section-noir .item-edito { border-color: var(--hairline-sombre); }

/* ---------- Tags pilules ---------- */

.taxo { margin-top: 44px; }

.taxo h3 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pierre);
  margin-bottom: 18px;
}

.section-noir .taxo h3 { color: rgba(255,255,255,0.45); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }

.tags a, .tags span {
  display: inline-block;
  padding: 11px 22px;
  background: var(--blanc);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--encre);
  transition: var(--t);
}

.tags a:hover { background: var(--encre); color: var(--blanc); border-color: var(--encre); transform: translateY(-2px); }

.section-noir .tags a, .section-noir .tags span {
  background: transparent;
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9);
}
.section-noir .tags a:hover { background: var(--blanc); color: var(--encre); border-color: var(--blanc); }

/* ---------- Galerie d'actifs ---------- */

.galerie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.oeuvre {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r-carte);
  background: var(--encre-2);
}

.oeuvre img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.4,0,.2,1);
}

.oeuvre:hover img { transform: scale(1.06); }

.oeuvre .voile {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,21,15,0) 42%, rgba(22,21,15,0.85) 100%);
}

.oeuvre .txt { position: absolute; left: 22px; right: 22px; bottom: 20px; color: var(--blanc); }
.oeuvre .txt h3 { color: var(--blanc); font-size: 1.35rem; margin-bottom: 4px; }
.oeuvre .txt p { font-size: 0.8rem; color: rgba(255,255,255,0.75); line-height: 1.5; }

/* ---------- Split ---------- */

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

.split.debut { align-items: start; }

/* Dans une colonne de split, les h2 monumentaux casseraient la ligne :
   on les ramène à une échelle de colonne */
.split h2 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.1; margin-bottom: 22px; }
.split .visuel img { width: 100%; object-fit: cover; border-radius: var(--r-carte); box-shadow: 0 24px 60px rgba(22,21,15,0.14); }
.split p + p { margin-top: 18px; }
.split .lien { margin-top: 34px; }
.split .btn { margin-top: 34px; }

/* ---------- Citation ---------- */

.citation { max-width: 920px; margin: 0 auto; text-align: center; }

.citation blockquote {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  font-weight: 440;
  font-style: italic;
  color: var(--blanc);
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.citation cite {
  display: block;
  margin-top: 30px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 550;
  color: rgba(255,255,255,0.5);
}

/* ---------- Logos & classements ---------- */

.logos {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 60px;
}

.logos img { max-height: 72px; width: auto; filter: grayscale(100%); opacity: 0.55; transition: var(--t); }
.logos a:hover img { filter: none; opacity: 1; }

.classements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.classements a {
  display: block;
  background: var(--blanc);
  border-radius: var(--r-carte);
  padding: 14px;
  box-shadow: 0 12px 34px rgba(22,21,15,0.08);
  transition: var(--t);
}

.classements a:hover { transform: translateY(-4px); box-shadow: 0 26px 50px rgba(22,21,15,0.14); }
.classements img { width: 100%; border-radius: 12px; }

/* ---------- Publications ---------- */

.pubs { border-top: 1px solid var(--hairline); }

.pub {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 40px;
  align-items: baseline;
  padding: 38px 0;
  border-bottom: 1px solid var(--hairline);
  transition: var(--t);
}

.pub:hover { padding-left: 6px; }
.pub .date { font-size: 0.8rem; font-weight: 550; color: var(--pierre); }
.pub h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); transition: var(--t); }
.pub .fleche {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--encre);
  transition: var(--t);
}
.pub:hover .fleche { background: var(--encre); color: var(--blanc); border-color: var(--encre); }

/* ---------- Corps d'article ---------- */

.article-corps { max-width: 760px; }
.article-corps p { margin-bottom: 18px; font-size: 1.02rem; }
.article-corps h2, .article-corps h3, .article-corps h4 { margin: 40px 0 16px; }
.article-corps ul { padding-left: 22px; margin-bottom: 18px; }
.article-corps a { color: var(--encre); text-decoration: underline; text-underline-offset: 4px; }
.article-corps a:hover { opacity: 0.7; }

/* ---------- FAQ ---------- */

.faq-item { border-bottom: 1px solid var(--hairline); }

.faq-item button {
  width: 100%;
  background: none; border: none;
  text-align: left;
  padding: 28px 56px 28px 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 460;
  color: var(--encre);
  cursor: pointer;
  position: relative;
  transition: var(--t);
}

.faq-item button:hover { color: var(--marine); }

.faq-item button::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.5rem; font-weight: 300;
  color: var(--marine);
  transition: var(--t);
}

.faq-item.open button::after { transform: translateY(-50%) rotate(45deg); }

.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; }
.faq-body-inner { padding: 0 0 32px; max-width: 760px; }
.faq-body-inner p + p, .faq-body-inner ul { margin-top: 12px; }
.faq-body-inner ul { padding-left: 20px; }

/* ---------- CTA final ---------- */

.cta {
  position: relative;
  background: var(--encre);
  color: rgba(255,255,255,0.7);
  overflow: hidden;
}

.cta-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.18;
  animation: kenburns 26s ease-in-out infinite alternate;
}

.cta .container {
  position: relative; z-index: 2;
  padding-top: 170px; padding-bottom: 170px;
  text-align: center;
}

.cta h2 { color: var(--blanc); font-size: clamp(2.8rem, 6.4vw, 5.6rem); max-width: 18ch; margin: 0 auto; }
.cta p { margin: 24px auto 44px; max-width: 500px; }

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

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--encre);
  margin-bottom: 8px;
}

input, textarea, select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--blanc);
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--encre);
  transition: var(--t);
}

select { appearance: none; cursor: pointer; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--encre);
  box-shadow: 0 0 0 3px rgba(22,51,79,0.15);
}

textarea { min-height: 130px; resize: vertical; }

/* ---------- Carte de France (implantations) ---------- */

.implant-grille {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}

.implant-grille .bureaux { grid-template-columns: 1fr 1fr; }

.carte-france svg { width: 100%; height: auto; display: block; }

.carte-france .regions path {
  fill: rgba(255,255,255,0.045);
  stroke: rgba(255,255,255,0.28);
  stroke-width: 1.1;
  stroke-linejoin: round;
  transition: var(--t);
}

/* Auvergne-Rhône-Alpes, berceau du cabinet, légèrement éclairée */
.carte-france .regions path.siege { fill: rgba(255,255,255,0.1); }

.carte-france .pt { fill: var(--blanc); }

.carte-france .halo {
  fill: none;
  stroke: rgba(255,255,255,0.6);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: sonde 3s ease-out infinite;
}

.carte-france .ville:nth-child(3) .halo { animation-delay: 0.5s; }
.carte-france .ville:nth-child(4) .halo { animation-delay: 1s; }
.carte-france .ville:nth-child(5) .halo { animation-delay: 1.5s; }
.carte-france .ville:nth-child(6) .halo { animation-delay: 2s; }

@keyframes sonde {
  from { transform: scale(0.5); opacity: 0.9; }
  to   { transform: scale(2.6); opacity: 0; }
}

.carte-france text {
  font-family: var(--sans);
  font-size: 21px;                 /* le viewBox (905 px) est affiché ~0,6× */
  font-weight: 550;
  fill: rgba(255,255,255,0.85);
}

.carte-france .couverture .pt { fill: rgba(255,255,255,0.55); }
.carte-france .couverture text { fill: rgba(255,255,255,0.5); font-style: italic; }

@media (prefers-reduced-motion: reduce) { .carte-france .halo { animation: none; opacity: 0; } }

/* ---------- Bureaux ---------- */

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

.bureau {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 30px 24px;
  transition: var(--t);
}

.bureau:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }

.bureau h3 { color: var(--blanc); font-size: 1.3rem; }
.bureau p { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 6px; font-weight: 500; }

.section:not(.section-noir) .bureau { background: var(--blanc); border-color: var(--hairline); }
.section:not(.section-noir) .bureau h3 { color: var(--encre); }
.section:not(.section-noir) .bureau p { color: var(--pierre); }

a.bureau { display: block; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--encre);
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  border-top: 1px solid var(--hairline-sombre);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  padding: 90px 0 64px;
}

.footer-main h4 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 22px;
}

.footer-main ul { list-style: none; }
.footer-main li { margin-bottom: 12px; }
.footer-main a { transition: var(--t); }
.footer-main a:hover { color: var(--blanc); }

.footer-logo img { height: 34px; width: auto; margin-bottom: 22px; }

.footer-bottom {
  border-top: 1px solid var(--hairline-sombre);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom nav { display: flex; gap: 26px; }
.footer-bottom a:hover { color: var(--blanc); }


/* ---------- Glossaire ---------- */

.glossaire .def {
  padding: 34px 0;
  border-bottom: 1px solid var(--hairline);
}

.glossaire .def:first-child { border-top: 1px solid var(--hairline); }

.glossaire .def h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 12px; }
.glossaire .def p { max-width: 760px; }


/* ---------- Grille de missions (page Expertises) ---------- */

.grille-missions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
}

.carte-mission {
  border-top: 1px solid var(--encre);
  padding-top: 22px;
}

.carte-mission h3 { margin-bottom: 10px; }
.carte-mission p { font-size: 0.95rem; }

.grille-missions .carte-mission:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 640px; }

/* ---------- Apparitions ---------- */

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 1s cubic-bezier(.22,.6,.3,1), transform 1s cubic-bezier(.22,.6,.3,1);
}

.reveal.visible { opacity: 1; transform: none; }

/* Images qui s'ouvrent lentement à l'apparition */
.visuel.reveal img, .classements.reveal img {
  transform: scale(1.07);
  transition: transform 1.6s cubic-bezier(.22,.6,.3,1);
}
.visuel.reveal.visible img, .classements.reveal.visible img { transform: scale(1); }

/* ==========================================================================
   Cinématique — v13 « souffle »
   Les états initiaux ne s'appliquent que si le JS a posé body.anim :
   sans JS (ou avec prefers-reduced-motion), tout reste visible.
   ========================================================================== */

/* --- Révélation mot à mot (h1 du hero, h2 au scroll) --- */

.mot {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* marges négatives compensées : ne pas rogner jambages et italiques */
  padding: 0 0.05em 0.12em;
  margin: 0 -0.05em -0.12em;
}

.mot > span { display: inline-block; will-change: transform; }

.decoupe .mot > span {
  transform: translateY(115%);
  transition: transform 1.05s cubic-bezier(.19,1,.22,1);
}

body.est-charge .hero h1.decoupe .mot > span,
h2.decoupe.mots-vus .mot > span { transform: none; }

/* --- Séquence d'ouverture du hero --- */

body.anim .site-header,
body.anim .hero .kicker,
body.anim .hero .rotator-ligne,
body.anim .hero .sous-titre,
body.anim .hero .actions,
body.anim .hero .hero-pied,
body.anim .hero .hero-cartes,
body.anim .hero .hero-badge,
body.anim .hero .carte-decideurs {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.19,1,.22,1);
}

body.anim .site-header { transform: translateY(-14px); }

body.anim .site-header            { transition-delay: 0.1s; }
body.anim .hero .kicker           { transition-delay: 0.25s; }
body.anim .hero .rotator-ligne,
body.anim .hero .sous-titre       { transition-delay: 0.95s; }
body.anim .hero .actions          { transition-delay: 1.15s; }
body.anim .hero .hero-pied,
body.anim .hero .hero-cartes,
body.anim .hero .hero-badge,
body.anim .hero .carte-decideurs  { transition-delay: 1.35s; }

body.est-charge .site-header,
body.est-charge .hero .kicker,
body.est-charge .hero .rotator-ligne,
body.est-charge .hero .sous-titre,
body.est-charge .hero .actions,
body.est-charge .hero .hero-pied,
body.est-charge .hero .hero-cartes,
body.est-charge .hero .hero-badge,
body.est-charge .hero .carte-decideurs { opacity: 1; transform: none; }

/* --- Carte d'actifs (accueil) : photo + sélecteur de typologies --- */

.collage-cadre { position: relative; z-index: 5; }
.collage-scene { position: relative; aspect-ratio: 4 / 3.4; }

.collage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--r-carte);
  background: var(--encre);
  box-shadow: 0 24px 60px rgba(5,12,22,0.18);
}

.collage-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.45s ease;
}

.collage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,12,22,0) 55%, rgba(5,12,22,0.72) 100%);
  pointer-events: none;
  z-index: 1;
}

.collage-legende { z-index: 3; }

.collage-legende {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  color: var(--blanc);
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Sélecteur de typologies à pictos */
.pictos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.pictos button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--blanc);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 550;
  color: var(--encre);
  cursor: pointer;
  transition: var(--t);
}

.pictos svg { width: 16px; height: 16px; flex: none; }

.pictos button:hover { border-color: var(--encre); }
.pictos button.actif { background: var(--encre); color: var(--blanc); border-color: var(--encre); }

/* --- Mouvement réduit : tout est immédiat --- */

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .cta-bg, .marquee-piste { animation: none; }
  .reveal, .visuel.reveal img, .classements.reveal img { opacity: 1; transform: none; transition: none; }
  .decoupe .mot > span { transform: none; transition: none; }
}

/* ==========================================================================
   Finition sensorielle — transitions de pages, éclat, micro-interactions
   ========================================================================== */

/* Transitions de pages (View Transitions API — enrichissement progressif) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-sortie 0.25s ease both; }
::view-transition-new(root) { animation: vt-entree 0.45s cubic-bezier(.22,.6,.3,1) both; }
@keyframes vt-sortie { to { opacity: 0; } }
@keyframes vt-entree { from { opacity: 0; transform: translateY(10px); } }

  to   { background-position: 0% 0; }
}

/* Nav : souligné qui s'étend */
.nav a:not(.btn-nav) {
  background: linear-gradient(var(--encre), var(--encre)) left bottom / 0 1px no-repeat;
  transition: var(--t), background-size 0.35s cubic-bezier(.22,.6,.3,1);
}
.nav a:not(.btn-nav):hover, .nav a.active:not(.btn-nav) { background-size: 100% 1px; }

/* Header qui se resserre au scroll */
.site-header .container { transition: height 0.35s cubic-bezier(.22,.6,.3,1); }
.site-header.plein .container { height: 62px; }
.site-header .logo img { transition: height 0.35s cubic-bezier(.22,.6,.3,1); }
.site-header.plein .logo img { height: 32px; }

/* Boutons : décollement discret */
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(5,12,22,0.18); }
.btn { will-change: transform; }

/* Barre de défilement à la charte */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--creme); }
::-webkit-scrollbar-thumb { background: #b9c2cc; border-radius: 6px; border: 3px solid var(--creme); }
::-webkit-scrollbar-thumb:hover { background: var(--pierre); }

/* Focus clavier net, sans halo par défaut */
:focus-visible { outline: 2px solid var(--marine); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Liste éditoriale de missions (remplace les pastilles) ---------- */

.liste-missions { border-top: 1px solid var(--hairline); }

.liste-missions .groupe {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pierre);
  padding: 30px 0 12px;
  position: sticky;
  top: 76px;
  background: var(--blanc);
  z-index: 2;
}

.liste-missions .bloc-groupe { position: relative; }

.liste-missions a.rang {
  display: grid;
  grid-template-columns: 44px 1fr 26px;
  column-gap: 18px;
  align-items: baseline;
  padding: 21px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}

.rang .no {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--pierre);
  transition: var(--t);
}

.rang h3 { font-size: 1.35rem; margin: 0; transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); }

.rang p {
  grid-column: 2;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--pierre);
  margin-top: 5px;
  max-width: 54ch;
}

.rang .fl {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.22,1,0.36,1);
  color: var(--encre);
}

.rang:hover h3 { transform: translateX(8px); }
.rang:hover .no { color: var(--encre); }
.rang:hover .fl { opacity: 1; transform: translateX(0); }

.split > .colle { position: sticky; top: 130px; align-self: start; }

/* Liste index (énumérations sans lien, remplace les nuages de pastilles) */

.liste-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 72px;
  border-top: 1px solid var(--hairline);
}

.liste-index span {
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
  color: var(--encre);
}

.liste-index a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
  color: var(--encre);
  text-decoration: none;
  transition: var(--t);
}

.liste-index a:hover { transform: translateX(6px); }
.section-noir .liste-index a:hover { color: #fff; }

.section-noir .liste-index { border-top-color: rgba(255,255,255,0.14); }
.section-noir .liste-index span, .section-noir .liste-index a { border-bottom-color: rgba(255,255,255,0.14); color: rgba(255,255,255,0.82); }

@media (prefers-reduced-motion: reduce) {
  .rang h3, .rang .fl { transition: none; }
}

/* Rangée de liste sans lien */
div.rang { display: grid; grid-template-columns: 44px 1fr 26px; column-gap: 18px; align-items: baseline; padding: 21px 0; border-bottom: 1px solid var(--hairline); }
div.rang:hover h3 { transform: none; }

/* ---------- Méta sous les rangs de mission ---------- */

.rang .meta {
  grid-column: 2;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pierre);
  opacity: 0.75;
  margin-top: 10px;
}

/* ---------- Déroulé d'une mission ---------- */

.deroule {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
}

.deroule > div {
  padding: 36px 32px 8px 0;
}

.deroule > div + div {
  border-left: 1px solid var(--hairline);
  padding-left: 32px;
}

.deroule .no {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--pierre);
  margin-bottom: 16px;
}

.deroule h3 { font-size: 1.2rem; margin-bottom: 10px; }

.deroule p { font-size: 0.9rem; line-height: 1.6; color: var(--pierre); }

/* ---------- Explorateur d'actifs ---------- */

.explorateur {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.explorateur .familles { border-top: 1px solid var(--hairline); }

.famille {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 24px 0;
  cursor: pointer;
  font: inherit;
}

.famille h3 {
  font-size: 1.5rem;
  color: var(--encre);
  opacity: 0.55;
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

.famille p {
  font-size: 0.88rem;
  color: var(--pierre);
  margin-top: 4px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s, max-height 0.35s;
}

.famille:hover h3 { opacity: 0.85; }

.famille.actif h3 { opacity: 1; transform: translateX(10px); }

.famille.actif p { opacity: 1; max-height: 60px; transform: translateX(10px); transition: opacity 0.45s 0.1s, max-height 0.35s, transform 0.35s; }

.explorateur .visuel {
  position: sticky;
  top: 110px;
  aspect-ratio: 4 / 5;
  max-height: 72vh;
  overflow: hidden;
}

.explorateur .visuel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 1.2s ease;
}

.explorateur .visuel img.actif { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .famille h3, .famille p, .explorateur .visuel img { transition: none; transform: none; }
}

/* ---------- Index typographique des actifs ---------- */

.actifs-index { border-top: 1px solid var(--hairline); margin-top: 24px; }

.rang-actif {
  display: grid;
  grid-template-columns: 1fr 1.1fr 26px;
  column-gap: 40px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}

.rang-actif h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin: 0;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

.rang-actif p { font-size: 0.95rem; line-height: 1.55; color: var(--pierre); margin: 0; }

.rang-actif .fl {
  justify-self: end;
  align-self: center;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.22,1,0.36,1);
  color: var(--encre);
}

a.rang-actif:hover h3 { transform: translateX(8px); }
a.rang-actif:hover .fl { opacity: 1; transform: translateX(0); }


/* ---------- Actifs : liste défilante + panneau photo fixe ---------- */

.defile {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 88px;
  align-items: start;
  margin-top: 24px;
}

.defile-liste .etape {
  padding: 9vh 0;
  border-top: 1px solid var(--hairline);
  opacity: 0.22;
  transition: opacity 0.6s ease;
}

.defile-liste .etape:hover { opacity: 0.55; }

.defile-liste .etape:last-child { border-bottom: 1px solid var(--hairline); }

.defile-liste .etape.actif { opacity: 1; }

.etape h3 { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

.etape.actif h3 { transform: translateX(10px); }

.etape .no {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--pierre);
  margin-bottom: 18px;
}

.etape h3 { font-size: clamp(1.9rem, 3vw, 2.9rem); letter-spacing: -0.01em; }

.etape p { font-size: 0.95rem; line-height: 1.6; color: var(--pierre); margin-top: 12px; max-width: 44ch; }

.etape .lien { margin-top: 22px; }

.visuel-fixe {
  position: sticky;
  top: 96px;
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - 140px);
  overflow: hidden;
}

.visuel-fixe img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 1s ease, transform 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.visuel-fixe img.actif {
  opacity: 1;
  transform: scale(1);
}

.visuel-fixe::after {
  content: "";
  position: absolute;
  inset: 68% 0 0;
  background: linear-gradient(to top, rgba(10,22,38,0.55), rgba(10,22,38,0));
  z-index: 1;
  pointer-events: none;
}

.visuel-hud {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.visuel-legende {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: #fff;
}

.visuel-compteur {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.75);
}

@media (prefers-reduced-motion: reduce) {
  .defile-liste .etape, .visuel-fixe img, .etape h3 { transition: none; transform: none; animation: none; }
  .visuel-fixe img.actif { opacity: 1; }
}

/* ---------- Contextes : trois régimes ---------- */

.trois-contextes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  margin-top: 24px;
}

.contexte { border-top: 1px solid rgba(255,255,255,0.22); padding-top: 30px; }

.contexte .no {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

.contexte h3 { color: #fff; font-size: 1.5rem; margin-bottom: 12px; }

.contexte p { font-size: 0.95rem; line-height: 1.6; color: rgba(255,255,255,0.66); }

.contexte ul { list-style: none; margin-top: 22px; padding: 0; }

.contexte li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}

.contexte li { padding: 10px 0; }

.contexte li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: -10px 0;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
  transition: var(--t);
}

.contexte li a::after {
  content: "→";
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s;
}

.contexte li a:hover { color: #fff; }

.contexte li a:hover::after { opacity: 1; transform: none; }

.contexte .lien.clair { margin-top: 24px; color: #fff; }

/* Tuiles bureaux cliquables (page cabinet) */
a.bureau { display: block; color: inherit; text-decoration: none; transition: var(--t); }
a.bureau:hover h3 { color: #fff; }
a.bureau:hover { transform: translateX(6px); }

/* ---------- Page actualités : à la une + rubriques ---------- */

.pub-une {
  display: block;
  padding: 44px 0 48px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}

.pub-une h2 { max-width: 26ch; margin: 14px 0 16px; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }

.pub-une p { max-width: 62ch; color: var(--pierre); }

.pub-une .date { display: block; margin-top: 18px; font-size: 0.8rem; font-weight: 550; color: var(--pierre); }

.pub-une:hover h2 { transform: translateX(10px); }

.groupe-pubs { margin-top: 64px; }

.groupe-pubs .kicker { margin-bottom: 8px; }

/* ---------- Barre de rubriques (actualités) ---------- */

.rubriques {
  position: sticky;
  top: 61px;
  z-index: 90;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.rubriques .container {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  scrollbar-width: none;
}

.rubriques a {
  padding: 16px 0;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pierre);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--t);
}

.rubriques a span { margin-left: 7px; opacity: 0.55; font-weight: 500; }

.rubriques a:hover { color: var(--encre); }

.rubriques a.actif { color: var(--encre); border-bottom-color: var(--encre); }

.groupe-pubs { scroll-margin-top: 130px; }

/* ---------- Grille de cartes (actualités) ---------- */

.grille-pubs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 56px;
}

.carte-pub {
  display: flex;
  flex-direction: column;
  padding: 26px 0 30px;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}

.carte-pub .date {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pierre);
  margin-bottom: 12px;
}

.carte-pub h3 {
  font-size: 1.18rem;
  line-height: 1.3;
  margin-bottom: 10px;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carte-pub p {
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--pierre);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carte-pub:hover h3 { transform: translateX(6px); }

/* ---------- Actualités façon revue ---------- */

.tete-rubrique {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.tete-rubrique h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }

.mag-grille {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0 88px;
  align-items: start;
}

.mag-vedette { display: block; text-decoration: none; color: inherit; }

.mag-vedette .date, .mag-titres .date {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pierre);
  margin-bottom: 10px;
}

.mag-vedette h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.22;
  margin-bottom: 14px;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

.mag-vedette p { color: var(--pierre); max-width: 56ch; }

.mag-vedette:hover h3 { transform: translateX(8px); }

.mag-titres a {
  display: block;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}

.mag-titres a:first-child { border-top: 0; padding-top: 0; }

.mag-titres .date { margin-bottom: 6px; }

.mag-titres h4 {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 540;
  line-height: 1.3;
  color: var(--encre);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

.mag-titres a:hover h4 { transform: translateX(6px); }

/* ---------- Vignettes de couverture ---------- */

.vignette {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 18px;
}

.vignette > span {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

a:hover .vignette > span { transform: scale(1.05); }

.pub-une {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.pub-une .vignette { aspect-ratio: 16 / 11; margin-bottom: 0; }

.pub-une-texte { display: block; }

@media (prefers-reduced-motion: reduce) { .vignette > span { transition: none; } }


/* ---------- Contact : le classique parfait ---------- */

.contact-direct { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }

.contact-tel {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 540;
  color: var(--encre);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: var(--t);
}

.contact-tel:hover { transform: translateX(8px); }

.contact-mail {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--encre);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  align-self: flex-start;
  padding-bottom: 3px;
  transition: var(--t);
}

.contact-mail:hover { border-color: var(--encre); }

.classique { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 30px; }

.classique .champ.pleine, .classique .btn, .classique .phrase-note { grid-column: 1 / -1; }

.classique label .opt { font-weight: 400; color: var(--pierre); opacity: 0.7; text-transform: none; letter-spacing: 0; }

.classique select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--encre);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--encre);
  border-radius: 0;
  padding: 6px 2px 8px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.classique select:focus { outline: none; background: rgba(10,22,38,0.03); }

.classique textarea {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.6;
}

.btn.pleine-largeur { width: 100%; text-align: center; }

.classique .phrase-note { color: var(--pierre); }

/* ---------- Contact : accès direct + photo d'équipe ---------- */

.contact-direct { margin-top: 10px; }

.contact-tel { font-size: clamp(2.6rem, 6vw, 5rem); display: block; }

.contact-mail { font-size: clamp(1.2rem, 2.2vw, 1.7rem); margin-top: 6px; display: inline-block; }

.contact-note { margin-top: 26px; color: var(--pierre); max-width: 52ch; }

.photo-equipe { position: relative; }

.photo-equipe img { display: block; width: 100%; height: min(72vh, 640px); object-fit: cover; }

.photo-legende {
  position: absolute;
  left: 32px;
  bottom: 22px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 12px rgba(10,22,38,0.5);
}

.classique.mini { grid-template-columns: 1fr; max-width: 480px; gap: 22px; }

form.classique textarea { font-family: var(--serif); font-size: 1.1rem; }

/* ---------- Contact monumental : table des bureaux + formulaire couture ---------- */

.contact-mail-noir {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 4px;
  transition: border-color 0.3s;
}

.contact-mail-noir:hover { border-color: #fff; }

.bureaux-table { margin-top: 64px; border-top: 1px solid rgba(255,255,255,0.2); }

.bureau-rang {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: baseline;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.bureau-ville {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  color: #fff;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  display: inline-block;
}

.bureau-ville:hover { transform: translateX(10px); }

.bureau-adresse { font-size: 0.92rem; color: rgba(255,255,255,0.55); }

.bureau-tel {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.3s;
}

.bureau-tel:hover { color: #fff; }

.contact-note-noir { margin-top: 30px; color: rgba(255,255,255,0.55); font-size: 0.9rem; }

.couture { margin-top: 10px; }

.champ-c { margin-top: 46px; }

.champ-c label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pierre);
  margin-bottom: 6px;
}

.champ-c input, .champ-c textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--encre);
  background:
    linear-gradient(var(--encre), var(--encre)) left bottom / 0 2px no-repeat,
    linear-gradient(var(--hairline), var(--hairline)) left bottom / 100% 1px no-repeat;
  border: 0;
  border-radius: 0;
  padding: 10px 0 14px;
  resize: none;
  transition: background-size 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.champ-c input:focus, .champ-c textarea:focus {
  outline: none;
  background-size: 100% 2px, 100% 1px;
}

.champ-c ::placeholder { color: var(--pierre); opacity: 0.55; }

.champ-c.manque input, .champ-c.manque textarea {
  background-image: linear-gradient(#b3261e, #b3261e), linear-gradient(var(--hairline), var(--hairline));
  background-size: 100% 2px, 100% 1px;
}

.btn-couture { margin-top: 48px; padding: 20px 44px; font-size: 0.85rem; }

.couture-grille { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; }

.champ-c label .opt { font-weight: 400; letter-spacing: 0.04em; opacity: 0.6; text-transform: none; }

.couture-pied { margin-top: 52px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }

.btn-couture { margin-top: 0; }

.couture-garanties { display: flex; flex-direction: column; gap: 5px; }

.couture-garanties span {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--pierre);
  padding-left: 16px;
  position: relative;
}

.couture-garanties span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 1px;
  background: var(--encre);
}

/* Le menu mobile hors-écran (position:fixed translateX(100%)) débordait à droite :
   la page se dézoomait sur téléphone. clip et non hidden, pour ne pas transformer
   html/body en conteneur de défilement et casser les position:sticky. */
html, body { overflow-x: clip; }

/* Pot de miel du formulaire : hors écran, invisible, non focalisable. */
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mention-rgpd { margin-top: 22px; font-size: 0.78rem; line-height: 1.6; opacity: 0.7; }
.mention-rgpd a { text-decoration: underline; }

/* États du formulaire après envoi. */
.couture-etat { padding: 12px 0; }
.couture-etat h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 10px; }
.couture-erreur { margin-top: 18px; color: #a8322a; }

/* ---------- Palmarès Décideurs ---------- */

.palmares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.palmares.deux { grid-template-columns: repeat(2, 1fr); max-width: 880px; }
.palmares.une { grid-template-columns: 1fr; max-width: 400px; }

.palme {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--encre);
  border-radius: var(--r-carte);
  padding: 32px 30px 26px;
  transition: var(--t);
}
.palme.notoriete { border-top-color: var(--pierre); }
.palme:hover {
  transform: translateY(-4px);
  border-color: #dcd7cb;
  box-shadow: 0 22px 44px rgba(10, 22, 38, 0.09);
}

.palme-source {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pierre);
}
.palme-rang {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--encre);
  margin: 20px 0 6px;
}
.palme-palier {
  display: block;
  min-height: 1.5em;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--pierre);
}
.palme-cat {
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--texte);
}
.palme-cat strong { display: block; font-weight: 600; color: var(--encre); }
.palme-pied {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.palme-annee {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pierre);
}
.palme-fleche { font-size: 0.95rem; color: var(--pierre); transition: var(--t); }
.palme:hover .palme-fleche { color: var(--encre); transform: translateX(4px); }

/* ---------- Lien d'évitement ---------- */

.saut {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 14px 24px;
  background: var(--encre);
  color: var(--blanc);
  font-size: 0.9rem;
  border-radius: 0 0 var(--r-carte) 0;
}
.saut:focus { left: 0; }

/* ---------- Fonds photographiques en <img> ---------- */
/* Les visuels sont de vraies images pour rester remplaçables depuis
   l'espace client ; ces règles leur rendent le comportement d'un
   background-size: cover. */

img.hero-bg,
img.cta-bg,
img.collage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

img.bande-photo {
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Collage : les cinq typologies coexistent dans le DOM, une seule visible. */
.collage-img { opacity: 0; }
.collage-img.collage-actif { opacity: 1; }

/* ==========================================================
   Socle mobile — SPEC §9
   Le CSS de base est celui du mobile. Ce qui suit etait exprime
   en @media (max-width) et devient la regle par defaut ; les
   @media (min-width) qui suivent elargissent, du plus etroit au
   plus large.
   ========================================================== */

.hero-badge { display: none; }
.preuves { grid-template-columns: 1fr; gap: 30px; }
.chiffres .stats { grid-template-columns: 1fr; gap: 40px 0; }
.chiffres .stat:nth-child(odd) { padding-left: 0; border-left: none; }
.chiffres .stat { padding: 0 0 28px; border-left: none; border-bottom: 1px solid var(--hairline-sombre); }
.chiffres .stat:last-child { border-bottom: none; padding-bottom: 0; }
.implant-grille { grid-template-columns: 1fr; gap: 46px; }
.grille-missions { grid-template-columns: 1fr; gap: 30px; }
.grille-missions .carte-mission:last-child:nth-child(odd) { grid-column: auto; }
.split { grid-template-columns: 1fr; gap: 50px; }
.footer-main { grid-template-columns: 1fr; }
.stats { grid-template-columns: 1fr; }
.galerie { grid-template-columns: 1fr; }
.classements { grid-template-columns: 1fr; }
.item-edito { grid-template-columns: 54px 1fr; }
.item-edito .no { font-size: 1.7rem; }
.item-edito p { grid-column: 2; }
.bureaux { grid-template-columns: 1fr; }
.pub { grid-template-columns: 1fr; gap: 8px; }
.burger { display: block; }
.nav { position: fixed; top: 0; right: 0; width: min(360px, 88vw); height: 100vh; background: var(--blanc); flex-direction: column; align-items: flex-start; gap: 8px; padding: 100px 38px 40px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(.4,0,.2,1); box-shadow: -20px 0 60px rgba(22,21,15,0.16); overflow-y: auto; z-index: 101; }
.nav.open { transform: translateX(0); }
.nav a { font-size: 1rem; padding: 12px 0; }
.nav a.btn-nav { margin-top: 12px; }
.collage-scene { aspect-ratio: 16 / 10; }
.section { padding: 78px 0; }
.form-grid { grid-template-columns: 1fr; }
.form-grid .full { grid-column: auto; }
.pub .fleche { display: none; }
.pub-strip .date { display: none; }
.annonce .date { display: none; }
.site-header .container { padding: 0 22px; }
.hero .container { padding-top: 70px; padding-bottom: 60px; }
.split > .colle { position: static; }
.liste-index { grid-template-columns: 1fr; }
.rang h3 { font-size: 1.15rem; }
.deroule { grid-template-columns: 1fr; border-top: 0; }
.deroule > div { border-top: 1px solid var(--hairline); padding: 26px 0 8px; }
.deroule > div + div { border-left: 0; padding-left: 0; }
.explorateur { grid-template-columns: 1fr; gap: 28px; }
.explorateur .visuel { position: static; order: -1; aspect-ratio: 16 / 10; }
.famille p { opacity: 1; max-height: none; }
.famille h3 { opacity: 1; }
.rang-actif { grid-template-columns: 1fr; row-gap: 6px; padding: 22px 0; }
.rang-actif .fl { display: none; }
.defile { grid-template-columns: 1fr; gap: 0; }
.visuel-fixe { display: none; }
.defile-liste .etape { padding: 30px 0; opacity: 1; }
.trois-contextes { grid-template-columns: 1fr; gap: 40px; }
.grille-pubs { grid-template-columns: 1fr; column-gap: 40px; }
.mag-grille { grid-template-columns: 1fr; gap: 36px; }
.tete-rubrique { flex-direction: column; gap: 8px; }
.pub-une { grid-template-columns: 1fr; gap: 24px; }
.classique { grid-template-columns: 1fr; }
.bureau-rang { grid-template-columns: 1fr; gap: 6px; }
.couture-grille { grid-template-columns: 1fr; }
.palmares { grid-template-columns: 1fr; }
.palmares.deux { grid-template-columns: 1fr; }

@media (min-width: 641px) {
  .chiffres .stats { grid-template-columns: 1fr 1fr; }
  .chiffres .stat { padding: 8px 32px 4px; border-left: 1px solid var(--hairline-sombre); border-bottom: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .galerie { grid-template-columns: 1fr 1fr; }
  .classements { grid-template-columns: 1fr 1fr; }
  .bureaux { grid-template-columns: 1fr 1fr; }
  .pub { grid-template-columns: 110px 1fr auto; gap: 24px; }
  .section { padding: 150px 0; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  .pub .fleche { display: inline-grid; }
  .pub-strip .date { display: block; }
  .annonce .date { display: block; }
  .site-header .container { padding: 0 36px; }
  .hero .container { padding-top: 140px; padding-bottom: 64px; }
  .grille-pubs { grid-template-columns: repeat(2, 1fr); }
  .classique { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 721px) {
  .couture-grille { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 861px) {
  .split > .colle { position: sticky; }
  .liste-index { grid-template-columns: repeat(2, 1fr); }
  .rang h3 { font-size: 1.35rem; }
  .deroule { grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hairline); }
  .deroule > div { border-top: none; padding: 36px 32px 8px 0; }
  .deroule > div + div { border-left: 1px solid var(--hairline); padding-left: 32px; }
  .explorateur { grid-template-columns: 1fr 1fr; gap: 80px; }
  .explorateur .visuel { position: sticky; order: 0; aspect-ratio: 4 / 5; }
  .famille p { opacity: 0; max-height: 0; }
  .famille h3 { opacity: 0.55; }
  .rang-actif { grid-template-columns: 1fr 1.1fr 26px; row-gap: normal; padding: 30px 0; }
  .rang-actif .fl { display: block; }
  .defile { grid-template-columns: 1fr 1.05fr; gap: 88px; }
  .visuel-fixe { display: block; }
  .defile-liste .etape { padding: 9vh 0; opacity: 0.22; }
  .trois-contextes { grid-template-columns: repeat(3, 1fr); gap: 64px; }
  .mag-grille { grid-template-columns: 1.35fr 1fr; gap: 0 88px; }
  .tete-rubrique { flex-direction: row; gap: 24px; }
  .pub-une { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .bureau-rang { grid-template-columns: 1fr 1.2fr auto; gap: 32px; }
}

@media (min-width: 881px) {
  .hero-badge { display: block; }
  .preuves { grid-template-columns: repeat(3, 1fr); gap: 44px; }
  .implant-grille { grid-template-columns: 1.1fr 1fr; gap: 70px; }
  .grille-missions { grid-template-columns: 1fr 1fr; gap: 40px 60px; }
  .grille-missions .carte-mission:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .burger { display: none; }
  .nav { position: static; top: auto; right: auto; width: auto; height: auto; background: transparent; flex-direction: row; align-items: center; gap: 34px; padding: 0; transform: none; transition: none; box-shadow: none; overflow-y: visible; z-index: auto; }
  .nav.open { transform: none; }
  .nav a { font-size: 0.92rem; padding: 6px 0; }
  .nav a.btn-nav { margin-top: 0; }
  .palmares { grid-template-columns: repeat(3, 1fr); }
  .palmares.deux { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1021px) {
  .chiffres .stats { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .chiffres .stat:nth-child(odd) { padding-left: 32px; border-left: 1px solid var(--hairline-sombre); }
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .footer-main { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .galerie { grid-template-columns: repeat(4, 1fr); }
  .classements { grid-template-columns: repeat(3, 1fr); }
  .item-edito { grid-template-columns: 80px 1fr 1.2fr; }
  .item-edito .no { font-size: 1.6rem; }
  .item-edito p { grid-column: auto; }
  .bureaux { grid-template-columns: repeat(5, 1fr); }
  .pub { grid-template-columns: 150px 1fr auto; gap: 40px; }
  .collage-scene { aspect-ratio: 4 / 3.4; }
  .chiffres .stat:first-child { padding-left: 0; border-left: none; }
}

@media (min-width: 1025px) {
  .grille-pubs { grid-template-columns: repeat(3, 1fr); column-gap: 56px; }
}

/* ---------- Utilitaires ---------- */
/* Les zones éditables ne peuvent porter en style inline que color et
   font-size : ce qui relevait de la mise en page passe ici. */

.u-souligne { border-bottom: 1px solid currentColor; }
.u-mt-26 { margin-top: 26px; }
.u-mt-28 { margin-top: 28px; }
.u-mt-30 { margin-top: 30px; }
.u-mt-32 { margin-top: 32px; }
.u-ml-24 { margin-left: 24px; }
.u-max-16 { max-width: 16ch; }
.u-max-18 { max-width: 18ch; }
.u-col-1 { grid-template-columns: 1fr; }

/* ==========================================================
   Cibles tactiles — SPEC §9
   Socle mobile : toute commande atteint 44 x 44 px. Au-dessus de
   880 px la souris prend le relais et les valeurs de composition
   d'origine reprennent.
   ========================================================== */

.burger { width: 44px; height: 44px; }
.burger span { width: 32px; left: 6px; }

.site-header .logo { display: inline-flex; align-items: center; min-height: 44px; }

.nav a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }

.pictos button { min-height: 44px; }

.lien { min-height: 44px; }

.annonce .titre { display: inline-flex; align-items: center; min-height: 44px; }

.footer-main a,
.footer-bottom a,
.footer-logo a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }

.contact-mail-noir { display: inline-flex; align-items: center; min-height: 44px; }

.bureau-ville,
.bureau-tel { display: flex; align-items: center; min-height: 44px; }

.champ-rgpd label { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.champ-rgpd input[type="checkbox"] { width: 24px; height: 24px; flex: 0 0 24px; margin: 0; }

@media (min-width: 881px) {
  .site-header .logo,
  .nav a,
  .contact-mail-noir,
  .lien,
  .annonce .titre,
  .footer-main a,
  .footer-bottom a,
  .footer-logo a,
  .bureau-ville,
  .bureau-tel { min-height: 0; }
  .pictos button { min-height: 0; }
  .nav a,
  .footer-main a,
  .footer-bottom a,
  .footer-logo a { min-width: 0; }
  .champ-rgpd label { min-height: 0; }
}

/* ==========================================================
   Formulaire : le select adopte le filet des autres champs, et la
   phrase de consentement se lit comme une phrase, pas comme un
   libellé de champ.
   ========================================================== */

.champ-c select {
  width: 100%;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--encre);
  background:
    linear-gradient(var(--encre), var(--encre)) left bottom / 0 2px no-repeat,
    linear-gradient(var(--hairline), var(--hairline)) left bottom / 100% 1px no-repeat;
  border: 0;
  border-radius: 0;
  padding: 10px 0 14px;
  appearance: none;
  cursor: pointer;
  transition: background-size 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.champ-c select:focus { outline: none; background-size: 100% 2px, 100% 1px; }
.champ-c.manque select { background-image:
  linear-gradient(var(--encre), var(--encre)),
  linear-gradient(#b4472f, #b4472f); }

.champ-rgpd label {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--texte);
  margin-bottom: 0;
  cursor: pointer;
}
.champ-rgpd input[type="checkbox"] { accent-color: var(--encre); cursor: pointer; }
