/* ═══════════════════════════════════════════════════════════════════
   BASE — reset, police, éléments natifs, utilitaires
   Dépend de : tokens.css (à charger avant)

   SOMMAIRE
   01. Police
   02. Reset
   03. Racine & corps
   04. Éléments natifs
   05. Utilitaires typographiques
   06. Utilitaires de mise en page
   07. Accessibilité
   ═══════════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* À l'arrivée sur la page : le contenu apparaît doucement */
body > *:not(.nav) {
  opacity: 0; /* Cache le contenu avant l'animation pour éviter le flash */
  animation: fadeIn 0.7s var(--ease) forwards;
}

/* ── 01. POLICE ─────────────────────────────────────────────────────
   Une seule fonte sur tout le site. Ne rien ajouter ici.           */
@font-face {
  font-family: 'TWK Lausanne';
  src: url('../66c5fb36e4ae3227cd189313_TWKLausanne-300.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}


/* ── 02. RESET ──────────────────────────────────────────────────────*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* ── 03. RACINE & CORPS ─────────────────────────────────────────────
   font-size: 10px sur <html> → 1rem = 10px, toute l'échelle typo
   des tokens en découle.                                           */
html {
  font-size: 10px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--ts-base);
  font-weight: var(--w-light);
  line-height: var(--lh-relaxed);
  letter-spacing: var(--ls-normal);
  overflow-x: hidden;
}


/* ── 04. ÉLÉMENTS NATIFS ────────────────────────────────────────────*/
a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--c-text);
  color: var(--c-bg);
}


/* ── 05. UTILITAIRES TYPOGRAPHIQUES ─────────────────────────────────
   Combinaisons figées : un seul endroit pour changer l'allure d'un
   rôle de texte sur tout le site.                                  */

/* Label UI — eyebrows, tags, liens de nav, labels de footer */
.t-label {
  font-size: var(--ts-xs);
  font-weight: var(--w-regular);
  letter-spacing: var(--ls-wider);
  line-height: var(--lh-normal);
  text-transform: uppercase;
}

/* Eyebrow — surtitre au-dessus d'un titre de section */
.t-eyebrow {
  font-size: var(--ts-2xs);
  font-weight: var(--w-regular);
  letter-spacing: var(--ls-widest);
  line-height: var(--lh-normal);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

/* Titre de section */
.t-title {
  font-size: var(--ts-2xl);
  font-weight: var(--w-light);
  letter-spacing: var(--ls-snug);
  line-height: var(--lh-tight);
}

/* Chapô — paragraphe d'introduction */
.t-lead {
  font-size: var(--ts-md);
  font-weight: var(--w-light);
  line-height: var(--lh-relaxed);
  color: var(--c-text-soft);
}

/* Corps de texte */
.t-body {
  font-size: var(--ts-base);
  font-weight: var(--w-light);
  line-height: var(--lh-relaxed);
}

/* Légende */
.t-caption {
  font-size: var(--ts-sm);
  font-weight: var(--w-light);
  line-height: var(--lh-loose);
  color: var(--c-text-muted);
}


/* ── 06. UTILITAIRES DE MISE EN PAGE ────────────────────────────────*/
.u-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.u-wrap-text {
  width: 100%;
  max-width: var(--maxw-text);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.u-section {
  padding-block: var(--section-y);
}

.u-section-s {
  padding-block: var(--section-y-s);
}


/* ── 07. ACCESSIBILITÉ ──────────────────────────────────────────────*/
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: var(--bw-thick) solid var(--c-accent);
  outline-offset: 3px;
}

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