/* =========================
   PIONEERWALL — THEME GLOBAL
   Dark / Glass / Gradient
   ========================= */

/* ---------- RESET LIGHT ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: #e5e7eb;
  background: radial-gradient(circle at top left, rgba(124,58,237,.25), transparent 45%),
              radial-gradient(circle at bottom right, rgba(245,158,11,.18), transparent 45%),
              #020617;
  min-height: 100vh;
}

/* Pour les anciennes pages qui ont body.bg */
body.bg {
  background: radial-gradient(circle at top left, rgba(124,58,237,.25), transparent 45%),
              radial-gradient(circle at bottom right, rgba(245,158,11,.18), transparent 45%),
              #020617;
}

/* ---------- VARIABLES ---------- */
:root {
  --pw-bg: #020617;
  --pw-surface: rgba(15,23,42,.9);
  --pw-surface-soft: rgba(15,23,42,.75);
  --pw-card: rgba(17,24,39,.9);
  --pw-card-soft: rgba(30,41,59,.85);
  --pw-card-border: rgba(148,163,184,.4);
  --pw-text: #e5e7eb;
  --pw-muted: #9ca3af;
  --pw-violet: #7c3aed;
  --pw-violet-soft: #a855f7;
  --pw-orange: #f59e0b;
  --pw-error: #f97373;
  --pw-success: #22c55e;
  --pw-ring: rgba(129,140,248,.45);
  --pw-grad: linear-gradient(90deg, #7c3aed 0%, #f59e0b 100%);
}

/* ---------- LAYOUT GÉNÉRAL ---------- */

.pw-container,
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
}

/* Sections génériques (ex: hero, blocs, etc.) */
section {
  margin: 0;
  padding: 0;
}

/* ---------- NAVBAR GLOBALE ---------- */

.pw-nav {
  width: 100%;
  backdrop-filter: blur(10px);
  background: rgba(12,16,24,0.65);
  border-bottom: 1px solid rgba(148,163,184,0.25);
  box-shadow: 0 10px 25px rgba(0,0,0,0.55);
  position: sticky;
  top: 0;
  z-index: 9999;
}

.pw-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pw-logo {
  font-size: 1.45rem;
  font-weight: 700;
  background: var(--pw-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.pw-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pw-auth {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Boutons de nav (The Wall / Marketplace / Dashboard) */
.pw-btn-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .9rem;
  text-decoration: none;
  color: #e5e7eb;
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(148,163,184,0.5);
  transition: all .18s ease;
}

.pw-btn-top:hover {
  background: rgba(30,64,175,0.5);
  border-color: rgba(191,219,254,0.9);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

/* Connect */
.pw-btn-connect {
  padding: .4rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: #020617;
  background: var(--pw-grad);
  font-weight: 600;
  border: 1px solid rgba(248,250,252,.2);
  transition: all .18s ease;
}

.pw-btn-connect:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
}

/* Logout */
.pw-btn-logout {
  padding: .35rem .9rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fecaca;
  background: rgba(127,29,29,0.45);
  border: 1px solid rgba(248,113,113,0.6);
  font-size: .85rem;
  transition: all .18s ease;
}

.pw-btn-logout:hover {
  background: rgba(185,28,28,0.75);
  border-color: rgba(254,202,202,0.85);
  box-shadow: 0 6px 18px rgba(0,0,0,.65);
  transform: translateY(-1px);
}

/* Username dans le nav */
.pw-user {
  color: #c4b5fd;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
}

/* Responsive nav */
@media (max-width: 768px) {
  .pw-nav-inner {
    flex-wrap: wrap;
    justify-content: center;
  }
  .pw-links {
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ---------- BOUTONS GÉNÉRIQUES ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  cursor: pointer;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.55);
  transition: all .18s ease;
}

.btn:hover {
  background: rgba(30,64,175,0.9);
  border-color: rgba(191,219,254,1);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.65);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 16px rgba(0,0,0,0.6);
}

.btn.primary {
  background: var(--pw-grad);
  border-color: rgba(248,250,252,.2);
  color: #020617;
}

.btn.primary:hover {
  filter: brightness(1.07);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(148,163,184,0.5);
}

.btn.ghost:hover {
  background: rgba(15,23,42,0.9);
}

.btn-sm {
  padding: .35rem .8rem;
  font-size: .8rem;
}

.btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

/* ---------- CARDS / PANNEAUX ---------- */

.card {
  position: relative;
  background: var(--pw-card-soft);
  border-radius: 18px;
  border: 1px solid var(--pw-card-border);
  padding: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 180deg, rgba(124,58,237,.45), rgba(245,158,11,.35), rgba(56,189,248,.4), rgba(124,58,237,.45));
  opacity: .16;
  filter: blur(24px);
  z-index: -1;
  animation: pwCardSpin 14s linear infinite;
}

