/* Vitrine v2 (2026-10-09, ménage vitrine-tokens 2026-11-10) — sections de l'accueil, sur les jetons et classes de landing.css.
   Principe : la carte n'apparaît qu'au héros et aux raretés ; le reste montre le jeu, la scène,
   les univers et la compétition par d'autres moyens (interface, pictos, rangs).
   Couleurs et rayons : tokens de tokens.css uniquement (color-mix pour les transparences). */

/* ------------------------------------------------------------------ Le match : téléphone + étapes */
.vt-match-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .vt-match-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--ll-espace-16); } }
.vt-etapes { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; counter-reset: none; }
.vt-etapes li { display: grid; grid-template-columns: auto 1fr; gap: var(--ll-espace-4); align-items: start; }
.vt-etape-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--ll-radius-lg);
  border: 1px solid var(--ll-border-strong); font-family: var(--ll-font-display); font-weight: 700; color: var(--ll-primary);
}
.vt-etapes h3 { margin: 2px 0 4px; font-family: var(--ll-font-display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; }
.vt-etapes p { margin: 0; color: var(--ll-muted); line-height: 1.5; max-width: 46ch; }
.vt-match-fin { margin: 26px 0 0; font-family: var(--ll-font-display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ll-primary); }
.vt-phone { margin: 0 auto; width: min(100%, 360px); display: grid; gap: var(--ll-espace-3); justify-items: center; }
.vt-phone-ecran {
  width: 100%; padding: var(--ll-espace-3); border-radius: var(--ll-radius-lg); background: var(--ll-bg-deep);
  border: 1px solid var(--ll-border-strong); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .8), 0 0 0 6px var(--ll-surface);
}
.vt-phone-ecran img { display: block; width: 100%; height: auto; border-radius: var(--ll-radius); }
.vt-phone figcaption { font-size: .8rem; color: var(--ll-subtle); }

/* ---------- Démo jouable du duel (2026-11-12, demande Trakzz) : le vrai écran de combat de l'application dans le cadre
   du téléphone (/app/demo, en iframe). Avant le clic : l'affiche (capture de cet écran) et le bouton « Jouer la démo ».
   Le cadre garde le format d'un téléphone (1 : 2), l'application s'y affiche comme sur mobile. */
.vt-demo { position: relative; aspect-ratio: 1 / 2; padding: 0; overflow: hidden; }
.vt-phone-ecran .vt-demo-affiche { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.vt-demo-lancer { position: absolute; inset-inline: var(--ll-espace-6); bottom: var(--ll-espace-8); z-index: 1; box-shadow: 0 12px 40px -8px rgb(0 0 0 / .9); }
.vt-demo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--ll-bg-deep) 88%, transparent)); pointer-events: none; }
.vt-demo.est-lancee::after, .vt-demo.est-lancee .vt-demo-affiche, .vt-demo.est-lancee .vt-demo-lancer { display: none; }
.vt-demo iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--ll-bg-deep); }

