/* Plateforme Espace Métier : même identité que le site (sombre, accent orange). */
:root {
  color-scheme: dark;
  --fond: #0c0e12; --fond-2: #12151b; --carte: #171b22; --trait: #262c36;
  --texte: #eef1f5; --doux: #a3acba; --orange: #f26c21; --orange-2: #ff8a45; --rouge: #e0563f; --bleu: #3b7bff;
  --largeur: 1180px; --rayon: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--orange-2); }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; margin-top: 28px; }
h3 { font-size: 17px; font-weight: 700; }
.largeur { width: min(var(--largeur), calc(100% - 32px)); margin-inline: auto; }
.barre { position: sticky; top: 0; z-index: 10; background: rgba(12, 14, 18, .92); border-bottom: 1px solid var(--trait); }
.barre-ligne { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none; }
.marque-carre { width: 22px; height: 22px; border-radius: 6px; background: var(--orange); box-shadow: inset 0 0 0 5px var(--orange), inset 0 0 0 7px #fff; }
.menu-admin { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-wrap: wrap; font-size: 15px; }
.menu-admin a { color: var(--doux); text-decoration: none; }
.menu-admin a[aria-current="page"] { color: var(--texte); font-weight: 700; }
.menu-admin form { margin: 0; }
.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--doux); cursor: pointer; text-decoration: underline; }
.contenu { padding-block: 32px 48px; display: grid; gap: 18px; }
.pied { padding-block: 24px 40px; color: var(--doux); font-size: 13px; }
.entete-page { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.entete-page p { margin: 6px 0 0; color: var(--doux); }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px; min-width: 0; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpi b { display: block; font-size: 30px; font-weight: 800; color: var(--orange-2); font-variant-numeric: tabular-nums; }
.kpi span { color: var(--doux); font-size: 14px; }
.tableau { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau th, .tableau td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--trait); vertical-align: top; }
.tableau thead th { border-top: 0; color: var(--doux); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.defile { overflow-x: auto; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font: inherit; font-weight: 700; font-size: 15px; color: #0c0e12; background: var(--orange); border: 0; border-radius: 10px; padding: 10px 16px; text-decoration: none; cursor: pointer; }
.bouton.secondaire { background: transparent; color: var(--texte); border: 1px solid var(--trait); }
.bouton:focus-visible, .champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.formulaire { display: grid; gap: 14px; }
.champ { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.champ input, .champ select, .champ textarea { font: inherit; font-weight: 400; color: var(--texte); background: var(--fond); border: 1px solid var(--trait); border-radius: 10px; padding: 10px 12px; width: 100%; }
.champ small { font-weight: 400; color: var(--doux); }
.pastille { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--trait); color: var(--doux); white-space: nowrap; }
.etape-nouvelle { color: #0c0e12; background: var(--orange); border-color: var(--orange); }
.etape-rencontre, .etape-atelier { color: var(--orange-2); border-color: var(--orange); }
.etape-devis { color: var(--texte); border-color: var(--bleu); }
.etape-signe { color: #0c0e12; background: var(--texte); border-color: var(--texte); }
.etape-perdu { color: var(--doux); text-decoration: line-through; }
.jalons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.jalon { padding: 10px; border-radius: 10px; background: var(--fond-2); border: 1px solid var(--trait); font-size: 13px; color: var(--doux); }
.jalon.fait { border-color: var(--orange); color: var(--texte); background: rgba(242, 108, 33, .12); }
.note { color: var(--doux); font-size: 14px; }
.vide { color: var(--doux); font-style: italic; }
.erreur { color: #fff; background: rgba(224, 86, 63, .2); border: 1px solid var(--rouge); border-radius: 10px; padding: 10px 12px; }
.succes { color: var(--texte); background: rgba(242, 108, 33, .12); border: 1px solid var(--orange); border-radius: 10px; padding: 10px 12px; }
@media (max-width: 760px) {
  .grille-2, .grille-3 { grid-template-columns: 1fr; }
  .jalons { grid-template-columns: 1fr; }
}
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; }
  .barre, .pied, .ne-pas-imprimer { display: none !important; }
  .carte { background: #fff; border-color: #ccc; }
}

/* Correctifs de la revue : ancres sous l'en-tête collant, cibles tactiles de 44 px au téléphone. */
[id] { scroll-margin-top: 76px; }
@media (max-width: 760px) { .menu-admin a, .lien, .adm-etapes button, .adm-retour a, .adm-filtres a { min-height: 44px; display: inline-flex; align-items: center; } }
