/* Tiré de docs/vitrine/refonte/maquettes/res par construire_theme.py : ne pas modifier ici. */
/* Animations de la vitrine (inspirations Inspora, 10/11/2026) : apparitions au défilement, texte qui s'éclaire,
   score qui monte, bande de pièces qui défile, photo qui s'agrandit. Mouvement réduit respecté. */
.anime .rev { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); transition-delay: var(--d, 0s); }
.anime .rev.vu { opacity: 1; transform: none; }
.anime .rev.penche { transform: translateY(60px) rotate(var(--r, 0deg)); }
.anime .rev.penche.vu { transform: rotate(var(--r, 0deg)); }

/* Ouverture : les passeports arrivent un par un, puis le passeport s'ouvre et le tampon frappe */
.pile { position: relative; aspect-ratio: 1022 / 631; width: 118%; margin-left: -6%; }
.pile img { position: absolute; }
.pile .couv { width: 27%; top: 22%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.4)); opacity: 0; }
.pile .c1 { left: 6%; --r: -17deg; } .pile .c2 { left: 67%; --r: 15deg; } .pile .c3 { left: 37%; top: 26%; --r: -3deg; }
.pile .ouvert { inset: 0; width: 100%; opacity: 0; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.anime .pile .couv { animation: donne 900ms cubic-bezier(.22,1,.36,1) forwards; }
.anime .pile .c1 { animation-delay: .2s; } .anime .pile .c2 { animation-delay: .45s; } .anime .pile .c3 { animation-delay: .7s; }
.anime .pile .c3 { animation: donne 900ms cubic-bezier(.22,1,.36,1) .7s forwards, ouvre-couv .5s ease-in 1.9s forwards; }
.anime .pile .ouvert { animation: ouvre 1.1s cubic-bezier(.22,1,.36,1) 2.05s forwards; }
.anime .pile .c1, .anime .pile .c2 { animation: donne 900ms cubic-bezier(.22,1,.36,1) var(--dd) forwards, efface .4s ease 2.1s forwards; }
.pile .c1 { --dd: .2s; } .pile .c2 { --dd: .45s; }
@keyframes donne { from { opacity: 0; transform: translate(180%, -50%) rotate(calc(var(--r) + 60deg)) scale(1.1); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes ouvre-couv { to { transform: rotate(-3deg) scaleX(.05) translateX(-200%); opacity: 0; } }
@keyframes efface { to { opacity: 0; } }
@keyframes ouvre { 0% { opacity: 0; transform: scale(.92) rotateY(18deg); } 60% { opacity: 1; transform: scale(1.03); } 75% { transform: scale(.985); } 100% { opacity: 1; transform: none; } }
/* En attente tant que les passeports ne sont pas à l'écran (classe « joue » posée par anim.js) */
.anime .pile:not(.joue) * { animation-play-state: paused; }
.statique .pile .couv { display: none; } .statique .pile .ouvert, html:not(.anime) .pile .ouvert { opacity: 1; }

/* Fiches qui flottent autour du passeport et se cochent */
.fiche { position: absolute; background: var(--blanc); border-radius: 14px; padding: 10px 14px 10px 10px; display: flex; gap: 10px; align-items: center; box-shadow: 0 16px 36px rgba(0,0,0,.28); font-size: 13px; color: var(--nuit); font-weight: 700; white-space: nowrap; z-index: 2; }
.fiche small { display: block; font-weight: 400; color: var(--gris-texte); font-size: 12px; }
.fiche .ic { width: 32px; height: 32px; border-radius: 10px; background: var(--sable-pale); display: flex; align-items: center; justify-content: center; }
.fiche .ic .icone { width: 16px; height: 16px; }
.fiche .etat { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-left: 6px; }
.fiche .etat .icone { width: 12px; height: 12px; color: var(--blanc); }
.fiche .etat.ok { background: var(--vert); } .fiche .etat.attention { background: var(--jaune); }
.anime .fiche { opacity: 0; animation: fiche-entre .8s cubic-bezier(.22,1,.36,1) var(--t) forwards, flotte 6s ease-in-out calc(var(--t) + .8s) infinite; }
.anime .fiche .etat { transform: scale(0); animation: coche .45s cubic-bezier(.34,1.56,.64,1) calc(var(--t) + .9s) forwards; }
@keyframes fiche-entre { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes coche { to { transform: scale(1); } }

/* Bande des pièces vérifiées qui défile */
.bande { overflow: hidden; background: var(--nuit); padding: 22px 0; }
.bande .piste { display: flex; gap: 48px; width: max-content; animation: defile 40s linear infinite; }
.bande span { display: inline-flex; gap: 14px; align-items: center; font-family: 'Poppins'; font-weight: 600; font-size: 22px; color: #E2E8F0; white-space: nowrap; }
.bande .icone { width: 22px; height: 22px; color: var(--sable); }
@keyframes defile { to { transform: translateX(-50%); } }

/* Texte qui s'éclaire mot à mot au défilement */
.eclaire { font-family: 'Poppins'; font-weight: 600; font-size: 46px; line-height: 1.28; color: var(--nuit); letter-spacing: -.015em; max-width: 1080px; }
.eclaire .m { opacity: .22; transition: opacity .25s linear; }
.eclaire .m.on { opacity: 1; }
.eclaire .pic { display: inline-flex; width: 1.15em; height: 1.15em; border-radius: .3em; background: var(--sable-pale); vertical-align: -.18em; align-items: center; justify-content: center; margin: 0 .08em; }
.eclaire .pic .icone { width: .62em; height: .62em; }
.eclaire .accent { color: var(--bronze); }
.statique .eclaire .m, html:not(.anime) .eclaire .m { opacity: 1; }

/* Score qui monte à chaque correction (section collante) */
.montee { height: 280vh; position: relative; }
.montee .colle { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.montee .grille-montee { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 80px; align-items: center; }
.grosse-jauge { --v: 41; --c: var(--rouge); width: 380px; height: 380px; border-radius: 50%; margin: 0 auto; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--filet) 0); display: flex; align-items: center; justify-content: center; transition: --c .3s; box-shadow: var(--ombre-forte); }
.grosse-jauge > div { width: 300px; height: 300px; border-radius: 50%; background: var(--blanc); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.grosse-jauge b { font-family: 'Poppins'; font-weight: 600; font-size: 110px; line-height: 1; color: var(--nuit); letter-spacing: -.03em; }
.grosse-jauge small { color: var(--gris-texte); font-size: 16px; margin-top: 6px; }
.grosse-jauge .niveau { margin-top: 12px; }
.corrections { list-style: none; display: grid; gap: 14px; margin-top: 32px; }
.corrections li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--blanc); border: 1px solid var(--filet); box-shadow: var(--ombre); font-weight: 700; color: var(--nuit); transition: opacity .4s, transform .4s; }
.corrections li .rond { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--trait); display: flex; align-items: center; justify-content: center; flex: none; transition: background .3s, border-color .3s; }
.corrections li .rond .icone { width: 14px; height: 14px; color: var(--blanc); opacity: 0; }
.corrections li.fait .rond { background: var(--vert); border-color: var(--vert); } .corrections li.fait .rond .icone { opacity: 1; }
.corrections li small { display: block; font-weight: 400; color: var(--gris-texte); font-size: 14px; }
.corrections li.fait small::after { content: ' · corrigé'; color: var(--vert); font-weight: 700; }
.statique .montee { height: auto; } .statique .montee .colle { position: static; height: auto; padding: 104px 0; }

/* Photo qui s'agrandit au défilement */
.agrandit { clip-path: inset(0 var(--ins, 0px) round var(--ray, 32px)); }

@media (max-width: 760px) {
  .pile { width: 100%; margin: 0; }
  .fiche { font-size: 11px; padding: 7px 10px 7px 7px; gap: 7px; } .fiche small { font-size: 10px; } .fiche .ic { width: 24px; height: 24px; } .fiche .etat { width: 18px; height: 18px; }
  .eclaire { font-size: 28px; }
  .bande span { font-size: 17px; }
  .montee .grille-montee { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .grosse-jauge { width: 210px; height: 210px; } .grosse-jauge > div { width: 166px; height: 166px; } .grosse-jauge b { font-size: 58px; }
  .corrections { margin-top: 0; gap: 8px; } .corrections li { padding: 10px 12px; font-size: 14px; } .corrections li small { font-size: 12px; }
  .montee .colle h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .anime .rev, .anime .fiche, .anime .pile * { animation: none !important; opacity: 1 !important; transform: none !important; } .bande .piste { animation: none; } }
