/* ============================================================
   MAGIC GAME STORE — couche composants (PL-DS-003, refonte fidèle)
   Tout ce qui est propre au contenu Magic Game : cartes produit,
   checkout, bottom-nav, icônes animées, footer compact.
   Les classes partagées avec Slush (button-main, nav, marquee,
   cursor, footer-social-link, two-col-grid, h-d/h-l/h-m/h-s/p-m…)
   sont ABSENTES d'ici : elles viennent du CSS Slush copié verbatim.
   ============================================================ */

/* --- Section : le CSS Slush .section est nu (z-index/position) ;
       la maquette garde son rythme vertical --- */
.section { padding-block: 4.5em; }
@media screen and (max-width: 479px) { .section { padding-block: 3em; } }

/* ——— Accueil à panneaux (comme Slush, cf. référence) : le fond de page
   est l'ENCRE et chaque section est une surface crème arrondie posée
   dessus — l'encre se voit dans l'interstice entre les panneaux.
   Le bandeau marquee reste encre (panneau sombre, boutons clairs). --- */
body[data-page="home"] { background-color: var(--color--dark); }
body[data-page="home"] .page-hero,
body[data-page="home"] .section {
  background-color: var(--color--light);
  border-radius: 2.5em;
  margin-inline: .5em;
  margin-bottom: .5em;
  overflow: hidden;
}
body[data-page="home"] .page-hero { padding-top: 7.5em; }
body[data-page="home"] .cta-banner-section {
  background-color: var(--color--dark);
  color: var(--color--light);
  padding-block: 5em;
}
@media screen and (min-width: 992px) {
  body[data-page="home"] .cta-banner-section { padding-block: 10em; }
}
body[data-page="home"] .cta-banner-section .ticker-note { color: hsl(48 20% 94% / .55); }
/* le bottom-nav mobile est fixe : on lui réserve la place sous le footer */
@media screen and (max-width: 991px) {
  body[data-page="home"] .footer { padding-bottom: 6em; }
}

/* ——— Marquee CTA : la police Onest est bien plus large que la Lateral
   condensée de Slush — à 390 px, 18.75em débordait l'écran. On ramène
   la taille sur mobile (le desktop garde l'échelle Slush) et le ruban
   reste confiné au panneau (overflow:hidden du panneau + 100% ici,
   au lieu du 100vw Slush prévu pour un panneau pleine largeur). --- */
body[data-page="home"] .marquee-advanced { width: 100%; }
/* taille à l'échelle du viewport : un bouton ≈ la largeur de l'écran
   (le 18.75em Slush suppose la police condensée Lateral — en Onest,
   chaque bouton dépassait 1,7× l'écran mobile) */
.marquee-cta-h { font-size: 13.5vw; }
/* le mot géant du DOS (révélé au survol) était à 17.5em/10em fixes :
   sa largeur minimale gonflait le bouton au-delà de l'écran — même
   échelle que la face */
.button-main-inner__back.is--download::before { font-size: 13.5vw; }
/* pilules à bordure fixe, lisible sur le bandeau encre : fond
   transparent, liseré crème, texte crème — « comme les boutons » de la
   nav mais en inversé ; le survol bascule sur le dos coloré géant */
body[data-page="home"] .cta-banner-section .button-main-inner__bg {
  background-color: transparent !important;
  border: .125em solid hsl(48 20% 94% / .45);
}
body[data-page="home"] .cta-banner-section .button-main-inner__text { color: var(--color--light); }

/* ——— Avis : 1 colonne sur mobile (le 3-up en ligne débordait) ——— */
.reviews-grid { display: grid; gap: .8em; grid-template-columns: 1fr; }
@media screen and (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

/* ——— FAQ : accordéon sur cartes bordées (même gabarit que trust-card) ;
       cible tactile ≥44px, le « + » pivote en « × » comme product-card ——— */
.faq-list { display: grid; gap: .8em; max-width: 60em; }
.faq-item { border-radius: 1.4em; border: 1px solid hsl(0 0% 7% / .2); background: var(--color--light); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  width: 100%; min-height: 3.2em; padding: .9em 1.3em;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: inherit; text-align: left;
}
.faq-plus {
  flex: none; width: 2.8em; height: 2.8em; display: grid; place-items: center;
  border-radius: 999px; background: var(--color--dark); color: var(--color--neon);
  font-weight: 800;
  transition: transform .5s var(--elastic-ease-out);
}
.faq-q[aria-expanded="true"] .faq-plus { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 1.3em 1.2em; }
.faq-a.is--open { display: block; }
.faq-a p { font-size: .9em; color: hsl(0 0% 7% / .75); line-height: 1.5; max-width: 46em; }
@media (prefers-reduced-motion: reduce) { .faq-plus { transition: none; } }

.gap--small { display: flex; gap: .75em; flex-wrap: wrap; }
.gap--reg { display: flex; gap: 1.25em; flex-wrap: wrap; align-items: center; }

/* Lien texte : soulignement animé (les pages utilisent a.link) */
.link { position: relative; text-decoration: none; }
.link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -.15em;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--cubic-default);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }

