/* =========================================================
   Bandstuff — design system
   Fond sombre, accent turquoise (à recaler sur le logo xaad),
   typo compacte 13.5px, hiérarchie par graisse et niveaux de gris.
   ========================================================= */

:root {
  /* ===== Design system v4 « Scène » : nuit chaude, trio corail / teal / lime ===== */
  --bg:          #0b0c0f;
  --bg-panel:    #15181d;
  --bg-hover:    #20242b;
  --border:      rgba(255, 255, 255, 0.13);
  --border-soft: rgba(255, 255, 255, 0.07);

  --txt:   #f4f4f2;
  --txt-2: #9ba1ab;
  --txt-3: #63686f;

  /* Teal électrique (famille XaaD) : liens, infos, états actifs */
  --accent:     #2bd9c8;
  --accent-dim: #158e83;
  --accent-bg:  rgba(43, 217, 200, 0.10);
  --accent-contrast: #06201d; /* texte posé sur l'accent */
  /* Corail : la couleur d'action (boutons, dates, temps forts) */
  --coral:    #ff6247;
  --coral-2:  #ffa07c;
  --coral-bg: rgba(255, 98, 71, 0.10);
  --btn-txt:  #1d0c06; /* texte posé sur le corail */
  /* Lime : la ponctuation (petites vies, points, alternances) */
  --lime:    #d6f75a;
  --lime-bg: rgba(214, 247, 90, 0.09);
  /* Alias historique : les composants « chauds » existants suivent le corail */
  --accent-2:    var(--coral-2);
  --accent-2-bg: var(--coral-bg);

  --overlay-rgb: 11, 12, 15;   /* voile des fonds de page photo */
  --glass: rgba(11, 12, 15, 0.72); /* barres de navigation en verre */
  --shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.65);
  --veil: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 60%);
  --blob-o1: 0.3; --blob-o2: 0.18; --blob-o3: 0.08; /* halos de scène */

  --ok:      #7ed98c;
  --ok-bg:   rgba(126, 217, 140, 0.1);
  --warn:    #f0b45c;
  --warn-bg: rgba(240, 180, 92, 0.12);
  --err:     #f07a6a;
  --err-bg:  rgba(240, 122, 106, 0.12);

  --radius: 12px;
  --r-lg: 16px;
  --fs: 13.5px;
}

/* ===== Thème clair (activé via l'interrupteur ☀/🌙, mémorisé) ===== */
:root[data-theme="light"] {
  /* Version jour : papier chaud, mêmes trois couleurs assombries */
  --bg:          #f4f2ec;
  --bg-panel:    #ffffff;
  --bg-hover:    #ebe8e0;
  --border:      rgba(25, 27, 30, 0.16);
  --border-soft: rgba(25, 27, 30, 0.09);

  --txt:   #191b1e;
  --txt-2: #565c64;
  --txt-3: #8a9098;

  --accent:     #0d9c8e;
  --accent-dim: #0b7d72;
  --accent-bg:  rgba(13, 156, 142, 0.10);
  --accent-contrast: #ffffff;
  --coral:    #ee4f2e;
  --coral-2:  #ff7a52;
  --coral-bg: rgba(238, 79, 46, 0.10);
  --btn-txt:  #ffffff;
  --lime:    #8aa816;
  --lime-bg: rgba(138, 168, 22, 0.12);
  --accent-2:    #e0622f;
  --accent-2-bg: rgba(224, 98, 47, 0.11);

  --overlay-rgb: 244, 242, 236;
  --glass: rgba(255, 255, 255, 0.78);
  --shadow: 0 10px 26px -16px rgba(35, 40, 50, 0.25);
  --veil: linear-gradient(160deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 60%);
  --blob-o1: 0.16; --blob-o2: 0.1; --blob-o3: 0.05;

  --ok:      #1e9142;
  --ok-bg:   rgba(30, 145, 66, 0.12);
  --warn:    #a97708;
  --warn-bg: rgba(169, 119, 8, 0.13);
  --err:     #cd3b3b;
  --err-bg:  rgba(205, 59, 59, 0.11);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--txt);
  font: 400 var(--fs)/1.5 "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Accents typographiques : mots-clés en serif italique */
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }

/* ===== Lumières de scène : halos fixes + grain, derrière tout ===== */
.stage-lights { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); }
.blob-1 { width: 620px; height: 620px; background: var(--coral); opacity: var(--blob-o1); top: -260px; right: -150px; animation: drift1 30s ease-in-out infinite alternate; }
.blob-2 { width: 520px; height: 520px; background: var(--accent); opacity: var(--blob-o2); top: 10%; left: -230px; animation: drift2 36s ease-in-out infinite alternate; }
.blob-3 { width: 420px; height: 420px; background: var(--lime); opacity: var(--blob-o3); bottom: -190px; right: 16%; animation: drift3 42s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-80px, 70px) scale(1.08); } }
@keyframes drift2 { to { transform: translate(100px, -50px); } }
@keyframes drift3 { to { transform: translate(-60px, -70px); } }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 17px; font-weight: 600; letter-spacing: -0.2px; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 13.5px; font-weight: 600; }

/* ===== Barre du haut ===== */
.topbar {
  display: flex; align-items: center; gap: 26px;
  height: 54px; padding: 0 22px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 0; z-index: 10;
}
.logo {
  font-family: "Unbounded", "Space Grotesk", sans-serif;
  font-weight: 900; font-size: 14.5px; letter-spacing: -0.4px;
  color: var(--txt) !important;
}
.logo span {
  background: linear-gradient(90deg, var(--coral), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo:hover { text-decoration: none; }

.mainnav { display: flex; gap: 2px; }
.mainnav a {
  color: var(--txt-2); padding: 7px 14px; border-radius: 999px;
  font-weight: 500; font-size: 13.5px; transition: color 0.15s, background 0.15s;
}
.mainnav a:hover { color: var(--txt); background: var(--bg-hover); text-decoration: none; }
.mainnav a.active { color: var(--txt); background: var(--bg-hover); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--txt-2); font-size: 13px; line-height: 1;
  width: 30px; height: 30px; cursor: pointer;
}
.theme-toggle:hover { background: var(--bg-hover); color: var(--txt); }
.topbar-user { color: var(--txt-2); font-weight: 500; }
.avatar {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--av-a, var(--accent-dim)), var(--av-b, var(--accent)));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; letter-spacing: 0.3px; color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* ===== Avatars image ===== */
.avatar { flex-shrink: 0; }
img.avatar-img { object-fit: cover; display: block; padding: 0; background: var(--bg-hover); }

.avatar-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.avatar-edit input[type="file"] { font-size: 12.5px; color: var(--txt-2); }

/* La boîte a le MÊME ratio que la bannière stockée (1640x624) :
   ce qui a été cadré est montré intégralement, sans recoupe CSS. */
.band-banner {
  aspect-ratio: 1640 / 624;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 14px;
}
.band-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.band-banner-preview { max-width: 420px; }

.crop-box { margin: 10px 0; }
.crop-hint { font-size: 12px; color: var(--txt-2); margin-bottom: 6px; }
/* Cropper.js remplit son conteneur : hauteur FIXE obligatoire, sinon les
   images hautes débordent et les poignées deviennent inaccessibles. */
.crop-frame {
  max-width: 520px; height: 300px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); overflow: hidden;
}
.crop-frame img { display: block; max-width: 100%; }
@media (max-width: 800px) { .crop-frame { height: 230px; } }

/* ===== Menu utilisateur ===== */
.user-menu { position: relative; }
.user-menu summary {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; list-style: none;
  padding: 4px 6px; border-radius: var(--radius);
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover, .user-menu[open] summary { background: var(--bg-hover); }
.user-menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 230px;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.user-menu-panel a, .user-menu-panel button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border-radius: var(--radius);
  color: var(--txt-2) !important; font-size: 13px; font-weight: 500;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: inherit;
}
.user-menu-panel a:hover, .user-menu-panel button:hover {
  background: var(--bg-hover); color: var(--txt) !important; text-decoration: none;
}
.user-menu-sep {
  margin: 6px 4px 2px; padding-top: 8px;
  border-top: 1px solid var(--border-soft);
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.7px;
  color: var(--txt-3);
}
.user-menu-band { width: 22px; height: 22px; font-size: 10.5px; border-radius: 5px; }
.user-menu-muted { color: var(--txt-3) !important; }

