﻿/* C:\Users\fcsse\mon-site-jeux-video\style.css */
/* ====== PHASE 2: Steam Glass + animations + shine + mobile polish ====== */

/* ====== VARIABLES ====== */
:root{
  --bg0: #070b14;
  --bg1: #0a1224;
  --bg2: #0b1d35;

  --glass: rgba(16, 24, 40, 0.52);
  --glass-2: rgba(16, 24, 40, 0.36);
  --glass-border: rgba(255,255,255,0.10);

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);

  --blue: rgba(102,192,244,1);
  --blue-weak: rgba(102,192,244,0.18);
  --purple-weak: rgba(155,89,182,0.16);
  --green-weak: rgba(46,204,113,0.10);

  --red: rgba(231, 76, 60, 1);

  /* ✅ Liseré jaune (discret) */
  --yellow: #DCAE3A;
--yellow-weak: rgba(220,174,58,0.16);
--yellow-veryweak: rgba(220,174,58,0.08);

  --shadow: 0 22px 60px rgba(0,0,0,0.55);
  --shadow-soft: 0 14px 38px rgba(0,0,0,0.35);

  --radius: 18px;
  --radius-2: 22px;

    --ease: cubic-bezier(.2,.8,.2,1);

  --rt-yellow: #DCAE3A;
  --rt-yellow-soft: #E6C55A;
  --rt-yellow-glow: rgba(220, 174, 58, 0.35);
  --rt-black: rgba(10,12,18,.92);
}

body.theme-light{
  --bg0: #eef3f9;
  --bg1: #f7f9fc;
  --bg2: #dde7f3;

  --glass: rgba(255, 255, 255, 0.88);
  --glass-2: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(12, 24, 48, 0.10);

  --text: rgba(12, 18, 28, 0.94);
  --muted: rgba(12, 18, 28, 0.62);

  --blue: rgba(52, 122, 226, 1);
  --blue-weak: rgba(52, 122, 226, 0.12);
  --purple-weak: rgba(155, 89, 182, 0.10);
  --green-weak: rgba(46, 204, 113, 0.12);

  --red: rgba(220, 68, 55, 1);

  --yellow: #DCAE3A;
--yellow-weak: rgba(220,174,58,0.12);
--yellow-veryweak: rgba(220,174,58,0.06);

  --shadow: 0 18px 40px rgba(20, 30, 50, 0.12);
  --shadow-soft: 0 10px 24px rgba(20, 30, 50, 0.08);
}

/* ====== BASE ====== */
*{ box-sizing: border-box; }
html,body{ min-height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 12% 12%, rgba(102,192,244,0.18), transparent 60%),
    radial-gradient(800px 500px at 85% 18%, rgba(155,89,182,0.16), transparent 62%),
    radial-gradient(900px 540px at 45% 90%, rgba(46,204,113,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 45%, var(--bg2));
  overflow-x: hidden;
  background-color: var(--bg0);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Subtle noise overlay */
.bg-noise{
  position: fixed;
  inset: 0;
  pointer-events:none;
  z-index: 0;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* ====== LAYOUT ====== */
.container{
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 36px));
  margin: 22px auto 60px;
}

/* ====== Topbar ====== */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: calc(28px + env(safe-area-inset-top)) 20px 28px;
  border-radius: var(--radius-2);
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeUp .42s var(--ease) both;
  position: relative;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.brand h1{
  margin:0;
  font-size: 22px;
  letter-spacing: 0.2px;
}
.brand p{
  margin:2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.logo{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.26), transparent 55%),
    linear-gradient(135deg, rgba(102,192,244,0.80), rgba(155,89,182,0.55));
  box-shadow:
    0 12px 26px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.10) inset;
  animation: pop .55s var(--ease) both;
}

/* ====== NAV ====== */
.nav{
  display:flex;
  align-items:center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Mobile: make nav scrollable pill row */
@media (max-width: 860px){
  .nav{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    max-width: 100%;
  }
  .nav::-webkit-scrollbar{ height: 6px; }
  .nav::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
  }
}

.nav a{
  color: rgba(255,255,255,0.82);
  text-decoration:none;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.03);
  transition: transform .14s var(--ease), background .14s var(--ease), border-color .14s var(--ease), box-shadow .14s var(--ease), filter .14s var(--ease);
  white-space: nowrap;
}
.nav a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}
.nav a.active{
  background: rgba(102,192,244,0.12);
  border-color: rgba(102,192,244,0.25);
  box-shadow: 0 0 0 2px rgba(102,192,244,0.10) inset;
}

/* ====== HERO / GRID ====== */
.hero{
  margin: 18px 0 14px;
  padding: 18px 18px;
  border-radius: var(--radius-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 40px rgba(0,0,0,0.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeUp .55s var(--ease) both;
  position: relative;
}

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 860px){
  .grid{ grid-template-columns: 1fr; }
}

/* ====== CARD (Glass + Shine) ====== */
.card{
  padding: 16px 16px;
  border-radius: var(--radius-2);
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  animation: fadeUp .55s var(--ease) both;
}

/* ambient color glow inside */
.card::before{
  content:"";
  position:absolute;
  inset: -1px;
  background:
    radial-gradient(600px 220px at 10% 0%, rgba(102,192,244,0.12), transparent 55%),
    radial-gradient(600px 220px at 90% 10%, rgba(155,89,182,0.12), transparent 55%);
  opacity: 0.9;
  pointer-events:none;
}

/* shine sweep */
.card::after{
  content:"";
  position:absolute;
  inset: -60% -40%;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  transform: translateX(-35%) rotate(10deg);
  opacity: 0;
  pointer-events:none;
}

.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 26px 70px rgba(0,0,0,0.58);
}
.card:hover::after{
  opacity: 1;
  animation: shine 1.05s var(--ease);
}

.card > *{ position: relative; z-index: 1; }

.card h2{
  margin: 0 0 10px 0;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.muted{
  color: var(--muted);
  margin: 6px 0;
  font-size: 13px;
}

.footer{
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.62);
}

/* ====== ROW / VIEWBAR ====== */
.row{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}
.viewbar{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ====== BADGE ====== */
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

/* ====== INPUTS ====== */
.input{
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(8, 12, 22, 0.35);
  color: rgba(255,255,255,0.92);
  outline: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  transition: border-color .14s var(--ease), box-shadow .14s var(--ease), transform .14s var(--ease), filter .14s var(--ease);
}
.input::placeholder{ color: rgba(255,255,255,0.45); }
.input:focus{
  border-color: rgba(102,192,244,0.35);
  box-shadow: 0 0 0 3px rgba(102,192,244,0.12), 0 12px 26px rgba(0,0,0,0.30);
}

/* ====== BUTTONS (luminous glow) ====== */
.btn, .btn-ghost{
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2px;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), background .14s var(--ease), border-color .14s var(--ease), filter .14s var(--ease);
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

/* Primary */
.btn{
  color: rgba(8, 12, 22, 0.92);
  background: linear-gradient(135deg, rgba(102,192,244,0.95), rgba(155,89,182,0.75));
  box-shadow:
    0 14px 34px rgba(0,0,0,0.35),
    0 0 22px rgba(102,192,244,0.18);
}
.btn::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 16px;
  background: radial-gradient(160px 80px at 20% 20%, rgba(255,255,255,0.28), transparent 62%);
  opacity: 0.55;
  pointer-events:none;
}
.btn:hover{
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow:
    0 18px 44px rgba(0,0,0,0.44),
    0 0 34px rgba(102,192,244,0.26),
    0 0 0 1px rgba(255,255,255,0.14) inset;
}
.btn:active{
  transform: translateY(0px) scale(0.99);
}

