/* ==========================================================================
   ÉDEN — Reset & typographie de base
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Indique au navigateur que l'interface est sombre : les contrôles natifs
     (sélecteur de date, barres de défilement, autofill) suivent au lieu de
     s'afficher en blanc au milieu de la page. */
  color-scheme: dark;
  scroll-behavior: smooth;
  /* décale l'ancre pour ne pas passer sous le bandeau et le header fixes */
  scroll-padding-top: calc(var(--banner-h) + var(--header-h) + 1rem);
}

body {
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Empêche le scroll de la page quand le menu mobile est ouvert */
body.is-locked {
  overflow: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-title);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
  color: var(--text-heading);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); letter-spacing: 0; }

p {
  text-wrap: pretty;
}

/* --- Liens ---------------------------------------------------------------- */

a {
  color: inherit;
  text-decoration: none;
}

/* Lien de texte courant : soulignement or qui s'épaissit au survol */
.link {
  color: var(--c-gold-deep);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.link:hover {
  background-size: 100% 2px;
}

/* --- Listes --------------------------------------------------------------- */

ul,
ol {
  padding: 0;
  list-style: none;
}

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

/* Anneau de focus visible et cohérent partout */
:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Lien d'évitement pour la navigation clavier */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: calc(var(--z-menu) + 10);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-gold);
  color: var(--c-ink);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* Masqué visuellement mais lu par les lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Sélection ------------------------------------------------------------ */

::selection {
  background: var(--c-gold);
  color: var(--c-ink);
}

/* --- Barre de défilement (WebKit) ----------------------------------------- */

@media (min-width: 1024px) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--c-ink); }
  ::-webkit-scrollbar-thumb {
    background: var(--c-charcoal-2);
    border: 3px solid var(--c-ink);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--c-gold-deep); }
}
