/* ==========================================================
   culturel.net — Design system
   Esprit "site de rencontre" : chaud, moderne, épuré.
   ========================================================== */

:root {
  --c-bg:        #fafafa;
  --c-surface:   #ffffff;
  --c-text:      #1a1a2e;
  --c-muted:     #6b6b80;
  --c-border:    #ececf2;
  --c-accent-1:  #ff4b6e;
  --c-accent-2:  #c44ad8;
  --c-accent-3:  #ff8a5b;
  --c-success:   #10b981;
  --c-error:     #ef4444;

  --grad-accent: linear-gradient(135deg, var(--c-accent-1) 0%, var(--c-accent-2) 100%);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(20, 20, 50, .04);
  --shadow:    0 8px 30px rgba(20, 20, 50, .06);
  --shadow-lg: 0 20px 60px rgba(20, 20, 50, .12);

  --font:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-text);
  font-weight: 700;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--grad-accent);
  box-shadow: 0 4px 12px rgba(255, 75, 110, .35);
}
.logo-text { font-size: 18px; letter-spacing: -.01em; }
.logo-text span { color: var(--c-accent-1); }

.app-nav { display: flex; align-items: center; gap: 16px; }
.nav-bar-name { color: var(--c-muted); font-size: 14px; font-weight: 500; }
.nav-link {
  color: var(--c-text);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .15s;
}
.nav-link:hover { background: #f3f3f7; text-decoration: none; }
.nav-link--ghost { color: var(--c-muted); }
.nav-link--cta {
  background: var(--grad-accent);
  color: #fff;
  padding: 10px 18px;
  box-shadow: 0 4px 14px rgba(255, 75, 110, .25);
}
.nav-link--cta:hover { color: #fff; opacity: .95; }

/* ---------- Main / Footer ---------- */
.app-main { flex: 1; }
.app-footer {
  padding: 24px 32px;
  text-align: center;
  color: var(--c-muted);
  font-size: 13px;
  border-top: 1px solid var(--c-border);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 75, 110, .3);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255, 75, 110, .35); }
.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
}
.btn--ghost:hover { background: #f3f3f7; }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 8px 16px; font-size: 13px; }

/* ==========================================================
   Landing page (index.php)
   ========================================================== */
.lp-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 60px;
}
.lp-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-accent-1);
  margin: 0 0 18px;
}
.lp-h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  margin: 0 0 22px;
  font-weight: 800;
  letter-spacing: -.025em;
}
.lp-lede {
  color: var(--c-muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 540px;
}
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.lp-hero__note { font-size: 12px; color: var(--c-muted); margin: 0; letter-spacing: .03em; }

/* Visuel hero : mockups écran + téléphone */
.lp-hero__visual {
  position: relative;
  height: 460px;
  perspective: 1200px;
}
.lp-screen-mockup {
  position: absolute;
  top: 30px; left: 0; right: 80px;
  height: 280px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2a1a4e 100%);
  border-radius: 18px;
  padding: 20px 26px;
  color: #fff;
  box-shadow: 0 30px 70px rgba(20, 20, 50, .25);
  transform: rotate(-2deg);
  display: flex;
  flex-direction: column;
}
.lp-screen-mockup__bar {
  width: 60px; height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 4px;
  margin: 0 auto 18px;
}
.lp-screen-mockup__content { display: flex; gap: 22px; align-items: center; flex: 1; }
.lp-screen-mockup__qr {
  width: 130px; height: 130px;
  background: #fff;
  border-radius: 14px;
  border: 5px solid var(--c-accent-1);
  display: grid; place-items: center;
  font-size: 50px;
  flex-shrink: 0;
}
.lp-screen-mockup__eyebrow { font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--c-accent-1); font-weight: 700; margin-bottom: 4px; }
.lp-screen-mockup__title { font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }

.lp-phone-mockup {
  position: absolute;
  bottom: 0; right: 0;
  width: 200px; height: 360px;
  background: #1a1a2e;
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(20, 20, 50, .35), inset 0 0 0 2px rgba(255,255,255,.05);
  transform: rotate(6deg);
}
.lp-phone-mockup__notch {
  width: 60px; height: 6px;
  background: #000;
  border-radius: 6px;
  margin: 0 auto 6px;
}
.lp-phone-mockup__screen {
  background: #fff;
  border-radius: 22px;
  padding: 18px 14px;
  height: calc(100% - 12px);
  color: #1a1a2e;
}
.lp-phone-mockup__msg {
  display: flex; align-items: center; gap: 6px;
  background: var(--c-accent-1);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  justify-content: center;
}
.lp-phone-mockup__msg span { font-size: 16px; }
.lp-phone-mockup__chat > div:first-child { font-size: 11px; color: var(--c-muted); margin-bottom: 6px; font-weight: 600; }
.lp-phone-mockup__chat > div:first-child span { color: var(--c-accent-1); }
.lp-phone-mockup__bubble {
  background: #f3f3f7;
  padding: 8px 12px;
  border-radius: 12px 12px 12px 4px;
  font-size: 11px;
  line-height: 1.4;
}

.lp-float {
  position: absolute;
  font-size: 32px;
  background: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  animation: lp-float 6s ease-in-out infinite;
}
.lp-float--1 { top: 0; left: 30%; animation-delay: -1s; }
.lp-float--2 { top: 100px; right: 10%; animation-delay: -3s; }
.lp-float--3 { bottom: 80px; left: 10%; animation-delay: -2s; }
.lp-float--4 { bottom: 0; right: 60%; animation-delay: -4s; }
@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.lp-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.lp-section--alt {
  background: var(--c-surface);
  max-width: none;
  padding-left: 0; padding-right: 0;
}
.lp-section--alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
.lp-h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  text-align: center;
}
.lp-section__lede {
  color: var(--c-muted);
  font-size: 17px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.5;
}
.lp-section__hint {
  text-align: center;
  color: var(--c-muted);
  font-size: 14px;
  margin: 32px auto 0;
  max-width: 800px;
}

