/* Safeness Transport — feuille de style des pages statiques (FR)
   Charte : Inter, fond oklch(0.147 0.004 49.25), accent or #FBBC05,
   boutons pastille blancs, sur-titres majuscules interlettrage 4,5 px.
   Police auto-hébergée : aucune requête vers un domaine tiers. */

@font-face {
  font-family: 'Inter Local';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --fond: oklch(0.147 0.004 49.25);
  --fond-carte: oklch(0.205 0.005 49.25);
  --fond-carte-haut: oklch(0.245 0.006 49.25);
  --or: #fbbc05;
  --texte: rgba(255, 255, 255, 0.82);
  --texte-fort: #ffffff;
  --texte-faible: rgba(255, 255, 255, 0.5);
  --filet: rgba(255, 255, 255, 0.1);
  --filet-fort: rgba(255, 255, 255, 0.22);
  --pile: 'Inter Local', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  --largeur: 52rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--pile);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Structure ---------- */

.enveloppe {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 1rem;
}

.entete {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--fond) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--filet);
}

.entete__interieur {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.marque {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--texte-fort);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}

.marque__pointe {
  color: var(--or);
}

.entete__lien {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--texte-faible);
  text-decoration: none;
  white-space: nowrap;
}

.entete__lien:hover,
.entete__lien:focus-visible {
  color: var(--texte-fort);
}

main {
  padding: 3.5rem 0 5rem;
}

/* ---------- Titres ---------- */

.surtitre {
  margin: 0 0 1.25rem;
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4.5px;
  color: var(--texte-faible);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 5.2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 300;
  color: var(--texte-fort);
}

h2 {
  margin: 3.25rem 0 1rem;
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--texte-fort);
  scroll-margin-top: 5.5rem;
}

h3 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--texte-fort);
  scroll-margin-top: 5.5rem;
}

.chapeau {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 2rem;
  max-width: 44rem;
}

.maj-jour {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--texte-faible);
  margin: 0 0 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--filet);
}

/* ---------- Texte courant ---------- */

p {
  margin: 0 0 1.15rem;
}

strong {
  color: var(--texte-fort);
  font-weight: 600;
}

a {
  color: var(--or);
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 188, 5, 0.3);
  transition: border-color 0.2s ease;
}

a:hover,
a:focus-visible {
  border-bottom-color: var(--or);
}

ul,
ol {
  margin: 0 0 1.4rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.55rem;
}

li::marker {
  color: rgba(251, 188, 5, 0.6);
}

hr {
  border: 0;
  border-top: 1px solid var(--filet);
  margin: 3rem 0;
}

/* ---------- Champ à compléter ---------- */

.a-completer {
  background: rgba(251, 188, 5, 0.16);
  color: #ffdb70;
  border-bottom: 1px dashed rgba(251, 188, 5, 0.65);
  padding: 0.05em 0.35em;
  border-radius: 2px;
  font-style: normal;
  white-space: nowrap;
}

.avis-completer {
  margin: 0 0 2.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(251, 188, 5, 0.3);
  border-left: 3px solid var(--or);
  border-radius: 4px;
  background: rgba(251, 188, 5, 0.06);
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Blocs ---------- */

.carte {
  margin: 0 0 1.25rem;
  padding: 1.5rem;
  background: var(--fond-carte);
  border: 1px solid var(--filet);
  border-radius: 6px;
}

.carte p:last-child,
.carte ul:last-child,
.carte ol:last-child {
  margin-bottom: 0;
}

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

.sommaire {
  margin: 0 0 3rem;
  padding: 1.5rem;
  border: 1px solid var(--filet);
  border-radius: 6px;
  background: var(--fond-carte);
}

.sommaire ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
}

.sommaire li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
}

.sommaire a {
  color: var(--texte);
  border-bottom: 0;
}

.sommaire a:hover,
.sommaire a:focus-visible {
  color: var(--or);
}

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

.tableau-enveloppe {
  margin: 0 0 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--filet);
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--filet);
  vertical-align: top;
}

th {
  background: var(--fond-carte-haut);
  color: var(--texte-fort);
  font-weight: 500;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

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

.pastilles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.25rem 0 0;
}

.pastille {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.85rem;
  border-radius: 999px;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.pastille:hover,
.pastille:focus-visible {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.85);
}

.pastille--fantome {
  background: transparent;
  color: var(--texte-fort);
  border-color: var(--filet-fort);
}

.pastille--fantome:hover,
.pastille--fantome:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- Pied de page ---------- */

.pied {
  border-top: 1px solid var(--filet);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.8125rem;
  color: var(--texte-faible);
}

.pied__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.pied__liens a {
  color: var(--texte-faible);
  border-bottom: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.pied__liens a:hover,
.pied__liens a:focus-visible {
  color: var(--texte-fort);
}

.pied p {
  margin: 0 0 0.5rem;
}

/* ---------- Accessibilité ---------- */

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
}

.saut-contenu:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 40rem) {
  main {
    padding: 2.5rem 0 3.5rem;
  }
  .sommaire ol {
    columns: 1;
  }
}