/* ===== Boutons ===== */
.btn {
  display: inline-block;
  background: linear-gradient(120deg, var(--coral), var(--coral-2));
  color: var(--btn-txt) !important; border: none;
  padding: 8px 17px; border-radius: 999px;
  font-weight: 700; font-size: 13px; cursor: pointer;
  font-family: inherit; line-height: 1.45;
  box-shadow: 0 8px 24px -10px rgba(255, 98, 71, 0.55);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn:hover {
  filter: brightness(1.07); text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -10px rgba(255, 98, 71, 0.7);
}
.btn-ghost {
  display: inline-block;
  background: transparent; color: var(--txt-2) !important;
  border: 1px solid var(--border);
  padding: 7px 15px; border-radius: 999px;
  font-weight: 500; font-size: 13px; cursor: pointer;
  font-family: inherit; line-height: 1.45;
  transition: color 0.15s, border-color 0.15s;
}
.btn-ghost:hover { color: var(--accent) !important; border-color: var(--accent-dim); text-decoration: none; }
.btn-sm { padding: 4px 10px; font-size: 12.5px; }
.btn-lg { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; margin-top: 14px; }

/* ===== Layout ===== */
.container {
  max-width: 1280px; margin: 0 auto; padding: 20px;
}

.page-head { margin-bottom: 16px; }
.page-sub { color: var(--txt-3); font-size: 12.5px; margin-top: 2px; }

/* ===== Messages flash ===== */
.flash-zone { max-width: 1280px; margin: 12px auto 0; padding: 0 20px; }
.flash {
  padding: 9px 14px; border-radius: var(--radius); margin-bottom: 6px;
  font-size: 13px; border: 1px solid transparent;
}
.flash-success { background: var(--ok-bg); color: var(--ok); }
.flash-error   { background: var(--err-bg); color: var(--err); }
.flash-info    { background: var(--accent-bg); color: var(--accent); }

/* ===== Formulaires ===== */
label {
  display: block; margin: 14px 0 5px;
  font-size: 12px; font-weight: 600; color: var(--txt-2);
  text-transform: uppercase; letter-spacing: 0.5px;
}
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 12px;
  color: var(--txt); font-size: 13.5px; font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
input::placeholder, textarea::placeholder { color: var(--txt-3); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { color: var(--txt-3); font-size: 11.5px; margin-top: 5px; }
.label-note { color: var(--txt-3); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ===== Cartes / panneaux ===== */
.panel {
  background: var(--bg-panel); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: 16px;
  box-shadow: var(--shadow);
}
.panel-muted { color: var(--txt-3); text-align: center; padding: 28px; margin-top: 20px; }

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.card {
  background: var(--bg-panel); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.18s, border-color 0.18s;
}
.card-action { color: var(--txt) !important; display: block; }
.card-action:hover { border-color: var(--accent-dim); text-decoration: none; }
.card-action h3 { color: var(--accent); margin-bottom: 6px; }
.card-action p { color: var(--txt-2); font-size: 12.5px; }

/* ===== Badges & tags ===== */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2px;
  background: var(--bg-hover); color: var(--txt-2);
  border: 1px solid var(--border);
}
.badge-accent { background: var(--accent-bg); color: var(--accent); border-color: transparent; }
.badge-ok     { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge-warn   { background: var(--warn-bg); color: var(--warn); border-color: transparent; }

.tag { color: var(--txt-3); font-size: 12px; }
.tag::before { content: "#"; opacity: 0.6; }

/* ===== Page d'accueil (visiteur) ===== */
/* Hero « scène » : pleine largeur, halos lumineux animés, égaliseur. */
.hero2 {
  position: relative; overflow: hidden;
  margin: -20px calc(50% - 50vw) 8px; /* pleine largeur malgré le container */
  padding: 78px 20px 30px;
  text-align: center;
  background: var(--bg);
}
.hero2-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero2-glow {
  position: absolute; border-radius: 50%; filter: blur(90px);
  opacity: 0.55; pointer-events: none;
}
.hero2-glow-a {
  width: 540px; height: 420px; top: -140px; left: 8%;
  background: rgba(28, 194, 216, 0.30);
  animation: glow-a 11s ease-in-out infinite alternate;
}
.hero2-glow-b {
  width: 620px; height: 460px; bottom: -180px; right: 4%;
  background: rgba(10, 127, 143, 0.30);
  animation: glow-b 13s ease-in-out infinite alternate;
}
@keyframes glow-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, 40px) scale(1.15); } }
@keyframes glow-b { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-80px, -30px) scale(0.95); } }
:root[data-theme="light"] .hero2-glow { opacity: 0.35; }

.hero2-pill {
  display: inline-block; margin-bottom: 18px;
  padding: 5px 14px; border-radius: 20px;
  background: var(--accent-bg); border: 1px solid var(--accent-dim);
  color: var(--accent); font-size: 12px; font-weight: 600;
}
.hero2-title {
  font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.12;
  margin-bottom: 4px;
}
.hero2-title span { color: var(--accent); }
@media (max-width: 800px) {
  .hero2 { padding: 46px 16px 22px; }
  .hero2-title { font-size: 27px; }
}

.hero2-eq {
  display: flex; justify-content: center; align-items: flex-end; gap: 6px;
  height: 34px; margin-top: 30px;
}
.hero2-eq span {
  width: 5px; border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--accent-dim), var(--accent));
  animation: eq-bounce 1.15s ease-in-out infinite;
  opacity: 0.85;
}
.hero2-eq span:nth-child(1) { height: 40%; animation-delay: 0s; }
.hero2-eq span:nth-child(2) { height: 75%; animation-delay: 0.15s; }
.hero2-eq span:nth-child(3) { height: 55%; animation-delay: 0.3s; }
.hero2-eq span:nth-child(4) { height: 95%; animation-delay: 0.07s; }
.hero2-eq span:nth-child(5) { height: 60%; animation-delay: 0.22s; }
.hero2-eq span:nth-child(6) { height: 80%; animation-delay: 0.37s; }
.hero2-eq span:nth-child(7) { height: 45%; animation-delay: 0.12s; }
@keyframes eq-bounce { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  .hero2-glow, .hero2-eq span { animation: none; }
}

/* Cartes « en préparation » */
.feature-soon { position: relative; opacity: 0.92; }
.soon-pill {
  position: absolute; top: 10px; right: 10px;
  padding: 2px 9px; border-radius: 10px;
  background: var(--warn-bg); color: var(--warn);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}

.hero { text-align: center; padding: 64px 20px 40px; }
.hero h1 {
  font-size: 30px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2;
}
.hero-sub {
  color: var(--txt-2); max-width: 560px; margin: 14px auto 0; font-size: 14px;
}
.hero-actions { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; max-width: 960px; margin: 30px auto 0;
}
.features-6 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 20px; }

.land-stats {
  margin-top: 22px; color: var(--txt-3); font-size: 13px;
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.land-stats b { color: var(--accent); font-size: 15px; }
.land-stats-sep { color: var(--border); }

.land-section { max-width: 960px; margin: 44px auto 0; }
.land-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.land-section-head h2, .land-center { font-size: 17px; }
.land-section-sub { color: var(--txt-3); font-size: 12.5px; margin: -6px 0 12px; }
.venue-strip { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .venue-strip { grid-template-columns: repeat(2, 1fr); } }
.land-center { text-align: center; margin-bottom: 8px; }

.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin-top: 20px;
}
.step {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; position: relative;
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin-bottom: 10px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--txt-2); font-size: 12.5px; }

.land-cta {
  max-width: 960px; margin: 44px auto 24px; text-align: center; padding: 34px 20px;
  border-color: var(--accent-dim);
}
.land-cta h2 { font-size: 19px; margin-bottom: 6px; }
.land-cta .btn { margin-top: 16px; }
.feature {
  background: var(--bg-panel); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: 20px;
  transition: transform 0.18s, border-color 0.18s;
}
.feature:hover { transform: translateY(-3px); border-color: var(--border); }
.feature-icon { font-size: 22px; margin-bottom: 10px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--txt-2); font-size: 12.5px; }