@keyframes pwCardSpin {
  to { transform: rotate(360deg); }
}

/* Stats cards sur la home */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.stat {
  text-align: left;
}

.stat > div {
  font-size: 1.4rem;
  font-weight: 600;
}

.stat label {
  display: block;
  margin-top: 4px;
  font-size: .85rem;
  color: var(--pw-muted);
}

/* ---------- HERO HOME ---------- */

.hero {
  max-width: 1200px;
  margin: 28px auto 32px;
  padding: 16px 20px 26px;
}

.hero .pill {
  display: inline-flex;
  padding: .25rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  font-size: .8rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 8px;
  line-height: 1.15;
  color: #f9fafb;
}

.hero h1 span {
  background: var(--pw-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .sub {
  color: var(--pw-muted);
  max-width: 640px;
  font-size: .98rem;
  margin: 0 0 18px;
}

.hero .cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* ---------- FORMULAIRES ---------- */

form {
  margin: 0;
}

label {
  font-size: .9rem;
  color: #e5e7eb;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
textarea,
select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.6);
  padding: .7rem .9rem;
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  font-size: .9rem;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(129,140,248,0.9);
  box-shadow: 0 0 0 2px var(--pw-ring);
}

input::placeholder,
textarea::placeholder {
  color: rgba(148,163,184,0.85);
}

/* Messages */
.help {
  font-size: .8rem;
  color: var(--pw-muted);
}

.msg-ok {
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.7);
  color: #bbf7d0;
  padding: .7rem 1rem;
  border-radius: 12px;
}

.msg-err {
  background: rgba(248,113,113,.16);
  border: 1px solid rgba(248,113,113,.7);
  color: #fecaca;
  padding: .7rem 1rem;
  border-radius: 12px;
}

/* ---------- TABLES (Dashboard / Marketplace) ---------- */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.table th,
.table td {
  padding: .55rem .6rem;
  text-align: left;
}

.table thead th {
  border-bottom: 1px solid rgba(148,163,184,0.8);
  color: #cbd5f5;
  font-weight: 500;
  background: rgba(15,23,42,0.9);
}

.table tbody tr:nth-child(odd) {
  background: rgba(15,23,42,0.7);
}
.table tbody tr:nth-child(even) {
  background: rgba(15,23,42,0.9);
}

.table tbody tr:hover {
  background: rgba(30,64,175,0.45);
}

/* ---------- BADGE WALLET PI (si réutilisé) ---------- */

.pw-badge-pi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(167,139,250,.5);
  background: radial-gradient(circle at left, rgba(124,58,237,.35), rgba(15,23,42,1));
  color: #e5e7eb;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
}

.pw-badge-pi::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,.9);
}

.pw-badge-pi-off {
  border-color: rgba(248,113,113,.7);
  background: radial-gradient(circle at left, rgba(248,113,113,.35), rgba(15,23,42,1));
  color: #fee2e2;
}

.pw-badge-pi-off::before {
  background: #f97373;
  box-shadow: 0 0 8px rgba(248,113,113,.9);
}

/* ---------- TABS / PILLS SIMPLES (si tu en as) ---------- */

.pw-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pw-tab {
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  background: rgba(15,23,42,0.85);
  color: #e5e7eb;
  cursor: pointer;
  border: 1px solid rgba(148,163,184,0.5);
}