/* Secondary */
.btn-ghost{
  color: rgba(255,255,255,0.90);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 26px rgba(0,0,0,0.28);
}
.btn-ghost:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.16);
  box-shadow:
    0 16px 34px rgba(0,0,0,0.34),
    0 0 22px rgba(102,192,244,0.12);
}
.btn-ghost:active{
  transform: translateY(0px) scale(0.99);
}

/* Danger */
.btn-ghost.danger{
  border-color: rgba(231,76,60,0.25);
  background: rgba(231,76,60,0.06);
}
.btn-ghost.danger:hover{
  border-color: rgba(231,76,60,0.35);
  box-shadow:
    0 16px 34px rgba(0,0,0,0.34),
    0 0 24px rgba(231,76,60,0.18);
}

/* ====== COLLECTION ====== */
.collection-grid{
  margin-top: 12px;
  display: grid;
  gap: 12px;
}
.collection-grid.view-list{ grid-template-columns: 1fr; }
.collection-grid.view-small{ grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.collection-grid.view-medium{ grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.game-card{
  border-radius: var(--radius-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 46px rgba(0,0,0,0.40);
  padding: 12px;
  overflow: hidden;
  display:flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.game-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}

.game-left{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}

.game-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 14px;
}
.game-meta{
  margin: 4px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
}

.game-actions{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.game-actions .btn-ghost{
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
}

/* ===== Covers (base commune) ===== */
.game-cover-list,
.game-cover-tile,
.music-cover-list,
.music-cover-tile,
.latest-cover{
  display:block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
}

/* ===== LISTE : petite jaquette à gauche ===== */
.collection-grid.view-list .game-cover-list,
.collection-grid.view-list .music-cover-list{
  width: 72px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.42);
  flex: 0 0 auto;
}

/* ===== VIGNETTES : l’image remplit la card ===== */
.collection-grid.view-small .game-cover-tile,
.collection-grid.view-medium .game-cover-tile,
.collection-grid.view-small .music-cover-tile,
.collection-grid.view-medium .music-cover-tile{
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(0,0,0,0.48);
}

/* Un léger plus pour medium */
.collection-grid.view-medium .game-cover-tile,
.collection-grid.view-medium .music-cover-tile{
  border-radius: 18px;
}

/* ===== Latest (petite cover verticale) ===== */
.latest-cover{
  width:44px;
  height:60px;
  border-radius:14px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.42);
  flex: 0 0 auto;
}

/* ===== FIX MODAL : inputs (tarif etc.) trop grands ===== */
.modal-grid .input{
  height: 44px;
  padding: 10px 12px;
}
.modal-grid select.input{
  height: 44px;
  padding: 10px 12px;
}

/* ====== CANVAS ====== */
canvas.chart{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

/* ====== LINKS / HR ====== */
a{ color: var(--blue); }
hr{
  border: none;
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* ====== Animations ====== */
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes pop{
  0%{ transform: scale(0.96); opacity:0; }
  100%{ transform: scale(1); opacity:1; }
}
@keyframes shine{
  0%{ transform: translateX(-35%) rotate(10deg); }
  100%{ transform: translateX(35%) rotate(10deg); }
}

/* ====== Reduced motion ====== */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* ===== Fix: fond noir pour les <select> ===== */
select.input{
  background: rgba(0,0,0,0.55) !important;
  color: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}
select.input option{
  background: #0b1220;
  color: rgba(255,255,255,0.92);
}

/* ===== TOPBAR WIDE (plus large) + GLOBAL SEARCH + BRAND ===== */

/* Bandeau plus large encore */
.topbar.topbar--wide{
  width: calc(100% + 80px);
  margin-left: -40px;
  margin-right: -40px;
}

@media (max-width: 980px){
  .topbar.topbar--wide{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Enlever le carré bleu à gauche */
.topbar .brand .logo{
  display: none !important;
}

/* RETROLLECT.FR un peu plus gros */
.topbar .brand h1{
  font-size: 26px;
  letter-spacing: 0.6px;
}

/* Zone recherche au centre */
.topbar-search{
  flex: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width: 260px;
}

.topbar-search__wrap{
  width: min(560px, 100%);
  display:flex;
  gap: 10px;
  align-items:center;
}

.topbar-search__select{
  width: 125px;
  padding: 10px 10px;
}

.topbar-search__input{
  flex: 1;
  min-width: 160px;
}

/* ✅ Bouton recherche MODERNE (glass) */
.topbar-search__btn{
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);

  box-shadow: 0 14px 30px rgba(0,0,0,0.30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition: transform .14s var(--ease), background .14s var(--ease), border-color .14s var(--ease), box-shadow .14s var(--ease), filter .14s var(--ease);
}
.topbar-search__btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  box-shadow:
    0 18px 38px rgba(0,0,0,0.38),
    0 0 22px rgba(102,192,244,0.14);
}
.topbar-search__btn:active{
  transform: translateY(0px) scale(0.99);
}
.topbar-search__btn svg{
  opacity: .95;
}

/* Responsive : recherche passe en dessous si besoin */
@media (max-width: 860px){
  .topbar{
    flex-wrap: wrap;
  }
  .topbar-search{
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .topbar-search__wrap{
    width: 100%;
  }
}

/* ===== Logo RETROLLECT.FR plus net ===== */
.brand h1{
  font-weight: 1000;
  letter-spacing: 1px;
  color: var(--yellow);

  text-shadow:
    0 1px 0 rgba(0,0,0,.6),
    0 0 6px rgba(220,174,58,.25);

  -webkit-font-smoothing: antialiased;
  transform: translateY(-1px);
}

/* =========================================================
   HUB COLLECTIONS : "BIENTÔT" (NE TOUCHE PAS AU BANDEAU)
   -> s'applique uniquement sur .hub-card.coming-soon
   ========================================================= */

.hub-card.coming-soon{
  filter: saturate(0.55) brightness(0.80);
  cursor: default;
}
.hub-card.coming-soon:hover{
  transform: none;
  box-shadow: 0 18px 46px rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.12);
}
.hub-card.coming-soon::after{
  opacity: 0 !important;
  animation: none !important;
}

.hub-card.coming-soon .hub-cover{
  filter: grayscale(0.35) brightness(0.80);
}

.hub-badge-coming{
  position:absolute;
  top: 12px;
  right: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .3px;

  background: linear-gradient(135deg, rgba(102,192,244,0.95), rgba(155,89,182,0.85));
  color: rgba(8,12,22,0.95);

  box-shadow:
    0 10px 26px rgba(0,0,0,0.35),
    0 0 16px rgba(102,192,244,0.25);

  z-index: 3;
  pointer-events: none;
}

/* ===== Fix Chrome: enlever les boutons des input number (les "carrés") ===== */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"]{
  -moz-appearance: textfield; /* Firefox */
  appearance: textfield;
}

/* =========================================================
   ✅ LISERÉ JAUNE TRÈS DISCRET (sans casser tes pseudo-elements)
   - .card : ::after déjà pris (shine) => on fait le liseré via box-shadow
   - .topbar + .hero : on peut utiliser ::after (pas de conflit)
   ========================================================= */

.topbar::after,
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  box-shadow:
    0 0 0 1px var(--yellow-veryweak),
    0 0 0 2px rgba(255,224,102,0.03);
  opacity: 0.9;
}

/* Liseré sur .card via box-shadow (compatible avec ::before + ::after existants) */
.card{
  box-shadow:
    var(--shadow),
    0 0 0 1px var(--yellow-veryweak);
}
.card:hover{
  box-shadow:
    0 26px 70px rgba(0,0,0,0.58),
    0 0 0 1px var(--yellow-weak);
}
/* Page compte : descendre la card sous le bandeau */
.account-card{
  margin-top: 18px; /* mets 24px si tu veux plus d'air */
}
/* ✅ Page account : plus d'espace entre les 2 colonnes (Abonnement / Profil public) */
.account-card .grid{
  gap: 28px;
}

@media (max-width: 860px){
  .account-card .grid{
    gap: 14px; /* comme avant en mobile */
  }
}
/* ===== Badge plan (header) ===== */
.nav-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.92);
  font-weight:900;
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}