/* ===== Cartes auth ===== */
.auth-card {
  max-width: 400px; margin: 40px auto;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.auth-card h1 { margin-bottom: 2px; }
.auth-sub { color: var(--txt-3); font-size: 12.5px; margin-bottom: 8px; }
.oauth-buttons { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 4px; }
.btn-oauth {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 14px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
  color: var(--txt) !important; font-weight: 600; font-size: 13px;
}
.btn-oauth:hover { border-color: var(--accent-dim); text-decoration: none; background: var(--bg-hover); }
.oauth-ic {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; color: #fff;
}
.oauth-ic-g { background: #ea4335; }
.oauth-ic-f { background: #1877f2; }
.auth-or {
  display: flex; align-items: center; gap: 12px;
  color: var(--txt-3); font-size: 11.5px; margin: 12px 0 2px;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }

.auth-alt {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft);
  color: var(--txt-2); font-size: 12.5px; text-align: center;
}

/* ===== Pages vides / erreurs ===== */
.soon { text-align: center; padding: 70px 20px; color: var(--txt-2); }
.soon-icon { font-size: 34px; margin-bottom: 12px; }
.soon h1 { margin-bottom: 8px; }
.soon p { margin-top: 4px; }

/* ===== Listes denses (annonces, membres, résultats) ===== */
.rowlist { display: flex; flex-direction: column; }
.row {
  display: grid; grid-template-columns: 40px 1fr auto;
  gap: 12px; align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.row:hover { background: var(--bg-hover); }
.row-icon {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--bg-panel); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.row-title {
  font-weight: 600; font-size: 13.5px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.row-meta {
  display: flex; gap: 6px 14px; flex-wrap: wrap;
  color: var(--txt-2); font-size: 12.5px; margin-top: 3px;
}
.row-meta b { color: var(--txt); font-weight: 500; }
.row-side { text-align: right; white-space: nowrap; }
.row-time { color: var(--txt-3); font-size: 12px; }
.row-loc { color: var(--txt-2); font-size: 12.5px; margin-top: 2px; }

/* ===== Grille des annonces ===== */
.listing-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.listing-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px;
  color: inherit !important;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.listing-card:hover {
  text-decoration: none; border-color: var(--accent-dim);
  transform: translateY(-2px);
}
.lc-head { display: flex; align-items: center; gap: 10px; }
.lc-head .row-icon, .lc-head .avatar { width: 34px; height: 34px; font-size: 14px; }
.lc-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.lc-title {
  font-size: 13.5px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.4em;
}
.lc-meta { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.lc-footer {
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  color: var(--txt-3); font-size: 11.5px;
}
.lc-footer b { color: var(--txt-2); font-weight: 600; }

/* ===== Grilles de cartes (annuaires musiciens & groupes) ===== */
.people-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 10px;
}
.person-card {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 13px 9px 11px;
  text-align: center; color: inherit !important;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.person-card:hover {
  text-decoration: none; border-color: var(--accent-dim);
  transform: translateY(-2px);
}
.person-avatar { width: 54px; height: 54px; font-size: 20px; border-radius: 50%; }
/* Logos de groupes et de lieux : plus grands, le logo doit se voir */
.person-avatar-band { width: 78px; height: 78px; font-size: 27px; border-radius: 14px; }
.person-name { font-size: 13px; line-height: 1.25; }
.person-badges, .person-tags { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.person-badges .badge { font-size: 10px; padding: 1px 5px; }
.person-tags .tag { font-size: 11px; }
.person-meta { color: var(--txt-3); font-size: 10.5px; margin-top: auto; padding-top: 3px; }
@media (max-width: 480px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }

.venue-emoji { background: var(--bg-hover); font-size: 26px; }
.band-hero-logo2.venue-emoji { font-size: 44px; }
.claim-box b { color: var(--accent); display: block; margin-bottom: 4px; }
.claim-box p { margin-bottom: 10px; }
.claim-box { border-color: var(--accent-dim); }

/* ===== Layout à filtres latéraux ===== */
.with-sidebar {
  display: grid; grid-template-columns: 232px 1fr; gap: 24px;
}
@media (max-width: 800px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .mainnav { display: none; } /* remplacée par la barre basse */
  .topbar-user { display: none; }
  body { padding-bottom: 62px; } /* place pour la barre basse */
  .container { padding: 14px 12px; }
  .row { grid-template-columns: 34px 1fr; }
  .row-side { grid-column: 2; text-align: left; display: flex; gap: 10px; margin-top: 2px; }
  .btn, .btn-ghost { padding: 9px 16px; } /* cibles tactiles */
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .profile-head { flex-wrap: wrap; }
  .hero { padding: 36px 12px 26px; }
  .hero h1 { font-size: 24px; }
}

/* ===== Barre de navigation basse (mobile) ===== */
.bottomnav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: var(--glass); border-top: 1px solid var(--border-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 800px) {
  .bottomnav { display: flex; }
}
.bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 7px; font-size: 10.5px; font-weight: 500;
  color: var(--txt-3); text-decoration: none !important;
}
.bottomnav a.active { color: var(--accent); }
.bn-icon { font-size: 18px; line-height: 1; position: relative; }
.bn-badge {
  position: absolute; top: -4px; right: -10px;
  background: var(--accent); color: var(--accent-contrast);
  font-size: 9.5px; font-weight: 700; line-height: 1;
  padding: 2px 4.5px; border-radius: 7px;
}

.sidebar h3 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--txt-3); margin: 18px 0 8px; font-weight: 600;
}
.sidebar h3:first-child { margin-top: 0; }
.filter-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 10px; border-radius: var(--radius);
  color: var(--txt-2); cursor: pointer; font-size: 13px;
}
.filter-item:hover { background: var(--bg-hover); color: var(--txt); text-decoration: none; }
.filter-item.on { background: var(--accent-bg); color: var(--accent); font-weight: 500; }
.filter-item .count { font-size: 11.5px; color: var(--txt-3); }
.filter-item.on .count { color: var(--accent-dim); }

/* ===== Profil ===== */
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.profile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start;
}
@media (max-width: 800px) { .profile-grid { grid-template-columns: 1fr; } }

.panel h2 { margin-bottom: 12px; }
.panel-spaced { margin-top: 16px; }
.muted { color: var(--txt-3); font-size: 12.5px; }
.bio { color: var(--txt-2); }

.inst-list { display: flex; flex-direction: column; }
.inst-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border-soft);
}
.inst-row:last-child { border-bottom: none; }
.inst-row b { margin-right: 4px; }
.inst-add { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--border-soft); }
.field-row-3 { display: grid; grid-template-columns: 2fr 1.4fr 0.8fr; gap: 10px; }
.btn-block-ghost { width: 100%; margin-top: 12px; text-align: center; }

.checks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2px; margin-top: 4px;
}
label.check {
  display: flex; align-items: center; gap: 7px;
  margin: 8px 0 0; padding: 4px 6px; border-radius: var(--radius);
  font-size: 13px; font-weight: 400; color: var(--txt-2);
  text-transform: none; letter-spacing: 0; cursor: pointer;
}
.checks label.check { margin: 0; }
label.check:hover { background: var(--bg-hover); color: var(--txt); }
label.check input { accent-color: var(--accent); }

.avatar-lg { width: 36px; height: 36px; font-size: 15px; border-radius: var(--radius); }
.avatar-xl { width: 64px; height: 64px; font-size: 27px; border-radius: 10px; }

.row-link { color: inherit !important; }
.row-link:hover { text-decoration: none; }

.profile-head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.profile-head-body { flex: 1; min-width: 0; }
.profile-head h1 { font-size: 19px; }
.profile-head-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  color: var(--txt-2); font-size: 12.5px; margin-top: 4px;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===== Onglets ===== */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a {
  padding: 6px 14px; color: var(--txt-2); font-weight: 500; font-size: 13px;
  border-radius: 999px; border: 1px solid transparent;
  transition: color 0.15s, background 0.15s;
}
.tabs a:hover { color: var(--txt); background: var(--bg-hover); text-decoration: none; }
.tabs a.on { color: var(--accent); background: var(--accent-bg); border-color: var(--accent-dim); }
.tabs-spaced { margin-bottom: 14px; }

