/* ==============================================================================
   Pose-toi avec l'imam - Charte & Palette Graphique Officielle
   Inspirée de la grande cour de mosquée baignée de lumière :
   - Bleu Nuit & Sarcelle Profond (#060D15 / #0B1622 / #122131 / #182C40)
   - Doré Rayonnant & Laiton Chaud (#D4A853 / #FCE39E / #A87E32)
   - Marbre Ivoire & Blanc Cassé (#FDFBF7 / #EFEAE1)
   - Émeraude & Turquoise Tapis (#1FB6A6)
============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Playfair+Display:ital,wght@0,600;0,800;1,400;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Arrière-plans profonds (Arches & colonnes nocturnes) */
  --bg-darkest: #050a10;
  --bg-primary: #09131d;
  --bg-secondary: #0e1c2b;
  --bg-card: #132437;
  --bg-card-hover: #192f47;
  --bg-input: #0a1724;

  /* Teintes Dorées Royales (Lanternes & typographie POSE-TOI) */
  --gold-highlight: #fce39e;
  --gold-primary: #d4a853;
  --gold-dark: #a87e32;
  --gold-glow: rgba(212, 168, 83, 0.28);
  --gold-subtle: rgba(212, 168, 83, 0.1);

  /* Marbre & Ivoire (AVEC L'IMAM & textes) */
  --text-main: #fdfbf7;
  --text-cream: #efeae1;
  --text-muted: #b0c0cf;
  --text-dim: #73889c;

  /* Bordures et Lignes d'Ornement */
  --border-subtle: rgba(212, 168, 83, 0.2);
  --border-active: rgba(212, 168, 83, 0.6);
  --border-dim: rgba(255, 255, 255, 0.08);

  /* Accent Sarcelle / Turquoise (Tapis de prière & direct) */
  --teal-accent: #1fb6a6;
  --teal-glow: rgba(31, 182, 166, 0.25);

  /* Statuts */
  --status-pending: #f59e0b;
  --status-approved: #22c55e;
  --status-rejected: #f87171;
  --status-live: #1fb6a6;

  /* Rayons & Ombres */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 25px rgba(212, 168, 83, 0.22);
  --shadow-lantern: 0 0 30px rgba(245, 215, 127, 0.25);

  /* Typographies */
  --font-serif: "Playfair Display", Georgia, "Cinzel", serif;
  --font-title: "Cinzel", "Playfair Display", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-darkest);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(212, 168, 83, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(31, 182, 166, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #070d15 0%, #050a10 100%);
  background-attachment: fixed;
}

a {
  color: var(--gold-highlight);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffffff;
}

/* ==============================================================================
   En-tête & Navigation
============================================================================== */

.site-header {
  background-color: rgba(9, 19, 29, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  height: 44px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.badge-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: rgba(31, 182, 166, 0.16);
  color: #38e2d0;
  border: 1px solid rgba(31, 182, 166, 0.45);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px rgba(31, 182, 166, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #1fb6a6;
  border-radius: 50%;
  box-shadow: 0 0 10px #1fb6a6;
  animation: pulseAnimation 1.8s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Badge Hors ligne hors séance (rouge statique, non cliquable) */
.badge-live-offline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: rgba(234, 84, 85, 0.12);
  color: #ff7875;
  border: 1px solid rgba(234, 84, 85, 0.38);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 8px rgba(234, 84, 85, 0.15);
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.offline-dot {
  width: 7px;
  height: 7px;
  background-color: #ea5455;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(234, 84, 85, 0.6);
}

/* Pilule de direct sur scène */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: rgba(31, 182, 166, 0.16);
  color: #38e2d0;
  border: 1px solid rgba(31, 182, 166, 0.45);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: var(--radius-pill);
}

.live-pill-dot {
  width: 7px;
  height: 7px;
  background-color: #1fb6a6;
  border-radius: 50%;
  animation: pulseAnimation 1.8s infinite;
}

.btn-header-team {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.btn-header-team:hover {
  background: var(--bg-card-hover);
  color: var(--gold-highlight);
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ==============================================================================
   Bannière Graphique Héro (La Mosquée & Le Halo Solaire)
============================================================================== */

.hero-banner-frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-lantern), var(--shadow-md);
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Ligne d'ornement avec Rosette centrale */
.arabesque-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0;
  width: 100%;
}

.arabesque-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.arabesque-rosette {
  margin: 0 0.8rem;
  color: var(--gold-primary);
  font-size: 1.2rem;
  line-height: 1;
}

/* ==============================================================================
   Container & Layout
============================================================================== */

.main-content {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.25rem 1rem 4rem 1rem;
}

/* ==============================================================================
   Cartes & Surfaces (Atmosphère Majestueuse)
============================================================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-highlight {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(212, 168, 83, 0.08) 100%);
  border-color: var(--border-active);
  box-shadow: var(--shadow-gold);
}

/* ==============================================================================
   Affiches Officielles & Visuels des Rencontres
============================================================================== */

.session-featured-layout {
  display: flex;
  gap: 1.4rem;
  align-items: stretch;
}

@media (max-width: 680px) {
  .session-featured-layout {
    flex-direction: column;
  }
}

.session-poster-box {
  width: 240px;
  min-width: 200px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border-gold);
  box-shadow: var(--shadow-lantern);
  position: relative;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
}

@media (max-width: 680px) {
  .session-poster-box {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 0.8rem auto;
  }
}

.session-poster-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.session-poster-box:hover .session-poster-img {
  transform: scale(1.02);
}

.session-poster-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(6, 13, 21, 0.85);
  backdrop-filter: blur(4px);
  color: var(--gold-light);
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.session-featured-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Vignette d'affiche (Listes & Archives) */
.session-poster-thumb {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border-gold);
  background: var(--bg-surface);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.session-poster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Grille des rencontres passées */
.past-sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.past-session-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.past-session-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

/* ==============================================================================
   Typographie Noble & Badges
============================================================================== */

h1, h2, h3, h4 {
  color: var(--text-main);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 1.85rem; letter-spacing: 0.5px; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.18rem; }

.title-hero {
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lead-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.gold-text {
  color: var(--gold-highlight);
  background: linear-gradient(135deg, #fce39e 0%, #d4a853 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  background: rgba(9, 19, 29, 0.55);
  white-space: nowrap;
}

.status-badge-in_progress { color: #28c76f; border-color: #28c76f; }
.status-badge-questions_open { color: var(--gold-light); border-color: var(--gold-light); }
.status-badge-completed { color: var(--text-muted); border-color: var(--border-dim); }
.status-badge-draft, .status-badge-archived { color: var(--text-dim); border-color: var(--border-dim); }

/* ==============================================================================
   Boutons (Drapeau d'Or & Sarcelle)
============================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.8rem 1.5rem;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  text-decoration: none;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
  transition: transform 0.05s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #fce39e 0%, #d4a853 55%, #a87e32 100%);
  color: #060d15;
  box-shadow: 0 4px 18px rgba(212, 168, 83, 0.35);
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffffff 0%, #fce39e 50%, #d4a853 100%);
  color: #04080e;
  box-shadow: 0 6px 24px rgba(212, 168, 83, 0.5);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1.5px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  color: var(--gold-highlight);
  box-shadow: 0 0 12px var(--gold-glow);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-highlight);
  border: 1.5px solid var(--gold-primary);
}

.btn-outline-gold:hover {
  background: var(--gold-subtle);
  color: #ffffff;
  border-color: var(--gold-highlight);
}

.btn-block {
  width: 100%;
  display: flex;
}

.btn-sm {
  min-height: 38px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

/* ==============================================================================
   Bouton Upvote (Lanterne Chaleureuse & Stable sans tremblement)
============================================================================== */

.vote-btn-wrapper {
  flex-shrink: 0;
  width: 58px;
  min-width: 58px;
  height: 58px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1.5px solid var(--border-dim);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  user-select: none;
  touch-action: manipulation;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.btn-vote .vote-arrow {
  font-size: 1.25rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.btn-vote .vote-count {
  font-size: 0.98rem;
  font-weight: 800;
  margin-top: 2px;
  line-height: 1;
}

.btn-vote:hover {
  border-color: var(--gold-primary);
  color: var(--gold-highlight);
  background: rgba(212, 168, 83, 0.1);
  box-shadow: 0 0 12px rgba(212, 168, 83, 0.22);
}

.btn-vote:active {
  transform: scale(0.95);
  transition: transform 0.05s ease;
}

/* État Voté (Rayonnement d'Or) */
.btn-vote.has-voted {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.28) 0%, rgba(212, 168, 83, 0.1) 100%);
  border-color: var(--gold-primary);
  color: var(--gold-highlight);
  box-shadow: 0 0 16px rgba(212, 168, 83, 0.35);
}

.btn-vote[disabled],
.btn-vote.htmx-request {
  opacity: 0.75;
  cursor: wait;
}

/* ==============================================================================
   Carte Question
============================================================================== */

.question-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  contain: layout;
}

.question-card:hover {
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.question-content {
  flex: 1;
  min-width: 0;
}

.question-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  margin: 0.35rem 0 0.65rem 0;
  word-wrap: break-word;
  white-space: pre-wrap;
  line-height: 1.5;
}

.question-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==============================================================================
   Formulaires
============================================================================== */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-cream);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border-dim);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.char-counter {
  display: flex;
  justify-content: flex-end;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.privacy-banner {
  background: rgba(212, 168, 83, 0.08);
  border-left: 3px solid var(--gold-primary);
  padding: 0.85rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.privacy-banner strong {
  color: var(--gold-highlight);
}

.hp-field {
  display: none !important;
  visibility: hidden !important;
}

/* ==============================================================================
   Filtres et Barres de Tri
============================================================================== */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-dim);
}

.sort-tabs {
  display: inline-flex;
  background: var(--bg-secondary);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-dim);
}

.sort-tab {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
}

.sort-tab:active {
  transform: scale(0.96);
  transition: transform 0.05s ease;
}

.sort-tab.active {
  background: linear-gradient(135deg, var(--gold-highlight) 0%, var(--gold-primary) 100%);
  color: #060d15;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--gold-glow);
}

.category-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.3rem 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex-shrink: 0;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  touch-action: manipulation;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
}

