/* ===================================
   Variables Dark Theme
   =================================== */
:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --border-light: #475569;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   Layout Principal
   =================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ===================================
   Sidebar réseaux sociaux (gauche)
   =================================== */
.social-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-darker);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 14px;
    overflow-y: auto;
    height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
    box-sizing: border-box;
}

.social-sidebar > * {
    flex-shrink: 0;
}

.social-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 2px;
}

.social-sidebar-header i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

/* Carte réseau social */
.social-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.social-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.social-card-top i {
    font-size: 1.1rem;
}

.social-card-profile {
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    cursor: default;
}

.social-card-profile:hover {
    transform: none;
    box-shadow: none;
}

.profile-avatar {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.social-card-aurora    { background: linear-gradient(135deg, #064e3b, #065f46, #0d9488); }
.social-card-youtube   { background: #ff0000; }
.social-card-facebook  { background: #1877f2; }
.social-card-x         { background: #000; }
.social-card-instagram { background: linear-gradient(90deg, #f09433, #dc2743, #bc1888); }
.social-card-tiktok    { background: #010101; }

.social-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.social-card-desc {
    display: none;
}

.social-card-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 8px 14px 12px;
    padding: 7px 12px;
    border-radius: 6px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    width: fit-content;
}

.social-card-btn:hover,
.social-card-link:hover .social-card-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Masquer sur tablette/mobile */
@media (max-width: 1200px) {
    .social-sidebar {
        display: none;
    }
}

/* Section sociale mobile (visible uniquement sous 1200px) */
.social-mobile-section {
    display: none;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.social-mobile-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-mobile-title i {
    color: var(--primary-light);
}

.social-mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 1200px) {
    .social-mobile-section {
        display: block;
    }
}

@media (max-width: 600px) {
    .social-mobile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   Sidebar
   =================================== */
.sidebar {
    width: 320px;
    background: var(--bg-darker);
    border-left: 1px solid var(--border);
    display: none; /* Caché par défaut, affiché via JS quand dans une session */
    flex-direction: column;
    position: fixed;
    right: 0;
    left: auto;
    top: 0;
    bottom: 0;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
}

.sidebar-title {
    flex: 1;
}

.sidebar-title h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.sidebar-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sidebar-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.sidebar-toggle:hover {
    background: var(--bg-card-hover);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.sessions-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.session-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.session-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateX(4px);
}

.session-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));
    border-color: var(--primary);
}

.session-item.active-session::before {
    content: "●";
    color: var(--success);
    margin-right: 8px;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.session-item-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.session-item-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.session-item-meta div {
    margin-top: 3px;
}

/* ===================================
   Main Content
   =================================== */
.main-content {
    flex: 1;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

/* ===================================
   Header Principal
   =================================== */
.header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 30px;
    padding-right: 70px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

/* Bouton burger — toujours visible */
.mobile-burger {
    display: flex;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    height: 120px;
    width: auto;
}

.header-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.header-content p {
    font-size: 1rem;
    opacity: 0.9;
}

.header-bio {
    font-size: 0.8rem !important;
    opacity: 0.7;
    margin-top: 6px;
    line-height: 1.5;
}

.header-bio-location {
    display: inline;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    opacity: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* ===================================
   Bouton déconnexion admin
   =================================== */
.btn-logout {
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    flex-shrink: 0;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fff;
}

/* ===================================
   Switcher de langue FR / EN
   =================================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
    flex-shrink: 0;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 9px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    line-height: 1;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text);
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
}

/* ===================================
   News Ticker YouTube
   =================================== */
.news-ticker-bar {
    display: flex;
    align-items: center;
    background: #cc0000;
    height: 36px;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ff0000;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 14px;
    height: 100%;
    white-space: nowrap;
    flex-shrink: 0;
    border-right: 2px solid rgba(255,255,255,0.3);
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0 30px;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.ticker-item:hover {
    color: #ffdd57;
    text-decoration: none;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================================
   Boutons
   =================================== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* ===================================
   Container
   =================================== */
.container {
    padding: 30px;
    max-width: 1800px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.hidden {
    display: none !important;
}

/* ===================================
   Cartes de statistiques
   =================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 35px -5px rgb(0 0 0 / 0.4), 0 10px 15px -6px rgb(0 0 0 / 0.4);
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.9;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-value {
    transform: scale(1.1);
}

.stat-unit {
    font-size: 0.9rem;
    opacity: 0.8;
}

.stat-minmax {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: auto;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    opacity: 0.9;
}

.stat-max,
.stat-min {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.stat-max {
    color: rgba(255, 255, 255, 0.95);
}

.stat-min {
    color: rgba(255, 255, 255, 0.85);
}

.stat-max i,
.stat-min i {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ===================================
   Graphiques
   =================================== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1400px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
}

.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

.chart-card:hover::before {
    transform: scaleX(1);
}

.chart-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 600;
}

.chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.chart-card-header h3 {
    margin: 0;
}

.btn-chart-full {
    flex-shrink: 0;
}

/* Modal graphique complet */
.chart-modal-content {
    max-width: min(95vw, 1400px);
    width: 95%;
}

.chart-modal-body {
    min-height: 400px;
}

.chart-modal-loading {
    padding: 60px;
    text-align: center;
    color: var(--text-secondary);
}

.chart-modal-chart {
    min-height: 450px;
}

/* Sélecteur de plage horaire */
.modal-range-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
}

.range-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.range-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.range-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-darker);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.range-btn:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.3);
}

.range-btn.active {
    background: rgba(96, 165, 250, 0.2);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.5);
}

.apexcharts-canvas {
    background: transparent !important;
}

.apexcharts-tooltip {
    background: var(--bg-darker) !important;
    border: 1px solid var(--border) !important;
}

.apexcharts-tooltip-title {
    background: var(--bg-card) !important;
    border-bottom: 1px solid var(--border) !important;
}

.apexcharts-xaxistooltip,
.apexcharts-yaxistooltip {
    background: var(--bg-darker) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}

.apexcharts-xaxistooltip:before,
.apexcharts-xaxistooltip:after {
    border-bottom-color: var(--border) !important;
}

/* ===================================
   Carte et Photos
   =================================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Cartes avec hauteur fixe */
.info-grid .chart-card {
    height: 550px;
    display: flex;
    flex-direction: column;
}

.info-grid .chart-card h3 {
    flex-shrink: 0;
    margin-bottom: 15px;
}

.info-grid .chart-card > div {
    flex: 1;
    overflow: hidden;
}

/* Map container */
#mapContainer {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#sessionMap {
    height: 100% !important;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

#mapPlaceholder {
    height: 100% !important;
}

/* Photo gallery */
#photoGallery {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#photoGalleryContent,
#photoPlaceholder {
    height: 100%;
}

/* Style des popups Leaflet pour le dark mode */
.leaflet-popup-content-wrapper {
    background: var(--bg-card) !important;
    color: var(--text) !important;
    border: 1px solid var(--border-light) !important;
}

.leaflet-popup-tip {
    background: var(--bg-card) !important;
}

.leaflet-popup-content {
    color: var(--text) !important;
}

.leaflet-popup-content strong {
    color: var(--primary-light) !important;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.photo-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Modal photo */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.photo-modal.active {
    display: flex;
}

.photo-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.photo-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.photo-modal-close:hover {
    opacity: 0.7;
}

/* ===================================
   Tableau de données
   =================================== */
.data-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.data-table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.data-table-card-header h3 {
    margin: 0;
}

.data-table-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-table-full {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, border-color 0.2s;
}

.btn-table-full:hover {
    background: rgba(96, 165, 250, 0.18);
    border-color: rgba(96, 165, 250, 0.5);
}

/* Modal tableau complet */
.measurements-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.measurements-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
}

.measurements-modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: min(95vw, 1400px);
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.measurements-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.measurements-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.measurements-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s;
}

.measurements-modal-close:hover {
    color: var(--text);
}

.measurements-modal-body {
    padding: 16px;
    overflow: auto;
    flex: 1;
    min-height: 0;
}

.measurements-modal-loading {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

.measurements-modal-table-wrap {
    max-height: 60vh;
    min-height: 200px;
    overflow-y: auto;
    overflow-x: auto;
}

.measurements-modal-table {
    font-size: 0.9rem;
}

.measurements-modal-table th {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
}

.data-table-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text);
}

.table-wrapper {
    overflow-x: auto;
}

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

.data-table thead {
    background: var(--primary-dark);
    color: white;
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.no-data {
    text-align: center !important;
    color: var(--text-muted);
    padding: 30px !important;
}

/* ===================================
   Toggle Sidebar (mobile)
   =================================== */
.mobile-burger {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-burger:hover {
    background: rgba(255,255,255,0.25);
}

/* ===================================
   Loading
   =================================== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

/* ===================================
   Placeholders
   =================================== */
.placeholder {
    padding: 60px 40px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.placeholder a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: color 0.3s;
}

.placeholder a:hover {
    color: var(--primary);
}

/* ===================================
   Badges
   =================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: #ffffff;
    color: var(--success);
    border: 1px solid var(--success);
    animation: pulse-text-color 1.5s ease-in-out infinite;
}

@keyframes pulse-text-color {
    0%, 100% {
        color: var(--success);
    }
    50% {
        color: rgba(16, 185, 129, 0.5);
    }
}

.badge-inactive {
    background: red;
    color: #FFF;
    border: 0;
}

.badge-warning {
    background: var(--warning);
    color: #ffffff;
    border: 1px solid var(--warning);
}

/* Badge warning dans le header */
.header .badge-warning {
    margin-left: 20px;
}

/* ===================================
   Responsive
   =================================== */
/* Overlay semi-transparent derrière la sidebar */
body.sidebar-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .main-content {
        margin-left: 0 !important;
        width: 100%;
    }
    
    .info-grid .chart-card {
        height: 350px;
    }

    .charts-grid,
    .info-grid {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .info-grid .chart-card {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .sessions-map-layout {
        grid-template-columns: 1fr;
    }
    
    .deployments-map,
    .map-placeholder {
        height: 300px;
    }
}

@media (max-width: 640px) {
    /* Header compact sur mobile */
    .header {
        padding: 10px 12px;
        gap: 10px;
        min-height: unset;
        flex-wrap: nowrap;
        align-items: center;
    }

    .header-left {
        gap: 10px;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .header-logo {
        height: 30px;
        width: auto;
        flex-shrink: 0;
    }

    .header-content {
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    .header-content h1 {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-content p {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-bio {
        display: none;
    }

    .header-right {
        gap: 6px;
    }

    .header-actions {
        display: flex;
        gap: 5px;
        flex-shrink: 0;
    }

    .header-actions .btn {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .lang-switcher {
        padding: 2px;
    }

    .lang-btn {
        font-size: 0.7rem;
        padding: 3px 7px;
    }
    
    /* Stats 2 colonnes sur mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 14px;
        gap: 8px;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .stat-icon {
        font-size: 1.3rem;
        padding-top: 2px;
    }

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

    .stat-value {
        font-size: 1.6rem !important;
    }

    .stat-unit {
        font-size: 0.8rem;
    }

    /* Min/max passe en dessous, pleine largeur, horizontal */
    .stat-minmax {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-left: 0;
        padding-top: 8px;
        margin-left: 0;
        font-size: 0.78rem;
        gap: 0;
    }

    .stat-max,
    .stat-min {
        flex: 1;
        justify-content: center;
    }

    .stat-max {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
        padding-right: 8px;
    }

    .stat-min {
        padding-left: 8px;
    }
    
    /* Container padding réduit */
    .container {
        padding: 12px;
    }
    
    /* Global stats */
    .global-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .global-stat-value {
        font-size: 1.8rem !important;
    }
    
    /* Session cards */
    .session-card-main {
        padding: 14px;
    }
    
    .session-id {
        font-size: 0.9rem;
    }
    
    .session-info-compact {
        gap: 8px;
        font-size: 0.8rem;
    }
    
    /* Charts */
    .charts-grid {
        gap: 12px;
    }
    
    .chart-card {
        padding: 14px;
    }
    
    .chart-card h3 {
        font-size: 0.9rem;
    }
    
    /* Tableau */
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
    

    /* Carte déploiements */
    .deployments-map,
    .map-placeholder {
        height: 250px;
    }

    /* Sessions map layout */
    .sessions-map-layout {
        gap: 15px;
    }
}

/* ===================================
   Scrollbar personnalisée
   =================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* ===================================
   Liste des sessions (vue principale)
   =================================== */
/* ===================================
   Section Dernier Direct YouTube
   =================================== */
/* ===================================
   Section statistiques de chasse
   =================================== */
.chase-stats-section {
    margin: 30px 30px 0;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.chase-stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.chase-stats-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.chase-stats-header h2 i {
    color: #60a5fa;
}

.chase-stats-live-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.35);
    color: #fca5a5;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.chase-stats-live-btn:hover { background: rgba(239,68,68,0.18); }

.chase-stats-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: dotBlink 1s ease-in-out infinite;
}

.chase-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.chase-stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 14px;
    text-align: center;
    transition: border-color 0.2s;
}

.chase-stat-card:hover { border-color: rgba(96,165,250,0.3); }

.chase-stat-icon {
    font-size: 1.2rem;
    color: #60a5fa;
    margin-bottom: 10px;
}

.chase-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.chase-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary, #94a3b8);
}

.chase-stat-card.skeleton .chase-stat-value {
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    color: transparent;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@media (max-width: 700px) {
    .chase-stats-section { margin: 16px 14px 0; padding: 18px 16px; }
    .chase-stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
    .chase-stats-grid { grid-template-columns: 1fr 1fr; }
    .chase-stat-value { font-size: 1.5rem; }
}

.yt-stream-section {
    margin: 30px 30px 0;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.yt-stream-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.yt-stream-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yt-icon {
    font-size: 2rem;
    color: #ff0000;
    flex-shrink: 0;
}

.yt-stream-title h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.yt-stream-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.yt-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ff0000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 20px;
    animation: pulse-live 1.5s infinite;
}

.yt-live-badge i {
    font-size: 0.5rem;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

.yt-stream-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 12px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.yt-stream-link:hover {
    color: #ff0000;
    border-color: #ff0000;
}

.yt-stream-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: stretch;
}

.yt-embed-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.yt-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-secondary);
}

.yt-loading i {
    font-size: 3rem;
    color: #ff0000;
    opacity: 0.6;
    animation: pulse-live 1.5s infinite;
}

.yt-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.yt-stream-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.yt-playlist-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    padding: 12px 14px 4px;
    margin: 0;
}

.yt-playlist {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.yt-playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    border-top: 1px solid var(--border);
    transition: background 0.15s;
    position: relative;
}

.yt-playlist-item:hover {
    background: rgba(255,255,255,0.05);
}

.yt-playlist-item:first-child {
    background: rgba(255, 0, 0, 0.07);
    border-left: 3px solid #ff0000;
}

.yt-playlist-thumb {
    width: 60px;
    height: 34px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.yt-playlist-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.yt-playlist-title {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yt-playlist-date {
    font-size: 0.68rem;
    color: var(--text-secondary);
}

.yt-playlist-ext {
    font-size: 0.65rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.15s;
    padding: 4px;
}

.yt-playlist-item:hover .yt-playlist-ext {
    opacity: 1;
    color: #ff0000;
}

.yt-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 0, 0, 0.08);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.yt-error i {
    font-size: 1.5rem;
    color: #ff0000;
    flex-shrink: 0;
}

.yt-error a {
    color: #ff0000;
}

@media (max-width: 768px) {
    .yt-stream-section {
        margin: 0 10px 0;
        padding: 14px;
    }

    .yt-stream-body {
        grid-template-columns: 1fr;
    }

    .yt-stream-info {
        order: -1;
    }
}

/* ===================================
   Bande don PayPal
   =================================== */
/* ===================================
   Bannière alertes live
   =================================== */
/* Masquer bannière et stats chasse dans la fiche session */
body.dashboard-view #liveAlertBanner,
body.dashboard-view #chaseStatsSection {
    display: none !important;
}

#liveAlertBanner {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.live-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 24px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: filter 0.2s;
    animation: livePulse 2.5s ease-in-out infinite;
    border-left: none;
    border-right: none;
    border-top: none;
}

.live-alert:hover {
    filter: brightness(1.12);
}

.live-alert-chase {
    background: linear-gradient(90deg, #7f1d1d 0%, #991b1b 60%, #7f1d1d 100%);
    border-bottom: 1px solid rgba(239,68,68,0.4);
    color: #fef2f2;
}

.live-alert-probe {
    background: linear-gradient(90deg, #1e3a5f 0%, #1d4ed8 60%, #1e3a5f 100%);
    border-bottom: 1px solid rgba(59,130,246,0.4);
    color: #eff6ff;
}

.live-alert-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: dotBlink 1s ease-in-out infinite;
}

.live-alert-chase .live-alert-dot { background: #ef4444; }
.live-alert-probe .live-alert-dot { background: #60a5fa; }

.live-alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.live-alert-text {
    flex: 1;
}

.live-alert-text strong {
    display: block;
    font-size: 1rem;
}

.live-alert-text span {
    font-size: 0.82rem;
    opacity: 0.85;
    font-weight: 400;
}

.live-alert-arrow {
    font-size: 1.1rem;
    opacity: 0.8;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); }
    50%       { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

.live-alert-probe { animation-name: livePulsBlue; }
@keyframes livePulsBlue {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.3); }
    50%       { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

@media (max-width: 640px) {
    .live-alert { padding: 11px 16px; font-size: 0.88rem; }
    .live-alert-text strong { font-size: 0.92rem; }
}

.donation-banner {
    margin: 30px 30px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.donation-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 28px;
    flex-wrap: wrap;
}

.donation-text {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.donation-emoji {
    font-size: 2.2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.donation-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 3px;
}

.donation-text span {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.4;
}

.donation-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0070ba;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.4);
}

.donation-btn:hover {
    background: #005ea6;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 112, 186, 0.55);
}

.donation-paypal-logo {
    height: 20px;
    width: auto;
}

@media (max-width: 768px) {
    .donation-banner {
        margin: 20px 10px 0;
    }

    .donation-banner-inner {
        padding: 16px 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .donation-btn {
        width: 100%;
        justify-content: center;
    }
}

.sessions-section {
    animation: fadeIn 0.4s ease-out;
}

/* ===================================
   Stats globales
   =================================== */
.global-stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.global-stats-header {
    margin-bottom: 20px;
}

.global-stats-header h2 {
    font-size: 1.5rem;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.global-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.global-stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.global-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.global-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
}

.global-stat-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===================================
   Layout Sessions + Carte
   =================================== */
.sessions-map-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    min-height: 600px;
}

.sessions-list-column,
.sessions-map-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sessions-list-column h3,
.sessions-map-column h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.sessions-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    max-height: 700px;
    padding-right: 10px;
}

.deployments-map {
    width: 100%;
    height: 700px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-placeholder {
    width: 100%;
    height: 700px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 15px;
}

/* Adapter les session cards pour le listing vertical */
.sessions-list-vertical .session-card-main {
    padding: 20px;
}

@media (max-width: 1200px) {
    .sessions-map-layout {
        grid-template-columns: 1fr;
    }
    
    .deployments-map,
    .map-placeholder {
        height: 500px;
    }
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.session-card-main {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.session-card-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.session-card-main:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.session-card-main:hover::before {
    transform: scaleX(1);
}

.session-card-main.active-session {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.session-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.session-id {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-light);
}

/* Infos compactes sous le titre */
.session-info-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.info-compact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.info-compact-item i {
    color: #60a5fa;
    font-size: 0.8rem;
}

.session-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-value {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
}

.session-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    color: #60a5fa;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.session-card-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
    margin-top: 4px;
}

.btn-voir-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-voir-details:hover {
    background: rgba(96, 165, 250, 0.25);
    border-color: rgba(96, 165, 250, 0.6);
    color: #93c5fd;
}

/* Icônes dans les cartes de session et sidebar */
.session-card-main i,
.session-item-sidebar i {
    color: #60a5fa;
    margin-right: 6px;
    font-size: 0.85rem;
}

/* ===================================
   Dashboard View
   =================================== */
.dashboard-section {
    animation: fadeIn 0.4s ease-out;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.session-info-header {
    flex: 1;
}

.session-info-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.session-meta-header {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ===================================
   Section contact médias
=================================== */
.media-contact-section {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.25), rgba(15, 23, 42, 0.4));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 30px 40px;
}

.media-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.media-contact-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.media-contact-text h3 i {
    color: var(--primary-light);
}

.media-contact-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.6;
}

.media-contact-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.media-contact-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
}

.media-contact-email:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.media-contact-socials {
    display: flex;
    gap: 10px;
    display: none;
}

.media-contact-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.media-contact-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

@media (max-width: 700px) {
    .media-contact-section {
        padding: 24px 16px;
    }
    .media-contact-actions {
        align-items: flex-start;
        width: 100%;
    }
}

/* ===================================
   Footer
=================================== */
.site-footer {
    background: var(--bg-darker);

    padding: 28px 40px;

}

.site-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    height: 42px;
    width: auto;
    border-radius: 8px;
}

.footer-brand strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
}

.footer-brand span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-links a i {
    font-size: 0.9rem;
}

.footer-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

@media (max-width: 600px) {
    .site-footer {
        padding: 20px 16px;
    }
}
