/* Intro à l'ouverture de la page d'accueil : « perte de pixels » (décision de l'auteur, novembre 2026).
   Ce fichier ne dessine que le CALQUE DE DÉPART, présent dès le premier affichage (aucun flash du mur) : noir plein
   écran + « mo-d » blanc centré. js/intro.js prend le relais dans un <canvas> identique (trous qui scintillent dans le
   mot, tenue 1200 ms, puis le noir disparaît par blocs depuis le centre en 1600 ms), puis retire tout du DOM.
   Une fois par session (sessionStorage) ; « Réduire les animations » → aucune intro. Sans JavaScript : le calque
   s'efface seul après 4 s (filet). Police : IBM Plex Sans 400 réduite à « m o - d » (816 octets, SIL OFL,
   assets/fonts/OFL-IBMPlexSans.txt). */
@font-face { font-family: 'mo-d intro'; font-weight: 400; font-style: normal; font-display: block;
  src: url('../assets/fonts/PlexSans-400-intro.woff2?v=661e662dea') format('woff2'); }

#opening { position: fixed; inset: 0; z-index: 2147483647; overflow: hidden; background: #000000;
  display: flex; align-items: center; justify-content: center;
  animation: op-fallback 300ms linear 4s both; }                       /* filet sans JavaScript */
#opening .op-word { color: #ffffff; font-family: 'mo-d intro', 'IBM Plex Sans', sans-serif; font-weight: 400;
  font-size: clamp(56px, 18vw, 140px); line-height: 1; letter-spacing: -0.04em; text-transform: lowercase;
  white-space: nowrap; user-select: none; -webkit-user-select: none; }
#opening .op-base { display: inline-block; width: 0; height: 0; vertical-align: baseline; }   /* repère de la ligne de base */
#opening canvas { position: absolute; left: 0; top: 0; display: block; }

/* le canvas a pris le relais : le calque HTML ne se voit plus (les blocs retirés montrent le mur) */
#opening.op-js { animation: none; }
#opening.op-canvas { background: transparent; }
#opening.op-canvas .op-word { visibility: hidden; }

/* l'intro attend de savoir s'il faut l'écran de maintenance (1200 ms au plus) : noir seul, sans le mot */
html.op-wait #opening .op-word { visibility: hidden; }

/* déjà vue dans cette session (js/intro.js, avant le premier affichage), ou « Réduire les animations » : rien */
html.op-off #opening { display: none; }
@media (prefers-reduced-motion: reduce) { #opening { display: none; } }

@keyframes op-fallback { from { opacity: 1; transform: translateY(0); } 99% { opacity: 0; transform: translateY(0); } to { opacity: 0; transform: translateY(100%); } }