/* Nos compositions utilisent le visuel deux-col en pleine largeur
   (Slush le fixe à 33.75em avec ratio 1 pour sa mise en page éditoriale) */
.two-col-grid__visual { width: 100%; aspect-ratio: auto; }

/* Titre de composant (remplace l'ancien .h-m maquette — le .h-m
   Slush est un titre display géant, réservé à la hiérarchie Slush) */
.h-c {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7em;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.eyebrow {
  font-size: .72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: hsl(0 0% 7% / .6);
}
[data-box-theme] .eyebrow { color: inherit; }
[data-box-theme] .p-m { color: inherit; }

/* Pastille décorative Magic Game */
.mg-shape {
  position: absolute;
  inset: auto -18% -22% auto;
  width: 78%;
  height: auto;
  color: hsl(0 0% 0% / .12);
  pointer-events: none;
}
.mg-shape--corner { inset: -20% auto auto -18%; }

/* --- Carte produit : gabarit actuel du site, inchangé (structure + style).
       Surface crème, bordure douce, radius 28px, pilule de prix blanche,
       CTA encre, ombre 4px au survol. Seul ajout : l'emplacement icône pack. */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  border-radius: 28px;
  border: 1px solid var(--mg-card-border, hsl(0 0% 7% / .35));
  background: var(--mg-card-surface, var(--color--light));
  color: var(--mg-card-ink, var(--color--dark));
  padding: 1.25em;
  transition: box-shadow .2s ease-out, translate .2s ease-out;
}
.product-card:hover { box-shadow: 4px 4px 0 var(--mg-card-shadow, hsl(0 0% 7% / .35)); translate: 0 -4px; }
@media (prefers-reduced-motion: reduce) { .product-card:hover { box-shadow: none; translate: none; } }

.product-card__figure {
  margin-top: .5em;
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: .2em;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 2.6em;
  line-height: 1;
}
.product-card__figure .unit { font-size: .32em; font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: var(--mg-card-ink-muted, hsl(0 0% 7% / .7)); white-space: nowrap; }
.product-card__icon-slot {
  display: grid;
  place-items: center;
  width: 4.2em;
  height: 4.2em;
  margin-bottom: .6em;
  border-radius: 1.1em;
  background: hsl(0 0% 7% / .06);
}
.product-card__icon-slot .ic-use { width: 3em; height: 3em; }
.product-card:hover .product-card__icon-slot .ic-use { animation: ic-bounce .6s var(--cubic-bounce); }
/* sur mobile, pas d'icône produit : les cartes restent sobres,
   chiffre + prix (retour design PL-005-FE-02) */
@media screen and (max-width: 767px) { .product-card__icon-slot { display: none; } }

.product-card__pill {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5em;
  height: 3.2em;
  border-radius: 999px;
  border: 1px solid var(--mg-card-border, hsl(0 0% 7% / .35));
  background: var(--mg-pill-bg, #FFFFFF);
  padding: .25em .25em .25em 1em;
}
.product-card__price { font-family: var(--font-display); font-weight: 800; font-size: 1.1em; white-space: nowrap; }
.product-card__add {
  width: 2.8em; height: 2.8em;   /* ≥44px de cible tactile à 16px */
  flex: none;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--mg-card-cta-bg, var(--color--dark));
  color: var(--mg-card-cta-fg, var(--color--neon));
  transition: transform .5s var(--elastic-ease-out), background-color .25s var(--color-ease), color .25s var(--color-ease);
}
/* animation Slush : le « + » pivote et rebondit au survol,
   s'écrase à la pression (feedback tactile) */
