:root {
  --noir: #040405;
  --creme: #EFE6D6;
  --doux: #A79E94;
  --famille: #1BC6CD;
  --competition: #FB7009;
  --g: #F29437;
  --s: #F8E6C9;
  --fil-famille: linear-gradient(90deg, #FB7150, #F9AF2D, #F8D6A0, #1BC6CD, #44A5E3, #299DDC);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--noir); color: var(--creme); }
body { font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; overflow: hidden; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--creme); outline-offset: 3px; border-radius: 12px; }
.titre-c[tabindex="-1"]:focus, .titre-f[tabindex="-1"]:focus { outline: none; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.voile-haut, .voile-bas { position: fixed; left: 0; right: 0; z-index: 1; pointer-events: none; transition: opacity .9s ease; }
.voile-haut { top: 0; height: 150px; background: linear-gradient(rgba(4, 4, 5, .82), rgba(4, 4, 5, 0)); }
.voile-bas { bottom: 0; height: 38vh; background: linear-gradient(rgba(4, 4, 5, 0), rgba(4, 4, 5, .74) 48%, rgba(4, 4, 5, .9)); }
html.intro .voile-haut, html.intro .voile-bas { opacity: 0; }

.repli { display: none; position: fixed; inset: 0; }
.repli svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.repli img { position: absolute; left: 50%; top: 18vh; width: min(72vw, 360px); height: auto; transform: translateX(-50%); }
html.sans-webgl .repli { display: block; }
html.sans-webgl .repli img[style] { transform: none; }
html.sans-webgl .scene, html.sans-webgl .coeur, html.sans-webgl .recit { display: none; }

.recit { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.recit .mot, .recit .titre, .recit .joueur, .recit .gain, .recit .pictogramme, .recit .plus-deux { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; white-space: nowrap; will-change: transform; }
.recit .mot { font: 900 46px/1 'ArchivoVitrine', system-ui, sans-serif; }
.recit .mot { padding: .95em .75em; background: radial-gradient(closest-side, rgba(4, 4, 5, .8), rgba(4, 4, 5, .5) 58%, rgba(4, 4, 5, 0)); }
.recit .mot .texte {
  display: inline-block; letter-spacing: .12em; padding: .08em .02em .08em .14em;
  background: linear-gradient(90deg, #F6993C 0%, #FFC488 45%, #FFF1DC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 180, 110, .4));
}
.recit .titre {
  font: 900 clamp(19px, 14.5px + 1.05vw, 30px)/1 'ArchivoVitrine', system-ui, sans-serif; letter-spacing: .24em; color: #F6ECDD;
  text-shadow: 0 0 3px rgba(4, 4, 5, .95), 0 0 16px rgba(4, 4, 5, .9);
  padding: .6em .9em .6em 1.14em;
  background: radial-gradient(closest-side, rgba(4, 4, 5, .74), rgba(4, 4, 5, .4) 62%, rgba(4, 4, 5, 0));
}
.recit .joueur {
  display: flex; align-items: center; height: 36px; border-radius: 999px; background: rgba(4, 4, 5, .7);
  box-shadow: inset 0 0 0 1px rgba(239, 230, 214, .14), 0 6px 24px -10px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.recit .joueur.un { color: var(--g); }
.recit .joueur.deux { color: var(--s); }
.recit .joueur.vers-la-gauche { flex-direction: row-reverse; }
.recit .joueur .avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  box-shadow: inset 0 0 0 1.5px currentColor, 0 0 18px -4px currentColor;
}
.recit .joueur .avatar svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.recit .joueur .saisie { overflow: hidden; max-width: 60px; }
.recit .joueur .points { display: flex; gap: 6px; padding: 0 14px 0 9px; }
.recit .joueur.vers-la-gauche .points { padding: 0 9px 0 14px; }
.recit .joueur .points i { display: block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0; visibility: hidden; box-shadow: 0 0 8px currentColor; }
.recit .gain {
  transform-origin: 50% 100%;
  font: 900 22px/1 'ArchivoVitrine', system-ui, sans-serif; letter-spacing: .04em; color: #FFD58A;
  text-shadow: 0 0 3px rgba(4, 4, 5, .9), 0 0 16px rgba(255, 190, 100, .55);
}
.recit .pictogramme {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, rgba(26, 24, 28, .96), rgba(4, 4, 5, .94) 70%);
  box-shadow: inset 0 0 0 2px currentColor, 0 0 0 3px rgba(4, 4, 5, .6), 0 0 24px -3px currentColor;
}
.recit .pictogramme.un { color: var(--g); }
.recit .pictogramme.deux { color: var(--s); }
.recit .pictogramme svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.recit .pictogramme .eclat { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px #FFD58A, 0 0 18px 2px rgba(255, 190, 100, .7); opacity: 0; visibility: hidden; }
.recit .plus-deux {
  transform-origin: 50% 100%;
  font: 900 32px/1 'ArchivoVitrine', system-ui, sans-serif; letter-spacing: .02em; color: #FFD58A;
  text-shadow: 0 0 2px rgba(4, 4, 5, 1), 0 0 10px rgba(4, 4, 5, .9), 0 0 22px rgba(255, 180, 90, .6);
  padding: .26em .42em .2em; background: radial-gradient(closest-side, rgba(4, 4, 5, .78), rgba(4, 4, 5, .45) 60%, rgba(4, 4, 5, 0));
}
.jouer-emerge {
  position: fixed; z-index: 10; left: 50%; top: 45%; opacity: 0; visibility: hidden; pointer-events: none; white-space: nowrap;
  font: 900 clamp(34px, 10vw, 76px)/1 'ArchivoVitrine', system-ui, sans-serif; letter-spacing: .24em; padding-left: .24em;
  color: #FFF4E2; text-shadow: 0 0 28px rgba(255, 160, 80, .5);
}

.barre {
  position: fixed; z-index: 5; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(8px, env(safe-area-inset-top)) 14px 0 18px;
   flex-wrap: wrap; row-gap: 6px;
}
.marque { font: 900 17px/1 'ArchivoVitrine', system-ui, sans-serif; text-decoration: none; color: #B9AB99; min-height: 44px; display: inline-flex; align-items: center; }
.marque .g { color: var(--g); } .marque .s { color: var(--s); }
.outils { display: flex; gap: 8px; align-items: center;  flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.son {
  height: 44px; padding: 0 14px 0 11px; border-radius: 999px; border: 1px solid rgba(239, 230, 214, .22);
  background: rgba(4, 4, 5, .35); color: var(--creme); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font: 600 13px/1 system-ui, sans-serif; position: relative;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.son svg { display: block; }
.son[data-etat="actif"] .muet, .son[data-etat="coupe"] .ondes, .son[data-etat="attente"] .muet { display: none; }
.son[data-etat="coupe"] { color: var(--doux); }
.son[data-etat="attente"] { color: var(--creme); }
.son[data-etat="attente"]::after { content: ''; position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--g); box-shadow: 0 0 8px rgba(242, 148, 55, .8); }
.son[data-etat="actif"] { border-color: rgba(242, 148, 55, .55); }
.passer {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(239, 230, 214, .22);
  background: rgba(4, 4, 5, .35); color: var(--creme); font: 600 13px/1 system-ui, sans-serif; cursor: pointer;
}
html:not(.intro) .passer { display: none; }
.devise {
  position: fixed; z-index: 3; top: max(54px, calc(env(safe-area-inset-top) + 46px), calc(var(--bas-de-la-barre, 0px) + 2px));  left: 0; right: 0; margin: 0; text-align: center; pointer-events: none;
  font: 700 10px/1 'ArchivoVitrine', system-ui, sans-serif; letter-spacing: .3em; color: var(--doux);
}
.revoir {
  position: fixed; z-index: 6; top: max(60px, calc(env(safe-area-inset-top) + 52px)); right: 14px;
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(242, 148, 55, .55);
  background: rgba(14, 10, 6, .82); color: #FFD2A3; font: 600 13px/1 system-ui, sans-serif; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.revoir[hidden] { display: none; }

.accueil {
  position: fixed; z-index: 4; left: 0; right: 0; bottom: 0;
  padding: 0 12px max(24px, calc(env(safe-area-inset-bottom) + 14px));
  display: flex; flex-direction: column; align-items: center; gap: 14px; pointer-events: none;
}
.accueil > * { pointer-events: auto; }
html.intro .accueil, html.intro .devise, html.intro .signature-v { opacity: 0; visibility: hidden; animation: accueil-de-secours 0s 6s forwards; }
html.intro.anime .accueil, html.intro.anime .devise, html.intro.anime .signature-v { animation-delay: 19s; }
html.intro.anime.film-differe .accueil, html.intro.anime.film-differe .devise, html.intro.anime.film-differe .signature-v { animation: none; }
html:not(.js) .accueil, html:not(.js) .devise, html:not(.js) .signature-v { opacity: 1; visibility: visible; animation: none; }
html:not(.js) .repli { display: block; }
html.intro:not(.anime) .repli { display: block; opacity: 0; animation: accueil-de-secours 0s 6s forwards; }
@keyframes accueil-de-secours { to { opacity: 1; visibility: visible; } }
.promesse { margin: 0; max-width: 32ch; text-align: center; color: var(--doux); font-size: 14px; }
.accueil { padding-bottom: max(2px, env(safe-area-inset-bottom)); }
.pied { display: flex; flex-wrap: wrap; justify-content: center; margin-top: -12px; }
.pied a { padding: 6px 5px; font: 500 11px/1.2 system-ui, sans-serif; color: var(--doux); text-decoration: none; white-space: nowrap; }
.pied a:hover { color: var(--creme); text-decoration: underline; }
.pied a:focus-visible { outline: 2px solid var(--creme); outline-offset: -2px; border-radius: 4px; }
@media (max-width: 380px) { .pied a { padding: 6px 4px; font-size: 10.5px; } }
@media (min-width: 900px) {
  .accueil { padding-bottom: max(24px, calc(env(safe-area-inset-bottom) + 14px)); }
  .pied { position: absolute; right: 18px; bottom: calc(14px - 4.5vh); margin: 0; }
}

.destinations { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; width: min(100%, 440px); align-items: stretch; }
.porte, .jouer {
   min-height: 54px; padding: 6px; border-radius: 16px; cursor: pointer; text-align: center; text-decoration: none;
  display: flex; justify-content: center; align-items: center;
  color: var(--creme); position: relative;
  transition: background .3s, border-color .3s, box-shadow .3s, transform .3s;
}
.porte { background: rgba(14, 14, 18, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.porte .nom, .jouer .nom { font: 900 clamp(11px, 3.4vw, 14px)/1 'ArchivoVitrine', system-ui, sans-serif; letter-spacing: .07em; }
.destinations.empilees { grid-template-columns: minmax(0, 1fr); }
.destinations.empilees .nom { overflow-wrap: anywhere; }
.porte::after, .jouer::after { content: ''; position: absolute; bottom: 8px; height: 2px; border-radius: 2px; }
.porte.famille { border: 1px solid rgba(27, 198, 205, .38); }
.porte.famille .nom { color: #7FE0E4; }
.porte.famille::after { left: 26%; right: 26%; background: var(--fil-famille); opacity: .8; }
.porte.competition { border: 1px solid rgba(251, 112, 9, .5); }
.porte.competition .nom { color: #FF9A4D; }
.porte.competition::after { left: 30%; right: 30%; background: var(--competition); opacity: .85; }
.jouer { background: var(--creme); color: var(--noir); border: 1px solid var(--creme); }
.jouer::after { left: 34%; right: 34%; background: linear-gradient(90deg, var(--g), #C9802C); opacity: .9; }
.jouer .nom { font-size: clamp(13px, 4vw, 16px); letter-spacing: .22em; padding-left: .22em; }
.porte.famille.eveillee, .porte.famille[aria-expanded="true"] { background: rgba(27, 198, 205, .14); border-color: rgba(27, 198, 205, .75); }
.porte.competition.eveillee, .porte.competition[aria-expanded="true"] { background: rgba(251, 112, 9, .14); border-color: rgba(251, 112, 9, .85); }
.jouer.eveillee { box-shadow: 0 0 0 3px rgba(242, 148, 55, .55), 0 0 26px rgba(242, 148, 55, .35); }
.appel { animation: appel .75s ease-out; }
@keyframes appel { 30% { transform: translateY(-3px); box-shadow: 0 0 0 2px rgba(239, 230, 214, .55), 0 0 22px rgba(239, 230, 214, .25); } }

.coeur { position: fixed; z-index: 3; left: 0; top: 0; width: 0; height: 0; border-radius: 50%; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
html.intro .coeur { pointer-events: none; }

.fiche {
  position: fixed; z-index: 6; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom));
  max-width: 480px; margin: 0 auto; padding: 18px 18px 14px; border-radius: 24px;
  background: rgba(10, 10, 13, .84); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center;
   grid-template-columns: 56px minmax(0, 1fr); max-height: calc(100svh - 20px); overflow-y: auto; overflow-wrap: anywhere;
}
.fiche[hidden] { display: none; }
.fiche.famille { border: 1px solid rgba(27, 198, 205, .45); }
.fiche.competition { border: 1px solid rgba(251, 112, 9, .5); }
.fiche img, .fiche canvas.vignette { width: 56px; height: 56px; grid-row: 1 / 3; }
.fiche h2 { margin: 0; font: 900 20px/1.1 'ArchivoVitrine', system-ui, sans-serif; letter-spacing: .06em; }
.fiche.famille h2 { color: #7FE0E4; }
.fiche.competition h2 { color: #FF9A4D; }
.fiche p { margin: 4px 0 0; grid-column: 2; font-size: 14px; color: var(--creme); }
.fiche .etat { color: var(--doux); font-size: 13px; }
.fiche .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fiche .entrer, .fiche .secondaire {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px;
}
.fiche .entrer { color: var(--noir); }
.fiche.famille .entrer { background: var(--famille); }
.fiche.competition .entrer { background: var(--creme); }
.fiche .secondaire { border: 1px solid rgba(251, 112, 9, .6); color: #FF9A4D; }
.fiche .fermer { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(239, 230, 214, .25); background: transparent; color: var(--creme); font-size: 14px; cursor: pointer; }
html.fiche-ouverte .accueil { opacity: 0; visibility: hidden; }

.voile { position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: 0; }

@media (min-width: 900px) {
  .voile-bas { height: 30vh; }
  .voile-haut { height: 110px; }
  .devise { top: auto; bottom: 20px; left: 26px; right: auto; text-align: left; }
  .accueil { bottom: 4.5vh; gap: 16px; }
  .destinations { width: auto; grid-template-columns: repeat(3, 196px); gap: 14px; }
  .porte, .jouer { height: 60px; }
  .porte .nom { font-size: 15px; }
  .jouer .nom { font-size: 16px; }
  .fiche { left: auto; right: 4vw; bottom: 8vh; margin: 0; width: 410px; }
  .fiche.famille { right: auto; left: 4vw; }
  .revoir { top: 64px; right: 18px; }
}
@media (hover: hover) {
  .porte.famille:hover { border-color: rgba(27, 198, 205, .75); }
  .porte.competition:hover { border-color: rgba(251, 112, 9, .85); }
}
@media (prefers-reduced-motion: reduce) {
  .porte, .jouer, .fiche { transition: none; }
  .appel { animation: none; }
  html.intro .accueil, html.intro .devise, html.intro .signature-v { opacity: 1; visibility: visible; animation: none; }
  .passer { display: none; }
}
html.calme .accueil, html.calme .devise, html.calme .signature-v { opacity: 1; visibility: visible; animation: none; }
html.calme .passer { display: none; }

html.transition-univers .accueil, html.transition-univers .fiche, html.transition-univers .devise, html.transition-univers .signature-v,
html.transition-univers .voile-haut, html.transition-univers .voile-bas, html.transition-univers .revoir {
  opacity: 0 !important; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
}
@media (scripting: enabled) { @view-transition { navigation: auto; } }
::view-transition-group(root) { animation-duration: .38s; }

@media (max-width: 299px), (max-height: 219px) {
  .barre { position: absolute; }
}
@media (max-height: 219px) {
  html:not(.dans-famille):not(.dans-competition) body { overflow-y: auto; }
  .accueil { position: relative; padding-top: calc(var(--bas-de-la-barre, 52px) + 10px); }
}

.indice-son { position: fixed; z-index: 9; top: calc(env(safe-area-inset-top, 0px) + 62px); right: 16px; margin: 0; padding: 5px 10px; font: 600 12.5px/1.2 system-ui, sans-serif; color: var(--creme, #EFE6D6); background: rgba(4, 4, 5, .72); border: 1px solid rgba(242, 148, 55, .4); pointer-events: none; animation: indice-son .5s ease both; }
.indice-son[hidden] { display: none; }
@keyframes indice-son { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .indice-son { animation: none; } }

.premier-toucher { position: fixed; inset: 0; z-index: 12; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; background: #000; color: var(--creme, #EFE6D6); text-align: center; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; animation: toucher-entree .6s ease both; }
.premier-toucher[hidden] { display: none; }
.premier-toucher:focus { outline: none; }
.premier-toucher span { display: block; }
.gen-porte { position: absolute; inset: 0; z-index: 6; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 22px; transition: opacity .45s ease; }
.premier-toucher.joue .gen-porte { opacity: 0; pointer-events: none; }
.premier-toucher.sans-porte .gen-porte { visibility: hidden; }
.premier-toucher .gen-scene { display: none; position: absolute; inset: 0; transition: opacity .55s ease; }
.premier-toucher.joue .gen-scene { display: block; }
.premier-toucher.sort .gen-scene { opacity: 0; }
.gen-poussiere { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: gen-fondu 2.2s .2s ease forwards; }
.gen-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, .75) 100%); }
.gen-grain { position: absolute; inset: -50%; opacity: .07; background-image: radial-gradient(rgba(255, 255, 255, .9) .6px, transparent .7px); background-size: 3px 3px; animation: gen-grain .9s steps(4) infinite; }
.gen-bande { position: absolute; left: 0; right: 0; height: 14vh; z-index: 3; background: #000; }
.gen-haut { top: 0; transform: translateY(-100%); animation: gen-pose 1s .1s cubic-bezier(.3, .8, .2, 1) forwards, gen-ouvre-haut 1s 7.1s cubic-bezier(.6, 0, .2, 1) forwards; }
.gen-bas { bottom: 0; transform: translateY(100%); animation: gen-pose 1s .1s cubic-bezier(.3, .8, .2, 1) forwards, gen-ouvre-bas 1s 7.1s cubic-bezier(.6, 0, .2, 1) forwards; }
.gen-bande::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(242, 148, 55, .7), transparent); transform: scaleX(0); animation: gen-trait 1.4s .7s ease forwards; }
.gen-haut::after { bottom: 0; } .gen-bas::after { top: 0; }
.gen-acte { position: absolute; left: 0; right: 0; top: 50%; z-index: 2; transform: translateY(-50%); font-family: 'ArchivoVitrine', system-ui, sans-serif; font-weight: 900; }
.gen-l1 { font-size: clamp(26px, 7.6vw, 54px); line-height: 1.06; }
.premier-toucher .gen-l1 span { opacity: 0; }
.gen-l1 span:first-child { animation: gen-titre 1.2s .9s ease forwards, gen-sort .7s 3.5s ease forwards; }
.gen-l1 span:last-child { animation: gen-titre 1.2s 1.7s ease forwards, gen-sort .7s 3.5s ease forwards; }
.gen-l2 { font-size: clamp(32px, 10vw, 76px); line-height: 1.02; color: var(--g, #F29437); opacity: 0; text-shadow: 0 0 34px rgba(242, 148, 55, .35); animation: gen-question 3.1s 4.1s cubic-bezier(.2, .6, .3, 1) forwards; }
.gen-eclair { position: absolute; left: -10%; right: -10%; top: 50%; z-index: 4; height: 2px; margin-top: -1px; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255, 210, 160, 0) 20%, #FFE4C4 50%, rgba(255, 210, 160, 0) 80%, transparent); box-shadow: 0 0 24px 6px rgba(242, 148, 55, .55); animation: gen-eclair 1.3s 7.25s ease-out forwards; }
.gen-univers { position: absolute; inset: 0; z-index: 2; display: flex !important; flex-direction: column; align-items: center; justify-content: center; }
.gen-sur { font: 700 clamp(10px, 2.8vw, 13px)/1 'ArchivoVitrine', system-ui, sans-serif; letter-spacing: .5em; padding-left: .5em; color: rgba(239, 230, 214, .78); opacity: 0; animation: gen-titre 1.3s 7.7s ease forwards; }
.gen-nom { position: relative; margin: 14px 0 8px; font: 900 clamp(60px, 18vw, 132px)/1 'ArchivoVitrine', system-ui, sans-serif; letter-spacing: -.02em; white-space: nowrap; opacity: 0; animation: gen-nom 1.6s 7.9s cubic-bezier(.2, .7, .2, 1) forwards; }
.premier-toucher .gen-nom span { display: inline; }
.gen-nom .g { color: var(--g, #F29437); } .gen-nom .s { color: var(--s, #F8E6C9); } .gen-nom .m { color: #CDBFAE; }
.gen-nom::after { content: 'GoSame'; position: absolute; inset: 0; color: transparent; background: linear-gradient(100deg, transparent 35%, rgba(255, 244, 225, .95) 50%, transparent 65%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; animation: gen-reflet 4.2s 9.2s ease-in-out infinite; }
.gen-devise { font: 700 clamp(9px, 2.4vw, 11px)/1 'ArchivoVitrine', system-ui, sans-serif; letter-spacing: .34em; padding-left: .34em; color: var(--doux); opacity: 0; animation: gen-monte 1.2s 8.7s ease forwards; }
.gen-point { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--g, #F29437); box-shadow: 0 0 22px 6px rgba(242, 148, 55, .65); }
.gen-point::before, .gen-point::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--g, #F29437); animation: toucher-onde 2s cubic-bezier(.2, .6, .3, 1) infinite; }
.gen-point::after { animation-delay: 1s; }
.gen-invite { font: 700 13px/1 'ArchivoVitrine', system-ui, sans-serif; letter-spacing: .3em; padding-left: .3em; }
.premier-toucher .gen-verbe { display: inline; }
.gen-son { font: 500 12px/1 system-ui, sans-serif; color: var(--doux); }
.gen-son svg { display: inline-block; margin-right: 6px; vertical-align: -3px; }
html.attend-le-toucher .barre { visibility: hidden; }
.compteur-a { width: min(100%, 330px); padding: 8px 10px 7px; text-align: center; pointer-events: none; background: rgba(8, 9, 12, .78); border: 1px solid rgba(242, 148, 55, .42); }
.titre-a { margin: 0; font: 900 14px/1.15 'ArchivoVitrine', system-ui, sans-serif; color: var(--creme, #EFE6D6); }
.cellules-a { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.cellules-a[hidden] { display: none; }
.valeur-a { display: block; font: 900 25px/1 'ArchivoVitrine', system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #FF9A47; transform-origin: 50% 0; backface-visibility: hidden; }
.unite-a { display: block; margin-top: 2px; font-size: 10px; line-height: 1; color: var(--doux); }
@media (max-height: 700px) { .compteur-a { padding: 5px 8px; } .titre-a { font-size: 12.5px; } .cellules-a { margin-top: 3px; } .valeur-a { font-size: 20px; } .unite-a { font-size: 9.5px; margin-top: 1px; } }
@media (max-height: 600px) { .titre-a { display: none; } .cellules-a { margin-top: 0; } }
@media (max-height: 500px) { .compteur-a { display: none; } }
@media (min-width: 760px) and (min-aspect-ratio: 19/20) {
  .compteur-a { display: flex; align-items: center; justify-content: center; gap: 16px; width: auto; padding: 4px 14px; }
  .titre-a { display: block; font-size: 14px; }
  .cellules-a { display: flex; gap: 12px; margin: 0; }
  .cellule-a { display: flex; align-items: baseline; gap: 4px; }
  .valeur-a { font-size: 19px; }
  .unite-a { margin: 0; font-size: 11px; }
}
@keyframes toucher-entree { from { opacity: 0; } to { opacity: 1; } }
@keyframes toucher-onde { from { transform: scale(1); opacity: .9; } to { transform: scale(5.5); opacity: 0; } }
@keyframes gen-fondu { to { opacity: 1; } }
@keyframes gen-grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(1%, 3%); } }
@keyframes gen-pose { to { transform: none; } }
@keyframes gen-ouvre-haut { from { transform: none; } to { transform: translateY(-100%); } }
@keyframes gen-ouvre-bas { from { transform: none; } to { transform: translateY(100%); } }
@keyframes gen-trait { to { transform: scaleX(1); } }
@keyframes gen-titre { from { opacity: 0; letter-spacing: .14em; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }
@keyframes gen-sort { from { opacity: 1; } to { opacity: 0; filter: blur(4px); } }
@keyframes gen-question { 0% { opacity: 0; transform: scale(.94); filter: blur(8px); } 20% { opacity: 1; filter: blur(0); } 82% { opacity: 1; transform: scale(1.04); filter: blur(0); } 100% { opacity: 0; transform: scale(1.12); filter: blur(3px); } }
@keyframes gen-eclair { 0% { opacity: 0; transform: scaleX(.1); } 25% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1.2) scaleY(.4); } }
@keyframes gen-nom { 0% { opacity: 0; transform: scale(1.18); filter: blur(14px); letter-spacing: .08em; } 100% { opacity: 1; transform: none; filter: blur(0); } }
@keyframes gen-monte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes gen-reflet { 0% { background-position: 120% 0; } 55%, 100% { background-position: -40% 0; } }
@media (prefers-reduced-motion: reduce) {
  .premier-toucher, .gen-point::before, .gen-point::after, .gen-grain, .gen-nom::after { animation: none; }
  .gen-bande, .gen-acte, .gen-eclair, .gen-poussiere { display: none !important; }
  .gen-sur, .gen-nom, .gen-devise { animation: none; opacity: 1; }
}

.patience-p { box-sizing: border-box; width: min(calc(100vw - 32px), 440px); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 0; border-radius: 22px; background: transparent; color: var(--creme); overflow: visible; }
.patience-p::backdrop { background: rgba(4, 4, 5, .72); }
.patience-cadre-p { position: relative; box-sizing: border-box; max-height: calc(100dvh - 32px); overflow-y: auto; display: flex; flex-direction: column;
  align-items: stretch; gap: 14px; padding: 30px 22px 20px; text-align: center; border-radius: 22px; background: #121112;
  border: 1px solid rgba(239, 230, 214, .14); box-shadow: 0 24px 80px rgba(0, 0, 0, .6); font-family: 'ArchivoVitrine', system-ui, sans-serif; }
.patience-fermer-p { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent;
  color: var(--doux); font-size: 26px; line-height: 1; cursor: pointer; }
.patience-titre-p { margin: 0 32px; font-size: 24px; font-weight: 900; line-height: 1.2; color: var(--creme); }
.patience-message-p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--creme); }
.patience-decompte-p { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.patience-cellule-p { display: flex; flex-direction: column; gap: 2px; padding: 10px 0 8px; border-radius: 12px; background: rgba(239, 230, 214, .06); }
.patience-valeur-p { font-size: 26px; font-weight: 900; color: var(--g); font-variant-numeric: tabular-nums; }
.patience-unite-p { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }
.patience-discord-p { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 12px;
  background: #5865F2; color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; }
.patience-creer-p { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 18px; border-radius: 12px;
  background: var(--g); color: #1a1208; font-size: 17px; font-weight: 900; text-decoration: none; }
.patience-creer-p[hidden] { display: none; }
.patience-reseaux-p { justify-content: center; }
.patience-agenda-p { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px;
  border: 1px solid rgba(242, 148, 55, .55); color: var(--g); font-size: 14px; font-weight: 700; text-decoration: none; }
.patience-rappel-p { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; padding: 18px 16px; border-radius: 16px;
  background: rgba(239, 230, 214, .05); text-align: left; }
.patience-rappel-p[hidden] { display: none; }
.patience-rappel-titre-p { margin: 0; font-size: 18px; font-weight: 900; color: var(--creme); text-align: center; }
.patience-rappel-texte-p, .patience-merci-p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--creme); text-align: center; }
.patience-etiquette-p { font-size: 13px; font-weight: 700; color: var(--doux); }
.patience-champ-p { box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(239, 230, 214, .28);
  background: #0a0a0b; color: var(--creme); font-size: 16px; font-family: system-ui, sans-serif; }
.patience-piege-p { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.patience-case-p { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; font-size: 14px; line-height: 1.4; color: var(--creme); cursor: pointer; }
.patience-case-p input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--g); }
.patience-bouton-p { min-height: 48px; border: 0; border-radius: 12px; background: var(--g); color: #1a1208; font-size: 16px; font-weight: 900; cursor: pointer;
  font-family: inherit; }
.patience-bouton-p:disabled { opacity: .6; cursor: wait; }
.patience-etat-p { margin: 0; min-height: 0; font-size: 13px; color: var(--doux); }
.patience-etat-p.erreur { color: #FF8A7A; }
.patience-etat-p:empty { display: none; }
.patience-politique-p { align-self: center; font-size: 13px; color: var(--doux); }
.patience-connexion-p { margin: 0; font-size: 14px; color: var(--doux); }
.patience-connexion-p a { color: var(--creme); }
.patience-fermer-bas-p { align-self: center; min-height: 44px; padding: 0 24px; border: 0; background: transparent; color: var(--doux); font-size: 14px;
  font-weight: 700; cursor: pointer; font-family: inherit; }
.patience-p a:focus-visible, .patience-p button:focus-visible, .patience-p input:focus-visible { outline: 3px solid var(--creme); outline-offset: 2px; }

.reseaux-v { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.reseau-v {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(239, 230, 214, .26); background: rgba(4, 4, 5, .55); color: var(--creme); text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.reseau-v svg { display: block; width: 20px; height: 20px; }
.reseau-v:hover, .reseau-v:focus-visible { color: var(--g); border-color: rgba(242, 148, 55, .75); background: rgba(20, 12, 4, .8); }
.reseau-v:focus-visible { outline: 2px solid var(--creme); outline-offset: 2px; }

.signature-v {
  position: fixed; z-index: 3; left: 0; right: 0;
  top: calc(max(54px, calc(env(safe-area-inset-top) + 46px), calc(var(--bas-de-la-barre, 0px) + 2px)) + 18px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.signature-v > * { pointer-events: auto; }
.slogan-v { margin: 0; padding: 0 16px; text-align: center; font: 600 13px/1.3 system-ui, sans-serif; color: var(--creme);
  text-shadow: 0 0 10px #040405, 0 0 3px #040405; }
.signature-v .reseaux-v { justify-content: center; }
html.fiche-ouverte .signature-v { opacity: 0; visibility: hidden; }
@media (max-height: 760px) {
  .signature-v { top: calc(max(54px, calc(env(safe-area-inset-top) + 46px), calc(var(--bas-de-la-barre, 0px) + 2px)) + 16px); }
  .slogan-v { display: none; }
  .signature-v .reseaux-v { gap: 6px; }
  .signature-v .reseau-v { width: 36px; height: 36px; }
  .signature-v .reseau-v svg { width: 17px; height: 17px; }
}
@media (max-height: 480px) { .signature-v { display: none; } }
@media (min-width: 900px) {
  .signature-v { top: calc(max(8px, env(safe-area-inset-top)) + 50px); left: 18px; right: auto; align-items: flex-start; }
  .slogan-v { padding: 0; text-align: left; font-size: 14px; }
  .signature-v .reseaux-v { justify-content: flex-start; }
}

.creer-cine {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; box-sizing: border-box;
  border: 1px solid var(--g); background: var(--g); color: #1a1208; font: 700 13px/1 system-ui, sans-serif; text-decoration: none;
  white-space: nowrap; box-shadow: 0 0 18px rgba(242, 148, 55, .35);
}
.creer-cine:focus-visible { outline: 2px solid var(--creme); outline-offset: 2px; }
.creer-cine[hidden], html:not(.intro) .creer-cine { display: none; }
html.attend-le-toucher .barre { z-index: 13; }
html.attend-le-toucher .creer-cine { visibility: visible; }
@media (max-width: 420px) {
  html.intro .barre:has(.creer-cine:not([hidden])) .son .texte { display: none; }
  html.intro .barre:has(.creer-cine:not([hidden])) .son { padding: 0 11px; }
  .creer-cine, html.intro .barre:has(.creer-cine:not([hidden])) .passer { padding: 0 13px; }
}

.invitation-ombre-r { position: fixed; inset: 0; z-index: 7; pointer-events: none; background: radial-gradient(ellipse at 50% 46%, rgba(4, 4, 5, .38), rgba(4, 4, 5, .12) 70%); animation: invitation-fondu .4s ease both; }
.invitation-r {
  position: fixed; z-index: 8; left: 50%; top: 46%; transform: translate(-50%, -50%);
  box-sizing: border-box; width: min(calc(100vw - 32px), 340px); max-height: calc(100dvh - 190px); overflow-y: auto;
  display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 22px 20px 14px; text-align: center;
  border-radius: 18px; background: rgba(18, 17, 18, .96); border: 1.5px solid var(--g); color: var(--creme);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55), 0 0 30px rgba(242, 148, 55, .18); font-family: 'ArchivoVitrine', system-ui, sans-serif;
  animation: invitation-entree .45s cubic-bezier(.2, .7, .3, 1) both;
}
.invitation-fermer-r { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent;
  color: var(--creme); font-size: 28px; line-height: 1; cursor: pointer; }
.invitation-fermer-r:hover { background: rgba(239, 230, 214, .08); }
.invitation-titre-r { margin: 0 34px; font-size: 21px; font-weight: 900; line-height: 1.2; color: var(--creme); }
.invitation-message-r { margin: 0; font: 400 15px/1.45 system-ui, sans-serif; color: var(--creme); }
.invitation-decompte-r { margin: 0; font: 600 12px/1.3 system-ui, sans-serif; color: var(--g); font-variant-numeric: tabular-nums; }
.invitation-creer-r { display: flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 4px; padding: 0 18px; border-radius: 12px;
  background: var(--g); color: #1a1208; font-size: 17px; font-weight: 900; text-decoration: none; }
.invitation-visiter-r { align-self: center; min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--doux);
  font: 500 14px/1 system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.invitation-r :focus-visible { outline: 2px solid var(--creme); outline-offset: 2px; }
@keyframes invitation-entree { from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)) scale(.97); } }
@keyframes invitation-fondu { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .invitation-r, .invitation-ombre-r { animation: none; } }