.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-step {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.lp-section--alt .lp-step { background: #fff; }
.lp-step__num {
  position: absolute;
  top: -20px; left: 28px;
  width: 40px; height: 40px;
  background: var(--grad-accent);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 6px 16px rgba(255, 75, 110, .35);
}
.lp-step__icon { font-size: 44px; margin: 8px 0 14px; }
.lp-step h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; }
.lp-step p { margin: 0; color: var(--c-muted); font-size: 14px; line-height: 1.55; }

.lp-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.lp-feature--rev .lp-feature__visual { order: -1; }
.lp-feature__tag {
  display: inline-block;
  background: color-mix(in srgb, var(--c-accent-1) 12%, transparent);
  color: var(--c-accent-1);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 16px;
}
.lp-feature__text h2 { text-align: left; }
.lp-feature__text > p { color: var(--c-muted); font-size: 16px; line-height: 1.6; margin: 0 0 22px; }
.lp-checks { list-style: none; padding: 0; margin: 0; }
.lp-checks li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--c-text);
}
.lp-feature__visual { display: flex; justify-content: center; align-items: center; }

.lp-mock--screen {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a1a2e, #2a1a4e);
  border-radius: 18px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 30px 70px rgba(20, 20, 50, .25);
  position: relative;
}
.lp-mock__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.lp-mock__logo { width: 32px; height: 32px; background: var(--c-accent-1); border-radius: 8px; }
.lp-mock__name { font-weight: 800; flex: 1; }
.lp-mock__conn { font-size: 11px; background: rgba(255,255,255,.1); padding: 4px 10px; border-radius: 999px; }
.lp-mock__big { font-size: 52px; text-align: center; margin: 6px 0; }
.lp-mock__caption { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; opacity: .6; text-align: center; margin-bottom: 14px; }
.lp-mock__rows { display: grid; gap: 6px; }
.lp-mock__rows > div { display: flex; justify-content: space-between; padding: 6px 12px; background: rgba(255,255,255,.06); border-radius: 8px; font-size: 12px; }
.lp-mock__rows > div span:last-child { color: var(--c-accent-1); font-weight: 700; }

.lp-mock--phone {
  width: 240px;
  background: #1a1a2e;
  border-radius: 32px;
  padding: 16px 10px;
  box-shadow: 0 30px 60px rgba(20, 20, 50, .35);
}
.lp-mock__phone-head { color: rgba(255,255,255,.55); font-size: 11px; text-align: center; margin-bottom: 10px; letter-spacing: .08em; }
.lp-mock__phone-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  color: var(--c-text);
}
.lp-mock__phone-icon {
  width: 60px; height: 60px;
  background: color-mix(in srgb, var(--c-accent-1) 15%, transparent);
  color: var(--c-accent-1);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 30px;
  margin: 0 auto 12px;
}
.lp-mock__phone-card h3 { margin: 0 0 4px; font-size: 17px; }
.lp-mock__phone-card p { margin: 0 0 14px; color: var(--c-muted); font-size: 12px; }
.lp-mock__phone-cta { background: var(--c-accent-1); color: #fff; padding: 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.lp-mock__phone-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; margin-top: 8px; }
.lp-mock__phone-actions > div { background: rgba(255,255,255,.08); color: #fff; border-radius: 8px; padding: 8px 4px; font-size: 10px; text-align: center; }

.lp-games {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.lp-game {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.lp-game::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: var(--grad-accent);
  border-radius: 50%;
  opacity: .08;
}
.lp-game__icon { font-size: 44px; margin-bottom: 14px; }
.lp-game h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.lp-game p { margin: 0; color: var(--c-muted); font-size: 14px; line-height: 1.55; }
.lp-game p strong { color: var(--c-text); }

.lp-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.lp-cat {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  font-size: 32px;
}
.lp-cat strong { display: block; font-size: 13px; margin-top: 8px; color: var(--c-text); }
.lp-cat small { display: block; font-size: 10px; color: var(--c-muted); margin-top: 2px; }

.lp-secu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lp-secu__item {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.lp-secu__icon { font-size: 32px; margin-bottom: 12px; }
.lp-secu__item h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.lp-secu__item p { margin: 0; color: var(--c-muted); font-size: 13px; line-height: 1.55; }

.lp-cta-final {
  max-width: 800px;
  margin: 40px auto 80px;
  padding: 60px 32px;
  background: var(--grad-accent);
  color: #fff;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 30px 80px rgba(255, 75, 110, .25);
}
.lp-cta-final h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 0 0 12px; letter-spacing: -.02em; }
.lp-cta-final p { font-size: 16px; opacity: .9; margin: 0 0 28px; }
.lp-cta-final .btn--primary { background: #fff; color: var(--c-accent-1); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.lp-cta-final .btn--primary:hover { background: #fafafa; transform: translateY(-1px); }

@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; padding: 48px 24px; gap: 40px; }
  .lp-hero__visual { height: 360px; }
  .lp-steps,
  .lp-secu,
  .lp-games { grid-template-columns: 1fr; }
  .lp-feature { grid-template-columns: 1fr; gap: 32px; }
  .lp-feature--rev .lp-feature__visual { order: 0; }
  .lp-cats { grid-template-columns: repeat(2, 1fr); }
  .lp-section { padding: 56px 24px; }
  .lp-section--alt > * { padding-left: 24px; padding-right: 24px; }
}

/* ---------- Hero (landing - ancien, masqué) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px;
}
.hero__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-accent-1);
  margin: 0 0 16px;
}
.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.grad {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  color: var(--c-muted);
  font-size: 18px;
  margin: 0 0 32px;
  max-width: 500px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  background: var(--grad-accent);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.bubble {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 32px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.bubble--1 { width: 80px; height: 80px; top: 40px; left: 30px; }
.bubble--2 { width: 100px; height: 100px; top: 200px; left: 80px; animation-delay: -2s; }
.bubble--3 { width: 70px; height: 70px; top: 70px; right: 60px; animation-delay: -1s; }
.bubble--4 { width: 60px; height: 60px; bottom: 60px; right: 120px; animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding: 48px 24px; }
  .hero__visual { height: 280px; order: -1; }
}

/* ---------- Auth (inscription / connexion) ---------- */
.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 48px 24px;
}
.auth-wrap--narrow .auth-card { max-width: 440px; }
.auth-card {
  width: 100%;
  max-width: 680px;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.auth-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.auth-subtitle {
  margin: 0 0 28px;
  color: var(--c-muted);
}

/* ---------- Forms ---------- */
.form-section {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-accent-1);
  margin: 24px 0 12px;
  font-weight: 600;
}
.form-section:first-of-type { margin-top: 0; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.form-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
}
.form-row label.full,
.form-row--logo label { grid-column: 1 / -1; }

.form-row input[type=text],
.form-row input[type=email],
.form-row input[type=password],
.form-row input[type=tel],
.form-row input[type=file] {
  padding: 12px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--c-text);
  transition: border-color .15s, box-shadow .15s;
}
.form-row input[type=file] {
  padding: 10px;
  background: #fafafb;
  cursor: pointer;
}
.form-row input:focus {
  outline: none;
  border-color: var(--c-accent-1);
  box-shadow: 0 0 0 4px rgba(255, 75, 110, .12);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 24px;
  font-size: 14px;
  color: var(--c-muted);
  cursor: pointer;
}
.checkbox-row input { accent-color: var(--c-accent-1); width: 18px; height: 18px; }