.product-card__add:hover { transform: scale(1.12) rotate(90deg); }
.product-card__add:active { transform: scale(.92); }
@media (prefers-reduced-motion: reduce) { .product-card__add:hover { transform: none; } }
.product-card__discount { display: inline-flex; align-items: center; gap: .4em; margin-bottom: .5em; }
.product-card__discount .badge-neo { border-radius: 999px; background: var(--color--neon); color: var(--color--dark); font-size: .72em; font-weight: 700; padding: .15em .6em; border: 1px solid var(--color--dark); }
.product-card__discount .old { font-size: .8em; text-decoration: line-through; color: var(--mg-card-ink-muted, hsl(0 0% 7% / .7)); }
.badge-pop { display: inline-flex; align-items: center; gap: .4em; border-radius: 999px; border: 1px solid var(--color--dark); background: var(--color--neon); color: var(--color--dark); padding: .3em .7em; font-size: .68em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* ——— Polish Slush : mouvement uniquement, le style de la carte est inchangé.
       Le chiffre glisse légèrement vers la droite au survol (rebond élastique). ——— */
.product-card__figure { transition: translate .45s var(--elastic-ease-out); }
.product-card:hover .product-card__figure { translate: .18em 0; }
@media (prefers-reduced-motion: reduce) { .product-card:hover .product-card__figure { translate: none; } .product-card__figure { transition: none; } }

/* ——— Simulation « ajouté au panier » : le « + » se change en coche, la
       pilule de prix rebondit. Deux SVG empilés en grid-area 1/1. ——— */
.product-card__add .ic-plus,
.product-card__add .ic-check { grid-area: 1 / 1; transition: opacity .2s var(--color-ease), transform .45s var(--elastic-ease-out); }
.product-card__add .ic-check { opacity: 0; transform: scale(.4) rotate(-40deg); }
.product-card__add.is--added { background: var(--color--neon); color: var(--color--dark); }
.product-card__add.is--added .ic-check { opacity: 1; transform: none; }
.product-card__add.is--added .ic-plus { opacity: 0; transform: scale(.4) rotate(40deg); }
@keyframes pill-bump { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }
.product-card__pill.is--bumped,
.cart-pill.is--bump,
.buy-bar.is--bump { animation: pill-bump .45s var(--elastic-ease-out); }
@media (prefers-reduced-motion: reduce) {
  .product-card__add .ic-plus, .product-card__add .ic-check { transition: opacity .2s var(--color-ease); }
  .product-card__pill.is--bumped, .cart-pill.is--bump, .buy-bar.is--bump { animation: none; }
}

/* Point volant : part du « + » et rejoint la surface panier (JS) */
.cart-fly {
  position: fixed;
  z-index: 200;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--color--neon);
  border: 1.5px solid var(--color--dark);
  pointer-events: none;
}

/* Pastille panier flottante (desktop ≥992, là où la barre d'achat est
   masquée) : même style que la barre — pilule encre floue, texte crème,
   compte en néon. Apparaît au premier ajout. */
.cart-pill {
  display: none;
  position: fixed;
  right: 1em; bottom: 1em;
  z-index: 85;
  align-items: center;
  gap: .6em;
  padding: .55em .95em .55em .55em;
  border-radius: 999px;
  background: hsl(0 0% 7% / .95);
  color: var(--color--light);
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 .5em 1.5em hsl(0 0% 0% / .25);
  opacity: 0;
  translate: 0 .8em;
  pointer-events: none;
  transition: opacity .35s var(--color-ease), translate .5s var(--elastic-ease-out);
}
.cart-pill.is--visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.cart-pill .cart-count {
  display: grid; place-items: center;
  min-width: 1.9em; height: 1.9em; padding: 0 .35em;
  border-radius: 999px;
  background: var(--color--neon); color: var(--color--dark);
  font-weight: 800; font-size: .85em;
}
.cart-pill .cart-total { font-family: var(--font-display); font-weight: 800; white-space: nowrap; }
.cart-pill .cart-go { font-size: .8em; opacity: .7; white-space: nowrap; }
@media screen and (min-width: 992px) { .cart-pill { display: inline-flex; } }