.nav-badge--free{
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}

.nav-badge--premium{
  border-color: rgba(102,192,244,.25);
  box-shadow: 0 10px 30px rgba(102,192,244,0.12);
}



.btn{
  position: relative;
  overflow: hidden;

  background: linear-gradient(180deg, var(--rt-yellow-soft), var(--rt-yellow));
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--rt-black) !important;
  font-weight: 950;
  letter-spacing: .3px;

  box-shadow:
    0 18px 40px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.06) inset;

  transition:
    transform .14s var(--ease),
    box-shadow .18s var(--ease),
    filter .18s var(--ease);
}

/* Glow subtil */
.btn::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 30px var(--rt-yellow-glow);
  opacity: 0;
  transition: opacity .18s var(--ease);
  pointer-events: none;
}

/* Hover */
.btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.03) saturate(1.05);

  box-shadow:
    0 24px 55px rgba(0,0,0,0.45),
    0 0 20px rgba(255,213,74,0.35);
}

.btn:hover::after{
  opacity: 1;
}

/* Active */
.btn:active{
  transform: translateY(0px) scale(0.98);
  filter: brightness(0.98);
}

/* Disabled */
.btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================================
   Steam Glass buttons (spécifique compte)
   ========================================= */

.btn-glass{
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.12),
    rgba(255,255,255,0.05)
  ) !important;

  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9) !important;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow:
    0 14px 35px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.15);

  font-weight: 900;
  letter-spacing: .2px;
}

.btn-glass:hover{
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.08)
  ) !important;

  transform: translateY(-1px);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-glass:active{
  transform: translateY(0px) scale(0.98);
}
/* ===== Topbar search button = Steam glass (override .btn jaune) ===== */
.topbar-search__btn.btn{
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: rgba(255,255,255,0.92) !important;

  box-shadow:
    0 14px 30px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.10) !important;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transform: none !important;
  filter: none !important;
}

.topbar-search__btn.btn:hover{
  background: rgba(255,255,255,0.09) !important;
  border-color: rgba(255,255,255,0.20) !important;

  box-shadow:
    0 18px 40px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.14) !important;
}

.topbar-search__btn.btn:active{
  transform: translateY(0) scale(0.99) !important;
}
/* ===== RETROLLECT Export/Import pre box ===== */
.rt-pre{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.90);
  box-shadow: 0 14px 32px rgba(0,0,0,0.30);
  overflow: auto;
  max-height: 320px;
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Toast container (si absent ailleurs) */
.toast-wrap{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100% - 32px));
}

.toast{
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(12, 18, 32, 0.92);
  box-shadow: 0 18px 45px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.toast--ok{ border-color: rgba(46,204,113,0.22); }
.toast--err{ border-color: rgba(231,76,60,0.28); }

/* =========================
   THEME CLAIR — toast
========================= */

body.theme-light .toast{
  background: rgba(255,255,255,0.92) !important;
  color: rgba(12,18,28,0.92) !important;
  border: 1px solid rgba(12,24,48,0.10) !important;
  box-shadow: 0 18px 45px rgba(20,30,50,0.10) !important;
}

body.theme-light .toast--ok{
  border-color: rgba(46,204,113,0.18) !important;
}

body.theme-light .toast--err{
  border-color: rgba(220,68,55,0.18) !important;
}




/* ✅ ACCOUNT UNIQUEMENT : 2 colonnes 50/50 propres */
.page-account .account-two{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

/* évite que les contenus “forcent” et écrasent les colonnes */
.page-account .account-left,
.page-account .account-right{
  min-width: 0;
}

@media (max-width: 980px){
  .page-account .account-two{
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Account : Email + Password côte à côte */
.page-account .account-security{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 10px;
}

.page-account .account-form{
  display: grid;
  gap: 10px;
}

@media (max-width: 980px){
  .page-account .account-security{
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
/* ========================= */
/* 👤 Avatar Premium */
/* ========================= */

.avatar-section{
  display:flex;
  gap:30px;
  align-items:center;
  flex-wrap:wrap;
}

.avatar-wrapper{
  position:relative;
  width:130px;
  height:130px;
}

.avatar-img,
.avatar-fallback{
  width:130px;
  height:130px;
  border-radius:50%;
  object-fit:cover;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:48px;
  font-weight:900;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.15);
  transition:all .25s ease;
}

.avatar-img{
  display:none;
}

.avatar-fallback{
  background:linear-gradient(135deg,#66c0f4,#9b59ff);
  color:white;
}

.avatar-wrapper:hover .avatar-img,
.avatar-wrapper:hover .avatar-fallback{
  transform:scale(1.05);
}

.avatar-glow{
  position:absolute;
  inset:-6px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(102,192,244,.4), transparent 70%);
  filter:blur(12px);
  opacity:.6;
  animation:avatarPulse 3s infinite ease-in-out;
}

@keyframes avatarPulse{
  0%{opacity:.4; transform:scale(.95);}
  50%{opacity:.8; transform:scale(1.05);}
  100%{opacity:.4; transform:scale(.95);}
}

.avatar-controls{
  display:flex;
  flex-direction:column;
  gap:10px;
}
#lookup::placeholder,
#discogsQ::placeholder{
  color:#c9b86a;
}


/* =========================
   THEME CLAIR — page jeux / cartes / boutons glass
========================= */

body.theme-light .hero,
body.theme-light .card,
body.theme-light .scanbar,
body.theme-light .modal-preview {
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.72));
  border-color: rgba(12, 24, 48, 0.10);
  box-shadow: 0 14px 36px rgba(20, 30, 50, 0.08);
}

body.theme-light .game-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(248,250,253,0.78));
  border: 1px solid rgba(12, 24, 48, 0.10);
  box-shadow: 0 10px 28px rgba(20, 30, 50, 0.08);
}

