/* ============================================================================
   MAISON PARTITA — feuille de style unique
   28/07/2026. Découle de design-system/MASTER.md et de la charte des maisons.

   Deux décisions structurantes :
   1. Prata est AUTO-HÉBERGÉE (fonts/). Le CDN Google Fonts est proscrit : il coûte
      une résolution DNS + une connexion TLS supplémentaires en 4G, et il transmet
      l'IP du visiteur à Google sans consentement — non conforme au RGPD en Europe.
   2. Le texte courant utilise la pile SYSTÈME. Aucune seconde police à télécharger :
      sur un lien en bio ouvert pendant un live, chaque kilo-octet compte.
   ========================================================================== */

@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;                 /* jamais de texte invisible pendant le chargement */
  src: url('fonts/prata-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* --- couleurs : jetons sémantiques, jamais d'hexadécimal en dur ailleurs --- */
  --bg:        #FCFBF8;
  --surface:   #F2F0EB;
  --fg:        #101010;   /* contraste 18,9:1 sur --bg */
  --fg-muted:  #5A5A57;   /* contraste  7,0:1 sur --bg */
  --line:      #D9D5CE;
  --fg-invert: #FCFBF8;

  /* --- typo --- */
  --titre: 'Prata', 'Didot', 'Bodoni 72', Georgia, serif;
  --texte: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* --- échelle d'espacement : 4 px, ces valeurs et pas d'autres --- */
  --e1: 4px;  --e2: 8px;  --e3: 12px; --e4: 16px; --e5: 24px;
  --e6: 32px; --e7: 48px; --e8: 64px; --e9: 96px; --e10: 128px;

  --gouttiere: 20px;
  --largeur:   1180px;

  /* --- mouvement : entrée ease-out, sortie ease-in plus courte --- */
  --entree: 240ms cubic-bezier(.22,.61,.36,1);
  --sortie: 160ms cubic-bezier(.55,.06,.68,.19);

  --z-nav: 40;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--texte);
  font-size: 17px;              /* jamais moins de 16 : en dessous, iOS zoome au focus */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;           /* aucun défilement horizontal, jamais */
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Anneau de focus : visible, jamais supprimé sans remplacement */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

/* Lien d'évitement — premier élément focusable de chaque page */
.evitement {
  position: absolute; left: -9999px; top: 0;
  background: var(--fg); color: var(--fg-invert);
  padding: var(--e3) var(--e4); z-index: 100;
}
.evitement:focus { left: 0; }

.enveloppe {
  width: 100%; max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* --- titrage --- */
h1, h2, h3 { font-family: var(--titre); font-weight: 400; margin: 0; }
h1 { font-size: 30px; line-height: 1.15; letter-spacing: .04em; }
h2 { font-size: 22px; line-height: 1.2;  letter-spacing: .10em; }
h3 { font-size: 18px; line-height: 1.2;  letter-spacing: .12em; }

.mention { font-size: 13px; letter-spacing: .10em; text-transform: uppercase; color: var(--fg-muted); }
.legal   { font-size: 12px; letter-spacing: .06em; color: var(--fg-muted); }
.mesure  { max-width: 62ch; }        /* 60-75 caractères par ligne sur desktop */

/* --- en-tête --- */
.entete {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: var(--z-nav);
}
.entete__marque {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--e2); padding-block: var(--e5) var(--e4);
}
.entete__embleme { width: 26px; height: 26px; }
.entete__maison  { font-size: 10px; letter-spacing: .46em; margin-left: .46em; color: var(--fg-muted); }
.entete__nom     { font-family: var(--titre); font-size: 20px; letter-spacing: .30em; margin-left: .30em; }

.nav ul {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0; margin: 0; padding: 0 0 var(--e2); list-style: none;
}
.nav a {
  display: block;
  padding: var(--e3) var(--e4);       /* zone tactile ≥ 44 px de haut */
  min-height: 44px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid transparent;
  transition: color var(--entree), border-color var(--entree);
  touch-action: manipulation;
}
.nav a:hover { color: var(--fg); }
/* L'entrée courante est SOULIGNÉE, pas seulement colorée : la couleur seule ne
   porte jamais une information (règle d'accessibilité). */
.nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); }

/* --- sections --- */
.section { padding-block: var(--e8); }
.section + .section { border-top: 1px solid var(--line); }
.section__titre { text-align: center; margin-bottom: var(--e6); }

/* --- la tuile --- */
/* La boîte EST la tuile : ce composant est le cœur de l'identité, il se retrouve
   à l'identique sur l'étui imprimé et à l'écran. */
