/* ==========================================================================
   Management à Distance — feuille de style complémentaire
   Direction : ad.editorial + ad.swiss · col.monochrome (Steel Archive)
   UI : ui.flat (rayon 4 px, aucune ombre) · Motion : mot.micro-interaction
   ========================================================================== */

:root {
  --acier-50:  #F8FAFC;
  --acier-100: #F1F5F9;
  --acier-200: #E2E8F0;
  --acier-300: #CBD5E1;
  --acier-400: #94A3B8;
  --acier-500: #64748B;
  --acier-600: #475569;
  --acier-700: #334155;
  --acier-800: #1E293B;
  --acier-900: #0F172A;
  --paper:     #FFFFFF;

  --rayon: 4px;
  --gouttiere: 1.5rem;
  --mesure: 68ch;
  --entete-h: 72px;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--acier-100);
  color: var(--acier-800);
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  font-feature-settings: "liga" 1, "kern" 1;
  text-rendering: optimizeLegibility;
}

/* --- Trame éditoriale : 12 colonnes, texte sur 6-7 ------------------------ */

.shell {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 1024px) { .shell { padding-inline: 2rem; } }

.grille-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 1.5rem; }

.col-texte { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .col-texte { grid-column: 1 / span 7; }
  .col-note  { grid-column: 9 / span 4; }
}

.mesure { max-width: var(--mesure); }
.mesure-courte { max-width: 56ch; }

/* --- Titres ---------------------------------------------------------------
   Sélecteurs préfixés par `body` : le préflight de Tailwind (injecté à
   l'exécution dans le <head>, donc après cette feuille) réinitialise
   h1-h4 sur `font-size: inherit`. La spécificité "body h1" l'emporte
   sur cet ordre de cascade, sans recourir à !important.               */

body h1, body h2, body h3, body h4 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
body h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.06; }
body h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.14; }
body h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); line-height: 1.25; }
body h4 { font-size: 1.02rem; line-height: 1.35; }

body p { text-wrap: pretty; }

/* --- Kicker, labels, chiffres -------------------------------------------- */

.kicker {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--acier-600);
}

.label {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--acier-600);
}

.ui { font-family: "Hanken Grotesk", system-ui, sans-serif; }
.ui-sans { font-family: "Hanken Grotesk", system-ui, sans-serif; }

.chiffre {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--acier-800);
}

.source {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acier-500);
}

/* --- Filets --------------------------------------------------------------- */

.filet       { border-top: 1px solid rgba(148, 163, 184, 0.45); }
.filet-fort  { border-top: 1px solid rgba(30, 41, 59, 0.12); }
.filet-bas   { border-bottom: 1px solid rgba(148, 163, 184, 0.45); }
.filet-pied  { border-top: 2px solid var(--acier-800); }
.filet-gauche{ border-left: 2px solid var(--acier-800); }

/* --- Boutons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 0.8rem 1.35rem;
  border-radius: var(--rayon);
  border: 1px solid transparent;
  text-align: center;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn-primaire { background: var(--acier-800); color: #FFFFFF; }
.btn-primaire:hover { background: var(--acier-700); }
.btn-secondaire { background: transparent; color: var(--acier-800); border-color: var(--acier-600); }
.btn-secondaire:hover { background: var(--acier-100); }
.btn-clair { background: #FFFFFF; color: var(--acier-800); }
.btn-clair:hover { background: var(--acier-200); }
.btn-fantome { color: var(--acier-800); border-color: rgba(148,163,184,0.6); }
.btn-fantome:hover { border-color: var(--acier-600); background: rgba(255,255,255,0.6); }

.lien-souligne {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--acier-400);
  transition: text-decoration-color 140ms ease, color 140ms ease;
}
.lien-souligne:hover { text-decoration-color: var(--acier-800); }

/* --- Navigation ----------------------------------------------------------- */

.nav-link {
  position: relative;
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--acier-800);
  transition: color 140ms ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--acier-800);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms cubic-bezier(.22,.61,.36,1);
}
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link[aria-current="page"]::after,
.nav-link[aria-current="true"]::after { transform: scaleX(1); background: var(--acier-600); }
.nav-link[aria-current="page"] { color: var(--acier-900); }

.chevron { transition: transform 160ms ease; }
[aria-expanded="true"] > .chevron { transform: rotate(180deg); }

