/* =============================================
   SHOOTY — Design System
   Thème : Cinématique sombre / flash photo
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg:        #0a0a0a;
  --bg2:       #111111;
  --bg3:       #1a1a1a;
  --border:    #2a2a2a;
  --accent:    #f5e642;
  --accent2:   #ff4d4d;
  --text:      #f0f0f0;
  --muted:     #666;
  --success:   #3ddc84;
  --warning:   #ffb347;
  --radius:    8px;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── TYPOGRAPHIE ── */
h1, h2, h3 { font-family: var(--font-head); letter-spacing: 0.04em; line-height: 1; }
h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
p  { color: #ccc; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }

/* ── HEADER ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  position: sticky; top: 0; z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* Fallback texte si image absente */
.logo-text {
  font-family: var(--font-head);
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.logo-text span { color: var(--text); }

/* ── BOUTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary   { background: var(--accent); color: #000; }
.btn-primary:hover { background: #ffe900; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(245,230,66,.3); }
.btn-danger    { background: var(--accent2); color: #fff; }
.btn-danger:hover { background: #e03030; }
.btn-success   { background: var(--success); color: #000; }
.btn-success:hover { background: #2ec96f; }
.btn-ghost     { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .4rem .9rem; font-size: .8rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── CARDS ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s;
}
.card:hover { border-color: #3a3a3a; }
.card-header { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.card-title { font-family: var(--font-head); font-size: 1.4rem; color: var(--text); }

/* ── FORMULAIRES ── */
.form-group { margin-bottom: 1.2rem; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
input[type=text], input[type=email], input[type=password], input[type=date], textarea, select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: .75rem 1rem;
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .2s;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
select option { background: var(--bg3); }
.form-check { display: flex; align-items: center; gap: .75rem; }
.form-check input[type=checkbox] {
  width: 1.2rem; height: 1.2rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-hint { font-size: .8rem; color: var(--muted); margin-top: .35rem; }

/* ── ALERTS ── */
.alert {
  padding: .85rem 1.2rem;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 1.2rem;
  border-left: 4px solid transparent;
}
.alert-success { background: rgba(61,220,132,.1); border-color: var(--success); color: var(--success); }
.alert-error   { background: rgba(255,77,77,.1); border-color: var(--accent2); color: var(--accent2); }
.alert-info    { background: rgba(245,230,66,.08); border-color: var(--accent); color: var(--accent); }

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-success { background: rgba(61,220,132,.15); color: var(--success); }
.badge-warning { background: rgba(255,179,71,.15); color: var(--warning); }
.badge-danger  { background: rgba(255,77,77,.15); color: var(--accent2); }
.badge-muted   { background: rgba(255,255,255,.08); color: var(--muted); }
.badge-accent  { background: rgba(245,230,66,.15); color: var(--accent); }

/* ── TABLES ── */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
td { padding: .9rem 1rem; border-bottom: 1px solid #1e1e1e; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }

/* ── CODE / SESSION ── */
.code-badge {
  font-family: var(--font-mono);
  background: rgba(245,230,66,.12);
  color: var(--accent);
  padding: .3rem .8rem;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .1em;
  border: 1px solid rgba(245,230,66,.25);
}

/* ── LOGIN PAGE ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245,230,66,.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,77,77,.04) 0%, transparent 50%),
    var(--bg);
}
.login-box { width: 100%; max-width: 420px; padding: 1.5rem; }
.login-logo { font-family: var(--font-head); font-size: 3.5rem; color: var(--accent); text-align: center; margin-bottom: .25rem; letter-spacing: .1em; }
.login-sub  { text-align: center; color: var(--muted); font-size: .85rem; margin-bottom: 2.5rem; font-family: var(--font-mono); }

/* ── DASHBOARD ── */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; align-items: center; gap: 1.2rem; }
.stat-icon { font-size: 2rem; }
.stat-value { font-family: var(--font-head); font-size: 2.5rem; color: var(--accent); line-height: 1; }
.stat-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* ── GRID PHOTOS MODÉRATION ── */
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: transform .2s;
  position: relative;
}
.photo-card:hover { transform: scale(1.02); }
.photo-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.photo-card-info { padding: .75rem; }
.photo-card-name { font-size: .82rem; color: var(--muted); margin-bottom: .5rem; }
.photo-card-actions { display: flex; gap: .5rem; }

/* ── DIAPORAMA ── */
.slideshow-page {
  background: #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.slideshow-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(.3);
  transition: background-image 1s ease;
  transform: scale(1.1);
}
.slideshow-photo {
  position: relative; z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 100px rgba(0,0,0,.8);
  animation: photoIn .6s cubic-bezier(.22,1,.36,1) both;
}
@keyframes photoIn {
  from { opacity: 0; transform: scale(.94) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.slideshow-counter {
  position: absolute;
  bottom: 2rem; right: 2rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.slideshow-name {
  position: absolute;
  bottom: 2rem; left: 2rem;
  z-index: 3;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .08em;
}
.slideshow-logo {
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  z-index: 3;
  opacity: 0.7;
}
.slideshow-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}
.slideshow-logo-text {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--accent);
  letter-spacing: .15em;
  opacity: .6;
}
.slideshow-empty {
  z-index: 2;
  text-align: center;
  color: rgba(255,255,255,.3);
}
.slideshow-empty h2 { font-family: var(--font-head); font-size: 3rem; color: rgba(255,255,255,.15); }
.slideshow-empty p { font-family: var(--font-mono); font-size: .85rem; margin-top: .5rem; }

/* ── PAGE INVITÉ ── */
.guest-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245,230,66,.07) 0%, transparent 60%),
    var(--bg);
}
.guest-logo { font-family: var(--font-head); font-size: 3rem; color: var(--accent); letter-spacing: .15em; margin-bottom: .5rem; text-align: center; }
.guest-event-name { font-family: var(--font-head); font-size: 1.8rem; text-align: center; color: var(--text); margin-bottom: 2rem; }
.upload-zone {
  width: 100%; max-width: 460px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--accent); background: rgba(245,230,66,.04); }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { font-size: 3rem; margin-bottom: 1rem; }
.upload-zone p { color: var(--muted); font-size: .9rem; }
.upload-zone strong { color: var(--text); }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1rem 0; }
.preview-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.progress-bar { width: 100%; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin: 1rem 0; display: none; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .3s; width: 0%; }

/* ── MODÉRATION LIVE INDICATOR ── */
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent2);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  margin-right: .4rem;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

/* ── NAV TABS ── */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn {
  padding: .65rem 1.2rem;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .2s;
}
.tab-btn.active, .tab-btn:hover { color: var(--text); border-bottom-color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-header { padding: 1rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .photos-grid { grid-template-columns: repeat(2, 1fr); }
  table { display: block; overflow-x: auto; }
  .hide-mobile { display: none; }
}

/* ── UTILITAIRES ── */
.text-muted   { color: var(--muted); }
.text-accent  { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger  { color: var(--accent2); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.font-mono { font-family: var(--font-mono); }