/* --- Grille de packs --- */
.packs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8em; }
@media screen and (min-width: 768px) { .packs-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25em; } }
@media screen and (min-width: 1200px) { .packs-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- Barre d'achat collante (mobile) --- */
.buy-bar {
  position: fixed;
  left: 1em; right: 1em; bottom: 6.1em;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75em;
  padding: .6em .6em .6em 1.1em;
  border-radius: 999px;
  background: hsl(0 0% 7% / .95);
  color: var(--color--light);
  backdrop-filter: blur(8px);
  box-shadow: 0 .5em 1.5em hsl(0 0% 0% / .25);
}
.buy-bar .price { font-family: var(--font-display); font-weight: 800; font-size: 1.05em; white-space: nowrap; }
.buy-bar .price small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .62em; opacity: .7; }
.buy-bar .button-main { height: 2.9em; }
@media screen and (min-width: 992px) { .buy-bar { display: none; } }

/* --- Onglets de page jeu --- */
.game-tabs { display: flex; gap: .4em; overflow-x: auto; padding: .3em; border-radius: 999px; background: hsl(0 0% 7% / .07); scrollbar-width: none; }
.game-tabs::-webkit-scrollbar { display: none; }
.game-tab {
  flex: none;
  padding: .55em 1.1em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85em;
  color: hsl(0 0% 7% / .65);
  transition: background-color .25s var(--color-ease), color .25s var(--color-ease);
}
.game-tab.is--active { background: var(--color--dark); color: var(--color--light); }

/* --- En-tête de page jeu (texte seul : l'icône du hero a été retirée
       sur retour design) --- */
.game-hero { display: flex; align-items: center; gap: 1.2em; }
/* Espacement gros titre → texte : le margin-bottom:-.1em verbatim Slush
   (calibré pour la police condensée Lateral) écrasait le sous-titre en
   Onest. Même traitement que le hero racine (.h-d + marge du texte) :
   l'espace suit l'échelle du titre. */
.game-hero__meta .h-l { margin-bottom: .25em; }
.game-hero__meta { display: flex; flex-direction: column; gap: .7em; min-width: 0; }
.game-hero__stats { display: flex; flex-wrap: wrap; gap: .5em; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .3em .8em; border-radius: 999px; border: 1px solid hsl(0 0% 7% / .25); font-size: .75em; font-weight: 600; }
[data-box-theme] .chip { border-color: hsl(0 0% 0% / .3); }