/* ------------------------------------------------------------------ Compétition : rangs + modes */
.vt-rangs { list-style: none; margin: 0 0 36px; padding: 0; display: flex; justify-content: center; gap: clamp(4px, 1.5vw, 18px); }
.vt-rangs li { display: grid; justify-items: center; gap: var(--ll-espace-2); flex: 1 1 0; max-width: 128px; }
.vt-rangs img { width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgb(0 0 0 / .6)); }
.vt-rangs li:not(.is-peak) img { opacity: .9; }
.vt-rangs li.is-peak img { filter: drop-shadow(0 0 28px color-mix(in srgb, var(--ll-primary) 55%, transparent)); }
.vt-rangs span { font-family: var(--ll-font-display); font-size: clamp(.62rem, 1.8vw, .9rem); text-transform: uppercase; letter-spacing: .06em; color: var(--ll-muted); }
.vt-rangs li.is-peak span { color: var(--ll-primary); }
.vt-modes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.vt-modes li { padding: 22px; border: 1px solid var(--ll-border); border-radius: var(--ll-radius-lg); background: var(--ll-surface); }
.vt-modes h3 { margin: 0 0 6px; font-family: var(--ll-font-display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .05em; }
.vt-modes p { margin: 0; color: var(--ll-muted); line-height: 1.5; }

/* ------------------------------------------------------------------ FAQ */
.vt-faq-grid { display: grid; gap: var(--ll-espace-8); }
@media (min-width: 900px) { .vt-faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--ll-espace-16); align-items: start; } }
.vt-faq-grid .lg-lead a { color: var(--ll-primary); }
.vt-faq-liste { display: grid; gap: 10px; }
.vt-faq-liste details { border: 1px solid var(--ll-border); border-radius: var(--ll-radius-lg); background: var(--ll-surface); }
.vt-faq-liste details[open] { border-color: var(--ll-border-strong); }
.vt-faq-liste summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--ll-espace-4); min-height: 56px; padding: 14px 20px;
  cursor: pointer; list-style: none; font-weight: 600; font-size: 1.02rem;
}
.vt-faq-liste summary::-webkit-details-marker { display: none; }
.vt-faq-liste summary::after { content: "+"; flex: none; font-family: var(--ll-font-display); font-size: 1.5rem; color: var(--ll-primary); transition: transform .2s; }
.vt-faq-liste details[open] summary::after { transform: rotate(45deg); }
.vt-faq-liste summary:focus-visible { outline: 2px solid var(--ll-primary); outline-offset: -2px; border-radius: var(--ll-radius-lg); }
.vt-faq-liste details p { margin: 0; padding: 0 20px 18px; color: var(--ll-muted); line-height: 1.6; }
.vt-faq-liste details p a { color: var(--ll-primary); }

/* ---------- Bandeau des six scènes (2026-11-12, décision Trakzz) : les logos officiels des six jeux, sous le héros.
   Chaque logo est un masque : la forme vient du fichier de l'éditeur (/assets/ui/jeux/), la couleur du design system.
   `--r` est le rapport largeur / hauteur du logo, `--k` sa hauteur relative : un mot-symbole long (Valorant) se pose
   plus bas qu'un logo compact (League of Legends) pour que les six pèsent autant à l'œil. */