body.theme-light .game-title,
body.theme-light .game-meta,
body.theme-light .help-mini,
body.theme-light .scan-pill,
body.theme-light .scan-pill.muted,
body.theme-light .footer,
body.theme-light .modal-head h3,
body.theme-light #modalSub,
body.theme-light #m_previewTitle,
body.theme-light #m_previewMeta,
body.theme-light #info,
body.theme-light .barcode-row .muted,
body.theme-light .filters-row .muted,
body.theme-light .hero .muted {
  color: rgba(12, 18, 28, 0.88) !important;
}

body.theme-light .muted {
  color: rgba(12, 18, 28, 0.60) !important;
}

body.theme-light .game-cover-list,
body.theme-light .game-cover-tile,
body.theme-light .modal-preview img {
  background: rgba(220, 228, 238, 0.55);
  border-color: rgba(12, 24, 48, 0.10);
}

/* =========================
   THEME CLAIR — message info / toast
========================= */

body.theme-light #info{
  background: rgba(255,255,255,0.82) !important;
  color: rgba(12,18,28,0.92) !important;
  border: 1px solid rgba(12,24,48,0.10) !important;
  box-shadow: 0 10px 26px rgba(20,30,50,0.08) !important;
  backdrop-filter: blur(6px);
}


/* boutons foncés mais avec effet glass */
body.theme-light .barcode-actions .btn,
body.theme-light .game-actions .btn,
body.theme-light .game-actions .btn-ghost,
body.theme-light .email-verify-banner .btn,
body.theme-light .email-verify-banner .btn-ghost,
body.theme-light .email-verify-banner a {
  background: linear-gradient(180deg, rgba(20, 28, 42, 0.88), rgba(20, 28, 42, 0.72));
  color: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 24px rgba(20, 30, 50, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


body.theme-light .barcode-actions .btn:hover,
body.theme-light .game-actions .btn:hover,
body.theme-light .game-actions .btn-ghost:hover,
body.theme-light .email-verify-banner .btn:hover,
body.theme-light .email-verify-banner .btn-ghost:hover,
body.theme-light .email-verify-banner a:hover {
  background: linear-gradient(180deg, rgba(12, 20, 32, 0.94), rgba(12, 20, 32, 0.80));
  color: rgba(255,255,255,0.98);
}

body.theme-light .barcode-actions a,
body.theme-light .game-actions a,
body.theme-light .email-verify-banner a {
  text-decoration: none;
}

/* scan pills plus lisibles en clair */
body.theme-light .scan-pill {
  background: rgba(20, 28, 42, 0.10);
  border-color: rgba(12, 24, 48, 0.10);
  color: rgba(12, 18, 28, 0.88);
}

/* modal plus claire */
body.theme-light .modal {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(245,248,252,0.90));
  border: 1px solid rgba(12, 24, 48, 0.10);
  box-shadow: 0 30px 80px rgba(20, 30, 50, 0.16);
}

body.theme-light .modal-close {
  background: rgba(20, 28, 42, 0.06);
  color: rgba(12, 18, 28, 0.88);
  border-color: rgba(12, 24, 48, 0.10);
}

body.theme-light .textarea {
  background: rgba(255,255,255,0.86);
  color: rgba(12, 18, 28, 0.92);
  border-color: rgba(12, 24, 48, 0.10);
}

/* =========================
   THEME CLAIR — texte boutons
========================= */

body.theme-light .btn,
body.theme-light .btn-ghost {
  color: rgba(12,18,28,0.92);
}

body.theme-light .btn:hover,
body.theme-light .btn-ghost:hover {
  color: rgba(12,18,28,1);
}

/* boutons du hub */
body.theme-light .hub-card .btn,
body.theme-light .hub-card .btn-ghost {
  color: rgba(12,18,28,0.92);
}

/* boutons stats / import export */
body.theme-light .row .btn,
body.theme-light .row .btn-ghost {
  color: rgba(12,18,28,0.92);
}

/* =========================
   THEME CLAIR — page cartes
========================= */

/* cartes / vignettes */
body.theme-light .card-item,
body.theme-light .collection-card,
body.theme-light .carte-card,
body.theme-light .cards-grid > div {
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(248,250,253,0.78));
  border: 1px solid rgba(12, 24, 48, 0.10);
  box-shadow: 0 10px 28px rgba(20, 30, 50, 0.08);
}

/* textes des cartes */
body.theme-light .card-item,
body.theme-light .collection-card,
body.theme-light .carte-card,
body.theme-light .card-item p,
body.theme-light .collection-card p,
body.theme-light .carte-card p,
body.theme-light .card-item .muted,
body.theme-light .collection-card .muted,
body.theme-light .carte-card .muted,
body.theme-light .cards-grid .muted {
  color: rgba(12,18,28,0.88) !important;
}

/* boutons des cartes : texte noir */
body.theme-light .card-item .btn,
body.theme-light .card-item .btn-ghost,
body.theme-light .collection-card .btn,
body.theme-light .collection-card .btn-ghost,
body.theme-light .carte-card .btn,
body.theme-light .carte-card .btn-ghost,
body.theme-light .cards-grid .btn,
body.theme-light .cards-grid .btn-ghost {
  color: rgba(12,18,28,0.92) !important;
}

/* étoile wishlist non cochée visible */
body.theme-light [data-wish] {
  color: rgba(12,18,28,0.82) !important;
}

body.theme-light [data-wish]:hover {
  color: rgba(12,18,28,1) !important;
}

/* étoile wishlist cochée */
body.theme-light [data-wish].active,
body.theme-light [data-wish][aria-pressed="true"] {
  color: #d4a400 !important;
}

/* modale fiche cartes en clair */
body.theme-light .modal,
body.theme-light .modal__card,
body.theme-light .modal-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(245,248,252,0.90)) !important;
  border: 1px solid rgba(12, 24, 48, 0.10) !important;
  box-shadow: 0 30px 80px rgba(20, 30, 50, 0.16) !important;
}

body.theme-light .modal,
body.theme-light .modal__card,
body.theme-light .modal-card,
body.theme-light .modal p,
body.theme-light .modal label,
body.theme-light .modal h2,
body.theme-light .modal h3,
body.theme-light .modal .muted,
body.theme-light .modal__card p,
body.theme-light .modal__card label,
body.theme-light .modal__card h2,
body.theme-light .modal__card h3,
body.theme-light .modal__card .muted {
  color: rgba(12,18,28,0.88) !important;
}

body.theme-light .modal .input,
body.theme-light .modal select,
body.theme-light .modal textarea,
body.theme-light .modal__card .input,
body.theme-light .modal__card select,
body.theme-light .modal__card textarea {
  background: rgba(255,255,255,0.86) !important;
  color: rgba(12,18,28,0.92) !important;
  border-color: rgba(12, 24, 48, 0.10) !important;
}

