/* Mise en page des écrans : en-tête, navigation, blocs, album, marché, formulaires.
   Les couleurs, polices et ombres viennent de la peau du thème (variables). */
body{min-height:100vh;min-height:100dvh}
a{color:var(--marque)}
.doux{color:var(--doux)}
.petit{font-size:14px}
.sr-seulement{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.evitement{position:absolute;left:12px;top:-60px;z-index:50;background:var(--marine);color:#fff;padding:12px 16px;border-radius:10px;font:600 14px var(--titre)}
.evitement:focus{top:12px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--orange);outline-offset:3px}

/* En-tête et navigation */
.entete{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:16px;padding:10px 18px;background:color-mix(in srgb,var(--papier) 92%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--brume)}
.marque{font:700 19px var(--titre);color:var(--marque);text-decoration:none}
.marque--grande{font-size:28px}
.marque__theme{color:var(--orange-texte)}
.entete__nav{display:none;gap:4px;margin-left:12px}
.entete__nav a,.entete__droite a{font:600 14px var(--titre);text-decoration:none}
.entete__nav a{color:var(--doux);padding:8px 12px;border-radius:10px;white-space:nowrap}
.entete__nav a[aria-current],.entete__nav a:hover{color:var(--marque);background:color-mix(in srgb,var(--marque) 10%,transparent)}
.entete__droite{margin-left:auto;display:flex;align-items:center;gap:12px}
.avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid var(--brume);background:var(--surface);color:var(--marque)}
.avatar[aria-current]{border-color:var(--marque)}
.avatar svg,.nav-bas svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7}
.jetons{text-decoration:none}
.jetons--simple{border:0;background:none;padding:0}
.nav-bas{position:fixed;left:0;right:0;bottom:0;z-index:20;display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);border-top:1px solid var(--brume);padding-bottom:env(safe-area-inset-bottom,0px)}
.nav-bas a{display:grid;justify-items:center;gap:3px;padding:9px 4px 8px;font:500 13px var(--titre);color:var(--doux);text-decoration:none;border-top:3px solid transparent}
.pastille-nav{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;margin-left:8px;border-radius:999px;background:var(--orange-fort);color:#fff;font:700 12px/1 var(--titre)}
.pastille-nav--vide{background:var(--doux)}
.nav-bas a{position:relative}
.nav-bas .pastille-nav{position:absolute;top:3px;left:calc(50% + 6px);margin:0}
.nav-bas a[aria-current]{color:var(--marque);border-top-color:var(--orange)}
.zone{padding-bottom:12px}   /* le pied de page porte l'espace de la barre du bas */
.zone--immersive{padding-bottom:0}
@media (min-width:780px){
  .entete{padding-left:max(18px,calc((100% - 980px)/2 + 18px));padding-right:max(18px,calc((100% - 980px)/2 + 18px))}   /* l'en-tête suit les bords du contenu (980 px), pas ceux de l'écran */
  .entete{display:grid;grid-template-columns:1fr auto 1fr}   /* marque à gauche, menu au centre, jetons et profil à droite */
  .entete__nav{display:flex;margin-left:0;justify-self:center}
  .entete__droite{justify-self:end}
  .nav-bas{display:none}
  .zone{padding-bottom:28px}
}

/* Pages */
.page{max-width:980px;margin:0 auto;padding:20px 18px 12px;display:grid;gap:24px;align-content:start}
/* toutes les pages ont la même largeur maximale (celle de .page) : plus de variantes étroites */
.page--centre{text-align:center;justify-items:center;padding-top:60px}
.page__tete{display:grid;gap:8px}
.page__tete--action{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px}
.retour{font:600 14px var(--titre);text-decoration:none}
.bloc-page{display:grid;gap:12px;background:var(--surface);border:1px solid var(--brume);border-radius:16px;padding:18px}
.bloc-page__tete{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px 16px}
.bloc-page__tete a{font:600 14px var(--titre)}
.encadre{background:color-mix(in srgb,var(--marque) 7%,var(--surface));border:1px solid var(--brume);border-radius:12px;padding:12px 16px}
.encadre--info{font-size:15px}
.bandeau{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 16px;padding:12px 16px;background:color-mix(in srgb,var(--orange) 14%,var(--surface));border-bottom:1px solid var(--brume);font:500 14px/1.4 var(--titre);text-align:center}
.bandeau--info{background:color-mix(in srgb,var(--marque) 8%,var(--surface))}
.encadre--erreur{font-size:15px;border-color:#c0392b;background:color-mix(in srgb,#c0392b 8%,var(--surface))}
.confirmation{background:color-mix(in srgb,var(--r2) 14%,var(--surface));border:1px solid var(--r2);border-radius:12px;padding:12px 16px;font:500 14px/1.4 var(--titre)}
.confirmation[hidden]{display:none}
.vide{text-align:center;color:var(--doux);padding:30px 0}
.vide[hidden]{display:none}

/* Accueil */
/* Pop-in de la fiche d'une carte : une feuille qui couvre la page sauf le haut ; le haut visible ferme la feuille */
.popin__fond{position:fixed;inset:0;z-index:40;background:rgba(0,20,60,.45);animation:popin-fond .3s ease-out}
.popin{position:fixed;left:0;right:0;bottom:0;top:60px;z-index:41;display:flex;justify-content:center;pointer-events:none}
.popin[hidden],.popin__fond[hidden]{display:none}
.popin__feuille{pointer-events:auto;position:relative;width:min(980px,100%);height:100%;overflow:auto;background:var(--papier);border-radius:20px 20px 0 0;box-shadow:0 -12px 40px rgba(0,20,60,.3);outline:none;overscroll-behavior:contain;animation:popin-monte .4s cubic-bezier(.22,1,.36,1)}
.popin__fermer{position:absolute;top:10px;right:12px;z-index:2;width:38px;height:38px;border-radius:50%;border:1px solid var(--brume);background:var(--surface);color:var(--encre);font:600 22px/1 var(--titre)}
.popin__fermer:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.popin__contenu{padding-top:16px}
.popin__attente{padding:40px 18px;text-align:center;color:var(--doux)}
@keyframes popin-monte{from{transform:translateY(100%)}to{transform:none}}
@keyframes popin-fond{from{opacity:0}to{opacity:1}}
@keyframes popin-descend{from{transform:none}to{transform:translateY(100%)}}
@keyframes popin-fond-sortie{from{opacity:1}to{opacity:0}}
.popin--sortie .popin__feuille{animation:popin-descend .3s cubic-bezier(.5,0,.75,0) forwards}
.popin__fond--sortie{animation:popin-fond-sortie .3s ease-in forwards}
@media (prefers-reduced-motion:reduce){.popin__feuille,.popin__fond,.popin--sortie .popin__feuille,.popin__fond--sortie{animation:none}}
.duo{display:grid;gap:24px}
@media (min-width:780px){.duo{grid-template-columns:1fr 1fr;align-items:stretch}}
.hero{display:flex;flex-wrap:wrap;align-items:center;gap:24px 28px;background:var(--surface);border:1px solid var(--brume);border-radius:18px;padding:24px}
.hero__pochette{flex:0 0 auto;display:grid;place-items:center;width:170px;padding:8px 0}
.hero__pochette a{display:block}
.hero__texte{flex:1 1 260px;display:grid;gap:12px;justify-items:start}
.hero__texte h2{font-size:26px}
.fiche__infos h1{text-transform:capitalize}
.hero{flex-direction:column;justify-content:center;text-align:center}
.hero__texte{flex:0 0 auto;justify-items:center}
.hero__pochette--carte{width:128px;padding:8px 0}
.hero__pochette--carte .carte{--w:100%;width:100%}
/* Blocs « calendrier » : ruban en haut, fond crème, carte du jour inclinée dans un halo */
.hero--ruban{position:relative;overflow:hidden;background:color-mix(in srgb,var(--orange) 7%,var(--surface));border-color:color-mix(in srgb,var(--orange) 35%,var(--brume))}
.hero__ruban{align-self:stretch;margin:-22px -22px 0;padding:0 16px;min-height:44px;display:flex;align-items:center;justify-content:center;background:var(--marque);color:#fff;font:700 13px/1.2 var(--titre);letter-spacing:.08em;text-transform:uppercase;text-align:center}
.hero--ruban{justify-content:flex-start;gap:12px}
.hero--ruban .hero__texte{gap:8px}
.hero--ruban .hero__ruban{margin-bottom:auto}
.hero--ruban .hero__pochette{margin-top:0}
.hero--ruban .hero__texte{margin-bottom:auto}
.hero--arrivage .hero__texte{margin-bottom:0}
.hero__pochettes{display:flex;justify-content:center;gap:18px;padding:24px 0 16px}
.hero__pochettes>*{display:block}
.hero__pochettes>*:first-child{transform:rotate(-8deg)}
.hero__pochettes>*:last-child{transform:rotate(8deg)}
.decompte{margin:0;font:600 15px var(--titre);color:var(--marque)}
.decompte time{display:inline-block;padding:3px 12px;border-radius:8px;background:var(--r4);color:#fff;font-variant-numeric:tabular-nums}
.hero__ruban--date{gap:12px;background:var(--orange-fort)}
.hero__ruban--date strong{font-size:26px;line-height:1;letter-spacing:0}
.hero--jour .hero__pochette--carte{transform:rotate(-3deg);background:radial-gradient(closest-side,rgba(243,112,33,.28),transparent 75%);padding:8px 0;width:128px}
.hero--jour .hero__pochette--carte .carte{filter:drop-shadow(0 10px 14px rgba(0,20,60,.3))}
.hero__badge{display:inline-block;padding:4px 12px;border-radius:999px;border:1px dashed color-mix(in srgb,var(--orange) 60%,var(--brume));color:var(--doux);font:600 13px var(--titre)}
.carte-jour{display:flex;flex-wrap:wrap;align-items:center;gap:18px 26px}
.carte-jour__carte{width:min(46vw,190px)}
.carte-jour__carte .carte{--w:100%;width:100%}
.carte-jour__texte{flex:1 1 220px;display:grid;gap:12px;justify-items:start}
.progressions--nombres li{grid-template-columns:1fr auto!important}
.progressions{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.progressions li{display:grid;grid-template-columns:minmax(90px,130px) 1fr 52px;align-items:center;gap:12px;font:500 14px var(--titre)}
.progressions__pct{text-align:right;color:var(--doux)}
.barre-progres{display:block;height:8px;border-radius:999px;background:var(--brume);overflow:hidden}
.barre-progres i{display:block;height:100%;background:var(--marine);border-radius:999px}
.tuiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.tuile{display:grid;gap:4px;background:var(--surface);border:1px solid var(--brume);border-radius:14px;padding:16px;text-decoration:none;color:var(--encre);font-family:var(--titre)}
.tuile strong{color:var(--marque);font-size:16px}
.tuile span{font-size:14px}
.tuile:hover{border-color:var(--marque)}

/* Album */
/* Barre de recherche, filtres et tri de l'album : collée sous l'en-tête */
.page[data-album]{display:flex;flex-direction:column}   /* un parent en grille empêcherait la barre de rester collée */
.outils{position:sticky;top:60px;z-index:15;margin:0 -18px;padding:12px 18px;background:color-mix(in srgb,var(--papier) 94%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--brume)}
.outils__ligne{display:flex;gap:12px;align-items:center}
.outils__ligne .champ-recherche{flex:1;min-width:0}
.outils__ligne .champ-recherche input{padding-block:9px}
.bouton-filtres{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;font:600 14px var(--titre);padding:9px 12px;border-radius:10px;border:1.5px solid var(--brume);background:var(--surface);color:var(--encre)}
.bouton-filtres svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.bouton-filtres[aria-expanded="true"]{border-color:var(--marque)}
.bouton-filtres__nombre{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 8px;border-radius:999px;background:var(--orange-fort);color:#fff;font:700 13px/1 var(--titre)}
.bouton-filtres__nombre[hidden]{display:none}
.filtres-panneau{display:grid;gap:12px;max-height:42vh;overflow:auto;padding:16px;margin-top:12px;background:var(--surface);border:1px solid var(--brume);border-radius:14px}
.filtres-panneau[hidden]{display:none}
.filtres-groupe{display:grid;gap:8px}
.filtres-groupe__titre{font:700 13px var(--titre);letter-spacing:.06em;text-transform:uppercase;color:var(--doux)}
.outils__compte{flex:0 0 auto;align-self:center;margin-left:auto;font:600 14px var(--titre);color:var(--doux);white-space:nowrap}
.outils__effacer{justify-self:start;font:600 13px var(--titre);color:var(--marque);background:none;border:0;padding:4px 8px;text-decoration:underline}
.outils__effacer[hidden]{display:none}
@media (min-width:780px){.outils{margin-inline:calc(-1 * max(18px,(100vw - 980px)/2));padding-inline:max(18px,calc((100vw - 980px)/2))}}
.champ-recherche input,.champ input,.champ select,.champ--ligne select{width:100%;font:500 16px var(--titre);color:var(--encre);background:var(--surface);border:1.5px solid var(--brume);border-radius:10px;padding:11px 16px}
.champ-recherche input:focus,.champ input:focus,.champ select:focus{border-color:var(--marque)}
.puces{display:flex;flex-wrap:wrap;gap:8px}
.puce{font:600 14px var(--titre);padding:8px 16px;border-radius:999px;border:1.5px solid var(--brume);background:var(--surface);color:var(--encre)}
.puce[aria-pressed="true"]{background:var(--marine);border-color:var(--marine);color:#fff}
:root[data-theme="dark"] .puce[aria-pressed="true"]{background:#7FA6E0;border-color:#7FA6E0;color:#0B1A33}
.puce--rang{width:38px;height:38px;padding:0;display:grid;place-items:center;border-color:var(--rc);color:var(--rc)}
.puce--r1{--rc:var(--r1)}.puce--r2{--rc:var(--r2)}.puce--r3{--rc:var(--r3)}.puce--r4{--rc:var(--r4)}.puce--r5{--rc:var(--r5)}
.puce--rang[aria-pressed="true"]{background:var(--rc);border-color:var(--rc);color:#fff}
.section-album{display:grid;gap:12px}
.section-album__tete{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px 16px}
.cartes-grille{list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,190px));gap:16px;justify-content:start}
@media (max-width:430px){.cartes-grille{grid-template-columns:1fr 1fr}}
.cartes-grille li{min-width:0}
.cartes-grille li[hidden]{display:none}
.carte-vide{container-type:inline-size;position:relative;aspect-ratio:5/7;border:2px dashed var(--brume);border-radius:12px;display:grid;place-items:center;color:var(--doux);background:color-mix(in srgb,var(--surface) 60%,transparent)}
.carte-vide__rang{position:absolute;top:6cqw;right:6cqw;width:12cqw;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;border:.8cqw solid var(--brume);font:600 6.4cqw var(--titre)}
.carte-vide__num{font:500 7cqw var(--titre)}

/* Nouveaux métiers de la semaine */
.nouveautes{display:grid;gap:16px}
.nouveautes__liste{list-style:none;margin:0;padding:4px 2px 12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}   /* pas de défilement horizontal : 2 colonnes sur mobile, 3 puis 5 plus large */
.nouveautes__liste li{min-width:0;display:grid;gap:12px;align-content:start}
@media (min-width:560px){.nouveautes__liste{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:780px){.nouveautes__liste{grid-template-columns:repeat(5,minmax(0,1fr))}}
.souhaiter{display:inline-flex;justify-content:center;align-items:center;gap:7px;text-align:left;line-height:1.2;font:600 13px var(--titre);padding:8px 12px;border-radius:14px;border:1.5px solid var(--brume);background:var(--surface);color:var(--encre)}
.souhaiter svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.souhaiter[aria-pressed="true"]{border-color:#D2494B;color:#D2494B;background:color-mix(in srgb,#D2494B 10%,var(--surface))}
.souhaiter[aria-pressed="true"] svg{fill:#D2494B}
.souhaiter:disabled{opacity:.6;cursor:progress}

/* Progression de la collection : chiffres en grand, barre épaisse vers un coffre, récompense en vue */
.progres{gap:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--orange) 9%,var(--surface)),var(--surface) 60%);border-color:color-mix(in srgb,var(--orange) 30%,var(--brume))}
.progres__tete{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px 16px}
.progres__tete h1,.progres__tete h2{margin:0;font-size:20px;font-weight:700}
.progres__tete a{font:600 14px var(--titre)}
.progres__chiffres{display:flex;flex-wrap:wrap;gap:12px 28px;align-items:flex-end}
.progres__stat{margin:0;display:flex;align-items:baseline;gap:8px}
.progres__stat strong{font:700 44px/1 var(--titre);color:var(--marque)}
.progres__stat span{font:600 14px var(--titre);color:var(--doux)}
.progres__stat--points strong{font-size:30px;color:var(--orange-texte)}
.progres__barre{position:relative;padding:0 26px 24px 0}
.progres__piste{height:22px;border-radius:999px;background:var(--brume);box-shadow:inset 0 2px 4px rgba(0,20,60,.18);overflow:hidden}
.progres__piste>i{display:block;height:100%;border-radius:999px;background:repeating-linear-gradient(115deg,rgba(255,255,255,.28) 0 8px,transparent 8px 16px),linear-gradient(90deg,#F37021,#ffae42);background-size:32px 100%,100% 100%;box-shadow:0 0 12px rgba(243,112,33,.55);animation:progres-defile 1.4s linear infinite}
@keyframes progres-defile{to{background-position:32px 0,0 0}}
.progres__but{position:absolute;right:0;top:-8px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--surface);border:3px solid #d9b23a;box-shadow:0 2px 8px rgba(201,150,26,.45)}
.progres__but svg{width:22px;height:22px;fill:none;stroke:#b8860b;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.progres__but--proche{animation:progres-pouls 1.3s ease-in-out infinite}
@keyframes progres-pouls{50%{transform:scale(1.14);box-shadow:0 0 0 6px rgba(217,178,58,.25),0 2px 8px rgba(201,150,26,.45)}}
.progres__borne{position:absolute;bottom:0;font:600 13px var(--titre);color:var(--doux)}
.progres__borne--debut{left:0}
.progres__borne--fin{right:10px}
.progres__texte{margin:0;font-size:15px}
.progres__texte strong{color:var(--orange-texte);font-family:var(--titre)}
.progres__recompense{display:inline-block;padding:3px 12px;border-radius:999px;background:#fff6dc;border:1px solid #d9b23a;color:#7a5400;font:700 13px var(--titre);white-space:nowrap}
:root[data-theme="dark"] .progres__recompense{background:#3a2d0b;color:#f1dfa0}
@media (prefers-reduced-motion:reduce){.progres__piste>i,.progres__but--proche{animation:none}}
.palier{position:relative;height:10px;border-radius:999px;background:var(--brume);margin:12px 8px 28px}
.palier--seule{margin:8px 0 0}   /* barre sans repères : le texte du prochain palier se place juste dessous */
.palier>i{position:absolute;inset:0 auto 0 0;background:var(--marine);border-radius:999px}
:root[data-theme="dark"] .palier>i{background:#7FA6E0}
.palier b{position:absolute;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:var(--surface);border:3px solid var(--brume);font:0/0 sans-serif}
.palier b.ok{border-color:var(--marine);background:var(--marine)}
:root[data-theme="dark"] .palier b.ok{border-color:#7FA6E0;background:#7FA6E0}
.palier b::after{white-space:nowrap;content:attr(data-p);position:absolute;top:24px;left:50%;transform:translateX(-50%);font:500 13px var(--titre);color:var(--doux)}

/* Fiche d'une carte, enchère */
.fiche{display:grid;gap:24px;justify-items:center}
.fiche__carte{display:grid;justify-items:center;align-content:start;padding:8px}
.fiche__infos{display:grid;gap:16px;align-content:start;width:100%;max-width:520px}
@media (min-width:760px){
  .fiche{grid-template-columns:auto 1fr;justify-items:start;gap:40px;align-items:start}
}
.liste-def{margin:0;display:grid;gap:8px}
.liste-def div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--brume);padding-bottom:8px}
.liste-def dt{color:var(--doux)}
.liste-def dd{margin:0;font:600 16px var(--titre);color:var(--encre)}
.actions--ligne{display:flex;flex-wrap:wrap;gap:12px;justify-items:start;align-items:center}
.regles{margin:0;padding-left:20px;display:grid;gap:8px;color:var(--doux);font-size:15px}
.btn--petit{padding:8px 12px;font-size:13px}
.btn[aria-pressed="true"]{background:color-mix(in srgb,var(--marque) 12%,transparent)}
.btn:disabled{opacity:.5;cursor:not-allowed}

/* Boutique */
.boutique{list-style:none;margin:0;padding:0;display:grid;gap:18px 12px}
.boutique--grandes{grid-template-columns:repeat(3,minmax(0,1fr))}
.boutique--categories{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (min-width:640px){.boutique--categories{grid-template-columns:repeat(6,minmax(0,1fr))}}
/* Pas de cadre autour des pochettes : la pochette, son nom, son prix. La dorée a un halo. */
.boutique__article{position:relative;display:grid;justify-items:center;align-content:start;text-align:center;padding:4px}
.boutique__article--doree::before{content:"";position:absolute;left:50%;top:6%;width:150px;height:150px;margin-left:-75px;border-radius:50%;background:radial-gradient(circle,rgba(230,205,114,.5),transparent 68%);pointer-events:none}
.boutique__article>*{position:relative}
.boutique__desc{margin:0;font-size:13px;line-height:1.3;color:var(--doux);max-width:20ch}
.boutique__titre{margin:8px 0 2px;font:700 17px var(--titre);color:var(--marque)}
.boutique__article--categorie .boutique__titre{font-size:14px;color:color-mix(in srgb,var(--cat) 62%,var(--encre))}
.boutique__article--categorie .pochette-achat{padding:4px 0}
.boutique .prix .jetons{padding:3px 12px 3px 8px;border:1px solid color-mix(in srgb,var(--orange) 30%,var(--brume));background:color-mix(in srgb,var(--orange) 10%,var(--surface));border-radius:999px;font-size:14px}
.boutique .prix .jetons svg{width:16px;height:16px}
.page__tete--court{gap:2px;margin-top:8px}
.boutique-section{display:grid;gap:16px;scroll-margin-top:70px}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.boutique__achat{display:grid;gap:12px;justify-items:center;width:100%}
.boutique__achat .champ--ligne{justify-items:center}
.pochette-achat{background:none;border:0;padding:8px 0;-webkit-tap-highlight-color:transparent;border-radius:12px;transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.pochette-achat:not(:disabled):hover{transform:translateY(-4px) scale(1.03)}
.pochette-achat:focus-visible{outline:3px solid var(--orange);outline-offset:6px}
.pochette-achat:disabled{cursor:not-allowed}
.pochette-achat:disabled .pochette,.pochette-grisee .pochette{filter:grayscale(1) opacity(.5);animation:none}
.pochette-grisee{display:block}
.boutique__texte h2{font-size:20px}
.prix{margin:0}
.champ--ligne{max-width:260px}

/* Onglets, classement */
.onglets{display:flex;gap:8px;border-bottom:1px solid var(--brume)}
@media (max-width:520px){.onglets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.onglet{display:grid;justify-items:center;gap:3px;padding:8px 2px 8px;font-size:13px}}
.onglet{font:600 14px var(--titre);padding:12px 12px;background:none;border:0;border-bottom:3px solid transparent;color:var(--doux);white-space:nowrap}
.onglet[aria-selected="true"]{color:var(--marque);border-bottom-color:var(--orange)}
[role="tabpanel"][hidden]{display:none}
.classement{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.classement li{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--brume);border-radius:12px;padding:12px 16px;font:500 16px var(--titre)}
.classement__pos{font-weight:700;color:var(--doux)}
.classement li:nth-child(-n+3) .classement__pos{color:var(--r5)}
.classement__val{font-weight:600}
.classement__pseudo small a{color:var(--doux)}
.classement__pseudo small{display:block;font:500 13px var(--titre);margin-top:2px}
.classement__moi{border-color:var(--marque)!important;background:color-mix(in srgb,var(--marque) 9%,var(--surface))!important}
.classement__moi em{font-style:normal;color:var(--doux);font-weight:500}

/* Marché */
/* Marché : en-tête, liste de souhaits */
.onglet__nb{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 8px;margin-left:4px;border-radius:999px;background:var(--brume);color:var(--encre);font:700 13px/1 var(--titre)}
.onglet[aria-selected="true"] .onglet__nb{background:var(--orange-fort);color:#fff}
.souhaits{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:12px}
@media (min-width:780px){.souhaits{grid-template-columns:1fr 1fr}}
.souhait{display:grid;grid-template-columns:104px 1fr;gap:16px;align-items:center;background:var(--surface);border:1px solid var(--brume);border-radius:14px;padding:12px}
.souhait__carte .carte{--w:100%;width:100%}
.souhait__texte{display:grid;gap:5px;justify-items:start;font-family:var(--titre)}
.souhait__texte strong{font-size:17px;color:var(--marque)}
.souhait__stat{font:600 13px var(--titre);color:var(--orange-texte)}
.souhait__etat{font:600 13px var(--titre);color:var(--doux)}
.souhait__etat--vente{color:#fff;background:var(--marque);padding:4px 12px;border-radius:999px;text-decoration:none}
.souhait__retirer{font:600 13px var(--titre);color:var(--doux);background:none;border:0;padding:2px 0;text-decoration:underline}
.souhait__retirer:disabled{opacity:.5;cursor:progress}
.vide--souhaits{display:grid;gap:12px;justify-items:center;text-align:center;padding:24px 16px}
.vide--souhaits[hidden],.souhaits+.vide--souhaits[hidden]{display:none}
.valeur-album__chiffre{display:grid;gap:4px;justify-items:center;text-align:center}
.valeur-album__chiffre p{margin:0}
.valeur-album__ligne{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 12px}
.valeur-album__ligne .portefeuille__total{font-size:32px}
.valeur-album__ligne .portefeuille__total .jetons svg{width:22px;height:22px}
.mouvements__cartes{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:360px}
.mouvements__cartes li{display:grid;gap:8px;justify-items:center;text-align:center}
.cloche{position:relative;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:var(--encre)}
.cloche svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.cloche .pastille-nav{position:absolute;top:0;right:-2px;margin:0}
.cloche[aria-current]{color:var(--marque)}
.alertes{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:12px}
.alerte__lien{display:grid;grid-template-columns:72px 1fr;gap:16px;align-items:center;background:var(--surface);border:1px solid var(--brume);border-radius:14px;padding:12px 12px;text-decoration:none;color:var(--encre)}
.alerte__lien:hover{border-color:var(--marque)}
.alerte--nouvelle .alerte__lien{border-color:var(--orange);background:color-mix(in srgb,var(--orange) 8%,var(--surface))}
.alerte__carte .carte{--w:100%;width:100%}
.alerte__texte{display:grid;gap:4px;font:600 15px/1.35 var(--titre)}
.alerte__texte small{font-weight:500}
.alertes-appareil{display:grid;gap:8px;justify-items:start;margin-top:16px;padding-top:16px;border-top:1px solid var(--brume)}
.alertes-appareil h3{margin:0;font-size:16px}
.alertes-groupe{border:0;margin:0 0 8px;padding:0;display:grid;gap:8px}
.alertes-groupe legend{font:700 14px var(--titre);color:var(--marque);padding:0 0 8px}
.mouvements__cartes .cote-tendance{margin:0;font-size:13px}
.mouvements__cartes .carte-lien{width:100%}
.courbe-verrou{position:relative;display:grid;place-items:center;min-height:150px;border-radius:14px;overflow:hidden}
.courbe-verrou>svg{position:absolute;inset:0;width:100%;height:100%;opacity:.5}
.courbe-verrou>svg path{fill:none;stroke:var(--brume);stroke-width:3;stroke-dasharray:6 7;stroke-linecap:round;vector-effect:non-scaling-stroke}
.courbe-verrou__message{position:relative;display:grid;gap:8px;justify-items:center;text-align:center;padding:16px 18px;max-width:340px}
.courbe-verrou__message strong{font:700 16px var(--titre);color:var(--marque)}
.courbe-verrou__cadenas{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--surface);border:2px solid var(--orange);box-shadow:0 2px 10px rgba(243,112,33,.25)}
.courbe-verrou__cadenas svg{width:22px;height:22px;fill:none;stroke:var(--orange);stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round}
.courbe-verrou__points{display:flex;gap:8px;margin-top:2px}
.courbe-verrou__points i{width:10px;height:10px;border-radius:50%;border:2px solid var(--brume);background:transparent}
.courbe-verrou__points i.plein{background:var(--orange);border-color:var(--orange)}
.courbe{margin:0;display:grid;gap:4px}
.courbe svg{display:block;width:100%;height:110px}
.courbe__ligne{fill:none;stroke:var(--orange);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.courbe__aire{fill:color-mix(in srgb,var(--orange) 16%,transparent);stroke:none}
.courbe figcaption{display:flex;justify-content:space-between;gap:8px;font:600 13px var(--titre);color:var(--doux)}
.valeur-album__mouvements{display:grid;gap:12px}
@media (min-width:600px){.valeur-album__mouvements{grid-template-columns:1fr 1fr}}
.album-cote{display:flex;justify-content:center;margin-top:8px;font:700 14px var(--titre);color:var(--marque)}
.album-cote .jetons svg{width:16px;height:16px}
.portefeuille{display:grid;gap:16px;margin-top:12px}
.portefeuille__valeur{display:grid;gap:4px;justify-items:center;text-align:center;background:linear-gradient(135deg,color-mix(in srgb,var(--orange) 9%,var(--surface)),var(--surface) 60%);border:1px solid color-mix(in srgb,var(--orange) 30%,var(--brume));border-radius:16px;padding:16px}
.portefeuille__valeur p{margin:0}
.portefeuille__total{font:700 40px/1.1 var(--titre);color:var(--marque)}
.portefeuille__total .jetons svg{width:34px;height:34px}
.portefeuille__variations{display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:center;font:600 13px var(--titre);color:var(--doux)}
.portefeuille__mouvements{background:var(--surface);border:1px solid var(--brume);border-radius:14px;padding:12px 16px}
.portefeuille__mouvements h3{margin:0 0 8px;font-size:15px}
.portefeuille__mouvements ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.portefeuille__liste{margin-top:16px}
.portefeuille__sous-total{font:700 20px var(--titre);color:var(--marque)}
.cote-tendance{display:inline-block;margin-left:8px;font:600 13px var(--titre);color:var(--doux)}
.cote-tendance--hausse{color:#2e8b57}
.cote-tendance--baisse{color:#c0392b}
.cote-graphique{display:block;width:120px;height:34px;margin-top:4px}
.cote-graphique polyline{fill:none;stroke:var(--orange);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.encheres{list-style:none;margin:0;padding:0;display:grid;gap:12px}
@media (min-width:780px){.encheres{grid-template-columns:1fr 1fr}}
.encheres li[hidden]{display:none}
.encheres li{display:grid;gap:8px;position:relative}
.enchere-ligne__stats{font:600 13px/1.3 var(--titre);color:var(--orange-texte)}
.badge-marche{justify-self:start;background:var(--marque);color:#fff;font:700 12px var(--titre);letter-spacing:.04em;text-transform:uppercase;padding:3px 8px;border-radius:999px}
.badge-marche[hidden]{display:none}
.enchere-ligne__actions{padding:0 4px}
.enchere-ligne__lien{display:grid;grid-template-columns:104px 1fr;gap:16px;align-items:center;background:var(--surface);border:1px solid var(--brume);border-radius:14px;padding:12px;text-decoration:none;color:var(--encre);font-family:var(--titre)}
.enchere-ligne__lien:hover{border-color:var(--marque)}
.enchere-ligne__carte .carte{--w:100%;width:100%}
.enchere-ligne__texte{display:grid;gap:4px}
.enchere-ligne__texte strong{font-size:17px;color:var(--marque)}
.enchere-ligne__offre{display:flex;align-items:center;gap:12px}
.enchere-ligne__temps{display:flex;align-items:center;gap:8px}
.enchere-ligne__temps svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.7}
.choix-cartes{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.choix-cartes legend{font:600 15px var(--titre);margin-bottom:8px;padding:0}
.choix-carte{display:grid;gap:8px;justify-items:center;text-align:center;border:2px solid var(--brume);border-radius:14px;padding:12px;background:var(--surface)}
.choix-carte input{position:absolute;opacity:0}
.choix-carte:has(input:checked){border-color:var(--marque);background:color-mix(in srgb,var(--marque) 7%,var(--surface))}
.choix-carte:has(input:focus-visible){outline:3px solid var(--orange);outline-offset:3px}
.choix-carte__carte{width:100%}
.choix-carte__carte .carte{--w:100%;width:100%}
.choix-carte__nom{display:grid;gap:2px}

/* Formulaires */
.formulaire{display:grid;gap:16px}
.champ{display:grid;gap:8px;font:600 14px var(--titre)}
.champ small{font:400 13px var(--titre)}
.case{display:flex;align-items:flex-start;gap:12px;font:500 15px/1.4 var(--titre)}
.case input{width:20px;height:20px;margin-top:2px;accent-color:var(--marine)}
.interrupteur{display:flex;align-items:center;gap:12px;font:500 15px/1.4 var(--titre)}
.interrupteur input{position:absolute;opacity:0}
.interrupteur__piste{flex:0 0 auto;position:relative;width:46px;height:26px;border-radius:999px;background:var(--brume);transition:background .2s}
.interrupteur__piste::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.3);transition:transform .2s}
.interrupteur input:checked+.interrupteur__piste{background:var(--marine)}
:root[data-theme="dark"] .interrupteur input:checked+.interrupteur__piste{background:#7FA6E0}
.interrupteur input:checked+.interrupteur__piste::after{transform:translateX(20px)}
.interrupteur input:focus-visible+.interrupteur__piste{outline:3px solid var(--orange);outline-offset:3px}
.bascule{display:inline-flex;border:1px solid var(--brume);border-radius:10px;overflow:hidden;background:var(--surface);justify-self:start}
.bascule button{font:600 14px var(--titre);padding:9px 16px;border:0;background:transparent;color:var(--encre)}
.bascule button[aria-pressed="true"]{background:var(--marine);color:#fff}
:root[data-theme="dark"] .bascule button[aria-pressed="true"]{background:#7FA6E0;color:#0B1A33}
.invitations{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.invitation{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;border:1px solid var(--brume);border-radius:12px;padding:12px 12px}
.invitation code{font:600 15px ui-monospace,Consolas,monospace;letter-spacing:.5px}
.invitation .btn{margin-left:auto}
.invitation--utilisee{opacity:.7}
.liens-legaux{display:flex;flex-wrap:wrap;gap:16px;font:500 14px var(--titre)}
.acces{max-width:420px;margin:0 auto;padding:36px 20px 40px;display:grid;gap:18px;justify-items:stretch;text-align:left}
.acces .marque{justify-self:center}
.acces h1{font-size:28px}
.page--texte h2{font-size:20px;margin-top:12px}
.page--texte p{line-height:1.6}

/* Boutons-liens et boutons de formulaire */
.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;line-height:1.25;align-self:start;justify-self:start}
.formulaire .btn.principal{width:100%;justify-self:stretch}
.acces .btn.discret{justify-self:center}

@media (max-width:560px){.hero__pochette{margin-inline:auto}.hero__texte{justify-items:center;text-align:center}}

/* Changement de page : le contenu apparaît en fondu très court, pour que la navigation paraisse plus fluide */
@keyframes page-entree{from{opacity:0}to{opacity:1}}
.page{animation:page-entree .16s ease-out both}
.popin .page{animation:none}
@media (prefers-reduced-motion:reduce){.page{animation:none}}
.sceau-mini{display:inline-block;width:22px;height:22px;margin-right:8px;vertical-align:-5px}
.texte-unique{color:#7a5400}
:root[data-theme="dark"] .texte-unique{color:#f1dfa0}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .texte-unique{color:#f1dfa0}}
.puce--unique{display:inline-flex;align-items:center;gap:8px}
.puce__sceau{display:inline-block;width:18px;height:18px}
.puce__sceau svg{display:block;width:100%;height:100%}
.puce__sceau .sceau__bord{fill:#C9961A}.puce__sceau .sceau__disque{fill:#F3D77A;stroke:#9A6F0B;stroke-width:.7}.puce__sceau .sceau__etoile{fill:#8A5E08}
.souhaiter--large{padding:11px 16px;font-size:15px;border-radius:10px;gap:9px}
.souhaiter--large svg{width:20px;height:20px}
@media (min-width:900px){.cartes-grille{grid-template-columns:repeat(5,minmax(0,1fr))}}
.cartes-grille li{display:grid;justify-items:center;align-content:start;gap:0}
.cartes-grille li>.carte-lien{width:100%}

/* Pochettes achetées, à ouvrir : un bandeau doré avec les pochettes elles-mêmes */
.a-ouvrir{position:relative;display:grid;gap:12px;padding:16px 18px 18px;border-radius:18px;border:1px solid color-mix(in srgb,#d9b23a 55%,var(--brume));
  background:radial-gradient(ellipse 80% 120% at 0 0,color-mix(in srgb,#d9b23a 22%,transparent),transparent 65%),var(--surface);box-shadow:0 0 0 3px color-mix(in srgb,#d9b23a 10%,transparent)}
.a-ouvrir__titre{margin:0;display:flex;align-items:center;gap:8px;font:700 16px var(--titre);color:var(--marque)}
.a-ouvrir__etincelle{color:#C9961A;font-size:18px;animation:a-ouvrir-brille 2.4s ease-in-out infinite}
@keyframes a-ouvrir-brille{0%,100%{opacity:.5;transform:scale(.9)}50%{opacity:1;transform:scale(1.15)}}
.a-ouvrir__liste{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 24px}
.a-ouvrir__pochette{display:grid;justify-items:center;gap:8px;padding:8px 4px 2px;border-radius:14px;text-decoration:none;color:var(--encre)}
.a-ouvrir__action{font:700 13px var(--titre);color:#fff;background:var(--orange-fort);padding:5px 16px;border-radius:999px}
.a-ouvrir__pochette:hover .a-ouvrir__action{background:var(--marque)}
@media (prefers-reduced-motion:reduce){.a-ouvrir__etincelle{animation:none}}

/* Profil sur ordinateur : deux colonnes */
@media (min-width:900px){
  .page[data-profil]{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
  .page[data-profil]>.page__tete,.page[data-profil]>.encadre{grid-column:1/-1}
}

/* Solde de l'en-tête : la variation flotte sous la pastille quand il change */
.entete .jetons{position:relative}
.jetons__delta{position:absolute;right:6px;top:calc(100% + 2px);font:700 14px var(--titre);font-style:normal;padding:2px 8px;border-radius:999px;pointer-events:none;z-index:5;animation:jetons-delta 1.5s ease-out forwards}
.jetons__delta--gain{color:#14663f;background:#d9f4e5}
.jetons__delta--perte{color:#8c2a1a;background:#fbe3dd}
@keyframes jetons-delta{0%{opacity:0;transform:translateY(-6px) scale(.9)}15%{opacity:1;transform:none}70%{opacity:1}100%{opacity:0;transform:translateY(8px)}}

/* Action n° 1 de l'accueil : acheter des pochettes. Le même nombre que la bulle du menu « Arrivage », en grand et expliqué. */
.action-une{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;align-items:center;padding:16px 18px;border-radius:18px;border:1px solid color-mix(in srgb,var(--orange) 45%,var(--brume));
  background:linear-gradient(135deg,color-mix(in srgb,var(--orange) 14%,var(--surface)),var(--surface) 70%);box-shadow:0 0 0 3px color-mix(in srgb,var(--orange) 9%,transparent)}
.action-une__nombre{display:grid;place-items:center;min-width:54px;height:54px;padding:0 12px;border-radius:999px;background:var(--orange-fort);color:#fff;font:700 28px/1 var(--titre);font-variant-numeric:tabular-nums;box-shadow:0 3px 8px rgba(194,65,12,.35)}
.action-une__texte h2{margin:0;font-size:19px}
.action-une__texte p{margin:2px 0 0;color:var(--doux);font-size:15px}
.action-une .btn{grid-column:1/-1;justify-self:start}
.action-une--limite{border-color:var(--brume);background:var(--surface);box-shadow:none}
.action-une--limite .action-une__nombre{background:var(--doux);box-shadow:none}
.boutique-section{scroll-margin-top:84px}
@media (min-width:700px){.action-une{grid-template-columns:auto 1fr auto;padding:18px 24px}.action-une .btn{grid-column:auto;justify-self:end}.action-une__nombre{min-width:64px;height:64px;font-size:34px}.action-une__texte h2{font-size:22px}}

/* Touche « découverte des métiers » : la couleur des catégories (les six profils RIASEC pour métiers) en fines touches, sans changer la structure des pages */
body{background:radial-gradient(70vw 36vh at 0 0,color-mix(in srgb,var(--c-debut,transparent) 8%,transparent),transparent 70%),radial-gradient(70vw 36vh at 100% 0,color-mix(in srgb,var(--c-fin,transparent) 8%,transparent),transparent 70%),var(--papier);background-repeat:no-repeat}
.entete::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:var(--ruban,transparent);pointer-events:none}
.bloc-page{background:var(--ruban,none) top/100% 3px no-repeat,var(--surface)}
.page__tete h1::after{content:"";display:block;width:64px;height:4px;margin-top:8px;border-radius:2px;background:var(--ruban,var(--orange))}
.section-album__tete{border-bottom:2px solid color-mix(in srgb,var(--cat,var(--brume)) 40%,transparent);padding-bottom:8px}
.section-album__tete h2::before{content:"";display:inline-block;width:11px;height:11px;margin-right:12px;background:var(--cat,var(--orange));transform:rotate(45deg) translateY(-1px);border-radius:2px}

/* Fiche : pastilles d'informations (rang, catégorie, exemplaires, souhaits), cote sur sa ligne, aide repliée */
.pastilles-info{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.pastille-info{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;border:1.5px solid var(--brume);background:var(--surface);font:600 14px var(--titre);color:var(--encre)}
.pastille-info>svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round;flex:none}
.pastille-info--rang{border-color:var(--rang);background:color-mix(in srgb,var(--rang) 10%,var(--surface))}
.pastille-info--rang>svg{fill:var(--rang);stroke:var(--rang)}
.pastille-info__point{width:11px;height:11px;border-radius:3px;background:var(--cat);transform:rotate(45deg);flex:none}
.pastille-info--unique{border-color:#d9b23a;background:linear-gradient(160deg,color-mix(in srgb,#d9b23a 18%,var(--surface)),var(--surface))}
.pastille-info--unique .sceau-mini{margin:0;width:20px;height:20px;vertical-align:baseline}
.fiche__cote{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:12px 0 4px}
.fiche__cote .jetons strong{font:700 26px/1 var(--titre);color:var(--marque)}
.fiche__cote .jetons svg{width:26px;height:26px}
.fiche__cote-etiquette{font:600 13px var(--titre);color:var(--doux)}
.fiche__astuce{display:flex;align-items:center;justify-content:center;gap:7px;margin:12px 0 0;font:500 14px var(--titre);color:var(--doux);text-align:center}
.fiche__astuce svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.fiche__note{margin:0}
.aide-fiche,.signalement{margin-top:4px}
.aide-fiche summary{color:var(--doux);font:600 14px var(--titre)}
.aide-fiche p{margin:8px 0 0;color:var(--doux);font-size:15px}
.souhaiter{white-space:nowrap}

/* Page d'enchère : les trois chiffres qui comptent en tuiles */
.stats-enchere{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.stat-enchere{display:grid;gap:3px;justify-items:center;align-content:center;text-align:center;padding:12px 8px;border-radius:14px;border:1px solid var(--brume);background:var(--surface)}
.stat-enchere__etiquette{font:600 12px var(--titre);color:var(--doux)}
.stat-enchere strong{font:700 22px/1.1 var(--titre);color:var(--marque);font-variant-numeric:tabular-nums}
.stat-enchere--offre{border-color:var(--orange);background:linear-gradient(160deg,color-mix(in srgb,var(--orange) 12%,var(--surface)),var(--surface))}
.stat-enchere .jetons svg{width:22px;height:22px}
.stats-enchere__note{margin:8px 0 0}
.aide-fiche .regles{margin-top:8px}
.boutique--categories small{display:none}   /* le manque de jetons est dit une seule fois, sur les deux grandes pochettes */
.boutique--categories .boutique__article--categorie:has(.pochette-achat:disabled) .prix{opacity:.6}
.profil__col{display:grid;gap:24px;align-content:start;min-width:0}

/* États vides : une pastille à icône, le texte et l'action, centrés (marché, classement) */
.vide--souhaits,.vide--classement,.vide--encheres{display:grid;justify-items:center;gap:12px;text-align:center;padding:24px 16px}
/* L'icône est sur ::after (placée en premier par « order ») : ::before est pris par l'onglet des thèmes à intercalaires (data-onglet) */
.vide--souhaits::after,.vide--classement::after,.vide--encheres::after{content:"";order:-1;width:64px;height:64px;border-radius:50%;border:2px dashed var(--brume);background:var(--icone) center/30px no-repeat}
.vide--souhaits{--icone:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8aa3' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 20s-7-4.6-7-10a4 4 0 0 1 7-2.4A4 4 0 0 1 19 10c0 5.4-7 10-7 10z'/%3E%3C/svg%3E")}
.vide--classement{--icone:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8aa3' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M7 4h10v4a5 5 0 0 1-10 0z'/%3E%3Cpath d='M12 13v4M8 20h8'/%3E%3C/svg%3E")}
.vide--encheres{--icone:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8aa3' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")}
.vide--souhaits p,.vide--classement p,.vide--encheres{margin:0}
.vide--souhaits[hidden],.vide--classement[hidden],.vide--encheres[hidden]{display:none}
@media (max-width:520px){.boutique__titre{font-size:15px}.boutique__desc{font-size:11px;max-width:none}}
.vide .btn{justify-self:center}

/* Pochettes à ouvrir, dans le bloc « Pochettes » : une pile par type, avec le nombre en tout */
.action-une .a-ouvrir{grid-column:1/-1;border:0;background:none;box-shadow:none;margin-top:20px;padding:20px 0 0;border-top:2px dashed color-mix(in srgb,var(--orange) 35%,var(--brume));border-radius:0}
.pile-ouvrir{position:relative}
.pile-ouvrir__pile{display:grid;padding:var(--marge) var(--marge) 0 0}
.pile-ouvrir__carte{grid-area:1/1;display:block;transform-origin:50% 100%;transform:translate(var(--dx,0),var(--dy,0)) rotate(var(--rot,0deg));filter:brightness(calc(1 - var(--i) * .07));transition:transform .2s ease}
.pile-ouvrir:hover .pile-ouvrir__carte:last-child{transform:translateY(-5px) rotate(-1.5deg)}
.pile-ouvrir:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
.pile-ouvrir__nombre{position:absolute;top:2px;left:-2px;z-index:5;min-width:34px;padding:3px 9px;border-radius:999px;background:var(--marque);color:var(--papier);font:700 15px/1.2 var(--titre);text-align:center;box-shadow:0 2px 6px rgba(0,45,98,.35);font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:reduce){.pile-ouvrir__carte{transition:none}}

/* Les piles de pochettes respirent : de l'air autour, comme les cartes de l'album */
.action-une .a-ouvrir__liste{gap:24px 36px;padding:8px 8px 8px}
.action-une .a-ouvrir__titre{margin-bottom:4px}
.liens-legaux--centre{justify-content:center;margin:8px 0 0;font-size:13px}
.liens-legaux--centre a{color:var(--doux)}

/* Piles de pochettes : ombre et lueur visibles mais mesurées (entre l'effet d'origine, trop fort, et la première version adoucie, trop faible) */
.pile-ouvrir .pochette{filter:drop-shadow(0 8px 9px rgba(0,20,60,.27))}
.pile-ouvrir .pochette.argentee{filter:drop-shadow(0 8px 9px rgba(40,50,70,.28)) drop-shadow(0 0 10px rgba(190,200,215,.5))}
.pile-ouvrir .pochette.doree{filter:drop-shadow(0 8px 9px rgba(120,80,0,.28)) drop-shadow(0 0 11px rgba(240,200,80,.5))}
.pile-ouvrir__carte:not(:last-child) .pochette{filter:drop-shadow(0 3px 4px rgba(0,20,60,.2))}
.regle-liste{list-style:none;margin:0;padding:0;display:grid;gap:2px}

/* Album sur petit écran : la barre de recherche garde toute la largeur utile, le nombre de cartes passe en dessous */
@media (max-width:520px){.outils__ligne{flex-wrap:wrap}.outils__ligne .champ-recherche{flex:1 1 55%}.outils__compte{order:3;flex:1 0 100%;margin-left:0;text-align:right;font-size:13px}}

/* Album : repère de fin, avec l'indication de chargement de la suite */
.album-suite{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:center;padding:24px 0 8px;font:500 15px var(--titre);color:var(--doux)}
.album-suite[hidden]{display:none}
.reglage-mouvement{display:grid;gap:8px;margin-top:12px}
.fiche__invite{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;justify-content:center;margin:8px 0 0}
.fiche__invite[hidden]{display:none}
.reglage-mesure{display:grid;gap:8px;margin:16px 0}
.reglage-mesure[hidden]{display:none}
/* Pochette de catégorie sans assez de cartes (catégorie encore vide) : grisée et barrée d'une croix */
.boutique__article--indispo .pochette-achat{position:relative}
.boutique__article--indispo .pochette-achat::after{content:"";position:absolute;inset:14% 10%;pointer-events:none;background:linear-gradient(to top right,transparent calc(50% - 1.5px),var(--doux) calc(50% - 1.5px) calc(50% + 1.5px),transparent calc(50% + 1.5px)),linear-gradient(to bottom right,transparent calc(50% - 1.5px),var(--doux) calc(50% - 1.5px) calc(50% + 1.5px),transparent calc(50% + 1.5px))}
.boutique__article--indispo .boutique__titre,.boutique__article--indispo .prix{opacity:.55}
.boutique--categories .boutique__article--indispo small{display:block;font-size:12px;line-height:1.25;opacity:.85}   /* « pas disponible pour l'instant » reste dit sous chaque catégorie vide */

/* Menu de l'en-tête exactement centré sur ordinateur, quel que soit le thème, pour un joueur connecté comme pour un visiteur : deux colonnes latérales égales (minmax(0,1fr)),
   le menu au milieu. Un joueur connecté dès 1000 px. Un visiteur dès 1181 px : ses deux gros boutons demandent la largeur du contenu public (1080 px) ; en dessous, l'en-tête garde sa disposition d'avant. */
@media (min-width:1000px){
  .entete:not(:has(.entete__droite .btn)){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
  .entete:not(:has(.entete__droite .btn)) .entete__nav{justify-self:center;margin-left:0}
}
@media (min-width:1181px){
  .entete:has(.entete__droite .btn){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);padding-left:max(24px,calc((100% - 1080px)/2 + 18px));padding-right:max(24px,calc((100% - 1080px)/2 + 18px))}
  .entete:has(.entete__droite .btn) .entete__nav{justify-self:center;margin-left:0}
  .entete:has(.entete__droite .btn) .entete__droite{justify-self:end}
}