/* ===== Carte ===== */
.map-el {
  height: calc(100vh - 240px); min-height: 380px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-panel);
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--bg-panel); color: var(--txt);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
}
.map-popup { font: 400 12.5px/1.5 "Segoe UI", system-ui, sans-serif; }
.map-popup b { font-size: 13.5px; }
.map-popup a { color: var(--accent); display: inline-block; margin-top: 4px; }
.map-popup-inst { color: var(--txt-2); }
.map-popup-city { color: var(--txt-3); }
.leaflet-container a.leaflet-popup-close-button { color: var(--txt-3); }

/* ===== Annonces ===== */
.listing-head h1 { font-size: 19px; margin: 8px 0 6px; }
.listing-title { margin-bottom: 2px; }
.listing-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.author-panel .author-card {
  display: flex; align-items: center; gap: 12px;
  color: var(--txt) !important; margin-bottom: 4px;
}
.author-panel .author-card:hover { text-decoration: none; }
.author-panel .btn-block { margin-top: 14px; }
.author-sub { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft); }

.owner-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.backlink { margin-top: 16px; }

/* ===== Formulaire d'annonce ===== */
.form-page { max-width: 720px; margin: 0 auto; }
.form-hint-center { text-align: center; }

.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 700px) { .radio-cards { grid-template-columns: 1fr; } }
.radio-card {
  display: flex; flex-direction: column; gap: 3px;
  margin: 0; padding: 12px; border-radius: var(--radius);
  border: 1px solid var(--border); cursor: pointer;
  font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--txt-2); font-size: 12px;
}
.radio-card b { color: var(--txt); font-size: 13px; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card:hover { border-color: var(--accent-dim); }
.radio-card:has(input:checked) {
  border-color: var(--accent); background: var(--accent-bg);
}
.radio-card:has(input:checked) b { color: var(--accent); }

.check-boxed {
  border: 1px solid var(--border); padding: 8px 12px; margin-top: 0;
}

/* ===== Notifications & alertes ===== */
.bell {
  position: relative; font-size: 15px; text-decoration: none !important;
  padding: 4px 6px; border-radius: var(--radius); filter: grayscale(1) opacity(0.6);
}
.bell:hover { background: var(--bg-hover); }
.bell-active { filter: none; }
.bell-count {
  position: absolute; top: -3px; right: -5px;
  background: var(--accent); color: var(--accent-contrast);
  font-size: 10px; font-weight: 700; line-height: 1;
  padding: 2.5px 4.5px; border-radius: 8px;
}

.panel-list {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 4px 14px;
}
.notif-row { padding: 10px 4px; }
.row-title-normal { font-size: 13.5px; }
.notif-unread .row-title-normal { font-weight: 600; }
.notif-unread .row-icon { border-color: var(--accent-dim); background: var(--accent-bg); }

/* ===== Messagerie ===== */
.nav-badge {
  display: inline-block; margin-left: 6px; vertical-align: 1px;
  background: var(--accent); color: var(--accent-contrast);
  font-size: 10.5px; font-weight: 700; line-height: 1;
  padding: 2.5px 6px; border-radius: 8px;
}

.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chat-head .author-card { display: flex; align-items: center; gap: 12px; color: var(--txt) !important; }
.chat-head .author-card:hover { text-decoration: none; }
.chat-context {
  font-size: 12.5px; color: var(--txt-2) !important;
  background: var(--bg); border: 1px solid var(--border);
  padding: 6px 10px; border-radius: var(--radius);
}
.chat-context:hover { border-color: var(--accent-dim); text-decoration: none; }

.chat-thread { padding: 18px 4px; display: flex; flex-direction: column; gap: 10px; }
.bubble-row { display: flex; }
.bubble-row.mine { justify-content: flex-end; }
.bubble {
  max-width: 75%;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 10px; border-bottom-left-radius: 3px;
  padding: 9px 13px; font-size: 13.5px;
}
.bubble-mine {
  background: var(--accent-bg); border-color: rgba(47, 212, 192, 0.25);
  border-radius: 10px; border-bottom-right-radius: 3px;
}
.bubble-time { color: var(--txt-3); font-size: 11px; margin-top: 4px; }

.chat-form { display: flex; gap: 10px; align-items: flex-end; }
.chat-form textarea { flex: 1; }

/* ===== Groupes ===== */
.member-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.member-name { display: inline-flex; align-items: center; gap: 8px; color: var(--txt) !important; }
.member-name:hover { text-decoration: none; }
.member-name:hover b { color: var(--accent); }
.avatar-ghost { background: var(--bg-hover); color: var(--txt-3); border: 1px dashed var(--border); }

.invite-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px;
  border-color: var(--accent-dim); background: var(--accent-bg);
}
.invite-banner form { display: flex; gap: 8px; }
.link-ghost-form { display: flex; gap: 6px; align-items: center; }
.link-ghost-form input[type="text"] { width: 180px; padding: 4px 10px; font-size: 12.5px; }

/* ===== Agenda du groupe ===== */
.agenda-section { margin: 20px 0 10px; }
.event-card { margin-bottom: 10px; }
.event-cancelled { opacity: 0.55; }
.event-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.event-admin { align-items: flex-start; }
.event-notes { margin-top: 6px; font-size: 12.5px; }
.radio-cards-2 { grid-template-columns: 1fr 1fr; margin-bottom: 8px; }

.dispo-zone {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}
.dispo-list { display: flex; flex-wrap: wrap; gap: 6px; }
.dispo-chip {
  font-size: 12px; padding: 2px 8px; border-radius: 10px;
  background: var(--bg-hover); color: var(--txt-3); border: 1px solid var(--border);
}
.dispo-yes   { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.dispo-no    { color: var(--err); background: var(--err-bg); border-color: transparent; }
.dispo-maybe { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.dispo-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dispo-on-yes   { color: var(--ok) !important; border-color: var(--ok) !important; }
.dispo-on-no    { color: var(--err) !important; border-color: var(--err) !important; }
.dispo-on-maybe { color: var(--warn) !important; border-color: var(--warn) !important; }

.panel-dates { margin-bottom: 16px; }

/* ===== Page groupe : ambiance & mise en page ===== */
.band-backdrop {
  position: absolute; top: 0; left: 0; right: 0; height: 460px;
  background-size: cover; background-position: center;
  filter: blur(70px) saturate(1.3);
  opacity: 0.22; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
          mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
body { position: relative; overflow-x: hidden; }

.band-layout {
  display: grid; grid-template-columns: 1.8fr 1fr; gap: 26px; align-items: start;
}
.band-layout-solo { grid-template-columns: 1fr; }
@media (max-width: 900px) { .band-layout { grid-template-columns: 1fr; gap: 8px; } }

.band-section { margin-bottom: 24px; }
.bs-title {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--txt-3); font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.bs-title::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }

.band-bio { color: var(--txt-2); font-size: 14px; line-height: 1.65; max-width: 640px; }

/* Dates façon affiche de salle */
.date-list { display: flex; flex-direction: column; }
.date-row {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 4px; border-bottom: 1px solid var(--border-soft);
}
.date-row:last-child { border-bottom: none; }
.date-chip {
  width: 56px; flex-shrink: 0; text-align: center;
  background: var(--accent-bg); border-radius: 8px; padding: 7px 0 6px;
}
.date-chip b { display: block; font-size: 21px; line-height: 1; color: var(--accent); }
.date-chip span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--txt-2); }
.date-body b { font-size: 14px; }

/* Liens « Suivre » */
.follow-list { display: flex; flex-direction: column; gap: 2px; }
.follow-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius);
  color: var(--txt-2) !important; font-weight: 500; font-size: 13px;
}
.follow-list a:hover { background: var(--bg-hover); color: var(--txt) !important; text-decoration: none; }
.follow-icon { width: 20px; text-align: center; }
.follow-arrow { margin-left: auto; color: var(--txt-3); font-size: 12px; }