.tuile { width: 100%; height: auto; display: block; }
.tuile .pion { fill: currentColor; }
.tuile .filet { fill: currentColor; }

.vignette {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--e3);
  padding: var(--e5) var(--e4);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  transition: border-color var(--entree), transform var(--entree);
  touch-action: manipulation;
}
a.vignette:hover { border-color: var(--fg); }
a.vignette:active { transform: scale(.985); }

.vignette__tuile { width: 88px; }
/* La charte impose le nom sur UNE ligne : « DOMINO III », jamais le nom au-dessus et
   le chiffre en dessous. Sur une colonne de 165 px, DOMINO VIII à 18 px passait à la
   ligne — d'où le corps réduit et le nowrap. */
.vignette__nom {
  font-family: var(--titre); font-size: 16px; letter-spacing: .12em;
  white-space: nowrap;
}
.vignette__note  { font-size: 13px; color: var(--fg-muted); text-align: center; }

/* Le statut est ÉCRIT. L'opacité et la couleur ne font que redoubler le mot. */
.statut { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.statut--live    { color: var(--fg); font-weight: 600; }
.statut--paraitre{ color: var(--fg-muted); }

.vignette--paraitre { opacity: .55; cursor: default; }
.vignette--paraitre:hover { border-color: var(--line); }

.grille {
  display: grid; gap: var(--e4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* --- la chaîne --- */
.chaine {
  display: flex; gap: var(--e4);
  overflow-x: auto;                    /* le contenu large défile DANS son conteneur */
  padding-block: var(--e4);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.chaine > * { scroll-snap-align: center; flex: 0 0 auto; }
.maillon { width: 116px; text-align: center; }
.maillon__tuile { width: 100%; }
.maillon__joueur { font-size: 12px; letter-spacing: .08em; color: var(--fg-muted); margin-top: var(--e2); }
.maillon__rang { font-family: var(--titre); font-size: 13px; color: var(--fg-muted); }

/* État vide : ce n'est pas un cas d'erreur, c'est l'état de lancement. */
.vide {
  border: 1px solid var(--line);
  padding: var(--e8) var(--e5);
  text-align: center;
}
.vide__titre { font-family: var(--titre); font-size: 22px; letter-spacing: .08em; margin-bottom: var(--e4); }

/* --- appel à l'action, un seul par page --- */
.action {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: var(--e3) var(--e6);
  background: var(--fg); color: var(--fg-invert);
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--fg);
  transition: background var(--entree), color var(--entree);
  touch-action: manipulation;
}
.action:hover { background: transparent; color: var(--fg); }
.action:active { transform: scale(.985); }

/* --- accordéon INCI --- */
details { border-top: 1px solid var(--line); }
summary {
  min-height: 48px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; list-style: none;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--titre); font-size: 18px; }
details[open] summary::after { content: '–'; }
details > div { padding-bottom: var(--e5); font-size: 13px; line-height: 1.6; color: var(--fg-muted); }

/* --- pied --- */
.pied { border-top: 1px solid var(--line); padding-block: var(--e7); text-align: center; }
.pied__embleme { width: 20px; margin-inline: auto; margin-bottom: var(--e4); }
.pied ul { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--e4); margin: var(--e5) 0 0; padding: 0; list-style: none; }
.pied a { min-height: 44px; display: inline-flex; align-items: center; }

/* --- apparition en cascade, 40 ms par élément --- */
@keyframes monte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cascade > * { animation: monte var(--entree) both; }
.cascade > *:nth-child(1){animation-delay:0ms}   .cascade > *:nth-child(2){animation-delay:40ms}
.cascade > *:nth-child(3){animation-delay:80ms}  .cascade > *:nth-child(4){animation-delay:120ms}
.cascade > *:nth-child(5){animation-delay:160ms} .cascade > *:nth-child(6){animation-delay:200ms}
.cascade > *:nth-child(n+7){animation-delay:240ms}

/* --- points de rupture : 375 / 768 / 1024 / 1440 --- */
@media (min-width: 768px) {
  :root { --gouttiere: 32px; }
  h1 { font-size: 44px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  .entete__nom { font-size: 26px; }
  .section { padding-block: var(--e9); }
  .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--e5); }
  .maillon { width: 140px; }
}
@media (min-width: 1280px) {
  :root { --gouttiere: 48px; }
  .grille { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* --- mouvement réduit : tout se réduit à rien --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; scroll-behavior: auto !important;
  }
}