/* --- Nav mobile compacte + pastille changement de jeu --- */
.bottom-nav {
  position: fixed;
  left: .75em; right: .75em; bottom: max(.75em, env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: .25em;
  padding: .45em;
  border-radius: 999px;
  background: hsl(0 0% 7% / .95);
  color: var(--color--light);
  backdrop-filter: blur(8px);
}
/* Style identique au site déployé : mêmes couleurs, mêmes états —
   items et icônes seulement plus grands (cible tactile ≥44px) et un
   retour de pression à l'appui. */
.bottom-nav__item {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: .2em;
  padding: .6em 0;
  border-radius: 999px;
  font-size: .7em;
  font-weight: 700;
  opacity: .65;
  transition: opacity .2s, background-color .2s, transform .3s var(--elastic-ease-out);
}
.bottom-nav__item:active { transform: scale(.93); }
.bottom-nav__item .ic-use { width: 1.8em; height: 1.8em; }
.bottom-nav__item.is--active { opacity: 1; background: hsl(72 100% 50% / .18); color: var(--color--neon); }
.bottom-nav__item--game .ic-use { width: 2.2em; height: 2.2em; }
@media (prefers-reduced-motion: reduce) { .bottom-nav__item { transition: opacity .2s, background-color .2s; } .bottom-nav__item:active { transform: none; } }

.game-popup {
  position: fixed;
  left: .75em; right: .75em; bottom: 7.1em;
  z-index: 85;
  border-radius: 1.4em;
  background: var(--color--light);
  color: var(--color--dark);
  padding: 1.1em;
  box-shadow: 0 1em 2.5em hsl(0 0% 0% / .3);
  opacity: 0;
  visibility: hidden;
  translate: 0 1em;
  transition: opacity .35s var(--smooth-ease), translate .45s var(--elastic-ease-out), visibility 0s linear .35s;
}
.game-popup.is--open { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .35s var(--smooth-ease), translate .45s var(--elastic-ease-out); }
.game-popup__list { display: flex; flex-direction: column; gap: .5em; margin-top: .7em; }
.game-popup__row {
  display: flex; align-items: center; gap: .8em;
  padding: .6em .8em;
  border-radius: 1em;
  border: 1px solid hsl(0 0% 7% / .18);
  font-weight: 700; font-size: .9em;
  text-align: left;
  width: 100%;
}
.game-popup__row.is--current { border-color: var(--color--dark); background: hsl(0 0% 7% / .05); }
.game-popup__logo { width: 2.4em; height: 2.4em; border-radius: .7em; background: var(--color--dark); color: var(--color--neon); display: grid; place-items: center; }
.game-popup__logo .ic-use { width: 1.5em; height: 1.5em; }
.game-popup__row small { margin-left: auto; font-weight: 500; color: hsl(0 0% 7% / .55); }
@media screen and (min-width: 992px) { .bottom-nav, .game-popup { display: none; } }

/* --- Preuves de confiance + avis --- */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8em; }
@media screen and (min-width: 992px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-card {
  border-radius: 1.4em;
  border: 1px solid hsl(0 0% 7% / .2);
  padding: 1.3em;
  display: flex;
  flex-direction: column;
  gap: .6em;
}
.trust-card .ic-use { width: 2.6em; height: 2.6em; }
.trust-card strong { font-size: .95em; }
.trust-card span { font-size: .78em; color: hsl(0 0% 7% / .65); line-height: 1.45; }

.stars { color: var(--color--dark); letter-spacing: .1em; font-size: .9em; }
.review-card { border-radius: 1.4em; background: var(--color--light); border: 1px solid hsl(0 0% 7% / .2); padding: 1.4em; display: flex; flex-direction: column; gap: .6em; }
.review-card .who { font-size: .75em; color: hsl(0 0% 7% / .6); }

/* --- Étapes --- */
.steps-grid { display: grid; gap: .8em; counter-reset: step; }
@media screen and (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { border-radius: 1.4em; padding: 1.5em; display: flex; flex-direction: column; gap: .7em; }
.step-card__num { font-family: var(--font-display); font-weight: 800; font-size: 2em; line-height: 1; opacity: .25; }
.step-card .ic-use { width: 2.6em; height: 2.6em; }

/* --- Footer Magic Game : structure Slush verbatim (footer-row flex
       → cartes sociales 2×2 à gauche + colonne verte .is--last à droite ;
       ≤767 : tout empilé, cartes pleine largeur — règles du CSS copié).
       Différence assumée : pas de logos tiers — les cartes portent nos
       liens textes (réseaux + téléphone), jamais de handle inventé. --- */
.footer-social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 2.5em;
}
.footer-social-link.is--wide { grid-column: 1 / -1; aspect-ratio: auto; height: auto; }
/* le .footer-row Slush est un flex avec align-items:flex-start : sans
   contrainte, la grille se dimensionne sur son contenu et déborde du
   panneau (399px dans un conteneur de 366px à 390px) */
.footer-social-grid { flex: 0 0 auto; min-width: 0; }
/* ≥768 : la colonne verte prend le reste de la ligne (le width:100%
   du .footer-row-col Slush la faisait dévorer le flex) */
@media screen and (min-width: 768px) {
  .footer-row-col.is--last { width: auto; flex: 1 1 0; }
}
/* pistes minmax(0,1fr) : le 1fr Slush a un minimum auto, les libellés
   longs (« Téléphone · … ») gonflaient la piste au-delà du panneau */
.footer-social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media screen and (max-width: 767px) { .footer-social-grid { width: 100%; } }
.footer-cr { margin-top: .5em; }
/* le souligné Slush (.text-link-underline) a besoin d'être ancré
   à l'ancre quand il est posé en span séparé */
[data-text-link] { position: relative; display: inline-block; }
[data-text-link] .text-link-underline { position: absolute; inset: 0; display: block; }
[data-text-link] .text-link-label { position: relative; z-index: 1; }

/* ============================================================
   Checkout — 3 écrans, pas de stepper, un écran = une vue sans scroll
   ============================================================ */

.co-screen { min-height: 100dvh; display: flex; flex-direction: column; padding: 1.25em; max-width: 34em; margin-inline: auto; width: 100%; }
.co-screen[hidden] { display: none; }
.co-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2em; min-height: 2.6em; }
.co-header-title { font-weight: 700; font-size: 1em; text-transform: uppercase; letter-spacing: .02em; }
.co-amount { margin-block: .4em 1em; }
.co-amount .label { font-size: .8em; color: hsl(0 0% 7% / .6); font-weight: 600; }
.co-amount .value { font-family: var(--font-display); font-weight: 800; font-size: 2.7em; line-height: 1.05; letter-spacing: -.02em; }
.co-amount .value small { font-size: .5em; font-weight: 700; }
.co-lines { display: flex; flex-direction: column; gap: .15em; margin-bottom: 1.2em; }
.co-line { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; font-size: .9em; padding-block: .45em; border-bottom: 1px solid hsl(0 0% 7% / .12); }
.co-line strong { font-weight: 700; }
.co-line .kv-muted { color: hsl(0 0% 7% / .6); }
.co-id { display: flex; align-items: center; gap: .7em; padding: .8em 1em; border-radius: 1.2em; border: 1px solid hsl(0 0% 7% / .2); margin-bottom: 1.2em; }
.co-id .ic-use { width: 1.8em; height: 1.8em; flex: none; }
.co-id__txt { min-width: 0; display: flex; flex-direction: column; }
.co-id__txt small { color: hsl(0 0% 7% / .55); font-size: .72em; }
.co-id__txt strong { font-size: .95em; overflow-wrap: anywhere; }
.co-id button { margin-left: auto; flex: none; font-weight: 700; font-size: .8em; text-decoration: underline; }