.dropdown-panel {
  position: absolute;
  left: -1rem;
  top: 100%;
  z-index: 60;
  min-width: 17rem;
  padding: 0.5rem 0;
  background: var(--paper);
  border: 1px solid var(--acier-300);
  border-radius: var(--rayon);
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}
@media (min-width: 1024px) {
  .nav-item:hover .dropdown-panel,
  .nav-item:focus-within .dropdown-panel,
  .nav-item.is-ouvert .dropdown-panel {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
}
.dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--acier-800);
  transition: background-color 120ms ease;
}
.dropdown-link:hover { background: var(--acier-100); }
.dropdown-link[aria-current="page"] { background: var(--acier-100); color: var(--acier-900); font-weight: 600; }

.menu-bouton { line-height: 0; }

/* --- Menu mobile ---------------------------------------------------------- */

.menu-mobile {
  border-top: 1px solid var(--acier-300);
  background: var(--paper);
  max-height: calc(100svh - var(--entete-h));
  overflow-y: auto;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile a, .menu-mobile summary {
  display: block;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid rgba(148,163,184,0.28);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.9375rem;
  color: var(--acier-800);
}
.menu-mobile .sous-menu { background: var(--acier-100); }
.menu-mobile .sous-menu a { padding-left: 2rem; font-size: 0.875rem; color: var(--acier-700); }
.menu-mobile a[aria-current="page"] { font-weight: 700; color: var(--acier-900); }

/* --- Ligne de distance (motif) -------------------------------------------- */

.team-map { margin: 0; }
.team-map__svg { display: block; width: 100%; height: auto; }

.team-map__ligne {
  stroke: var(--acier-400);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: tracer 700ms cubic-bezier(.22,.61,.36,1) 120ms forwards;
}
.team-map__noeud { fill: var(--acier-800); opacity: 0; animation: apparaitre 320ms ease forwards; }
.team-map__tick { stroke: var(--acier-600); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; animation: apparaitre 320ms ease forwards; }
.team-map__noeud--secondaire { fill: var(--acier-500); }

.team-map__nodes > :nth-child(1) { animation-delay: 420ms; }
.team-map__nodes > :nth-child(2) { animation-delay: 480ms; }
.team-map__nodes > :nth-child(3) { animation-delay: 540ms; }
.team-map__nodes > :nth-child(4) { animation-delay: 600ms; }
.team-map__nodes > :nth-child(5) { animation-delay: 660ms; }

@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes apparaitre { from { opacity: 0; } to { opacity: 1; } }

.team-map__legende {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 1rem;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--acier-600);
}
.team-map__legende .team-map__echelle { margin-left: auto; color: var(--acier-400); font-weight: 500; }

/* --- Bloc statistique ----------------------------------------------------- */

.stat { border-top: 1px solid rgba(148,163,184,0.45); padding-top: 1rem; }
.stat__valeur { font-size: clamp(2.4rem, 5vw, 3.2rem); }
.stat__intitule { margin-top: 0.5rem; max-width: 34ch; }

/* --- Ligne réglée (produit) ----------------------------------------------- */

.regle-ligne {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(148,163,184,0.45);
}
@media (min-width: 768px) {
  .regle-ligne { grid-template-columns: minmax(0,1fr) auto; align-items: baseline; }
}
.regle-ligne__meta {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.8125rem;
  color: var(--acier-600);
}

/* --- Encadré de note (source, vérification) -------------------------------- */

.encadre {
  background: var(--paper);
  border-left: 2px solid var(--acier-800);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--rayon) var(--rayon) 0;
}

/* --- Tableaux ------------------------------------------------------------- */

.tableau { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.tableau caption { text-align: left; padding-bottom: 0.75rem; color: var(--acier-600); font-family: "Hanken Grotesk", system-ui, sans-serif; font-size: 0.8125rem; }
.tableau th {
  text-align: left;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--acier-600);
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--acier-800);
  vertical-align: bottom;
}
.tableau td { padding: 0.7rem 0.75rem; border-bottom: 1px solid rgba(148,163,184,0.4); vertical-align: top; }
.tableau tbody tr:hover { background: rgba(255,255,255,0.65); }
.tableau .num { font-family: "Hanken Grotesk", system-ui, sans-serif; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* --- Listes de contenu ---------------------------------------------------- */

.liste-contenu { list-style: none; padding: 0; margin: 0; }
.liste-contenu > li {
  padding-block: 0.75rem;
  border-top: 1px solid rgba(148,163,184,0.4);
}
.liste-contenu > li:last-child { border-bottom: 1px solid rgba(148,163,184,0.4); }

.puce-numerote { counter-increment: num; }
.puce-numerote::before {
  content: counter(num, decimal-leading-zero);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--acier-500);
  display: block;
  margin-bottom: 0.35rem;
}
ul.puce-numerote { counter-reset: num; }