.vt-jeux { padding: var(--ll-espace-8) 0; border-block: 1px solid var(--ll-border-subtle); background: var(--ll-bg-deep); }
.vt-jeux-liste {
  --u: 1px;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ll-espace-6) var(--ll-espace-3);
  align-items: center; justify-items: center;
}
.vt-jeu {
  display: block; height: calc(var(--k) * var(--u)); width: calc(var(--k) * var(--r) * var(--u)); max-width: 100%;
  background-color: color-mix(in srgb, var(--ll-text) 82%, transparent);
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.vt-jeu--cod { --logo: url(/assets/ui/jeux/call-of-duty.svg); --r: 5.73; --k: 17; }
.vt-jeu--fortnite { --logo: url(/assets/ui/jeux/fortnite.svg); --r: 3.74; --k: 24; }
.vt-jeu--valorant { --logo: url(/assets/ui/jeux/valorant.svg); --r: 6.96; --k: 14; }
.vt-jeu--lol { --logo: url(/assets/ui/jeux/league-of-legends.svg); --r: 2.62; --k: 32; }
.vt-jeu--cs { --logo: url(/assets/ui/jeux/counter-strike.svg); --r: 4.88; --k: 20; }
.vt-jeu--rl { --logo: url(/assets/ui/jeux/rocket-league.svg); --r: 2.57; --k: 30; }
@media (min-width: 900px) {
  .vt-jeux-liste { --u: 1.35px; grid-template-columns: repeat(6, 1fr); gap: var(--ll-espace-4); }
}

/* ------------------------------------------------------------------ Communauté (bandeau, 2026-11-11)
   Bandeau pleine largeur, teinté volt (l'accent violet de la palette, pas le bleu Discord) : titre, accroche et
   atouts à gauche, Discord en action principale à droite, X / Instagram / TikTok en secondaire dessous.
   Le logo Discord du sprite /assets/ui/reseaux.svg sert de filigrane ; aucune illustration ajoutée. */
.vt-communaute {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 9vw, 104px) 0;
  border-block: 1px solid color-mix(in srgb, var(--ll-volt) 35%, var(--ll-border));
  background:
    radial-gradient(ellipse 70% 90% at 85% 50%, color-mix(in srgb, var(--ll-volt) 34%, transparent), transparent 70%),
    linear-gradient(110deg, color-mix(in srgb, var(--ll-volt) 22%, var(--ll-bg-deep)) 0%, color-mix(in srgb, var(--ll-volt) 12%, var(--ll-bg)) 55%, color-mix(in srgb, var(--ll-volt) 26%, var(--ll-bg-deep)) 100%);
}
.vt-communaute-fond {
  position: absolute; z-index: -1; top: 50%; right: -6%; width: min(60vw, 640px); aspect-ratio: 1; transform: translateY(-50%) rotate(-8deg);
  color: var(--ll-volt-bright); opacity: .1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 45%); mask-image: linear-gradient(90deg, transparent, black 45%);
}
.vt-communaute-fond svg { width: 100%; height: 100%; }
.vt-communaute-grille { display: grid; gap: var(--ll-espace-8); align-items: center; }
@media (min-width: 900px) { .vt-communaute-grille { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--ll-espace-16); } }
.vt-communaute-texte .lg-lead { color: var(--ll-text); opacity: .85; }
.vt-communaute-atouts { list-style: none; margin: var(--ll-espace-6) 0 0; padding: 0; display: grid; gap: var(--ll-espace-2); max-width: 560px; }
.vt-communaute-atouts li {
  display: flex; align-items: center; gap: var(--ll-espace-3); padding: var(--ll-espace-1) var(--ll-espace-4);
  font-weight: 600; font-size: var(--ll-text-accent); line-height: 1.4; color: var(--ll-text);
}
/* Puce ivoire en losange (comme les puces du design system). */
.vt-communaute-atouts li::before { content: ""; flex: none; width: 6px; height: 6px; transform: rotate(45deg); background: var(--ll-primary); opacity: .7; }
/* Atout en vedette : encadré, puce or. */
.vt-communaute-atouts li.is-vedette {
  padding-block: var(--ll-espace-3); border: 1px solid color-mix(in srgb, var(--ll-volt-bright) 40%, transparent); border-radius: var(--ll-radius);
  background: color-mix(in srgb, var(--ll-volt) 18%, transparent);
}
.vt-communaute-atouts li.is-vedette::before { background: var(--ll-ion-bright); opacity: 1; }
.vt-communaute-actions { display: grid; justify-items: center; text-align: center; }
.vt-communaute-actions .ll-btn-primary { width: 100%; max-width: 340px; box-shadow: var(--ll-shadow); }
.vt-communaute-actions .ll-btn svg { flex: none; width: 20px; height: 20px; }
.vt-communaute-note { margin: var(--ll-espace-3) 0 0; font-size: var(--ll-text-note); font-weight: 600; letter-spacing: .04em; color: var(--ll-muted); }
.vt-communaute-suivre {
  margin: var(--ll-espace-8) 0 var(--ll-espace-3); font-family: var(--ll-font-display); font-size: var(--ll-text-note); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ll-subtle);
}
.vt-communaute-reseaux { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ll-espace-2); }
.vt-communaute-reseaux .ll-btn { background: color-mix(in srgb, var(--ll-bg-deep) 45%, transparent); }
/* Téléphone étroit : les trois réseaux tiennent sur une ligne en icônes de 44 px (nom porté par aria-label). */
@media (max-width: 479px) {
  .vt-communaute-reseaux .ll-btn { width: 44px; height: 44px; padding: 0; }
  .vt-communaute-reseaux .ll-btn span { display: none; }
}
@media (max-width: 899px) { .vt-communaute-fond { top: 18%; right: -30%; width: 90vw; } }

/* ------------------------------------------------------------------ CTA final : l'arène */
.vt-final { padding: clamp(90px, 14vw, 160px) 0; }
/* L'arène se fond dans la page, en haut comme en bas (masque : seul l'alpha compte). */
.vt-final-bg {
  position: absolute; inset: 0; z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, transparent, black 22%, black 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, black 22%, black 78%, transparent);
}
.vt-final-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.vt-final-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 0%, var(--ll-bg) 75%); }
.vt-final .lg-final-copy { margin-top: 0; }