.pw-tab.active {
  background: var(--pw-grad);
  color: #020617;
  border-color: rgba(248,250,252,.3);
}

/* ---------- UTILITAIRES ---------- */

.text-muted   { color: var(--pw-muted); }
.text-center  { text-align: center; }
.mt-1         { margin-top: .25rem; }
.mt-2         { margin-top: .5rem; }
.mt-3         { margin-top: 1rem; }
.mb-2         { margin-bottom: .5rem; }
.mb-3         { margin-bottom: 1rem; }

.flex         { display:flex; }
.flex-center  { display:flex; align-items:center; justify-content:center; }
.flex-between { display:flex; align-items:center; justify-content:space-between; }
.gap-sm       { gap: .5rem; }
.gap-md       { gap: 1rem; }

.rounded      { border-radius: 12px; }

.hidden {
  display: none !important;
}

/* ---------- NE TOUCHE PAS AU WALL (volontairement)
   On laisse ton #wall, .tile etc dans leurs fichiers CSS JS existants,
   pour ne pas casser ta grille / logique.
--------------------------------------------------------------- */


/* =========================
   WALL GRID — CARREAUX DU MUR + POPUP
   ========================= */

/* Conteneur du mur (sécurité) */
#wallGrid {
  position: relative;
  z-index: 1;
}

/* Fond quadrillé du mur, plus doux */
.grid {
  background-color: #05060a;
  background-image:
    linear-gradient(#ffffff20 1px, transparent 1px),
    linear-gradient(90deg, #ffffff20 1px, transparent 1px);
  background-size: 10px 10px;
}

/* Cellules de base */
.grid .cell {
  border: 1px solid transparent;
  outline: none;
  box-sizing: border-box;
  transition: transform .02s linear, box-shadow .02s linear, opacity .15s ease;
}

/* === Couleurs des statuts === */
/* Cases SANS image : pleines de couleur */
/* Si une image est en background via JS, elle passe par-dessus */

.grid .cell.status-available,
.status-available {
  background-color: rgba(56,189,248,0.16);
  box-shadow: 0 0 0 1px rgba(129,140,248,0.7);
}

.grid .cell.status-for_sale,
.status-for_sale {
  background-color: rgba(249,115,22,0.22);
  box-shadow: 0 0 0 1px rgba(249,115,22,0.85);
}

.grid .cell.status-rented,
.status-rented {
  background-color: rgba(234,179,8,0.20);
  box-shadow: 0 0 0 1px rgba(250,204,21,0.8);
}

.grid .cell.status-owned,
.status-owned {
  background-color: rgba(147,51,234,0.25);
  box-shadow: 0 0 0 1px rgba(216,180,254,0.85);
}

.grid .cell.status-reserved,
.status-reserved {
  background-color: rgba(59,130,246,0.15);
  box-shadow: 0 0 0 1px rgba(129,140,248,0.6);
}

/* Non sélectionnables : curseur barré */
.grid .cell.status-rented,
.grid .cell.status-owned,
.grid .cell.status-for_sale,
.grid .cell.status-reserved {
  cursor: not-allowed;
}

/* Sélection visible (clic ou drag) */
.grid .cell.sel {
  outline: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 0 8px rgba(255,255,255,.4);
}

/* Bandeau résumé sélection (s'il est utilisé) */
.select-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 10px 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.5);
}

.select-summary strong {
  font-weight: 800;
}

.summary-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
}

#rentBtnTop span,
#buyBtnTop span {
  font-weight: 700;
  margin-left: 6px;
}

/* --- Amélioration lisibilité : grille derrière les images + surlignage des blocs possédés --- */

/* On s'assure que les cellules sont au-dessus du fond quadrillé */
.grid {
  position: relative;
  z-index: 1;
}
.grid .cell {
  position: relative;
  z-index: 2;
  border: none;
}

/* On supprime les box-shadow qui dessinaient un quadrillage par tuile */
.grid .cell.status-available,
.grid .cell.status-for_sale,
.grid .cell.status-rented,
.grid .cell.status-owned,
.grid .cell.status-reserved {
  box-shadow: none;
}

