/* Gang Nam Korea — passe « haut de gamme » 29/11/2026 (STANDARD-HAUT-DE-GAMME.md). 0 crédit.
   BRAND.md inchangé (indigo jjok, hanji, piment, sceau ; Gowun Batang + Hanken). Signature : les sceaux rouges se « tamponnent ». */
::selection { background: var(--piment); color: var(--indigo-nuit); }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Barre qui se pose au défilement */
.nav { transition: box-shadow .25s ease-out; }
.nav.defile { box-shadow: 0 14px 30px -20px rgba(16, 23, 58, .9); }

/* Micro-interactions (règle 10) */
.btn { transition: transform .2s var(--ease), box-shadow .2s ease-out, background-color .15s; }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn-piment:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(255, 91, 55, .85); }
  .photo { overflow: hidden; }
  .photo img { transition: transform .7s var(--ease); }
  .photo:hover img { transform: scale(1.035); }
  .menu-carte { transition: translate .3s var(--ease), box-shadow .3s ease-out; }
  .menu-carte:hover { translate: 0 -3px; box-shadow: 0 22px 40px -28px rgba(20, 26, 51, .55); }
  .menu-carte:hover .sceau-lettre { rotate: -6deg; }
  .sceau-lettre { transition: rotate .3s var(--ease); }
  .ligne { transition: background-color .2s ease-out; }
  .ligne:hover { background-color: rgba(30, 42, 94, .05); }
}

/* Note qui compte (chiffres tabulaires pour ne pas sauter) */
.note-bloc .grand { font-variant-numeric: tabular-nums; }

/* ===== Mouvement : seulement avec .mouv (JS + mouvement autorisé) ===== */
/* Héros : photo qui se pose (léger recul), sceau tamponné, hangeul écrit de haut en bas */
.mouv .hero-media picture img { animation: gn-recul 2.4s cubic-bezier(.2, .7, .2, 1) both; }
.mouv .hero-media { animation: gn-papier 1.1s cubic-bezier(.7, 0, .2, 1) both; }
.mouv .hero-vertical .sceau { animation: gn-tampon .55s cubic-bezier(.3, 1.5, .5, 1) .85s both; }
.mouv .hero-vertical p { animation: gn-ecrit 1.1s cubic-bezier(.6, 0, .3, 1) 1.15s both; }
.mouv .hero-note { animation: gn-tampon .5s cubic-bezier(.3, 1.5, .5, 1) 1.2s both; }
@keyframes gn-recul { from { transform: scale(1.1); } }
@keyframes gn-papier { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(-30% -30% -30% -30%); } }
@keyframes gn-tampon { 0% { opacity: 0; scale: 1.7; rotate: -10deg; } 70% { opacity: 1; scale: .94; } 100% { scale: 1; rotate: 0deg; } }
@keyframes gn-ecrit { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* Apparitions (règle 7) : en-tête de section, puis photos dévoilées comme une feuille de hanji */
.mouv [data-gn] { opacity: 0; translate: 0 24px; transition: opacity .75s var(--ease), translate .75s var(--ease); }
.mouv [data-gn].vu { opacity: 1; translate: 0 0; }
.mouv [data-gn-photo] > .photo, .mouv [data-gn-photo].photo { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
.mouv [data-gn-photo].vu > .photo, .mouv [data-gn-photo].vu.photo { clip-path: inset(0 0 0 0); }
.mouv [data-gn-photo].vu > .photo:nth-child(2) { transition-delay: .15s; }
.mouv [data-gn-photo] .photo img, .mouv [data-gn-photo].photo img { scale: 1.12; transition: scale 1.6s cubic-bezier(.2, .7, .2, 1); }
.mouv [data-gn-photo].vu .photo img, .mouv [data-gn-photo].vu.photo img { scale: 1; }
/* Sceaux A / B / C des menus : tamponnés l'un après l'autre */
.mouv .menus-grille .sceau-lettre { opacity: 0; scale: 1.7; rotate: -10deg; }
.mouv .menus-grille.vu .sceau-lettre { animation: gn-tampon .5s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(.35s + var(--k, 0) * .16s); opacity: 1; scale: 1; rotate: 0deg; }
.mouv .menus-grille .menu-carte { opacity: 0; translate: 0 28px; transition: opacity .7s var(--ease), translate .7s var(--ease); transition-delay: calc(var(--k, 0) * 90ms); }
.mouv .menus-grille.vu .menu-carte { opacity: 1; translate: 0 0; }
/* Étoiles qui se remplissent */
.mouv .note-bloc .etoiles svg { opacity: 0; scale: .4; }
.mouv .note-bloc.vu .etoiles svg { animation: gn-tampon .4s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(.2s + var(--k, 0) * .12s); opacity: 1; scale: 1; }
/* 4,1 : la 5e étoile reste estompée après l'animation */
.mouv .note-bloc.vu .etoiles svg.etoile-vide { opacity: .35; }
@keyframes gn-tampon-vide { 0% { opacity: 0; scale: 1.7; } 100% { opacity: .35; scale: 1; } }
.mouv .note-bloc.vu .etoiles svg.etoile-vide { animation-name: gn-tampon-vide; }