/* Line-up */
.lineup-list { display: flex; flex-direction: column; gap: 4px; }
.lineup-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; }
.lineup-row .avatar-lg, .lineup-row .avatar { border-radius: 50%; }
.lineup-who { display: flex; flex-direction: column; line-height: 1.25; }
.lineup-who small { color: var(--txt-3); font-size: 11.5px; }

/* Booking */
.booking-card {
  background: var(--accent-bg); border: 1px solid var(--accent-dim);
  border-radius: var(--radius); padding: 14px 16px;
}
.booking-card .bs-title { color: var(--accent); }
.booking-card .bs-title::after { background: var(--accent-dim); }
.booking-card p { color: var(--txt-2); font-size: 12.5px; margin-bottom: 10px; }
.booking-card .btn-block { margin-top: 0; }

/* ===== Fond de page choisi par le groupe ===== */
/* Bandeau haut plutôt que plein écran : le format large permet à la photo
   de caler sur toute la LARGEUR (rien de perdu sur les côtés), puis elle
   se fond dans le fond sombre vers le bas. */
.band-page-bg {
  position: fixed; top: 0; left: 0; right: 0; height: 64vh; z-index: -2;
  background-size: cover; background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent);
          mask-image: linear-gradient(to bottom, #000 45%, transparent);
}
.band-page-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(var(--overlay-rgb), 0.45) 0%,
    rgba(var(--overlay-rgb), 0.72) 100%);
}

.photo-bg-form { position: absolute; bottom: 6px; left: 6px; }
.photo-bg-btn {
  background: rgba(0, 0, 0, 0.65); color: #ddd; border: none;
  border-radius: 10px; padding: 3px 9px; font-size: 11px;
  cursor: pointer; font-family: inherit;
}
.photo-bg-btn:hover { color: var(--accent); }
.photo-bg-btn.on { background: var(--accent); color: var(--accent-contrast); font-weight: 700; }
.photo-is-backdrop { outline: 2px solid var(--accent); }

/* ===== Galerie photos ===== */
.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
@media (max-width: 600px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
.photo-thumb {
  position: relative; display: block; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-soft); background: var(--bg-panel);
}
.photo-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.25s ease;
}
a.photo-thumb:hover img { transform: scale(1.04); }
.photo-grid-manage .photo-thumb { aspect-ratio: 1 / 1; }
.photo-delete {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.65); color: #fff; border: none;
  cursor: pointer; font-size: 12px; line-height: 1;
}
.photo-delete:hover { background: var(--err); }
.photo-grid-manage { margin-bottom: 12px; }

/* Visionneuse plein écran */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 10, 12, 0.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.lb-open { display: flex; }
.lightbox img {
  max-width: calc(100vw - 110px); max-height: calc(100vh - 60px);
  border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
@media (max-width: 600px) { .lightbox img { max-width: 100vw; } }
.lightbox button {
  position: absolute; background: none; border: none; cursor: pointer;
  color: #ddd; font-size: 30px; padding: 14px; line-height: 1;
}
.lightbox button:hover { color: var(--accent); }
.lb-close { top: 8px; right: 12px; font-size: 22px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); font-size: 44px; }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); font-size: 44px; }
.lb-count {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  color: var(--txt-3); font-size: 12.5px;
}

/* ===== Hero sans bannière : grand nom sur panneau translucide ===== */
.band-hero2 {
  display: flex; align-items: center; gap: 20px;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
  margin-bottom: 16px;
}
.hero-on-photo {
  margin-top: min(5vh, 46px);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.band-title { font-size: 31px; letter-spacing: -0.5px; line-height: 1.15; }
.band-title .badge { vertical-align: 6px; }
.band-hero-logo2 {
  width: 104px; height: 104px; font-size: 40px; border-radius: 14px;
  flex-shrink: 0; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.band-hero2 .profile-head-actions { margin-left: auto; align-self: flex-start; padding-top: 4px; }
@media (max-width: 800px) {
  .band-hero2 { flex-wrap: wrap; padding: 16px; gap: 14px; }
  .hero-on-photo { margin-top: 3vh; }
  .band-title { font-size: 23px; }
  .band-hero-logo2 { width: 72px; height: 72px; font-size: 28px; border-radius: 10px; }
  .band-hero2 .profile-head-actions { margin-left: 0; }
}

/* ===== Hero de la page groupe ===== */
.band-hero { margin-bottom: 16px; }
.band-hero-banner {
  aspect-ratio: 1640 / 624;
  max-height: 380px; /* évite une bannière massive sur grand écran */
  border: 1px solid var(--border); border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
}
.band-hero-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.band-hero-placeholder {
  aspect-ratio: 1640 / 260;
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--bg-hover) 55%, var(--bg-panel) 100%);
}
.band-hero-bar {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 14px 18px 16px;
}
.band-hero-bar h1 { font-size: 20px; }
.band-hero-logo {
  width: 96px; height: 96px; font-size: 38px; border-radius: 12px;
  margin-top: -46px; flex-shrink: 0;
  border: 3px solid var(--bg-panel);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.band-hero-bar .profile-head-actions { margin-left: auto; padding-top: 2px; }
@media (max-width: 800px) {
  .band-hero-logo { width: 68px; height: 68px; font-size: 26px; margin-top: -30px; border-radius: 10px; }
  .band-hero-bar { flex-wrap: wrap; padding: 10px 12px 14px; }
  .band-hero-bar .profile-head-actions { margin-left: 0; }
}

/* Grille de vidéos (miniatures cliquables) */
.video-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }
.video-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  overflow: hidden; padding: 0; cursor: pointer; background: #000;
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.25s ease; opacity: 0.9;
}
.video-thumb:hover img { transform: scale(1.04); opacity: 1; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(12, 18, 16, 0.75); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; padding-left: 4px;
  transition: background 0.2s ease;
}
.video-thumb:hover .video-play { background: var(--accent); color: var(--accent-contrast); }
.video-frame {
  width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block;
}
.video-title {
  font-size: 12.5px; color: var(--txt-2); margin-top: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.spotify-wrap { margin-bottom: 16px; }
.spotify-wrap iframe { display: block; border-radius: 12px; border: 0; }

/* ===== EPK (page publique du groupe) ===== */
.band-tagline { color: var(--txt-2); font-size: 14px; margin-top: 3px; font-style: italic; }
.epk-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.video-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  margin-bottom: 16px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: #000;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.booking-box {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft);
  font-size: 13px; color: var(--txt-2);
}
.booking-box b { color: var(--txt); display: block; margin-bottom: 2px; }
.booking-solo { margin-top: 0; padding-top: 0; border-top: none; }

/* ===== Administration ===== */
.nav-admin { color: var(--warn) !important; }
.nav-admin:hover { background: var(--warn-bg) !important; }
.admin-search { display: flex; gap: 8px; margin-bottom: 14px; max-width: 420px; }
.admin-stats { margin-bottom: 18px; }
.admin-stats .card h3 { font-size: 22px; color: var(--accent); }
.admin-stats .card p { color: var(--txt-2); font-size: 12.5px; margin-top: 2px; }
.admin-cols { grid-template-columns: 1fr 1fr; }
.admin-row-suspended td { opacity: 0.55; }

/* ===== Merch du groupe ===== */
.merch-item { padding: 16px; }
.merch-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.merch-photo {
  width: 64px; height: 64px; border-radius: 8px; object-fit: cover;
  border: 1px solid var(--border); flex-shrink: 0;
}
.merch-photo-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: var(--bg-hover);
}
.merch-title { flex: 1; min-width: 0; }
.merch-price { color: var(--accent); font-weight: 700; font-size: 15px; margin-top: 2px; }
.merch-grid-form { grid-template-columns: 1fr 1.4fr 1fr; }