.form-foot {
  margin: 16px 0 0;
  text-align: center;
  color: var(--c-muted);
  font-size: 14px;
}

/* ---------- Alerts ---------- */
.alert {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}
.alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.alert--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.alert ul { margin: 0; padding-left: 20px; }
.alert li + li { margin-top: 4px; }

/* ---------- Horaires (page admin) ---------- */
.hours-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hours-row {
  display: grid;
  grid-template-columns: 110px 100px 1fr;
  gap: 14px;
  align-items: center;
  background: #fafafb;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.hours-row.is-closed { opacity: .55; }
.hours-row__day {
  font-weight: 600;
  font-size: 15px;
}
.hours-row__closed {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-muted);
  cursor: pointer;
}
.hours-row__closed input { accent-color: var(--c-accent-1); width: 16px; height: 16px; }
.hours-row__times {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.hours-row__times input {
  padding: 8px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}
.hours-row__times input:focus { outline: none; border-color: var(--c-accent-1); box-shadow: 0 0 0 3px rgba(255, 75, 110, .12); }
.hours-row__times input:disabled { background: #f3f3f7; color: #a1a1aa; }
.hours-row__dash { color: var(--c-muted); }

/* ---------- Profil ---------- */
.form-section__opt {
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-muted);
  font-weight: 400;
  font-size: 12px;
  margin-left: 6px;
}
.form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
}
.profil-logo-current {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #fafafb;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.profil-logo-current img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 10px;
}
.profil-logo-remove {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-size: 13px !important;
  color: var(--c-muted) !important;
  cursor: pointer;
}
.profil-logo-remove input { accent-color: var(--c-accent-1); }

/* ---------- Dashboard ---------- */
.dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px;
}
.dashboard__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
  align-items: stretch;
}
@media (max-width: 1100px) {
  .dashboard__top { grid-template-columns: 1fr 1fr; }
  .dashboard__top > .bar-card { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .dashboard__top { grid-template-columns: 1fr; }
  .dashboard__top > .bar-card { grid-column: auto; }
}

.menu-card__total {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-accent-1) 12%, transparent);
  color: var(--c-accent-1);
  margin-top: 4px;
}

/* ---------- Page admin/carte.php ---------- */
.carte-page { max-width: 1100px; margin: 0 auto; padding: 24px 32px 40px; }
.carte-page__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.carte-page__head h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; }
.carte-page__lede   { margin: 0; color: var(--c-muted); font-size: 14px; }
.carte-page__actions { display: flex; gap: 10px; }

.carte-cat {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-muted);
  font-weight: 600;
  margin: 28px 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.carte-cat__icon { font-size: 18px; }
.carte-cat__count {
  background: #f3f3f7; color: var(--c-text);
  padding: 2px 10px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0;
}

.carte-items { display: grid; gap: 10px; }
.carte-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}
.carte-item.is-inactive { opacity: .5; }
.carte-item__img {
  width: 60px; height: 60px;
  border-radius: 10px;
  object-fit: cover;
}
.carte-item__img--placeholder {
  display: grid; place-items: center;
  font-size: 28px;
  background: #f3f3f7;
}
.carte-item__name { font-size: 15px; font-weight: 600; }
.carte-item__brewery { font-size: 12px; color: var(--c-muted); font-style: italic; margin-top: 2px; }
.carte-item__meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 4px; font-size: 12px;
}
.carte-item__meta > span:first-child { color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; }
.carte-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f3f3f7;
  border: 1px solid var(--c-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.carte-pill b {
  font-size: .8em;
  font-weight: 600;
  opacity: .55;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.carte-pill--hh {
  background: var(--c-accent-1);
  color: #fff;
  border-color: transparent;
}
.carte-pill--hh b { opacity: .85; }
.carte-item__actions { display: flex; gap: 4px; }

.bar-card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* ---------- Carte Horaires (dashboard) ---------- */
.hours-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  color: var(--c-text);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.hours-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.hours-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.hours-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.hours-card__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.hours-card__state.is-open   { background: #d1fae5; color: #166534; }
.hours-card__state.is-closed { background: #fee2e2; color: #991b1b; }
.hours-card__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: hours-pulse 2s ease-in-out infinite;
}
@keyframes hours-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}
.hours-card__edit {
  font-size: 12px;
  color: var(--c-muted);
  font-weight: 600;
}
.hours-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  border-top: 1px solid var(--c-border);
  padding-top: 10px;
}
.hours-card__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
  color: var(--c-text);
}
.hours-card__list li.is-off  { color: var(--c-muted); }
.hours-card__list li.is-today {
  font-weight: 700;
  color: var(--c-accent-1);
}
.hours-card__list li span:first-child {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  min-width: 30px;
}
.bar-card__logo img,
.bar-card__logo-placeholder {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  object-fit: cover;
}
.bar-card__logo-placeholder {
  background: var(--grad-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
}
.bar-card__info h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; }
.bar-card__company,
.bar-card__address,
.bar-card__contact { margin: 2px 0; color: var(--c-muted); font-size: 14px; }
.bar-card__contact span + span { margin-left: 8px; }
.bar-card__info .btn { margin-top: 12px; }