body.theme-light .modal .btn,
body.theme-light .modal .btn-ghost,
body.theme-light .modal__card .btn,
body.theme-light .modal__card .btn-ghost {
  color: rgba(12,18,28,0.92) !important;
}

/* =========================
   THEME CLAIR — cartes : états + fermeture modal
========================= */

/* texte d'état / badges sur les vignettes cartes */
body.theme-light .etat,
body.theme-light .state,
body.theme-light .condition,
body.theme-light .badge,
body.theme-light .pill,
body.theme-light .tag,
body.theme-light .card-badge,
body.theme-light .card-state,
body.theme-light .card-condition,
body.theme-light .carte-badge,
body.theme-light .carte-state,
body.theme-light .carte-condition {
  color: rgba(12,18,28,0.88) !important;
  border-color: rgba(12,24,48,0.10) !important;
}

/* si les états sont dans un texte muted */
body.theme-light .cards-grid .muted,
body.theme-light .carte-card .muted,
body.theme-light .collection-card .muted {
  color: rgba(12,18,28,0.68) !important;
}

/* croix / bouton fermer de la modale */
body.theme-light .modal-close,
body.theme-light .modal__close,
body.theme-light .close,
body.theme-light [data-close],
body.theme-light button[aria-label="Fermer"] {
  color: rgba(12,18,28,0.88) !important;
  background: rgba(20,28,42,0.06) !important;
  border: 1px solid rgba(12,24,48,0.10) !important;
}

body.theme-light .modal-close:hover,
body.theme-light .modal__close:hover,
body.theme-light .close:hover,
body.theme-light [data-close]:hover,
body.theme-light button[aria-label="Fermer"]:hover {
  color: rgba(12,18,28,1) !important;
  background: rgba(20,28,42,0.10) !important;
}

/* =========================
   THEME CLAIR — correction précise page cartes
========================= */

/* textes des vignettes cartes */
body.theme-light .card-item .card-name {
  color: rgba(12,18,28,0.92) !important;
}

body.theme-light .card-item .card-meta {
  color: rgba(12,18,28,0.68) !important;
}

/* pills / états / petits badges */
body.theme-light .pill {
  color: rgba(12,18,28,0.88) !important;
  background: rgba(20,28,42,0.06) !important;
  border-color: rgba(12,24,48,0.10) !important;
}

/* boutons du haut de la page cartes */
body.theme-light .cards-topbar-right .btn,
body.theme-light .cards-topbar-right .btn-ghost,
body.theme-light .cards-topbar-left .btn,
body.theme-light .cards-topbar-left .btn-ghost {
  color: rgba(12,18,28,0.92) !important;
}

/* wishlist non cochée visible */
body.theme-light .card-item button[title="Wishlist"] {
  color: rgba(12,18,28,0.72) !important;
}

/* wishlist cochée */
body.theme-light .card-item button[title="Wishlist"][style*="#f1c40f"] {
  color: #d4a400 !important;
}

/* modale principale cartes */
body.theme-light .modal__card {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(245,248,252,0.90)) !important;
  border: 1px solid rgba(12,24,48,0.10) !important;
  box-shadow: 0 30px 80px rgba(20,30,50,0.16) !important;
}

/* texte dans la modale */
body.theme-light .modal__title,
body.theme-light .modal__head,
body.theme-light .modal__body,
body.theme-light .modal__body .tiny,
body.theme-light .modal__body .muted,
body.theme-light .modal__body label,
body.theme-light .modal__body p,
body.theme-light #mSub,
body.theme-light #cardModalMsg {
  color: rgba(12,18,28,0.88) !important;
}

/* croix de fermeture */
body.theme-light .modal__close,
body.theme-light #cardModal .btn-ghost {
  color: rgba(12,18,28,0.88) !important;
  background: rgba(20,28,42,0.06) !important;
  border: 1px solid rgba(12,24,48,0.10) !important;
}

body.theme-light .modal__close:hover,
body.theme-light #cardModal .btn-ghost:hover {
  color: rgba(12,18,28,1) !important;
  background: rgba(20,28,42,0.10) !important;
}

/* inputs / textarea dans la modale */
body.theme-light .modal .input,
body.theme-light .modal textarea,
body.theme-light .modal select {
  background: rgba(255,255,255,0.88) !important;
  color: rgba(12,18,28,0.92) !important;
  border-color: rgba(12,24,48,0.10) !important;
}

/* =========================
   THEME CLAIR — navigation topbar
========================= */

body.theme-light .topbar .nav a,
body.theme-light .topbar .nav span,
body.theme-light .topbar .nav .nav-badge,
body.theme-light .topbar .nav #navPlanBadge {
  color: rgba(12,18,28,0.88) !important;
}

body.theme-light .topbar .nav a:hover {
  color: rgba(12,18,28,1) !important;
}

body.theme-light .topbar .nav .nav-badge,
body.theme-light .topbar .nav #navPlanBadge {
  background: rgba(20,28,42,0.06) !important;
  border-color: rgba(12,24,48,0.10) !important;
}
/* =========================
   THEME CLAIR — pages compte
========================= */

body.theme-light .account-card,
body.theme-light .profile-card,
body.theme-light .profile-public,
body.theme-light .profile-container{
  color: rgba(12,18,28,0.88) !important;
}

body.theme-light .account-card .muted,
body.theme-light .profile-card .muted,
body.theme-light .profile-public .muted{
  color: rgba(12,18,28,0.62) !important;
}

body.theme-light .account-card label,
body.theme-light .profile-card label{
  color: rgba(12,18,28,0.88) !important;
}

/* =========================
   THEME CLAIR — encarts hub accueil
========================= */

body.theme-light .card{
  background: rgba(255,255,255,0.62);
  border-color: rgba(12,24,48,0.10);
}

body.theme-light .card p,
body.theme-light .card .muted,
body.theme-light .card .tiny{
  color: rgba(12,18,28,0.72) !important;
}

body.theme-light .card h2,
body.theme-light .card h3{
  color: rgba(12,18,28,0.92) !important;
}

/* =========================
   THEME CLAIR — boutons vignettes collection
   (games + music)
========================= */

body.theme-light .collection-grid .btn-ghost{
  background: rgba(255,255,255,0.72) !important;
  color: rgba(12,18,28,0.92) !important;
  border: 1px solid rgba(12,24,48,0.10) !important;
  backdrop-filter: blur(6px);
}

body.theme-light .collection-grid .btn-ghost:hover{
  background: rgba(255,255,255,0.86) !important;
  border-color: rgba(12,24,48,0.16) !important;
}