/* --- Accordéon ------------------------------------------------------------ */

.accordeon > details { border-top: 1px solid rgba(148,163,184,0.45); }
.accordeon > details:last-of-type { border-bottom: 1px solid rgba(148,163,184,0.45); }
.accordeon summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--acier-800);
}
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon summary:hover { color: var(--acier-900); }
.accordeon summary .chevron { flex: 0 0 auto; margin-top: 0.2rem; color: var(--acier-500); transition: transform 160ms ease; }
.accordeon details[open] summary .chevron { transform: rotate(180deg); }
.accordeon .accordeon__corps { padding-bottom: 1.25rem; max-width: var(--mesure); }

/* --- Formulaires ---------------------------------------------------------- */

.champ { margin-bottom: 1.75rem; }
.champ > label {
  display: block;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--acier-800);
  margin-bottom: 0.4rem;
}
.champ .aide { font-size: 0.8125rem; color: var(--acier-600); margin-top: 0.35rem; }
.champ input, .champ select, .champ textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--acier-300);
  border-radius: var(--rayon);
  padding: 0.7rem 0.85rem;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.9375rem;
  color: var(--acier-800);
  transition: border-color 140ms ease;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--acier-600); }
.champ .erreur { display: none; margin-top: 0.35rem; font-family: "Hanken Grotesk", system-ui, sans-serif; font-size: 0.8125rem; color: #9F1239; }
.champ.est-invalide input, .champ.est-invalide select, .champ.est-invalide textarea { border-color: #9F1239; }
.champ.est-invalide .erreur { display: block; }
.champ .obligatoire { color: var(--acier-500); font-weight: 400; }

.radio-ligne {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.9375rem;
  color: var(--acier-800);
  cursor: pointer;
}
.radio-ligne input { width: auto; margin-top: 0.35rem; accent-color: var(--acier-800); }
.radio-ligne:hover { color: var(--acier-900); }

.choix-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  padding-top: 0.25rem;
}

.Confirmation { border: 1px solid var(--acier-800); background: var(--paper); border-radius: var(--rayon); padding: 1.5rem; }
.Confirmation[hidden] { display: none; }

/* --- Accent typographique -------------------------------------------------- */

.chapeau {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--acier-700);
}
@media (min-width: 1024px) { .chapeau { font-size: 1.1875rem; } }

.citation {
  font-size: 1.375rem;
  line-height: 1.35;
  font-style: italic;
  color: var(--acier-800);
  border-left: 2px solid var(--acier-400);
  padding-left: 1.25rem;
}

.surtitre { font-variant-numeric: tabular-nums; }

/* --- Entrée du hero -------------------------------------------------------- */

.entree { animation: monter 520ms cubic-bezier(.22,.61,.36,1) both; }
.entree--1 { animation-delay: 60ms; }
.entree--2 { animation-delay: 160ms; }
.entree--3 { animation-delay: 260ms; }
.entree--4 { animation-delay: 360ms; }
@keyframes monter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* --- Focus ---------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--acier-800);
  outline-offset: 2px;
}
.btn:focus-visible, .dropdown-link:focus-visible { outline-offset: 3px; }

/* --- Utilitaires ---------------------------------------------------------- */

.paragraphe-espace > * + * { margin-top: 1.15em; }
.paragraphe-espace h3 { margin-top: 1.9em; }
.paragraphe-espace h2 { margin-top: 2.4em; }
.paragraphe-espace ul, .paragraphe-espace ol { padding-left: 1.25rem; }
.paragraphe-espace ul { list-style: disc; }
.paragraphe-espace ol { list-style: decimal; }
.paragraphe-espace li + li { margin-top: 0.5rem; }
.paragraphe-espace li::marker { color: var(--acier-400); }
.paragraphe-espace strong { font-weight: 600; color: var(--acier-900); }
.paragraphe-espace a { color: var(--acier-800); }

.titre-section { margin-bottom: 2rem; }
@media (min-width: 1024px) { .titre-section { margin-bottom: 2.75rem; } }

.saut-contenu {
  position: absolute; left: -9999px; top: 0;
  background: var(--acier-800); color: #FFFFFF;
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--rayon) 0; z-index: 100;
}
.saut-contenu:focus { left: 0; }

/* --- Préférence de mouvement réduit --------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .team-map__ligne { stroke-dashoffset: 0; }
  .team-map__noeud, .team-map__tick { opacity: 1; }
  .entree { opacity: 1; transform: none; }
}