.category-pill:hover {
  border-color: var(--gold-primary);
  color: var(--gold-highlight);
}

.category-pill:active {
  transform: scale(0.96);
  transition: transform 0.05s ease;
}

.category-pill.active {
  background: var(--gold-subtle);
  border-color: var(--gold-primary);
  color: var(--gold-highlight);
}

/* ==============================================================================
   Mode Vidéoprojecteur (Grand Écran)
============================================================================== */

.projector-body {
  background-color: #04080f;
  color: #ffffff;
  padding: 2.5rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: radial-gradient(circle at 50% 10%, rgba(212, 168, 83, 0.08) 0%, transparent 60%);
}

.projector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}

.projector-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.projector-question-card {
  background: rgba(14, 28, 43, 0.88);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 60px rgba(212, 168, 83, 0.25);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  max-width: 1100px;
  width: 100%;
}

.projector-text {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin: 1.5rem 0;
  word-wrap: break-word;
}

.projector-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 1.4rem;
  color: var(--gold-highlight);
  font-weight: 700;
}

.projector-queue {
  border-top: 1px solid var(--border-dim);
  padding-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.projector-queue-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==============================================================================
   Console de Modération & Administration Équipe
============================================================================== */

.mod-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.mod-tab-btn {
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.mod-tab-btn.active {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  color: var(--gold-highlight);
  box-shadow: 0 0 10px var(--gold-glow);
}

.tab-badge {
  background: var(--gold-primary);
  color: #060d15;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
}

.mod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.btn-action-approve {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.btn-action-reject {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.btn-action-edit {
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold-highlight);
  border: 1px solid rgba(212, 168, 83, 0.35);
}

.btn-action-merge {
  background: rgba(31, 182, 166, 0.16);
  color: #2dd4bf;
  border: 1px solid rgba(31, 182, 166, 0.4);
}

/* ==============================================================================
   Alertes
============================================================================== */

.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.alert-error {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.alert-info {
  background: rgba(31, 182, 166, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(31, 182, 166, 0.35);
}

/* ==============================================================================
   Pied de Page
============================================================================== */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-darkest);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 640px) {
  h1 { font-size: 1.55rem; }
  .card { padding: 1.1rem; }
  .question-card { padding: 0.95rem; }
  .btn-vote { min-width: 50px; min-height: 50px; }
  .projector-text { font-size: 1.85rem; }
  .projector-question-card { padding: 1.8rem 1.2rem; }
}

/* ==============================================================================
   Recherche Instantanée & Filtres Rapides
============================================================================== */

.search-box-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  font-size: 0.92rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-glow);
  outline: none;
}

/* ==============================================================================
   Compte à Rebours Compact dans la Barre (Countdown Pill)
============================================================================== */

.countdown-bar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid rgba(212, 168, 83, 0.4);
  color: var(--gold-highlight);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(212, 168, 83, 0.15);
}

.countdown-bar-pill .cd-bar-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.countdown-bar-pill .cd-bar-text {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

/* ==============================================================================
   Badge & Indicateur de Temps Restant de Séance
============================================================================== */

.session-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(31, 182, 166, 0.12);
  border: 1px solid rgba(31, 182, 166, 0.35);
  color: #38e2d0;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.session-timer-alert {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

/* ==============================================================================
   Bouton d'Export Récapitulatif
============================================================================== */

.btn-export-recap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid var(--border-subtle);
  color: var(--gold-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-export-recap:hover {
  background: var(--gold-primary);
  color: #060d15;
  border-color: var(--gold-primary);
  box-shadow: 0 4px 16px var(--gold-glow);
  transform: translateY(-1px);
}

