/* Thème Graphite de Pignon (choisi par André le 25 nov. 2026) : la coquille commune à toutes les pages
   de la plateforme (accueil, aide, exemples, connexion, Mon espace, forfaits…).
   Neutre et structuré en boîtes : gris pâle, boîtes blanches, encre presque noire, un seul bleu.
   L'accueil ajoute graphite/accueil.css; les autres pages, graphite/pages.css. */
:root {
  --fond: #F4F4F1; --boite: #FFFFFF; --encre: #111214; --doux: #565961; --trait: #DCDCD6;
  --accent: #2F4BFF; --accent-fonce: #1B2FC2; --accent-doux: #E6EAFF;
  --succes: #1E7A4C; --succes-doux: #E3F4EA; --danger: #B3261E; --danger-doux: #FBE9E7;
  --rayon: 16px; --rayon-petit: 10px;
  --titre: "Space Grotesk", Inter, system-ui, sans-serif;
  --texte: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --texte-doux: var(--doux); /* nom utilisé par aide/aide.css, partagé avec Pignon-hub */
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.g { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--texte); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
.g h1, .g h2, .g h3 { font-family: var(--titre); letter-spacing: -0.02em; margin: 0; line-height: 1.08; }
.g p { margin: 0; }
.g a { color: var(--accent); }
.g a:hover { color: var(--accent-fonce); }
.g :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.g img, .g video { max-width: 100%; height: auto; display: block; }
.saut { position: absolute; left: -9999px; }
.saut:focus { left: 16px; top: 16px; z-index: 50; background: var(--boite); padding: 10px 14px; border-radius: var(--rayon-petit); }
.enveloppe { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.pile { display: flex; flex-direction: column; gap: 18px; }
.etiq { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }
.emoji { font-style: normal; }

/* En-tête */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--titre); font-weight: 700; font-size: 22px; color: var(--encre) !important; text-decoration: none; }
.logo__marque { width: 36px; height: 36px; border: 1.5px solid var(--encre); border-radius: var(--rayon-petit); display: grid; place-items: center; }
.nav__liens, .nav__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav__actions { gap: 8px; }
.nav__actions form { margin: 0; }
.nav__liens a { color: var(--encre); text-decoration: none; white-space: nowrap; padding: 10px 14px; border-radius: var(--rayon-petit); font-weight: 500; font-size: 15px; }
.nav__liens a:hover, .nav__liens a[aria-current] { background: var(--boite); color: var(--encre); }
/* Menu « espace client » (_espace_nav.html) : la page en cours est soulignée */
.nav__marque { display: flex; align-items: center; gap: 10px; }
.nav__etiquette { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--doux);
  border: 1px solid var(--trait); border-radius: 999px; padding: 3px 10px; background: var(--boite); white-space: nowrap; }
.nav--espace .nav__liens a[aria-current] { box-shadow: inset 0 -2px 0 var(--encre); }
.nav__court { display: none; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--rayon-petit);
  font: 600 15px/1.2 var(--texte); text-decoration: none; border: 1.5px solid var(--encre); cursor: pointer; text-align: center; }
.btn--grand { min-height: 52px; padding: 0 22px; font-size: 16px; }
.g .btn--plein { background: var(--encre); color: #fff; }
.g .btn--plein:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.g .btn--vide { background: var(--boite); color: var(--encre); }
.g .btn--vide:hover { background: var(--accent-doux); color: var(--encre); }
.g .btn--blanc { background: #fff; color: var(--encre); border-color: #fff; }
.g .btn--blanc:hover { background: var(--accent-doux); color: var(--encre); }

/* Boîte de base */
.boite { background: var(--boite); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 28px; }

/* Pied de page */
.pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 48px 0; color: var(--doux); font-size: 14px; }
.g .pied a { color: var(--doux); }

@media (max-width: 560px) {
  .boite { padding: 22px; }
  .nav__liens { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .nav__actions .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .nav__etiquette, .nav__long { display: none; }
  .nav__court { display: inline; }
}
@media print {
  .nav, .pied, .saut { display: none !important; }
  body.g { background: #fff; }
}