/* ------------------------------------------------------------------ Joueurs : le ciel de pseudos (2026-10-09)
   Chaque pseudo est une étoile : taille et éclat selon la rareté, scintillement à son propre rythme.
   Placement sans chevauchement calculé par vitrine.js (#vt-ciel) ; sans JS, la liste reste lisible en nuage simple.
   Conservé pour vitrine.js ; aucune page FR ne pose #vt-ciel au 2026-11-10. */
.vt-ciel {
  position: relative; height: clamp(480px, 46vw, 620px); margin-top: 6px; border-radius: var(--ll-radius-lg); overflow: hidden;
  background:
    radial-gradient(1px 1px at 12% 22%, rgb(255 255 255 / .5), transparent 60%),
    radial-gradient(1px 1px at 78% 14%, rgb(255 255 255 / .4), transparent 60%),
    radial-gradient(1.5px 1.5px at 42% 76%, rgb(255 255 255 / .35), transparent 60%),
    radial-gradient(1px 1px at 88% 68%, rgb(255 255 255 / .45), transparent 60%),
    radial-gradient(1px 1px at 24% 88%, rgb(255 255 255 / .3), transparent 60%),
    radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--ll-volt) 12%, transparent), transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, black 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, black 62%, transparent 100%);
}
.vt-etoile {
  font-family: var(--ll-font-display); line-height: 1.05; letter-spacing: .02em; white-space: nowrap; cursor: default;
  color: color-mix(in srgb, var(--c) 30%, var(--ll-rarity-common)); transition: opacity .5s, color .3s;
}
.vt-ciel.is-place .vt-etoile { position: absolute; opacity: 0; animation: vt-scintille var(--d, 6s) ease-in-out var(--r, 0s) infinite; animation-play-state: paused; }
.vt-ciel.is-actif .vt-etoile { animation-play-state: running; }
.vt-etoile[data-poids="5"] { font-weight: 700; color: var(--ll-rarity-legendary); text-shadow: 0 0 22px color-mix(in srgb, var(--ll-rarity-legendary) 55%, transparent), 0 0 4px color-mix(in srgb, var(--ll-rarity-legendary) 60%, transparent); }
.vt-etoile[data-poids="4"] { font-weight: 700; color: color-mix(in srgb, var(--ll-rarity-epic) 75%, var(--ll-text)); text-shadow: 0 0 14px color-mix(in srgb, var(--ll-rarity-epic) 45%, transparent); }
.vt-etoile[data-poids="3"] { color: color-mix(in srgb, var(--c) 60%, var(--ll-text)); text-shadow: 0 0 10px color-mix(in srgb, var(--c) 35%, transparent); }
.vt-etoile[data-poids="1"] { color: color-mix(in srgb, var(--c) 22%, var(--ll-subtle)); }
.vt-ciel.is-place .vt-etoile[data-poids="5"] { animation-name: vt-brille; }
.vt-ciel.is-place .vt-etoile[data-poids="4"] { animation-name: vt-scintille-lent; }
@keyframes vt-scintille { 0%, 100% { opacity: 0; } 35%, 65% { opacity: .92; } }
@keyframes vt-scintille-lent { 0%, 100% { opacity: .15; } 30%, 70% { opacity: 1; } }
@keyframes vt-brille { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }
/* Filtre par univers : les autres s'éteignent, les élus brillent. */
.vt-ciel.a-filtre .vt-etoile { animation: none !important; opacity: .06 !important; }
.vt-ciel.a-filtre .vt-etoile.est-choisi { opacity: 1 !important; color: color-mix(in srgb, var(--c) 70%, var(--ll-text)); }
.vt-ciel.a-filtre .vt-etoile.est-choisi[data-poids="5"] { color: var(--ll-rarity-legendary); }
.vt-ciel-legende { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ll-espace-2); }
.vt-ciel-legende button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--ll-border); background: transparent; color: var(--ll-muted); cursor: pointer;
  font-family: var(--ll-font-display); letter-spacing: .08em; font-size: .85rem;
}
.vt-ciel-legende button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.vt-ciel-legende button:hover, .vt-ciel-legende button[aria-pressed="true"] { color: var(--ll-text); border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
@media (prefers-reduced-motion: reduce) {
  .vt-ciel.is-place .vt-etoile { animation: none; opacity: .9; }
}