.pm-list { display: flex; flex-direction: column; gap: .5em; margin-bottom: 1em; }
.pm-row {
  display: flex; align-items: center; gap: .9em;
  width: 100%;
  text-align: left;
  padding: .85em 1em;
  border-radius: 1.2em;
  border: 1px solid hsl(0 0% 7% / .25);
  background: transparent;
  transition: border-color .2s, background-color .2s;
  min-height: 3.4em;
}
.pm-row.is--selected { border-color: var(--color--dark); background: hsl(0 0% 7% / .05); box-shadow: inset 0 0 0 1px var(--color--dark); }
.pm-logo { width: 2.6em; height: 1.7em; flex: none; border-radius: .45em; display: grid; place-items: center; font-weight: 800; font-size: .62em; }
.pm-row__txt { display: flex; flex-direction: column; min-width: 0; }
.pm-row__txt small { font-size: .72em; color: hsl(0 0% 7% / .55); }
.pm-row__radio { margin-left: auto; width: 1.2em; height: 1.2em; border-radius: 999px; border: 2px solid hsl(0 0% 7% / .35); flex: none; }
.pm-row.is--selected .pm-row__radio { border-color: var(--color--dark); background: radial-gradient(circle, var(--color--dark) 0 45%, transparent 50%); }
.co-remark { font-size: .74em; color: hsl(0 0% 7% / .6); line-height: 1.5; margin-bottom: 1em; }

.turnstile {
  width: 100%;
  max-width: 22em;
  display: flex;
  align-items: center;
  gap: .8em;
  padding: .9em 1em;
  border: 1px solid hsl(0 0% 7% / .2);
  border-radius: .9em;
  background: hsl(0 0% 7% / .04);
  margin-bottom: auto;
}
.turnstile .box { width: 2em; height: 2em; border-radius: .5em; border: 2px solid hsl(0 0% 7% / .35); flex: none; display: grid; place-items: center; }
.turnstile small { display: block; color: hsl(0 0% 7% / .55); font-size: .78em; }
.turnstile strong { font-size: .85em; }

.co-footer-btn { margin-top: 1.2em; width: 100%; }
.co-footer-btn .button-main { width: 100%; }
.co-cancel { display: block; width: 100%; text-align: center; margin-top: .9em; font-size: .8em; font-weight: 600; color: hsl(0 0% 7% / .6); text-decoration: underline; }

