/* Chargement de la police (Google Fonts) */
@font-face {
  font-family: "Gambarino";
  src: url("Gambarino-Regular.woff2") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* =========================================================
   COMMENT LIRE LES TAILLES FLUIDES

   clamp(MINI, VALEUR QUI BOUGE, MAXI)

   - MINI  : la taille ne descend jamais en dessous
   - MAXI  : la taille ne monte jamais au-dessus
   - entre les deux : la taille suit la largeur de l'écran
     (1vw = 1% de la largeur de l'écran)

   Exemple : clamp(38px, 22px + 5vw, 94px)
   → 38px sur petit écran, 94px sur grand écran,
     et une taille progressive entre les deux.
   ========================================================= */


/* ---------- Réglages (on les change ici, une seule fois) ---------- */
:root {
  /* Police : change juste le nom ici (et le lien @import tout en haut) */
  --font-family: 'Gambarino';

  /* Couleurs */
  --bg: #000;
  --fg: #fff;

  /* Tailles de texte : 38px → 94px, etc. */
  --size-title: clamp(38px, 22px + 5vw, 94px);
  --size-identity: clamp(10px, 9.43px + 0.179vw, 12px);
  --size-small: clamp(8px, 7.43px + 0.179vw, 10px);
  --size-copyright: clamp(7px, 6.43px + 0.179vw, 9px);

  /* Espaces (padding et gap) */
  --space-x: clamp(24px, 19.43px + 1.429vw, 40px);
  --space-y: clamp(24px, 21.71px + 0.714vw, 32px);
  --space-footer: clamp(16px, 11.43px + 1.429vw, 32px);
  --space-small: clamp(5px, 4.14px + 0.268vw, 8px);
}


/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-family);
}


/* ---------- Page : header en haut, footer en bas ---------- */
.interface {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-y) var(--space-x);
}

.status {
  display: none;
}


/* ---------- Haut de page ---------- */
.top {
  display: flex;
  justify-content: space-between;
}

.identity {
  font-size: var(--size-identity);
  letter-spacing: 0.1em;
}


/* ---------- Titre au centre de l'écran ---------- */
.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 2 * var(--space-x));
  text-align: left;
}

h1 {
  margin: 0;
  font-size: var(--size-title);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 1;
}


/* ---------- Bas de page ---------- */
.bottom {
  display: flex;
  flex-wrap: wrap;
  /* les blocs passent à la ligne si pas assez de place */
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-footer);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-small);
  font-size: var(--size-small);
}

.copyright {
  font-size: var(--size-copyright);
}

.coordinates,
.eyebrow {
  font-size: var(--size-small);
  letter-spacing: 0.12em;
}


/* ---------- Effet sur les lettres (script.js) ---------- */
.scramble .char {
  letter-spacing: inherit;
}

h1.scramble .char {
  letter-spacing: -0.025em;
  transition: letter-spacing 0.35s ease;
}

/* Pour les personnes qui préfèrent moins d'animations */
@media (prefers-reduced-motion: reduce) {
  h1.scramble .char {
    transition: none;
  }
}