body.theme-light .collection-grid .btn{
  background: linear-gradient(180deg,#FFE066,#FFD84D) !important;
  color: #111 !important;
}

/* ===== Switch Theme ===== */
.theme-switch{
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
}

.theme-switch input{
  display:none;
}

.theme-label{
  font-size:12px;
  color: var(--text);
  white-space:nowrap;
}

.theme-slider{
  width:36px;
  height:20px;
  background: rgba(255,255,255,0.2);
  border-radius:999px;
  position:relative;
  transition:.25s;
  flex:0 0 auto;
}

.theme-slider::before{
  content:"";
  width:16px;
  height:16px;
  background:#fff;
  border-radius:50%;
  position:absolute;
  top:2px;
  left:2px;
  transition:.25s;
}

.theme-switch input:checked + .theme-slider{
  background:#ffe066;
}

.theme-switch input:checked + .theme-slider::before{
  transform: translateX(16px);
  background:#111;
}

body.theme-light .theme-label{
  color:#111;
}

.topbar .nav{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  min-width:0;
}

.topbar .nav > a,
.topbar .nav > span,
.topbar .nav > .nav-badge{
  white-space:nowrap;
}

.topbar .nav .theme-switch{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin-left:6px;
  flex:0 0 auto;
}

/* Switch sous le logo */
.brand .theme-switch{
  margin-top:4px;
  gap:6px;
  display:inline-flex;
  align-items:center;
}

.brand .theme-label{
  font-size:11px;
  opacity:0.85;
}

.brand .theme-slider{
  width:32px;
  height:18px;
}

.brand .theme-slider::before{
  width:14px;
  height:14px;
  top:2px;
  left:2px;
}

.brand .theme-switch input:checked + .theme-slider::before{
  transform: translateX(14px);
}

.brand p{
  display: none;
}

/* Texte des vignettes toujours blanc */
.hub-overlay .hub-title{
  color: #ffffff !important;
}

.hub-overlay .hub-sub{
  color: rgba(255,255,255,0.85) !important;
}
/* boutons pages collection en mode clair */

body.theme-light .btn,
body.theme-light .btn-ghost{
  background: rgba(255,255,255,0.88);
  color: rgba(12,18,28,0.92);
  border: 1px solid rgba(12,24,48,0.10);
}

body.theme-light .btn:hover,
body.theme-light .btn-ghost:hover{
  background: rgba(255,255,255,0.96);
}


/* bouton Stats collection en mode clair */
body.theme-light .barcode-actions .btn-ghost.btn-stats{
  background: rgba(255,255,255,0.92) !important;
  color: rgba(12,18,28,0.92) !important;
  border: 1px solid rgba(12,24,48,0.10) !important;
  box-shadow: 0 10px 24px rgba(20, 30, 50, 0.08) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.theme-light .barcode-actions .btn-ghost.btn-stats:hover{
  background: rgba(255,255,255,1) !important;
  color: rgba(12,18,28,1) !important;
  border-color: rgba(12,24,48,0.16) !important;
}

/* =========================
   THEME CLAIR — STATS CARTES
========================= */

body.theme-light .kpi{
  background: rgba(255,255,255,0.88) !important;
  border-color: rgba(12,24,48,0.10) !important;
}

body.theme-light .box{
  background: rgba(255,255,255,0.72) !important;
  border-color: rgba(12,24,48,0.10) !important;
}

body.theme-light .kpi .label,
body.theme-light .tiny,
body.theme-light .latest-meta,
body.theme-light .mini-sub{
  color: rgba(12,18,28,0.68) !important;
}

body.theme-light .kpi .value,
body.theme-light .barlabel,
body.theme-light .barvalue,
body.theme-light .list,
body.theme-light .list li,
body.theme-light .mini-title,
body.theme-light .mini-pill,
body.theme-light .latest-title,
body.theme-light .latest-pill,
body.theme-light #pillStatus,
body.theme-light #msg,
body.theme-light #chartTypesMsg,
body.theme-light #chartRarityMsg{
  color: rgba(12,18,28,0.92) !important;
}

body.theme-light .pill{
  background: rgba(20,28,42,0.06) !important;
  border-color: rgba(12,24,48,0.10) !important;
  color: rgba(12,18,28,0.88) !important;
}

body.theme-light .bartrack{
  background: rgba(12,24,48,0.08) !important;
  border-color: rgba(12,24,48,0.10) !important;
}

body.theme-light .mini-row,
body.theme-light .latest-row{
  background: rgba(255,255,255,0.72) !important;
  border-color: rgba(12,24,48,0.10) !important;
  box-shadow: 0 10px 28px rgba(20,30,50,0.08) !important;
}

/* Chart.js cartes */
body.theme-light canvas#chartTypes,
body.theme-light canvas#chartRarity{
  background: rgba(255,255,255,0.72) !important;
  border-color: rgba(12,24,48,0.10) !important;
}


/* =========================
   THEME CLAIR — STATS MUSIQUE
========================= */

body.theme-light .mini-title,
body.theme-light .bar-label,
body.theme-light .premium-kpi__value,
body.theme-light .latest-title,
body.theme-light .latest-pill{
  color: rgba(12,18,28,0.92) !important;
}

body.theme-light .mini-sub,
body.theme-light .premium-kpi__label,
body.theme-light .latest-meta{
  color: rgba(12,18,28,0.68) !important;
}

body.theme-light .mini-pill{
  background: rgba(20,28,42,0.06) !important;
  border-color: rgba(12,24,48,0.10) !important;
  color: rgba(12,18,28,0.88) !important;
}

body.theme-light .mini-row,
body.theme-light .bar-row,
body.theme-light .premium-kpi,
body.theme-light .latest-row{
  background: rgba(255,255,255,0.72) !important;
  border-color: rgba(12,24,48,0.10) !important;
  box-shadow: 0 10px 28px rgba(20,30,50,0.08) !important;
}

body.theme-light .bar-track{
  background: rgba(12,24,48,0.08) !important;
  border-color: rgba(12,24,48,0.10) !important;
}

body.theme-light .edit-hint{
  color: rgba(12,18,28,0.88) !important;
}
/* bouton principal pages collection en mode clair */