/* Bandeau signalements relou à traiter */
.relou-panel {
  background: linear-gradient(135deg,
              color-mix(in srgb, #dc2626 8%, var(--c-surface, #fafafb)) 0%,
              var(--c-surface, #fafafb) 70%);
  border: 1px solid color-mix(in srgb, #dc2626 25%, var(--c-border));
  border-left: 5px solid #dc2626;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 20px 0 24px;
  box-shadow: 0 4px 16px rgba(220, 38, 38, .08);
}
.relou-panel__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.relou-panel__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700;
  color: #dc2626;
}
.relou-panel__icon { font-size: 24px; animation: relou-bell 1.4s ease-in-out infinite; }
@keyframes relou-bell {
  0%, 100% { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
}
.relou-panel__lede { margin: 4px 0 0; font-size: 13px; color: var(--c-muted); }

.relou-panel__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.relou-panel__row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--c-surface-2, #fff);
  border: 1px solid var(--c-border);
  border-radius: 10px;
}
.relou-panel__icon-cell {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: color-mix(in srgb, #dc2626 12%, transparent);
  border-radius: 50%;
  font-size: 18px;
  flex-shrink: 0;
}
.relou-panel__body { flex: 1; min-width: 0; }
.relou-panel__target { font-weight: 700; font-size: 15px; }
.relou-panel__meta   { font-size: 12px; color: var(--c-muted); margin-top: 2px; }

.dashboard__section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--c-muted);
  font-weight: 600;
  margin: 0 0 16px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card__icon { font-size: 28px; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.card p { margin: 0; color: var(--c-muted); font-size: 14px; }
.card__badge {
  position: absolute;
  top: 16px; right: 16px;
  background: #f3f3f7;
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.card--soon { opacity: .85; }

/* ---------- Card link variants ---------- */
a.card { color: inherit; text-decoration: none; }
a.card:hover { text-decoration: none; }
.card__badge--accent { background: var(--grad-accent); color: #fff; }

/* ---------- Btn danger ---------- */
.btn--danger { background: #fee2e2; color: #991b1b; }
.btn--danger:hover { background: #fecaca; }

/* ==========================================================
   Éditeur de plan
   ========================================================== */
.plan-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 40px;
}
.plan-page__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.plan-page__head h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; }
.plan-page__lede { margin: 0; color: var(--c-muted); font-size: 14px; }
.plan-page__actions { display: flex; gap: 10px; }

.plan-editor {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: start;
}

/* ---------- Palette ---------- */
.plan-palette {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}
.plan-palette h2 { margin: 0 0 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--c-accent-1); }
.plan-palette__hint { margin: 0 0 14px; color: var(--c-muted); font-size: 12px; }
.plan-palette ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 6px; }
.palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: #fafafb;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-align: left;
}
.palette-item:hover { border-color: var(--c-accent-1); background: #fff; }
.palette-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: inline-block;
  flex-shrink: 0;
  background: #e5e5ec;
}
.palette-icon--table      { background: #fde68a; border-radius: 50%; }
.palette-icon--tonneau    { background: #d4a373; border-radius: 50%; }
.palette-icon--tabouret   { background: #94a3b8; border-radius: 50%; width: 18px; height: 18px; margin: 5px; }
.palette-icon--comptoir   { background: #1a1a2e; border-radius: 4px; height: 14px; margin: 7px 0; }
.palette-icon--mur        { background: #525b6b; height: 6px; margin: 11px 0; border-radius: 2px; }
.palette-icon--entree     { background: #94a3b8; height: 8px; margin: 10px 0; border-radius: 2px; }
.palette-icon--wc         { background: #bae6fd; }
.palette-icon--terrasse   { background: #bbf7d0; }
.palette-icon--dancefloor { background: linear-gradient(135deg, #c44ad8, #ff4b6e); }

/* ---------- Panneau Outils (droite) ---------- */
.plan-tools {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}
.plan-tools h2 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--c-accent-1); }
.plan-tools__empty { color: var(--c-muted); font-size: 13px; line-height: 1.5; }

.t-preview {
  width: 100%;
  height: 80px;
  background: #eee;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 14px;
  border: 1px solid var(--c-border);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.08);
}

.t-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}
.t-field span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-muted);
  font-weight: 600;
}
.t-field input[type=text],
.t-field select {
  padding: 10px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--c-text);
}
.t-field input[type=color] {
  width: 100%;
  height: 40px;
  padding: 4px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}
.t-field input:focus,
.t-field select:focus { outline: none; border-color: var(--c-accent-1); box-shadow: 0 0 0 3px rgba(255, 75, 110, .12); }

.t-btn { width: 100%; margin-bottom: 6px; justify-content: center; }
.t-hint {
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--c-muted);
  line-height: 1.5;
}
.t-hint kbd {
  background: #f3f3f7;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-family: 'SF Mono', Menlo, monospace;
}

/* ---------- Canvas (format téléphone 9:16 = aperçu client) ---------- */
.plan-canvas-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.plan-canvas {
  position: relative;
  width: 380px;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  background: #fafafb;
  background-image:
    linear-gradient(to right,  rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 36px;
  box-shadow: var(--shadow), 0 0 0 8px #1a1a2e, 0 0 0 9px rgba(0,0,0,.4);
  overflow: hidden;
  user-select: none;
  outline: none;
}
.plan-canvas::before,
.plan-canvas::after {
  content: '';
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}
.plan-canvas::before {
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 6px;
  background: #1a1a2e;
  border-radius: 0 0 8px 8px;
}
.plan-canvas::after {
  bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px;
  background: rgba(0,0,0,.2);
  border-radius: 2px;
}
.plan-status {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-muted);
  padding: 6px 12px;
  background: #fafafb;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  white-space: nowrap;
  min-width: 200px;
  justify-content: center;
}
.plan-status--dirty { color: #b45309; background: #fef3c7; border-color: #fde68a; }
.plan-status--ok    { color: #166534; background: #d1fae5; border-color: #a7f3d0; }
.plan-status--error { color: #991b1b; background: #fee2e2; border-color: #fecaca; }

/* ---------- Éléments du plan ---------- */
.el {
  position: absolute;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #1a1a2e;
  cursor: move;
  border: 2px solid transparent;
  transition: border-color .1s;
  box-sizing: border-box;
}
.el.is-selected { border-color: var(--c-accent-1); box-shadow: 0 0 0 3px rgba(255, 75, 110, .15); z-index: 999 !important; }
.el__label { pointer-events: none; padding: 2px 6px; text-align: center; line-height: 1.2; }

/* Background/radius/text-color sont appliqués inline par le JS pour permettre la perso ;
   les classes par type ne servent plus que pour des bordures/ombres particulières. */
.el--tabouret   { font-size: 9px; }
.el--mur        { font-size: 9px; }
.el--terrasse   { border: 2px dashed #16a34a; }
.el--dancefloor { border: 2px dashed #c44ad8; }

/* la rotation visuelle ne casse pas le label : on dé-rote le span */
.el[style*="rotate(90deg)"]  .el__label,
.el[style*="rotate(270deg)"] .el__label { transform: rotate(-90deg); }
.el[style*="rotate(180deg)"] .el__label { transform: rotate(-180deg); }

/* ---------- Handles de resize ---------- */
.el__handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 2px solid var(--c-accent-1);
  border-radius: 50%;
  z-index: 10;
}
.el__handle--n,
.el__handle--s { left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.el__handle--e,
.el__handle--w { top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.el__handle--n  { top: -6px; }
.el__handle--s  { bottom: -6px; }
.el__handle--e  { right: -6px; }
.el__handle--w  { left: -6px; }
.el__handle--nw { top: -6px; left: -6px; cursor: nwse-resize; }
.el__handle--ne { top: -6px; right: -6px; cursor: nesw-resize; }
.el__handle--sw { bottom: -6px; left: -6px; cursor: nesw-resize; }
.el__handle--se { bottom: -6px; right: -6px; cursor: nwse-resize; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .plan-editor { grid-template-columns: 200px minmax(0, 1fr); }
  .plan-tools { grid-column: 1 / -1; position: static; }
}
@media (max-width: 700px) {
  .plan-editor { grid-template-columns: 1fr; }
  .plan-palette { position: static; }
  .plan-canvas { width: 320px; }
}

/* ==========================================================
   Page admin/blindtest.php & blindtest-playlist.php
   ========================================================== */
.bt-page { max-width: 1200px; margin: 0 auto; padding: 24px 32px 40px; }
.bt-page__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.bt-page__head h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; }
.bt-page__lede   { margin: 0; color: var(--c-muted); font-size: 14px; }
.bt-section {
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--c-muted); font-weight: 600; margin: 0 0 12px;
}

.bt-active {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #fff1f5, #fef3c7);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 20px;
}
.bt-active__icon { font-size: 32px; }
.bt-active__body { flex: 1; }
.bt-active__body strong { display: block; font-size: 16px; }
.bt-active__body span { font-size: 13px; color: var(--c-muted); }
.bt-active__actions { display: flex; gap: 8px; }

.bt-newplaylist {
  display: flex; gap: 8px;
  margin: 0 0 20px;
}
.bt-newplaylist input {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px;
}

.bt-playlists { display: grid; gap: 10px; }
.bt-pl {
  display: flex; align-items: center; gap: 16px;
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.bt-pl__body { flex: 1; }
.bt-pl__body h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.bt-pl__body p { margin: 0; color: var(--c-muted); font-size: 13px; }
.bt-pl__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.bt-dialog {
  border: none; border-radius: var(--radius-lg);
  padding: 28px; max-width: 520px; width: 90%;
  box-shadow: var(--shadow-lg);
}
.bt-dialog::backdrop { background: rgba(0,0,0,.4); backdrop-filter: blur(4px); }
.bt-dialog h3 { margin: 0 0 8px; font-size: 18px; }

/* ----- Édition playlist : 2 colonnes ----- */
.bt-edit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .bt-edit { grid-template-columns: 1fr; } }
.bt-edit__col {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.bt-search {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px;
  margin-bottom: 12px;
}
.bt-search:focus { outline: none; border-color: var(--c-accent-1); box-shadow: 0 0 0 3px rgba(255, 75, 110, .12); }

.bt-results { display: grid; gap: 8px; max-height: 60vh; overflow: auto; padding-right: 4px; }
.bt-results__hint { color: var(--c-muted); font-size: 13px; padding: 12px 0; margin: 0; }
.bt-result {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  background: #fafafb;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}
.bt-result img,
.bt-result__placeholder {
  width: 44px; height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: #eee; font-size: 18px;
}
.bt-result__body { flex: 1; min-width: 0; }
.bt-result__title  { font-weight: 600; font-size: 14px; }
.bt-result__artist { font-size: 12px; color: var(--c-muted); }

.bt-edit__col textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px;
  resize: vertical;
}

.bt-tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bt-track {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  background: #fafafb;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}
.bt-track__pos {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #f3f3f7;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--c-muted);
  flex-shrink: 0;
}
.bt-track__art,
.bt-track__art--placeholder {
  width: 44px; height: 44px;
  border-radius: 6px;
  object-fit: cover;
  display: grid; place-items: center;
  background: #eee; font-size: 18px;
}
.bt-track__body { flex: 1; min-width: 0; }
.bt-track__title  { font-weight: 600; font-size: 14px; }
.bt-track__artist { font-size: 12px; color: var(--c-muted); }
.bt-track__artist em { font-style: normal; }

/* ----- Page admin/blindtest-game.php : pilotage ----- */
.bt-game {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1000px) { .bt-game { grid-template-columns: 1fr; } }
.bt-game__col {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.bt-player__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.bt-player__round { font-size: 14px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .1em; }
.bt-player__badge {
  font-size: 11px; padding: 4px 12px;
  background: var(--c-accent-1); color: #fff;
  border-radius: 999px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.bt-player__badge--done { background: #10b981; }

.bt-player__track {
  display: flex; gap: 14px; align-items: center;
  background: #fafafb;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 14px;
}
.bt-player__track img {
  width: 80px; height: 80px;
  border-radius: 10px; object-fit: cover;
}
.bt-player__title { font-size: 18px; font-weight: 700; line-height: 1.1; }
.bt-player__artist { color: var(--c-muted); font-size: 14px; margin-top: 4px; }
.bt-player__hidden { display: flex; align-items: center; gap: 14px; }
.bt-player__hidden-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #fde68a, #d4a373);
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 36px;
}

.bt-player__actions {
  display: flex; flex-direction: column; gap: 8px; margin-top: 18px;
}
.bt-player__actions .btn { flex: 1; justify-content: center; }

/* Bouton principal unique du pilotage blind test */
.bt-main-btn {
  width: 100%;
  min-height: 72px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 24px;
  font-size: 22px; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--c-accent-1, #ff4b6e), var(--c-accent-2, #b91c44));
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 75, 110, 0.35);
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.bt-main-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255, 75, 110, 0.45);
}
.bt-main-btn:active:not(:disabled) {
  transform: translateY(0);
}
.bt-main-btn:disabled { opacity: .55; cursor: wait; }
.bt-main-btn[data-state="idle"] {
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}
.bt-main-btn[data-state="idle"]:hover:not(:disabled) {
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.45);
}
.bt-main-btn[data-state="playing"] {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}
.bt-main-btn[data-state="playing"]:hover:not(:disabled) {
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.45);
}
.bt-main-btn__icon  { font-size: 26px; line-height: 1; }
.bt-main-btn__label { letter-spacing: .2px; }
.bt-main-btn__hint {
  margin: 6px 2px 0; font-size: 12.5px; color: var(--c-text-soft, #6b7280);
  text-align: center;
}

.bt-end-link {
  display: block; width: 100%;
  margin-top: 18px; padding: 6px;
  background: none; border: 0;
  color: var(--c-text-soft, #94a3b8);
  font-size: 12px; text-decoration: underline;
  cursor: pointer;
}
.bt-end-link:hover { color: #b91c44; }

/* Équipes scoring */
.bt-teams-score { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bt-team-score {
  background: #fafafb;
  border: 1px solid var(--c-border);
  border-left: 5px solid var(--col, var(--c-accent-1));
  border-radius: 12px;
  padding: 14px 16px;
}
.bt-team-score__head { display: flex; align-items: center; gap: 10px; }
.bt-team-score__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--col, var(--c-accent-1));
}
.bt-team-score__name { font-weight: 700; flex: 1; }
.bt-team-score__total { font-weight: 800; color: var(--c-accent-1); }
.bt-team-score__round {
  font-size: 12px; color: var(--c-muted);
  margin: 6px 0 10px;
}
.bt-team-score__round[data-pts="1"], .bt-team-score__round[data-pts="2"] { color: #16a34a; font-weight: 600; }

.bt-team-score__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 6px;
}
.bt-award {
  padding: 8px 6px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-text);
  cursor: pointer;
  transition: all .1s;
}
.bt-award:hover { border-color: var(--c-accent-1); }
.bt-award[data-active="1"] { background: var(--c-accent-1); color: #fff; border-color: var(--c-accent-1); }
.bt-award--both { background: linear-gradient(135deg, #fef3c7, #fde68a); border-color: #fde68a; }
.bt-award--both[data-active="1"] { background: linear-gradient(135deg, #ff4b6e, #c44ad8); color: #fff; border-color: transparent; }
.bt-award--clear { color: var(--c-error); font-size: 14px; }

/* ----- Classement final admin ----- */
.bt-final-admin {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.bt-final-admin__head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 18px;
}
.bt-final-admin__icon { font-size: 48px; filter: drop-shadow(0 4px 12px rgba(245, 158, 11, .4)); }
.bt-final-admin__head h2 { margin: 0; font-size: 22px; }
.bt-final-admin__head p { margin: 4px 0 0; color: #78350f; font-size: 13px; }

.bt-final-admin__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bt-final-admin__row {
  display: grid;
  grid-template-columns: 50px 1fr 2fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border-left: 5px solid var(--col, var(--c-accent-1));
  border-radius: 10px;
  padding: 12px 16px;
}
.bt-final-admin__rank { font-size: 22px; text-align: center; }
.bt-final-admin__name { font-weight: 700; font-size: 16px; }
.bt-final-admin__members { font-size: 12px; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-final-admin__score { font-weight: 800; font-size: 20px; color: var(--c-accent-1); font-variant-numeric: tabular-nums; }

/* ----- Buzz queue admin ----- */
.bt-buzz-queue { display: grid; gap: 8px; }
.bt-buzz-queue__empty {
  padding: 14px;
  text-align: center;
  color: var(--c-muted);
  font-size: 13px;
  font-style: italic;
  background: #fafafb;
  border: 1px dashed var(--c-border);
  border-radius: 10px;
}
.bt-buzz-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fafafb;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--col, var(--c-accent-1));
  border-radius: 10px;
  font-size: 14px;
}
.bt-buzz-row.is-released { opacity: .5; }
.bt-buzz-row.is-speaking {
  background: linear-gradient(135deg, #d1fae5, #ecfdf5);
  border-color: #10b981;
  border-left-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, .15);
  animation: bt-buzz-spk 1.5s ease-in-out infinite;
}
@keyframes bt-buzz-spk {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .2); }
  50%      { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}
.bt-buzz-row__pos {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-text);
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.bt-buzz-row__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--col, var(--c-accent-1));
}
.bt-buzz-row__name { flex: 1; font-weight: 600; }
.bt-buzz-row__badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--c-border);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.bt-buzz-row__badge--queued { color: var(--c-muted); }
.bt-buzz-row__badge--released { color: var(--c-muted); opacity: .7; }
.bt-buzz-row.is-speaking .bt-buzz-row__badge {
  background: #10b981; color: #fff; border-color: transparent;
}
.bt-buzz-row__release {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.bt-buzz-row__release:hover { background: #fecaca; }

/* ==========================================================
   Pages sondages admin
   ========================================================== */
.poll-active-banner {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  padding: 18px 22px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.poll-active-banner__head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  opacity: .9; margin-bottom: 8px;
}
.poll-active-banner__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: pab-pulse 1.5s ease-in-out infinite;
}
@keyframes pab-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.8); }
}
.poll-active-banner__q { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.poll-active-banner__meta { font-size: 13px; opacity: .85; margin-bottom: 12px; }
.poll-active-banner .btn { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.poll-active-banner .btn:hover { background: rgba(255,255,255,.3); }

.polls-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.polls-list__row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--c-surface, #fafafb);
  border: 1px solid var(--c-border);
  border-radius: 12px;
}
.polls-list__main { flex: 1; min-width: 0; }
.polls-list__q { font-weight: 600; font-size: 15px; line-height: 1.3; }
.polls-list__meta { font-size: 12px; color: var(--c-muted); margin-top: 2px; }
.polls-list__actions { display: flex; gap: 8px; flex-shrink: 0; }
.polls-list--history .polls-list__row { opacity: .8; }

/* ==========================================================
   Page admin/jeux.php
   ========================================================== */
.games-page { max-width: 1100px; margin: 0 auto; padding: 24px 32px 40px; }
.games-page__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.games-page__head h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; }
.games-page__lede   { margin: 0; color: var(--c-muted); font-size: 14px; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.game-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.game-card__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.game-card__icon { font-size: 32px; }
.game-card__head h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.game-card__head p  { margin: 0; color: var(--c-muted); font-size: 13px; }
.game-card__info    { font-size: 13px; color: var(--c-muted); margin: 0 0 12px; }
.game-card__sub     { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--c-muted); margin: 20px 0 8px; font-weight: 600; }

.spins-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.spins-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: #fafafb;
  border-radius: 8px;
  font-size: 13px;
}
.spins-list__meta { color: var(--c-muted); font-size: 11px; flex: 1; }
.spins-list__badge {
  font-size: 10px; padding: 2px 8px;
  background: #d1fae5; color: #166534;
  border-radius: 999px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
}
.spins-list__badge--pending { background: #fef3c7; color: #92400e; }

.game-stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; text-align: center;
}
.game-stats li {
  background: #fafafb;
  border-radius: 10px;
  padding: 12px 6px;
}
.game-stats strong { display: block; font-size: 22px; font-weight: 800; }
.game-stats span   { display: block; font-size: 11px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

/* ==========================================================
   Page admin/messages.php
   ========================================================== */
.msg-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 40px;
}
.msg-page__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.msg-page__head h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; }
.msg-page__lede   { margin: 0; color: var(--c-muted); font-size: 14px; }

.msg-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .msg-grid { grid-template-columns: 1fr; } }

.msg-side { display: grid; gap: 14px; }
.msg-block {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.msg-block h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-accent-1);
  margin: 0 0 10px;
  font-weight: 600;
}
.msg-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.msg-toggle strong { display: block; font-size: 15px; }
.msg-toggle p { margin: 4px 0 0; color: var(--c-muted); font-size: 13px; line-height: 1.4; }

.msg-add-word {
  display: flex; gap: 8px; margin-bottom: 10px;
}
.msg-add-word input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
}
.msg-add-word input:focus { outline: none; border-color: var(--c-accent-1); }

.msg-words {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.msg-words li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fafafb;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 4px 6px 4px 12px;
}
.msg-words code { font-size: 13px; font-family: 'SF Mono', Menlo, monospace; }
.msg-words .ico-btn { width: 24px; height: 24px; font-size: 14px; }
.msg-words--global {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.msg-words--global code {
  background: #f3f3f7;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.msg-block--collapsible summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--c-muted);
  font-weight: 500;
}

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

.msg-main { display: block; }
.msg-main h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-muted);
  font-weight: 600;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.msg-badge {
  background: var(--c-accent-1);
  color: #fff;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  letter-spacing: 0;
}
.msg-badge:empty,
.msg-badge[data-zero] { background: #e5e5ec; color: var(--c-muted); }

.msg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.msg-list--history { opacity: .9; }
.msg-item {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}
.msg-item--rejete  { background: #fef2f2; }
.msg-item--affiche { background: #f0fdf4; }
.msg-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.msg-item__meta   { color: var(--c-muted); font-size: 12px; }
.msg-item__status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.msg-item__status--affiche { background: #bbf7d0; color: #14532d; }
.msg-item__status--rejete  { background: #fecaca; color: #991b1b; }
.msg-item__body {
  font-size: 15px;
  line-height: 1.4;
  margin: 4px 0 10px;
  word-break: break-word;
}
.msg-item__actions { display: flex; gap: 8px; }

/* ==========================================================
   Page admin/slides.php
   ========================================================== */
.slides-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 32px 40px;
}
.slides-page__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.slides-page__head h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; }
.slides-page__lede { margin: 0; color: var(--c-muted); font-size: 14px; }
.slides-page__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.slides-create {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--c-surface);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.slides-create > span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-muted);
  font-weight: 600;
  margin-right: 6px;
}

.slides-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.slide-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}
.slide-card.is-inactive { opacity: .55; }
.slide-card__order {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f3f3f7;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--c-muted);
  flex-shrink: 0;
}
.slide-card__icon { font-size: 28px; }
.slide-card__body { flex: 1; min-width: 0; }
.slide-card__type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-muted);
  font-weight: 600;
}
.slide-card__type em { color: var(--c-error); font-style: normal; font-weight: 700; }
.slide-card__title { font-size: 16px; font-weight: 600; margin-top: 2px; }
.slide-card__meta  { font-size: 12px; color: var(--c-muted); margin-top: 2px; }
.slide-card__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.slide-card__actions form { display: inline; margin: 0; }

.ico-btn {
  width: 34px; height: 34px;
  display: inline-grid;
  place-items: center;
  background: #fafafb;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  color: var(--c-text);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.ico-btn:hover { background: #fff; border-color: var(--c-accent-1); }
.ico-btn:disabled { opacity: .35; cursor: not-allowed; }
.ico-btn--danger:hover { border-color: var(--c-error); background: #fef2f2; }

/* ---------- Drinks editor ---------- */
.drink-row {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  gap: 14px;
  align-items: start;
  background: #fafafb;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}
.drink-row__img { display: flex; flex-direction: column; gap: 6px; }
.drink-row__img img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 8px;
}
.drink-row__img input[type=file] { font-size: 12px; }
.drink-row__remove-img {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--c-muted);
  cursor: pointer;
}
.drink-row__fields { display: flex; flex-direction: column; gap: 8px; }
.drink-row__fields input,
.drink-row__fields select {
  padding: 10px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--c-text);
}
.drink-row__fields input:focus,
.drink-row__fields select:focus {
  outline: none;
  border-color: var(--c-accent-1);
  box-shadow: 0 0 0 3px rgba(255, 75, 110, .12);
}
.drink-row__line {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 6px;
}
.drink-row__prices {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

/* ==========================================================
   Page admin/clients.php
   ========================================================== */
.clients-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 40px;
}
.clients-page__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.clients-page__head h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; }
.clients-page__lede { margin: 0; color: var(--c-muted); font-size: 14px; }