/* Surlignage des blocs isolés appartenant à l'utilisateur connecté */
.grid .cell.mine {
  position: relative;
}

.grid .cell.mine::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 2px;
  border: 1px solid rgba(56,189,248,0.8);
  box-shadow: 0 0 4px rgba(56,189,248,0.4);
  pointer-events: none;
  animation: pwMinePulse 1.8s infinite;
}

@keyframes pwMinePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56,189,248,0.5);
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 3px rgba(56,189,248,0);
    opacity: 0.85;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56,189,248,0);
    opacity: 1;
  }
}

/* Cadre global pour les fusions appartenant à l'utilisateur */
.fusion-outline {
  position: absolute;
  border: 2px solid rgba(56,189,248,0.8);
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(56,189,248,0.6);
  animation: fusionPulse 2s infinite;
  z-index: 3;
}

@keyframes fusionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56,189,248,0.7);
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 6px rgba(56,189,248,0);
    opacity: 0.9;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56,189,248,0);
    opacity: 1;
  }
}

/* ---------- POPUP WALL (Buy / Rent / Fusion) ---------- */

.popup.hidden,
.modal.hidden {
  display: none;
}

.popup {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.55);
  z-index: 9999;
}

.popup-content {
  display: flex;
  gap: 16px;
}

.popup-img {
  width: 160px;
  height: 160px;
  background: #111;
  border: 1px solid rgba(148,163,184,.6);
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

/* Carte de contenu de la popup */
.popup .card {
  background: rgba(15,23,42,.95);
  border: 1px solid rgba(148,163,184,.5);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  backdrop-filter: blur(12px);
}

/* ---------- CONTROLES DE ZOOM DU WALL ---------- */

.wall-zoom-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  font-size: .8rem;
  z-index: 20;
}

.wall-zoom-label {
  min-width: 38px;
  text-align: center;
}

.wall-zoom-btn {
  padding: .15rem .55rem;
}

/* Utilitaires pour les textes “muted / small” (compat nav/dash/wall) */
.muted {
  color: var(--pw-muted);
}

.small {
  font-size: .8rem;
}

/* =======================================
   PREMIUM SIDEZONE (TOP / MID / BOT)
   ======================================= */

.wall-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Le mur garde sa logique actuelle, on lui donne juste la place qu'il faut */
#wallGrid {
  flex: 1 1 auto;
}

/* Sidebar 15×100 blocs (colonne droite) */
.sidezone {
  flex: 0 0 auto;
  width: calc(15 * 10px);      /* 15 blocs de large */
  height: calc(100 * 10px);    /* 100 blocs de haut, comme le mur */
  display: flex;
  flex-direction: column;
  margin-left: 8px;
  padding-left: 10px;
  padding-right: 8px;
  border-left: 1px solid rgba(129,140,248,0.45);
  box-shadow: -0.5px 0 8px rgba(139,92,246,0.6);
}


/* Slot générique */
/* Chaque slot prend exactement une hauteur en blocs */
.side-slot {
  position: relative;
  margin-left: auto;
    margin-right: auto;
    width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(15,23,42,0.9));
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow:
    0 0 0 1px rgba(30,64,175,0.35),
    0 10px 30px rgba(15,23,42,0.95);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  flex: 0 0 auto;
}

/* TOP  15 × 30 blocs */
.side-slot[data-slot="TOP"] {
  height: calc(30 * 10px);
}

/* MID  15 × 40 blocs */
.side-slot[data-slot="MID"] {
  height: calc(40 * 10px);
}

/* BOT  15 × 30 blocs */
.side-slot[data-slot="BOT"] {
  height: calc(30 * 10px);
}

/* L’intérieur remplit parfaitement la hauteur du slot */
.side-slot-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.side-slot-body {
  flex: 1 1 auto;
  min-height: 0;
}


/* Etat avec bannière */
.side-slot-has-banner .side-slot-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56,189,248,0.06), transparent 55%);
  pointer-events: none;
}