.merch-variants { display: flex; flex-direction: column; gap: 6px; }
.merch-variant {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 10px; background: var(--bg); border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.merch-out { opacity: 0.6; }
.merch-var-label { font-weight: 700; min-width: 52px; }
.merch-var-stock { color: var(--txt-2); font-size: 12.5px; min-width: 84px; }
.merch-stock-form { display: flex; gap: 6px; }
.merch-stock-form input { width: 64px; padding: 4px 8px; }
.merch-admin-row {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px;
  padding-top: 10px; border-top: 1px solid var(--border-soft);
}
.merch-inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.merch-inline input[type="text"] { width: 150px; padding: 4px 8px; }
.merch-inline input[type="number"] { width: 60px; padding: 4px 8px; }
.merch-check { margin: 0; padding: 0; }

/* Commandes en ligne */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.merch-order summary { list-style: none; text-align: center; }
.merch-order summary::-webkit-details-marker { display: none; }
.merch-order form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.merch-order input, .merch-order select { padding: 6px 9px; font-size: 12.5px; }
.orders-panel-new { border-color: var(--warn); }
.order-handled { opacity: 0.55; }

/* Vitrine publique */
.merch-public-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.merch-card {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--bg-panel); border: 1px solid var(--border-soft);
  border-radius: 8px; padding: 10px; font-size: 12.5px;
}
.merch-card img, .merch-card-empty {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px;
}
.merch-card-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; background: var(--bg-hover);
}
.merch-card-price { color: var(--accent); font-weight: 700; }
.merch-card-out { opacity: 0.65; }
.merch-public-note { margin-top: 8px; font-size: 12px; }

/* ===== Fiche technique ===== */
.tech-sheet { max-width: 980px; margin: 0 auto; }
.tech-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tech-band-name { font-size: 21px; margin-bottom: 4px; }
.tech-contact { text-align: right; font-size: 13px; color: var(--txt-2); }
.tech-contact b { color: var(--txt); display: block; margin-bottom: 2px; }
.tech-sub { margin: 12px 0 4px; color: var(--txt-2); }
.tech-footer { text-align: center; margin-top: 16px; font-size: 11.5px; }

.tech-table-wrap { overflow-x: auto; }
.tech-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tech-table th {
  text-align: left; padding: 7px 10px; color: var(--txt-3);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.tech-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }

.stage-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.stage-cell {
  min-height: 76px; border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 8px 10px;
}
.stage-cell-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--txt-3); margin-bottom: 4px; }
.stage-cell-name { font-size: 13px; font-weight: 600; color: var(--accent); }
.stage-front-label { text-align: center; margin-top: 8px; letter-spacing: 3px; font-size: 11px; }

/* ===== Répertoire & setlists ===== */
.band-toolbar { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.band-toolbar::-webkit-scrollbar { display: none; }
.accent-txt { color: var(--accent); }
.song-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
@media (max-width: 800px) { .song-grid { grid-template-columns: repeat(2, 1fr); } }
.song-row { gap: 10px; }
.setlist-create { display: flex; gap: 10px; }
.setlist-create input[type="text"], .setlist-create select { flex: 1; }
.setlist-pos { color: var(--txt-3); font-weight: 600; min-width: 24px; display: inline-block; }
.setlist-song-row .owner-actions form { display: flex; gap: 4px; }
.print-only { display: none; }

/* ===== Tableau de bord ===== */
.dash-prompts { display: grid; gap: 8px; margin-bottom: 18px; }
.dash-prompt {
  color: var(--txt-2) !important; font-size: 13px;
  border-color: var(--accent-dim); padding: 12px 16px;
}
.dash-prompt:hover { text-decoration: none; background: var(--bg-hover); }
.dash-prompt b { color: var(--accent); }

.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-section { margin-top: 22px; }

.dash-band { margin-bottom: 10px; padding: 12px 14px; }
.dash-band-next { margin-top: 8px; font-size: 12.5px; color: var(--txt-2); }
.dash-band-links {
  display: flex; gap: 4px 14px; flex-wrap: wrap; margin-top: 8px;
  padding-top: 8px; border-top: 1px solid var(--border-soft); font-size: 12.5px;
}

/* ===== Calendrier mensuel de l'agenda ===== */
.cal { margin-bottom: 18px; }
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
}
.cal-dow {
  text-align: center; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--txt-3); padding: 4px 0;
}
.cal-cell {
  min-height: 74px; background: var(--bg); border: 1px solid var(--border-soft);
  border-radius: 4px; padding: 4px; overflow: hidden;
}
.cal-empty { background: transparent; border-color: transparent; }
.cal-today { border-color: var(--accent); }
.cal-today .cal-day { color: var(--accent); font-weight: 700; }
.cal-day { font-size: 11.5px; color: var(--txt-3); margin-bottom: 3px; }
.cal-chip {
  display: block; margin-bottom: 2px; padding: 2px 5px;
  border-radius: 4px; font-size: 10.5px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--bg-hover); color: var(--txt-2) !important;
  border-left: 2px solid var(--txt-3);
}
.cal-chip:hover { text-decoration: none; color: var(--txt) !important; }
.cal-concert { border-left-color: var(--accent); background: var(--accent-bg); color: var(--accent) !important; }
.cal-cancelled { opacity: 0.45; text-decoration: line-through; }
.cal-legend { margin-top: 8px; font-size: 11.5px; }
.cal-chip-dot { display: none; }
@media (max-width: 800px) {
  .cal-cell { min-height: 52px; padding: 3px; }
  .cal-chip { padding: 1px 3px; text-align: center; }
  .cal-chip-label { display: none; }
  .cal-chip-dot { display: inline; font-size: 12px; }
}
html { scroll-behavior: smooth; }
.event-card { scroll-margin-top: 66px; }

/* ===== Caisse du groupe ===== */
.cash-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .cash-stats { grid-template-columns: 1fr; } }
.cash-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--txt-3); margin-bottom: 4px; }
.cash-amount { font-size: 21px; font-weight: 700; }
.cash-balance .cash-amount { color: var(--accent); }
.cash-balance.cash-neg .cash-amount { color: var(--err); }
.cash-in { color: var(--ok); }
.cash-out { color: var(--err); }
.cash-tx-amount { font-weight: 700; min-width: 96px; display: inline-block; }