body.theme-light .barcode-actions .btn,
body.theme-light .game-actions .btn{
  background: linear-gradient(180deg,#FFE066,#FFD84D) !important;
  color: #111 !important;
  border: 1px solid rgba(12,24,48,0.10) !important;
}

/* =========================
   THEME CLAIR — bouton Ajouter (collections)
========================= */

body.theme-light .cards-topbar-left .btn,
body.theme-light .music-topbar-left .btn,
body.theme-light .collection-topbar-left .btn{
  background: linear-gradient(180deg,#FFE066,#FFD84D) !important;
  color:#111 !important;
  border:1px solid rgba(12,24,48,0.10) !important;
}

body.theme-light .cards-topbar-left .btn:hover,
body.theme-light .music-topbar-left .btn:hover,
body.theme-light .collection-topbar-left .btn:hover{
  filter: brightness(1.05);
}

/* =========================
   THEME CLAIR — bouton Ajouter principal
========================= */

body.theme-light .btn.btn-add-primary{
  background: linear-gradient(180deg,#FFE066,#FFD84D) !important;
  color: #111 !important;
  border: 1px solid rgba(12,24,48,0.10) !important;
  box-shadow:
    0 18px 40px rgba(20,30,50,0.12),
    0 0 0 1px rgba(255,255,255,0.06) inset !important;
}

body.theme-light .btn.btn-add-primary:hover{
  background: linear-gradient(180deg,#FFE782,#FFD84D) !important;
  color: #111 !important;
  filter: brightness(1.03) !important;
}

/* =========================
   THEME CLAIR — style global des modales
========================= */

body.theme-light .modal,
body.theme-light .modal__card{

  background: linear-gradient(
    180deg,
    rgba(245,248,252,0.92),
    rgba(232,238,246,0.88)
  ) !important;

  border: 1px solid rgba(12,24,48,0.10) !important;

  box-shadow:
    0 30px 80px rgba(20,30,50,0.18),
    0 0 0 1px rgba(255,255,255,0.35) inset !important;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* =========================
   HALO GLOBAL DERRIÈRE MODALES
========================= */

.modal-backdrop::before{
  content:"";
  position:absolute;
  inset:0;

  background:
    radial-gradient(
      900px 420px at 20% 0%,
      rgba(102,192,244,0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 420px at 85% 10%,
      rgba(155,89,182,0.18),
      transparent 60%
    );

  pointer-events:none;
}
body.theme-light .modal-backdrop::before{
  background:
    radial-gradient(
      900px 420px at 20% 0%,
      rgba(120,180,255,0.25),
      transparent 60%
    ),
    radial-gradient(
      900px 420px at 85% 10%,
      rgba(180,140,255,0.22),
      transparent 60%
    );
}
/* =========================
   PAGE CARTES — backdrop modal identique à jeux/musique
========================= */

body.theme-light.page-collection .modal{
  background: rgba(0,0,0,0.40) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

body.theme-light.page-collection .modal__card{
  background: linear-gradient(
    180deg,
    rgba(245,248,252,0.92),
    rgba(232,238,246,0.88)
  ) !important;
  border: 1px solid rgba(12,24,48,0.10) !important;
  box-shadow:
    0 30px 80px rgba(20,30,50,0.18),
    0 0 0 1px rgba(255,255,255,0.35) inset !important;
}
/* =========================
   BADGES PROFIL — simple
========================= */

.profile-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.rt-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-size:12px;
  font-weight:900;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.rt-badge--premium{
  background: linear-gradient(180deg, #fff0aa, #ffd84d);
  color:#111;
  border-color: rgba(255,255,255,0.35);
}

.rt-badge--blue{
  box-shadow:
    0 10px 24px rgba(0,0,0,0.25),
    0 0 18px rgba(102,192,244,0.18);
}

.rt-badge--purple{
  box-shadow:
    0 10px 24px rgba(0,0,0,0.25),
    0 0 18px rgba(155,89,182,0.18);
}

.rt-badge--gold{
  box-shadow:
    0 10px 24px rgba(0,0,0,0.25),
    0 0 18px rgba(255,213,74,0.18);
}

/* mode clair */
body.theme-light .profile-badges .rt-badge{
  background: rgba(255,255,255,0.88);
  color: rgba(12,18,28,0.92);
  border-color: rgba(12,24,48,0.10);
  box-shadow: 0 10px 24px rgba(20,30,50,0.08);
}

body.theme-light .profile-badges .rt-badge--premium{
  background: linear-gradient(180deg, #fff0aa, #ffd84d);
  color:#111;
}
/* =========================
   BADGES devant le nom
========================= */

.name-badges{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.name-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  height:32px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-size:14px;
  font-weight:900;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.name-badge--premium{
  background: linear-gradient(180deg, #fff0aa, #ffd84d);
  color:#111;
  border-color: rgba(255,255,255,0.30);
}

.name-badge--blue{
  box-shadow:
    0 10px 24px rgba(0,0,0,0.25),
    0 0 18px rgba(102,192,244,0.18);
}

.name-badge--purple{
  box-shadow:
    0 10px 24px rgba(0,0,0,0.25),
    0 0 18px rgba(155,89,182,0.18);
}

.name-badge--gold{
  box-shadow:
    0 10px 24px rgba(0,0,0,0.25),
    0 0 18px rgba(255,213,74,0.18);
}

/* mode clair */
body.theme-light .name-badge{
  background: rgba(255,255,255,0.88);
  color: rgba(12,18,28,0.92);
  border-color: rgba(12,24,48,0.10);
  box-shadow: 0 10px 24px rgba(20,30,50,0.08);
}

body.theme-light .name-badge--premium{
  background: linear-gradient(180deg, #fff0aa, #ffd84d);
  color:#111;
}
/* =========================
   BADGES — mode clair couleurs
========================= */

body.theme-light .name-badge--blue{
  background: linear-gradient(135deg, rgba(102,192,244,0.95), rgba(52,122,226,0.90)) !important;
  color:#fff !important;
}

body.theme-light .name-badge--purple{
  background: linear-gradient(135deg, rgba(155,89,182,0.95), rgba(111,66,193,0.90)) !important;
  color:#fff !important;
}

body.theme-light .name-badge--green{
  background: linear-gradient(135deg, rgba(46,204,113,0.95), rgba(39,174,96,0.90)) !important;
  color:#fff !important;
}
/* ===== MOBILE : correction modales / fiches ===== */
@media (max-width: 760px){

  .modal-backdrop{
    align-items: flex-start !important;
    justify-content: center !important;
    overflow-y: auto !important;
    padding: 18px 10px 12px !important;
  }

  .modal{
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100vh - 30px) !important;
    margin: 0 auto !important;
    padding: 14px !important;
    border-radius: 18px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch;
  }

  .modal-head{
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    padding-bottom: 8px;
    background: transparent !important;
  }

  .modal-grid{
    grid-template-columns: 1fr !important;
  }

  .modal-preview{
    align-items: flex-start !important;
    margin-top: 12px !important;
  }

  .modal-preview img{
    width: 72px !important;
    height: 96px !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .modal-close{
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* ===== BASE MOBILE GLOBALE APP / RETROLLECT ===== */
@media (max-width: 760px){

  html,
  body{
    overflow-x: hidden;
  }

  body{
    font-size: 14px;
  }

  .container{
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box;
  }

  .topbar{
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .brand{
    min-width: 0;
    gap: 10px !important;
  }

  .brand h1{
    font-size: 18px !important;
    line-height: 1.1 !important;
  }

  .brand p{
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .logo{
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
  }

  .hero,
  .card{
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .hero h2,
  .card h2{
    font-size: 20px !important;
    line-height: 1.15 !important;
  }

  .row{
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .row > *{
    min-width: 0;
  }

  .btn,
  .btn-ghost,
  .btn-primary,
  .btn-glass{
    min-height: 42px;
    padding: 10px 12px !important;
    font-size: 14px !important;
  }

  .input,
  select,
  textarea{
    width: 100%;
    min-height: 42px;
    font-size: 14px !important;
    box-sizing: border-box;
  }

  textarea{
    min-height: 88px;
  }

  .filters{
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .filters-row{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .barcode-row,
  .barcode-actions,
  .cards-topbar,
  .cards-topbar-left,
  .cards-topbar-right{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .barcode-row #barcodeManual{
    max-width: 100% !important;
    flex: 1 1 auto !important;
  }

  .scanbar{
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .scanbar .row{
    width: 100%;
    justify-content: stretch !important;
  }

  .scanbar .row > *{
    flex: 1 1 auto;
  }

  .collection-grid{
    gap: 10px !important;
  }

  .collection-grid.view-small{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .collection-grid.view-medium{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .collection-grid.view-list{
    grid-template-columns: 1fr !important;
  }

  .game-card,
  .card-item{
    min-width: 0;
  }

  .game-actions,
  .actions{
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .game-actions .btn,
  .game-actions .btn-ghost,
  .actions .btn,
  .actions .btn-ghost,
  .actions .btn-primary,
  .actions .btn-glass{
    flex: 1 1 auto;
  }

  .pill{
    max-width: 100%;
    white-space: normal !important;
    text-align: center;
    justify-content: center;
  }

  .footer,
  .help-mini,
  .tiny,
  .muted{
    line-height: 1.3 !important;
  }

  img{
    max-width: 100%;
    height: auto;
  }
}
@media (max-width:700px){
  body{
    padding-top: 0;
  }
}

@media (max-width:700px){
  .topbar{
    margin-top: 0;
  }
}
@media (max-width:700px){

  .hub-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .hub-card{
    padding: 10px !important;
  }

  .hub-cover{
    aspect-ratio: 3 / 4 !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

}
body.is-android-app{
  -webkit-tap-highlight-color: transparent;
}
body.is-android-app .btn,
body.is-android-app .btn-ghost{
  touch-action: manipulation;
}
/* ===== PERF MOBILE GLOBALE / ANDROID ===== */
@media (max-width: 760px){

  body{
    background-attachment: scroll !important;
  }

  .topbar,
  .hero,
  .card,
  .logo,
  .hub-card,
  .game-card,
  .btn,
  .btn-ghost,
  .nav a,
  .input,
  .theme-slider,
  .theme-slider::before{
    animation: none !important;
    transition: none !important;
  }

  .card:hover,
  .game-card:hover,
  .btn:hover,
  .btn-ghost:hover,
  .nav a:hover{
    transform: none !important;
  }

  .card,
  .hero,
  .topbar,
  .game-card,
  .hub-card,
  .collection-grid .game-cover-tile,
  .collection-grid .music-cover-tile,
  .collection-grid .game-cover-list,
  .collection-grid .music-cover-list,
  .latest-cover,
  canvas.chart,
  .toast{
    box-shadow: 0 8px 20px rgba(0,0,0,0.20) !important;
  }

  .card::after,
  .card::before,
  .topbar::after,
  .hero::after,
  .modal-backdrop::before,
  .avatar-glow{
    display: none !important;
  }

  .input:focus,
  .textarea:focus,
  select.input:focus{
    box-shadow: none !important;
  }
}
/* En mode clair : titre plus lisible */
body.theme-light .brand h1{
  text-shadow:
    0 1px 0 rgba(0,0,0,0.05),
    0 2px 6px rgba(255,200,80,0.15);
}
/* ===== Logo RETROLLECT ===== */
.topbar .brand .logo{
  display: none !important;
}

.brand-icon{
  display:inline-block;
  width:62px;
  height:62px;
  flex: 0 0 62px;
  margin-right:8px;
  vertical-align:middle;
  background:url('/assets/hub/logo-mini.png') center / contain no-repeat;
}

body.is-android-app .brand-icon{
  display:none !important;
}
/* évite le flash du menu web dans l'app */
html.is-android-app #navAuth{
  visibility: hidden;
}

html.is-android-app body.nav-ready #navAuth{
  visibility: visible;
}
/* =========================================================
   APP ANDROID — aligner la hauteur avec l’accueil
   ========================================================= */

body.is-android-app .container{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding:
    calc(env(safe-area-inset-top) + 14px)
    8px
    calc(env(safe-area-inset-bottom) + 6px) !important;
  box-sizing: border-box !important;
}

body.is-android-app .topbar{
  margin: 0 0 6px 0 !important;
}
/* =========================================================
   ANDROID / APP
   ========================================================= */
body.is-android-app{
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}

body.is-android-app *{
  -webkit-tap-highlight-color: transparent;
}

body.is-android-app .btn,
body.is-android-app .btn-ghost{
  touch-action: manipulation;
}

html.is-android-app #navAuth{
  visibility: hidden;
}

html.is-android-app body.nav-ready #navAuth{
  visibility: visible;
}

/* Hauteur / espacement cohérents avec l’accueil */
body.is-android-app .container{
  width: 100% !important;
  max-width: 100% !important;
  min-height: calc(100vh - 10px);
  margin: 0 !important;
  padding:
    calc(env(safe-area-inset-top) + 14px)
    8px
    calc(env(safe-area-inset-bottom) + 6px) !important;
  box-sizing: border-box !important;
}

body.is-android-app .topbar{
  margin: 0 0 6px 0 !important;
}

body.is-android-app .card,
body.is-android-app .hub-card,
body.is-android-app .game-card{
  will-change: transform;
}

/* =========================================================
   PERF MOBILE GLOBALE / ANDROID
   ========================================================= */
@media (max-width: 760px){
  body{
    background-attachment: scroll !important;
  }

  .topbar,
  .hero,
  .card,
  .logo,
  .hub-card,
  .game-card,
  .btn,
  .btn-ghost,
  .nav a,
  .input,
  .theme-slider,
  .theme-slider::before{
    animation: none !important;
    transition: none !important;
  }

  .card:hover,
  .game-card:hover,
  .btn:hover,
  .btn-ghost:hover,
  .nav a:hover{
    transform: none !important;
  }

  .card,
  .hero,
  .topbar,
  .game-card,
  .hub-card,
  .collection-grid .game-cover-tile,
  .collection-grid .music-cover-tile,
  .collection-grid .game-cover-list,
  .collection-grid .music-cover-list,
  .latest-cover,
  canvas.chart,
  .toast{
    box-shadow: 0 8px 20px rgba(0,0,0,0.20) !important;
  }

  .card::after,
  .card::before,
  .topbar::after,
  .hero::after,
  .modal-backdrop::before,
  .avatar-glow{
    display: none !important;
  }

  .input:focus,
  .textarea:focus,
  select.input:focus{
    box-shadow: none !important;
  }
}

/* =========================================================
   MODAL FICHE plus opaque sur WEB uniquement (dark mode)
   ========================================================= */
body:not(.theme-light):not(.is-android-app):not(.app-mobile-home) .modal{
  background: linear-gradient(180deg, rgba(10,14,24,0.98), rgba(10,14,24,0.94)) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,0.70) !important;
}

body:not(.theme-light):not(.is-android-app):not(.app-mobile-home) .modal__card{
  background: linear-gradient(180deg, rgba(10,14,24,0.98), rgba(10,14,24,0.94)) !important;
}

body:not(.theme-light):not(.is-android-app):not(.app-mobile-home) .modal-backdrop{
  background: rgba(0,0,0,0.72) !important;
}