.clients-section {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-muted);
  font-weight: 600;
  margin: 32px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.clients-section span {
  background: #f3f3f7;
  color: var(--c-text);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .04em;
}
.clients-empty {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--c-muted);
  box-shadow: var(--shadow-sm);
}
.clients-table-wrap {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: auto;
}
.clients-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.clients-table th,
.clients-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}
.clients-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-muted);
  font-weight: 600;
  background: #fafafb;
}
.clients-table tbody tr:last-child td { border-bottom: none; }
.clients-table tr.is-banned { background: rgba(239, 68, 68, .06); }
.clients-table .muted { color: var(--c-muted); }
.clients-table code { font-family: 'SF Mono', Menlo, monospace; font-size: 12px; }

/* ==========================================================
   Page admin/ecran.php
   ========================================================== */
.ecran-admin {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 40px;
}
.ecran-admin__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.ecran-admin__head h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; }
.ecran-admin__lede { margin: 0; color: var(--c-muted); font-size: 14px; }
.ecran-admin__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.ecran-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1000px) {
  .ecran-grid { grid-template-columns: 1fr; }
}

.ecran-form {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.ecran-form select,
.ecran-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--c-text);
  resize: vertical;
}
.ecran-form select:focus,
.ecran-form textarea:focus {
  outline: none;
  border-color: var(--c-accent-1);
  box-shadow: 0 0 0 4px rgba(255, 75, 110, .12);
}