/* ===== Impression (fiche technique → PDF) ===== */
@media print {
  :root {
    --bg: #ffffff; --bg-panel: #ffffff; --bg-hover: #f2f2f2;
    --border: #999; --border-soft: #ccc;
    --txt: #000; --txt-2: #333; --txt-3: #666;
    --accent: #000; --accent-dim: #333; --accent-bg: #eee;
  }
  body { background: #fff; color: #000; }
  .topbar, .flash-zone, .no-print, .backlink, .stage-lights, .grain, .bottomnav, .marquee { display: none !important; }
  .container { padding: 0; max-width: none; }
  .panel { border: 1px solid #999; break-inside: avoid; }
  .stage-cell-name { color: #000; }
  a { color: #000; text-decoration: none; }

  /* Setlist imprimée : gros caractères, lisible posée au sol sur scène */
  .print-only { display: block; }
  .setlist-print-head { font-size: 16pt; margin-bottom: 10pt; }
  .setlist-songs { border: none !important; padding: 0 !important; }
  .setlist-song-row { border-bottom: 1px solid #ccc !important; padding: 6pt 0 !important; }
  .setlist-pos { font-size: 20pt; color: #000; }
  .setlist-title { font-size: 20pt; }
  .setlist-artist { font-size: 12pt; color: #444 !important; }
  .setlist-key { font-size: 12pt; border: 1px solid #999 !important; color: #000 !important; background: #fff !important; }
}

.alert-form { margin-bottom: 6px; }
.alert-form label.check { margin: 2px 0 6px; }
.sidebar-hint { color: var(--txt-3); font-size: 12px; padding: 2px 10px 6px; }

/* ===== Guide « Ton cachet, sans prise de tête » ===== */
.guide-page { max-width: 760px; margin: 0 auto; }
.guide-head { text-align: center; }
.guide-intro { color: var(--txt-2); margin: 0 0 16px; font-size: 14px; line-height: 1.55; }
.guide-intro b { color: var(--txt); }

.guide-picker { margin-bottom: 18px; }
.guide-picker ul { margin: 8px 0 0; padding: 0; list-style: none; }
.guide-picker li { padding: 4px 0; color: var(--txt-2); }
.guide-picker a { color: var(--accent); font-weight: 600; }

.guide-way { margin-bottom: 14px; scroll-margin-top: 70px; }
.guide-way p { line-height: 1.55; color: var(--txt-2); }
.guide-way p b, .guide-facts b { color: var(--txt); }
.guide-way-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.guide-way-head h2 { margin: 0; }
.guide-way-tag { margin: 2px 0 0 !important; color: var(--accent) !important; font-size: 12.5px; font-weight: 600; }
.guide-num {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-bg); color: var(--accent);
  font-weight: 800; font-size: 16px; border: 1px solid var(--accent-dim);
}
.guide-facts { margin: 10px 0; padding-left: 18px; }
.guide-facts li { padding: 2.5px 0; color: var(--txt-2); line-height: 1.5; }

.guide-callout {
  margin-top: 12px; padding: 10px 12px; border-radius: var(--radius);
  background: var(--accent-bg); border: 1px solid var(--accent-dim);
  color: var(--txt); line-height: 1.5; font-size: 13px;
}
.guide-warn {
  margin: 4px 0 18px; padding: 10px 12px; border-radius: var(--radius);
  background: var(--warn-bg); border: 1px solid var(--warn);
  color: var(--txt); line-height: 1.5; font-size: 13px;
}
.guide-links ul { margin: 8px 0 0; padding-left: 18px; }
.guide-links li { padding: 3px 0; color: var(--txt-2); line-height: 1.5; }
.guide-disclaimer { color: var(--txt-3); font-size: 12px; text-align: center; margin: 16px 0; }
.guide-cta { text-align: center; margin: 20px 0 8px; }
.guide-cta p { color: var(--txt-2); margin-bottom: 10px; }

/* Rappel discret vers le guide (caisse, agenda) */
.guide-hint {
  margin-bottom: 14px; padding: 8px 12px; border-radius: var(--radius);
  background: var(--accent-bg); border: 1px dashed var(--accent-dim);
  font-size: 13px; color: var(--txt-2);
}
.guide-hint a { color: var(--accent); font-weight: 600; }
.land-guide { margin-top: 14px; color: var(--txt-2); font-size: 13.5px; }
.land-guide a { color: var(--accent); font-weight: 700; }

/* ===== Hub des guides ===== */
.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px; max-width: 760px; margin: 0 auto;
}
.guide-card { display: block; color: var(--txt); position: relative; }
.guide-card:hover { border-color: var(--accent-dim); text-decoration: none; }
.guide-card h2 { margin: 8px 0 6px; font-size: 16px; }
.guide-card p { color: var(--txt-2); line-height: 1.5; margin: 0 0 10px; }
.guide-card-icon { font-size: 26px; }
.guide-card-go { color: var(--accent); font-weight: 700; font-size: 13px; }
.guide-card-soon { opacity: 0.75; }
.guide-card-soon .soon-pill { position: absolute; top: 10px; right: 10px; }
.guide-suggest { text-align: center; color: var(--txt-2); margin: 18px auto; max-width: 760px; }
.guide-suggest a { color: var(--accent); font-weight: 600; }

/* ===== Dossier ASBL ===== */
.panel-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.panel-head-row h2 { margin: 0; }

.asbl-intro p { line-height: 1.55; color: var(--txt-2); }
.asbl-intro b { color: var(--txt); }
.asbl-intro a { color: var(--accent); font-weight: 600; }

.asbl-deadlines { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.asbl-deadline {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--radius);
  border: 1px solid var(--border-soft); background: var(--bg);
}
.asbl-deadline > div { flex: 1; }
.asbl-deadline p { margin: 2px 0 0; color: var(--txt-2); font-size: 12.5px; line-height: 1.45; }
.asbl-deadline-state { font-size: 15px; width: 22px; text-align: center; flex: 0 0 auto; }
.asbl-ok   { border-color: var(--ok); background: var(--ok-bg); }
.asbl-ok   .asbl-deadline-state { color: var(--ok); }
.asbl-due  { border-color: var(--warn); background: var(--warn-bg); }
.asbl-late { border-color: var(--err); background: var(--err-bg); }
.asbl-wait { opacity: 0.65; }
.asbl-done-form { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.asbl-done-form input[type="date"] { width: auto; margin: 0; padding: 4px 6px; font-size: 12px; }

.asbl-danger { display: flex; justify-content: flex-end; }
.asbl-danger form { display: flex; align-items: center; gap: 10px; }

.asbl-pv-form h2 { margin: 18px 0 8px; font-size: 14px; color: var(--accent); }
.asbl-pv-form h2:first-of-type { margin-top: 4px; }

/* Documents officiels (registre, PV) : mise en page sobre, pensée papier */
.asbl-doc { max-width: 760px; margin: 0 auto; line-height: 1.6; }
.asbl-doc-head { text-align: center; margin-bottom: 18px; }
.asbl-doc-head h2 { margin-bottom: 6px; }
.asbl-doc-head p { color: var(--txt-2); }
.asbl-doc h3 { margin: 16px 0 6px; font-size: 14px; }
.asbl-doc p { color: var(--txt-2); }
.asbl-doc p b { color: var(--txt); }
.asbl-doc-list { margin: 6px 0 10px; padding-left: 22px; color: var(--txt-2); }
.asbl-doc-list li { padding: 1px 0; }
.asbl-doc-closing { margin-top: 18px; }
.asbl-doc-foot { font-size: 12px; color: var(--txt-3); margin-top: 14px; }

.asbl-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.asbl-table th, .asbl-table td {
  border: 1px solid var(--border); padding: 7px 9px;
  text-align: left; font-size: 13px;
}
.asbl-table th { color: var(--txt-2); font-weight: 600; background: var(--bg); }
.asbl-table-empty td { height: 30px; }

.asbl-signatures { display: flex; gap: 40px; margin-top: 34px; }
.asbl-signatures > div { flex: 1; text-align: center; }
.asbl-sign-line { border-bottom: 1px solid var(--txt-3); height: 44px; margin-bottom: 8px; }

@media print {
  .asbl-doc { border: none !important; max-width: none; color: #000; }
  .asbl-doc h2, .asbl-doc h3, .asbl-doc p, .asbl-doc p b,
  .asbl-doc-list, .asbl-doc-head p { color: #000 !important; }
  .asbl-doc-foot { color: #444 !important; }
  .asbl-table th, .asbl-table td { border-color: #666 !important; color: #000 !important; background: #fff !important; }
  .asbl-sign-line { border-color: #000; }
}

/* ===== Barre du groupe : collante sous le topbar, présente partout ===== */
.band-toolbar-wrap {
  position: sticky; top: 54px; z-index: 9;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(10px);
  margin: 0 -20px 16px; padding: 6px 20px 0;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.5);
}
.container > .band-toolbar-wrap:first-child { margin-top: -20px; }
@media (max-width: 800px) {
  .band-toolbar-wrap { margin: 0 -12px 14px; padding: 4px 12px 0; }
  .container > .band-toolbar-wrap:first-child { margin-top: -14px; }
}
.band-toolbar { border-bottom: 1px solid var(--border-soft); padding-bottom: 6px; }
.band-toolbar a { flex: 0 0 auto; }
.band-toolbar-band {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--txt) !important; padding-left: 4px !important;
  margin-right: 6px;
}
.band-toolbar-band b {
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 650;
}
.band-toolbar-band.on b { color: var(--accent); }
.avatar.band-toolbar-avatar {
  width: 22px; height: 22px; font-size: 9px; border-radius: 5px; flex: 0 0 auto;
}

/* ===== Palette vivante : rythme coloré des titres et touches chaudes ===== */
.panel > h2, .panel-head-row h2, .land-section-head h2 {
  position: relative; padding-left: 12px;
}
.panel > h2::before, .panel-head-row h2::before, .land-section-head h2::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 74%; min-height: 12px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--coral));
}

/* Les cartes de la landing prennent le même relief que les panneaux */
.feature { box-shadow: var(--shadow); }

/* Dates de concert : pastille chaude (l'agenda, c'est la scène) */
.date-chip { background: var(--accent-2-bg); }
.date-chip b { color: var(--accent-2); }

/* Compteurs de la landing : alternance chaud / froid */
.land-stats b { color: var(--accent); }
.land-stats span:nth-child(4n + 3) b { color: var(--accent-2); }

/* Cadres : voile lumineux en transparence par-dessus le fond */
.panel, .card, .feature { background-image: var(--veil); }

/* ===== Landing v4 : hero « Scène », bandeau, CTA ===== */
.hero-v4 { max-width: 1080px; margin: 0 auto; padding: 62px 10px 20px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 28px;
  border: 1px solid var(--accent-dim);
  color: var(--accent); font-weight: 600; font-size: 12.5px; letter-spacing: 0.3px;
}
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: heartbeat 1.7s infinite; }
@keyframes heartbeat { 50% { opacity: 0.25; } }
.hero-title {
  font-family: "Unbounded", "Space Grotesk", sans-serif; font-weight: 900;
  font-size: clamp(36px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -1px;
  text-transform: uppercase;
}
.hero-title .w1 { display: block; }
.hero-title .w2 {
  display: block;
  background: linear-gradient(92deg, var(--coral) 8%, var(--accent) 58%, var(--lime));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-v4 .hero-sub {
  color: var(--txt-2); font-size: 16px; max-width: 540px;
  margin: 24px 0 30px; line-height: 1.65;
}
.hero-v4 .hero-sub b { color: var(--txt); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.arrow { display: inline-block; transition: transform 0.16s; }
.btn:hover .arrow { transform: translateX(3px); }

.hero-stats {
  display: flex; margin-top: 46px; border-top: 1px solid var(--border-soft);
  padding-top: 22px; flex-wrap: wrap; row-gap: 14px;
}
.hstat { padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--border-soft); }
.hstat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hstat b { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 22px; display: block; letter-spacing: -0.5px; }
.hstat span { color: var(--txt-3); font-size: 12px; letter-spacing: 0.4px; }
.hstat:nth-child(1) b { color: var(--coral); }
.hstat:nth-child(2) b { color: var(--accent); }
.hstat:nth-child(3) b { color: var(--lime); }

/* Bandeau défilant : la vie de la scène, en corail */
.marquee {
  background: linear-gradient(90deg, var(--coral), var(--coral-2));
  color: var(--btn-txt);
  transform: rotate(-1deg) scale(1.02);
  padding: 9px 0; margin: 30px -20px 44px;
  overflow: hidden; white-space: nowrap;
  font-weight: 700; font-size: 12.5px; letter-spacing: 0.6px;
}
.marquee-track { display: inline-block; animation: ticker 30s linear infinite; }
.marquee span { margin: 0 20px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Icônes des cartes features : boîte teintée par couleur */
.feature .feature-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-soft); font-size: 21px; margin-bottom: 12px;
}
.feature.t-coral .feature-icon { background: var(--coral-bg); border-color: rgba(255, 98, 71, 0.35); }
.feature.t-teal .feature-icon  { background: var(--accent-bg); border-color: rgba(43, 217, 200, 0.32); }
.feature.t-lime .feature-icon  { background: var(--lime-bg); border-color: rgba(214, 247, 90, 0.28); }
.feature.t-coral:hover { border-color: rgba(255, 98, 71, 0.4); }
.feature.t-teal:hover  { border-color: rgba(43, 217, 200, 0.4); }
.feature.t-lime:hover  { border-color: rgba(214, 247, 90, 0.32); }

/* CTA final plein cadre */
.big-cta {
  border-radius: 24px; padding: 58px 28px; text-align: center;
  margin: 44px auto 10px; max-width: 960px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(560px 300px at 12% 0%, rgba(255, 98, 71, 0.28), transparent 60%),
    radial-gradient(560px 320px at 88% 100%, rgba(43, 217, 200, 0.24), transparent 60%),
    var(--bg-panel);
  border: 1px solid var(--border-soft);
}
.big-cta h2 {
  font-family: "Unbounded", sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: clamp(22px, 3.8vw, 38px); letter-spacing: -0.5px; margin-bottom: 12px; line-height: 1.14;
}
.big-cta h2 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--accent), var(--lime));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.big-cta p { color: var(--txt-2); margin-bottom: 24px; }

/* Titres centrés : le serif italique en accent teal */
.land-center .serif, .land-section-head .serif { color: var(--accent); font-size: 1.12em; }
.land-section-head h2 { font-weight: 600; letter-spacing: -0.5px; }
h2.land-center { font-size: 21px; font-weight: 600; letter-spacing: -0.5px; }
@media (max-width: 800px) {
  .marquee { margin: 24px -12px 36px; }
}

/* ===== Intérieur v4 : titres et cartes au diapason ===== */
.page-head h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.6px; }
.band-title { font-family: "Unbounded", "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -0.5px; }
.person-card { border-radius: var(--r-lg); border-color: var(--border-soft); box-shadow: var(--shadow); background-image: var(--veil); transition: transform 0.16s, border-color 0.16s; }
.person-card:hover { transform: translateY(-3px); border-color: var(--accent-dim); }
.lc-card, .listing-card { border-radius: var(--r-lg); }
.step { border-radius: var(--r-lg); }
.step-num {
  background: linear-gradient(135deg, var(--coral), var(--coral-2));
  color: var(--btn-txt);
}

/* Bandeau défilant en tête du tableau de bord : cliquable, pause au survol */
.marquee a { color: inherit; margin: 0 20px; }
.marquee a:hover { text-decoration: underline; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-top {
  transform: none;               /* droit, aligné sur les cadres */
  margin: 0 0 16px; border-radius: 12px;
}
@media (max-width: 800px) { .marquee-top { margin: 0 0 14px; } }

/* ===== Comptes préparés & invitations ===== */
.impersonation-bar {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 16px; font-size: 13px;
  background: linear-gradient(90deg, var(--warn-bg), rgba(240, 180, 92, 0.2));
  border-bottom: 1px solid var(--warn); color: var(--txt);
}
.impersonation-bar button {
  background: var(--warn); color: #241703; border: none; border-radius: 999px;
  padding: 4px 13px; font-weight: 700; font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.invite-create summary { cursor: pointer; }
.invite-create[open] summary { margin-bottom: 8px; }
.invite-create .btn { margin-top: 14px; }

.auth-page { max-width: 480px; margin: 30px auto; }
.invite-head { text-align: center; margin-bottom: 14px; }
.invite-head .avatar-xl { margin: 0 auto 12px; }
.invite-head h1 { font-size: 22px; letter-spacing: -0.5px; }
.invite-summary { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 6px; }
.invite-foot { font-size: 12.5px; margin-top: 14px; text-align: center; }
.greet-pseudo { font-size: 13px; font-weight: 500; color: var(--txt-3); letter-spacing: 0; }

/* ===== Natures de groupes : chaque famille sa couleur, les compos en avant ===== */
.badge-compos {
  background: var(--coral-bg); color: var(--coral-2);
  border: 1px solid rgba(255, 98, 71, 0.4);
}
.badge-compos::before { content: '✦ '; }
:root[data-theme="light"] .badge-compos { color: var(--coral); }
.badge-cover {
  background: var(--accent-bg); color: var(--accent);
  border: 1px solid rgba(43, 217, 200, 0.35);
}
.badge-tribute {
  background: var(--lime-bg); color: var(--lime);
  border: 1px solid rgba(214, 247, 90, 0.3);
}
:root[data-theme="light"] .badge-tribute { color: #6d8410; }

/* Carte d'un groupe à compos : cadre discrètement réchauffé */
.person-card-compos { border-color: rgba(255, 98, 71, 0.22); }
.person-card-compos:hover { border-color: rgba(255, 98, 71, 0.5); }

/* Vérification d'une demande de gestion de fiche (admin) */
.claim-review { border-color: var(--warn); }
.claim-review-facts { list-style: none; padding: 0; margin: 8px 0 10px; }
.claim-review-facts li { padding: 3px 0; color: var(--txt-2); }
.claim-review-facts b { color: var(--txt); }
.claim-review .owner-actions { display: flex; gap: 10px; margin-top: 10px; }

/* ===== Kit organisateur ===== */
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.kit-item {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-panel); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 10px; text-align: center;
}
.kit-item img { width: 100%; border-radius: 8px; object-fit: cover; aspect-ratio: 1; }
.kit-item-wide { grid-column: 1 / -1; }
.kit-item-wide img { aspect-ratio: 1640 / 624; }