/* Écran 2 — paiement */
.co-steps { display: flex; flex-direction: column; gap: .8em; margin-block: .6em 1.2em; }
.co-step { display: grid; grid-template-columns: 2.2em 1fr; gap: .9em; align-items: start; }
.co-step__dot {
  width: 2.2em; height: 2.2em;
  display: grid; place-items: center;
  font-weight: 800; font-size: .85em;
  background: var(--color--dark);
  color: var(--color--light);
  border-radius: .7em;
  rotate: 45deg;
}
.co-step__dot span { rotate: -45deg; }
.co-step__body { min-width: 0; }
.co-step__body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1em; margin-bottom: .4em; }
.kv-list { display: flex; flex-direction: column; border: 1px solid hsl(0 0% 7% / .18); border-radius: 1em; overflow: hidden; }
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; padding: .55em .9em; font-size: .85em; }
.kv + .kv { border-top: 1px solid hsl(0 0% 7% / .12); }
.kv .k { color: hsl(0 0% 7% / .6); flex: none; }
.kv .v { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.co-countdown { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: .85em; margin-bottom: 1em; }
.co-countdown .num { font-variant-numeric: tabular-nums; }

/* Écran 3 — attente */
.co-wait { display: flex; align-items: center; gap: 1em; padding: 1.1em; border-radius: 1.4em; background: var(--color--glacier); margin-bottom: 1.2em; }
.co-wait .ic-use { width: 2.8em; height: 2.8em; flex: none; }
.co-wait__txt small { color: hsl(0 0% 7% / .65); font-size: .78em; line-height: 1.45; display: block; }
.co-wait__txt strong { font-size: .95em; }
.co-proof-ok { display: flex; align-items: center; gap: .7em; font-weight: 700; font-size: .85em; margin-bottom: 1em; }
.co-proof-ok .ic-use { width: 1.7em; height: 1.7em; }

/* Feuille (preuve / annulation) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 120; background: hsl(0 0% 0% / .5); display: none; align-items: flex-end; justify-content: center; }
.sheet-backdrop.is--open { display: flex; }
.sheet {
  width: 100%;
  max-width: 30em;
  background: var(--color--light);
  border-radius: 1.6em 1.6em 0 0;
  padding: 1.4em 1.4em 2em;
  display: flex;
  flex-direction: column;
  gap: .9em;
  translate: 0 100%;
  transition: translate .5s var(--elastic-ease-out);
}
.sheet-backdrop.is--open .sheet { translate: 0 0; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.sheet__head h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.2em; }
.sheet__close { width: 2.4em; height: 2.4em; border-radius: 999px; background: hsl(0 0% 7% / .08); display: grid; place-items: center; }
.sheet__note { font-size: .8em; color: hsl(0 0% 7% / .65); }
.sheet__drop {
  display: grid; place-items: center;
  gap: .4em;
  padding: 1.6em 1em;
  border: 2px dashed hsl(0 0% 7% / .35);
  border-radius: 1.2em;
  text-align: center;
  font-size: .8em;
  color: hsl(0 0% 7% / .6);
}
.sheet__drop .ic-use { width: 2.4em; height: 2.4em; }
.sheet__opts { display: flex; flex-direction: column; gap: .45em; }
.sheet__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  width: 100%;
  text-align: left;
  padding: .8em 1em;
  border-radius: 1em;
  border: 1px solid hsl(0 0% 7% / .2);
  font-weight: 600; font-size: .9em;
  min-height: 3em;
}
.sheet__opt--keep { border-color: var(--color--dark); font-weight: 800; }

/* ============================================================
   ANIMATIONS DES ICÔNES (bibliothèque icons.svg)
   Sous-groupes du sprite : .ic-part-corps / .ic-part-detail-N
   ============================================================ */

.ic-use { display: block; width: 3em; height: 3em; }

/* Les animations ciblent les éléments DANS le sprite inline : le clone <use>
   hérite des styles calculés des originaux (sprite inline = document partagé). */
.ic-part-corps, .ic-part-detail-1, .ic-part-detail-2, .ic-part-detail-3 {
  transform-box: fill-box;
  transform-origin: center;
}

/* Flottement doux par défaut (décoratif) */
.ic-anim-float .ic-part-corps { animation: ic-float 3.6s ease-in-out infinite; }
@keyframes ic-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4%); }
}

/* Pièces / jetons / gemmes : balancement + brillance du détail */
.ic-anim-coin .ic-part-corps { animation: ic-coin 4.2s ease-in-out infinite; }
@keyframes ic-coin {
  0%, 100% { transform: rotateY(0) rotate(0deg); }
  33% { transform: rotateY(22deg) rotate(-2deg); }
  66% { transform: rotateY(-14deg) rotate(2deg); }
}
.ic-anim-coin .ic-part-detail-1 { animation: ic-shine 2.6s ease-in-out infinite; }
@keyframes ic-shine {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Engrenages : rotation continue lente */
.ic-anim-gear .ic-part-corps { animation: ic-spin 9s linear infinite; }
@keyframes ic-spin { to { transform: rotate(360deg); } }

/* Étincelles / étoiles : scintillement décalé */
.ic-anim-twinkle .ic-part-detail-1 { animation: ic-twinkle 1.8s ease-in-out infinite; }
.ic-anim-twinkle .ic-part-detail-2 { animation: ic-twinkle 1.8s ease-in-out .6s infinite; }
.ic-anim-twinkle .ic-part-detail-3 { animation: ic-twinkle 1.8s ease-in-out 1.2s infinite; }
@keyframes ic-twinkle {
  0%, 100% { opacity: .3; transform: scale(.75) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(20deg); }
}

/* Cadenas / bouclier : petit shake puis verrouillage au survol (piloté par JS :
   les pseudo-classes :hover ne traversent pas <use> de façon fiable). */
.ic-anim-lock .ic-part-corps { transform-origin: 50% 90%; }
.ic-anim-lock.is--hover .ic-part-corps { animation: ic-shake .55s var(--cubic-default) both; }
@keyframes ic-shake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-7deg); }
  40% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(2deg); }
}

