/* Base : reset, typographie, mise en page, accessibilité. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--entete-h) + 56px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-m) / 1.55 var(--font);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 800; text-wrap: balance; }
h1, h2 { font-stretch: var(--large); text-transform: uppercase; letter-spacing: 0.005em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-l); font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--lien); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }
summary { cursor: pointer; }
fieldset { min-width: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-s); }
h1:focus, h1:focus-visible, main:focus { box-shadow: none; outline: none; }

.mono, .num { font-variant-numeric: tabular-nums; }
.label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.discret { color: var(--ink-3); }
.petit { font-size: var(--fs-s); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--sp-3); top: -60px; z-index: 100;
  background: var(--action); color: var(--action-ink); padding: var(--sp-2) var(--sp-4); border-radius: 999px;
  text-decoration: none; font-weight: 700;
}
.skip:focus { top: var(--sp-3); color: var(--action-ink); }

.conteneur { width: 100%; max-width: var(--largeur-max); margin: 0 auto; padding: 0 var(--sp-4); }
@media (min-width: 720px) { .conteneur { padding: 0 var(--sp-6); } }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.entete__barre { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--entete-h); }
.logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  color: var(--ink); text-decoration: none; text-transform: uppercase;
  font-weight: 900; font-stretch: 125%; font-size: 1.05rem; letter-spacing: 0.02em; line-height: 1;
}
.logo:hover { color: var(--ink); }
.logo__marque { width: 30px; height: 30px; background: var(--accent); color: #fff; display: grid; place-items: center; border-radius: 3px; }
.logo__marque svg { width: 22px; height: 22px; }
.logo__texte { display: none; }
.logo__texte span { color: var(--accent); }
@media (min-width: 640px) { .logo__texte { display: inline; } }
.entete__nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; }
.entete__lien {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 10px; color: var(--ink); text-decoration: none; background: none; border: 0;
  font-size: var(--fs-s); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.entete__lien::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform var(--duree); }
.entete__lien:hover { color: var(--ink); }
.entete__lien:hover::after, .entete__lien[aria-current="page"]::after { transform: scaleX(1); }
.entete__lien .texte { display: none; }
@media (min-width: 1000px) { .entete__lien .texte { display: inline; } }
.compteur { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 11px/18px var(--font); text-align: center; }

main { flex: 1; padding-bottom: var(--sp-8); }
main[aria-busy="true"] { cursor: progress; }
.page { animation: apparition 200ms ease-out; }
@keyframes apparition { from { opacity: 0; } to { opacity: 1; } }

/* Pied de page */
.pied { background: #111111; color: #CFCFCF; padding: var(--sp-7) 0 var(--sp-6); font-size: var(--fs-s); }
.pied__grille { display: grid; gap: var(--sp-5); }
@media (min-width: 720px) { .pied__grille { grid-template-columns: 2fr 1fr 1fr; } }
.pied strong { color: #fff; text-transform: uppercase; font-stretch: var(--large); font-weight: 800; letter-spacing: 0.02em; }
.pied a { color: #CFCFCF; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied ul { list-style: none; padding: 0; display: grid; gap: 8px; }

/* Fil d'Ariane */
.ariane { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: var(--sp-4) 0 var(--sp-2); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.ariane a { color: var(--ink); text-decoration: none; }
.ariane a:hover { color: var(--accent); }
.ariane span[aria-hidden] { color: var(--line-strong); }

.entete-page { padding: var(--sp-5) 0 var(--sp-6); display: grid; gap: var(--sp-3); }
.entete-page p { color: var(--ink-2); max-width: 68ch; font-size: var(--fs-l); }

.section { margin-top: var(--sp-7); }
.section > h2 { margin-bottom: var(--sp-5); }
.section__entete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.section__entete a { font-weight: 700; text-transform: uppercase; font-size: var(--fs-s); letter-spacing: 0.03em; }

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