.color-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.color-input input[type=color] {
  width: 50px;
  height: 40px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}
.color-input input[type=text] {
  flex: 1;
  border: none;
  padding: 8px;
  font-family: monospace;
  font-size: 15px;
  background: transparent;
  outline: none;
}

.ecran-links { display: grid; gap: 12px; }
.ecran-link-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.ecran-link {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fafafb;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 6px 6px 6px 12px;
}
.ecran-link code {
  flex: 1;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--c-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Preview ---------- */
.ecran-preview {
  position: sticky;
  top: 90px;
}
.ecran-preview__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.ecran-preview__frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
}
.preview-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font), sans-serif;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 16px 20px;
  gap: 14px;
  position: relative;
}
.preview-head { display: flex; align-items: center; gap: 10px; }
.preview-head img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.preview-head__name { font-weight: 800; font-size: 17px; letter-spacing: -.01em; line-height: 1; }

.preview-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 0;
}
.preview-qr-card {
  display: grid; place-items: center;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  border: 4px solid var(--accent);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.preview-qr-card img { display: block; width: 100px; height: 100px; }

.preview-call { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.preview-call__eyebrow {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--accent);
}
.preview-call__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.preview-call__sub {
  font-size: 10px;
  opacity: .7;
  line-height: 1.4;
}
.preview-call__infos {
  margin-top: 6px;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.4;
  white-space: pre-wrap;
}
.preview-brand {
  position: absolute;
  bottom: 8px; right: 12px;
  font-size: 8px;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .35;
}

/* ---------- Responsive (existing) ---------- */
@media (max-width: 640px) {
  .app-header { padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
  .app-nav { width: 100%; justify-content: flex-end; gap: 8px; }
  .auth-card { padding: 24px; border-radius: var(--radius); }
  .form-row { grid-template-columns: 1fr; }
  .bar-card { flex-direction: column; text-align: center; }
  .bar-card__contact { display: flex; flex-direction: column; gap: 2px; }
  .bar-card__contact span + span { margin-left: 0; }
  .bar-card__contact span:nth-child(2) { display: none; }
}