/* SLOTS VIDES = BLACK HOLE PULSE */
.side-slot-blackhole {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.bh-core {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at center, #020617 0%, #020617 40%, #000 100%);
  box-shadow:
    0 0 25px rgba(59,130,246,0.55),
    0 0 40px rgba(236,72,153,0.45);
  animation: bh-core-pulse 3s ease-in-out infinite;
}

.bh-ring,
.bh-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.bh-ring {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(129,140,248,0.8);
  box-shadow:
    0 0 12px rgba(129,140,248,0.9),
    0 0 30px rgba(249,115,22,0.75);
  animation: bh-ring-pulse 4s ease-in-out infinite;
}

.bh-glow {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at center,
    rgba(129,140,248,0.18),
    rgba(249,115,22,0.08),
    transparent 65%);
  mix-blend-mode: screen;
  animation: bh-glow-pulse 5s ease-in-out infinite;
}

.bh-label {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(243,244,246,0.85);
  text-shadow: 0 1px 4px #020617;
}

/* Animations du vortex */
@keyframes bh-core-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.12); opacity: .9; }
}
@keyframes bh-ring-pulse {
  0%,100% { transform: scale(1);   opacity: .9; }
  50%     { transform: scale(1.06); opacity: 1; }
}
@keyframes bh-glow-pulse {
  0%,100% { transform: scale(1);   opacity: .85; }
  50%     { transform: scale(1.1); opacity: 1; }
}

/* Popup Mes Bannières — style simple, calé sur les cards */
.premium-popup-card {
  max-width: 480px;
}

.premium-week-picker {
  margin: 12px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 6px;
}

.premium-week-btn {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(15,23,42,0.94));
  color: #e5e7eb;
  font-size: 11px;
  padding: 5px 8px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.premium-week-btn:hover:not(:disabled) {
  border-color: rgba(129,140,248,0.95);
  box-shadow: 0 0 0 1px rgba(129,140,248,0.8);
  transform: translateY(-1px);
}

.premium-week-btn.selected {
  background: linear-gradient(135deg, rgba(79,70,229,0.95), rgba(234,179,8,0.95));
  color: #0b1020;
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.9),
    0 10px 30px rgba(15,23,42,1);
}

.premium-week-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  border-style: dashed;
}

.premium-week-btn.reserved::after {
  content: '×';
  margin-left: 4px;
  font-weight: 700;
  font-size: 10px;
  opacity: .8;
}

.premium-popup-footer {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.premium-popup-footer .row {
  justify-content: flex-end;
  gap: 8px;
}

/* Responsive : en dessous de 900px de large, on place la sidezone sous le mur */
@media (max-width: 900px) {
  .wall-row {
    flex-direction: column;
  }

  .sidezone {
    width: 100%;
    min-height: auto;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(148,163,184,0.3);
    margin-top: 12px;
    padding-top: 10px;
  }
}

/* ---------- DASHBOARD : BANNIÈRES PREMIUM ---------- */
.premium-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: .75rem;
}

.premium-column h4 {
  margin: 0 0 .35rem 0;
  font-size: .95rem;
}

.premium-list .premium-empty {
  font-size: .9rem;
  opacity: .8;
}

.card.premium-card .thumb {
  aspect-ratio: 16/6;
}

.premium-headline {
  margin-top: .35rem;
  font-weight: 600;
}

.premium-body {
  margin-top: .25rem;
}

.premium-week-label {
  font-size: .85rem;
  opacity: .85;
}

/* Aperçu dans le popup */
.premium-preview {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.premium-preview-image {
  flex: 0 0 120px;
  height: 70px;
  border-radius: 10px;
  background: radial-gradient(circle at top left, rgba(248,250,252,.12), rgba(15,23,42,1));
  background-size: cover;
  background-position: center;
}

.premium-preview-text {
  flex: 1;
}

.premium-preview-headline {
  font-weight: 600;
  margin-bottom: .25rem;
  font-size: .95rem;
}

.premium-preview-body {
  font-size: .85rem;
}