/* Fusée / éclair : décollage au survol (idem, piloté par JS) */
.ic-anim-launch .ic-part-corps { transition: translate .6s var(--elastic-ease-out), rotate .6s var(--elastic-ease-out); }
.ic-anim-launch.is--hover .ic-part-corps { translate: 0 -8%; rotate: -6deg; }

/* Réaction au survol d'une carte produit */
@keyframes ic-bounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.16) rotate(-4deg); }
  70% { transform: scale(.95) rotate(2deg); }
  100% { transform: scale(1); }
}

/* Apparition à l'entrée dans l'écran (pop élastique) */
html.has-js .ic-anim-pop { opacity: 0; transform: scale(.4); transform-origin: center; }
html.has-js.no-gsap .ic-anim-pop { opacity: 1; transform: none; transition: opacity .4s ease, transform .7s var(--cubic-bounce); }
html.has-js .ic-anim-pop.is--popped { opacity: 1; transform: scale(1); transition: opacity .4s ease, transform .7s var(--cubic-bounce); }

/* Hors écran : tout est en pause (IntersectionObserver côté JS) */
.ic-paused .ic-part-corps, .ic-paused .ic-part-detail-1, .ic-paused .ic-part-detail-2, .ic-paused .ic-part-detail-3 {
  animation-play-state: paused !important;
}

/* Vitrine */
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9em, 1fr)); gap: .8em; }
.icon-cell {
  border: 1px solid hsl(0 0% 7% / .18);
  border-radius: 1.2em;
  padding: 1.1em .8em .8em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55em;
  text-align: center;
}
.icon-cell .ic-use { width: 3.4em; height: 3.4em; }
.icon-cell__name { font-size: .72em; font-weight: 700; }
.icon-cell__anim { font-size: .62em; color: hsl(0 0% 7% / .55); }
.icon-cell__replay {
  margin-top: auto;
  font-size: .68em;
  font-weight: 700;
  padding: .4em .9em;
  border-radius: 999px;
  border: 1px solid hsl(0 0% 7% / .3);
  min-height: 2.4em;
}
.icon-cell__replay:hover { background: var(--color--dark); color: var(--color--light); }

/* ============================================================
   Divers maquette
   ============================================================ */

.page-hero { position: relative; padding: 7.5em 0 3em; }
.page-hero .container { position: relative; }
/* Pages sans hero : réserve la place de la nav pilule fixe et de la bottom-nav */
.page-top { padding-top: 6.5em; }
.page-bottom { padding-bottom: 7.5em; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: .8em; margin-top: 1.6em; }
.hero-lime { display: inline-block; background: var(--color--neon); color: var(--color--dark); padding: 0 .18em; border-radius: .18em; }
/* le bloc lime (inline-block) déborde sous la dernière ligne du .h-d
   (line-height .76) et recouvrait le paragraphe suivant — on réserve
   la place sous le titre */
.h-d { padding-bottom: .22em; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; margin-bottom: 1.4em; }

.ticker-note { margin-top: 2em; font-size: .78em; color: hsl(0 0% 7% / .55); }

/* Respect de prefers-reduced-motion : animations décoratives coupées */
@media (prefers-reduced-motion: reduce) {
  .ic-anim-float .ic-part-corps, .ic-anim-coin .ic-part-corps, .ic-anim-coin .ic-part-detail-1,
  .ic-anim-gear .ic-part-corps, .ic-anim-twinkle .ic-part-detail-1, .ic-anim-twinkle .ic-part-detail-2,
  .ic-anim-twinkle .ic-part-detail-3 { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
