/* =====================================================
   SDIS 66 - Viewer TV 4K - Groupement Formation
   Styles optimisés pour écran 4K (3840x2160)
   Police : Outfit
   ===================================================== */

/* Variables CSS */
:root {
    /* Couleurs principales */
    --color-primary: #AB0209;
    --color-primary-dark: #8B0107;
    --color-primary-light: #FEE2E2;
    --color-secondary: #F7C419;
    --color-secondary-dark: #D4A515;
    --color-secondary-light: #1E293B;
    
    /* Couleurs de fond */
    --bg-gradient-start: #0F172A;
    --bg-gradient-mid: #1E293B;
    --bg-gradient-end: #334155;
    --bg-card: rgba(30, 41, 59, 0.95);
    --bg-card-hover: rgba(51, 65, 85, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    /* Couleurs de texte */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-light: #64748B;
    --text-white: #FFFFFF;
    
    /* Couleurs de statut */
    --status-pending: #F59E0B;
    --status-approved: #10B981;
    --status-assigned: #3B82F6;
    --status-completed: #6B7280;
    --status-online: #22C55E;
    --status-offline: #EF4444;
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(171, 2, 9, 0.3);
    --shadow-glow-yellow: 0 0 20px rgba(247, 196, 25, 0.3);
    --shadow-glow-green: 0 0 20px rgba(34, 197, 94, 0.5);
    
    /* Dimensions 4K - Design épuré */
    --font-size-base: 18px;
    --font-size-lg: 24px;
    --font-size-xl: 36px;
    --font-size-2xl: 48px;
    --font-size-3xl: 72px;
    --font-size-time: 140px;
    
    /* Espacements */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 48px;
    --spacing-xl: 64px;
    --spacing-2xl: 96px;
    
    /* Bordures */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset et base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Material Icons - Configuration globale */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

/* =====================================================
   Version de l'application
   ===================================================== */
.app-version {
    position: fixed;
    bottom: calc(var(--spacing-lg) + 60px);
    right: var(--spacing-lg);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    z-index: 199;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.7;
    transition: all var(--transition-normal);
    font-family: 'Outfit', monospace;
}

.app-version:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =====================================================
   Indicateur de pause
   ===================================================== */
.pause-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--color-secondary);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    pointer-events: none;
    animation: fade-in 0.3s ease-out;
}

.pause-indicator .material-icons {
    font-size: 64px;
    color: var(--color-secondary);
}

/* =====================================================
   Indicateur de statut réseau
   ===================================================== */
.network-status {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    z-index: 200;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.network-status.online {
    border-color: rgba(34, 197, 94, 0.3);
}

.network-status.offline {
    border-color: rgba(239, 68, 68, 0.3);
    animation: pulse-error 2s infinite;
}

@keyframes pulse-error {
    0%, 100% { box-shadow: var(--shadow-md); }
    50% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.4); }
}

.network-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.network-status.online .network-dot {
    background: var(--status-online);
    box-shadow: 0 0 12px var(--status-online);
    animation: pulse-dot 2s infinite;
}

.network-status.offline .network-dot {
    background: var(--status-offline);
    box-shadow: 0 0 12px var(--status-offline);
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.network-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.network-status.online .network-text {
    color: var(--status-online);
}

.network-status.offline .network-text {
    color: var(--status-offline);
}

/* =====================================================
   Indicateurs de slide
   ===================================================== */
.slide-indicators {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 12px;
    display: flex;
    gap: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.indicator {
    flex: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.indicator::after {
    display: none;
}

.indicator.active {
    background: rgba(171, 2, 9, 0.3);
    box-shadow: 0 0 20px rgba(171, 2, 9, 0.6);
}

.indicator.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    animation: progress-fill var(--slide-duration, 15s) linear forwards;
    box-shadow: 0 0 10px rgba(171, 2, 9, 0.8);
}

.indicator.active::after {
    display: none;
}

.indicator:hover:not(.active) {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes progress-fill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* =====================================================
   Conteneur du carrousel
   ===================================================== */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    perspective: 2000px;
}

/* =====================================================
   Slides (commun) - Effets améliorés
   ===================================================== */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%) rotateY(-15deg) scale(0.9);
    transform-origin: left center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: var(--spacing-xl);
    will-change: transform, opacity;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) rotateY(0deg) scale(1);
}

.slide.exit {
    opacity: 0;
    transform: translateX(-50%) rotateY(15deg) scale(0.9);
    transform-origin: right center;
}

/* =====================================================
   En-tête des slides
   ===================================================== */
.slide-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid rgba(220, 38, 38, 0.5);
    margin-bottom: var(--spacing-lg);
    position: relative;
}


.header-icon {
    font-size: var(--font-size-2xl);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--text-white);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
    animation: icon-pulse 3s ease-in-out infinite;
}

.header-icon .material-icons {
    font-size: 56px;
}

@keyframes icon-pulse {
    0%, 100% { box-shadow: var(--shadow-glow); }
    50% { box-shadow: 0 0 60px rgba(220, 38, 38, 0.5); }
}

.slide-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.slide-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin: 0;
    line-height: 1.1;
}

.slide-subtitle {
    font-size: 22px;
    font-weight: 300;
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.header-datetime {
    text-align: right;
    padding: 0px 30px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-direction: column;
    height: 168px;
    width: 357px;
}

.header-time {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
}

.header-date {
    display: block;
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    font-weight: 300;
}

/* =====================================================
   SLIDE 1: Écran de bienvenue
   ===================================================== */
.slide-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, var(--bg-gradient-mid) 0%, var(--bg-gradient-start) 70%);
    position: relative;
    overflow: hidden;
}

.slide-welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.05) 0%, transparent 40%);
    animation: ambient-rotate 60s linear infinite;
}

@keyframes ambient-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.welcome-content {
    text-align: center;
    z-index: 10;
    animation: welcome-appear 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes welcome-appear {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.logo-container {
    margin-bottom: var(--spacing-xl);
}

.logo {
    max-width: 300px;
    max-height: 300px;
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 24px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    animation: logo-float 6s ease-in-out infinite;
    border: none;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    font-size: 150px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    animation: logo-float 6s ease-in-out infinite;
    color: var(--color-primary);
}

.logo-icon .material-icons {
    font-size: 150px;
}

.logo-text-alt {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 12px;
    text-shadow: 0 0 40px rgba(220, 38, 38, 0.5);
}

.welcome-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: var(--font-size-xl);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    letter-spacing: 2px;
}

.datetime-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: var(--spacing-xl) var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.datetime-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.time {
    font-size: var(--font-size-time);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 4px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 60px rgba(171, 2, 9, 0.4);
}

.date {
    font-size: var(--font-size-xl);
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
    text-transform: capitalize;
    letter-spacing: 1px;
}

/* Décoration de fond améliorée */
.welcome-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.04;
    filter: blur(60px);
}

.circle-1 {
    width: 1000px;
    height: 1000px;
    top: -300px;
    right: -300px;
    animation: float-circle 25s ease-in-out infinite;
}

.circle-2 {
    width: 800px;
    height: 800px;
    bottom: -200px;
    left: -200px;
    animation: float-circle 30s ease-in-out infinite reverse;
}

.circle-3 {
    width: 600px;
    height: 600px;
    top: 40%;
    left: 15%;
    animation: float-circle 20s ease-in-out infinite 5s;
}

@keyframes float-circle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -40px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.95);
    }
}

/* =====================================================
   SLIDE 2: Formations du jour
   ===================================================== */
.slide-formations-jour {
    background: radial-gradient(ellipse at top, var(--bg-gradient-mid) 0%, var(--bg-gradient-start) 100%);
}

/* Bannière des statistiques */
.stats-banner {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.stat-item .material-icons {
    font-size: 32px;
    color: var(--color-primary);
}

.stat-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    font-weight: 400;
}

/* Grille des formations - 2 colonnes pour écran 4K hall d'entrée */
.formations-jour-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    flex: 1;
    overflow: visible;
    padding-right: var(--spacing-sm);
    padding-bottom: var(--spacing-lg);
    padding-top: var(--spacing-md);
    /* Alignement à gauche quand peu de formations */
    justify-content: start;
}

/* Gestion intelligente du nombre de colonnes selon le contenu */
.formations-jour-grid.single-formation {
    grid-template-columns: minmax(auto, 50%);
    justify-content: start;
    padding-bottom: 0px;
}

.formations-jour-grid.two-formations {
    grid-template-columns: repeat(2, 1fr);
    justify-content: start;
}

.formations-jour-grid.three-formations {
    grid-template-columns: repeat(2, 1fr);
}


/* Carte de formation - Optimisée pour hall d'entrée 4K */
.formation-jour-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    animation: card-fade-slide-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    min-height: 200px;
    position: relative;
}

.formation-jour-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: rgba(171, 2, 9, 0.5);
}

/* Adaptation pour 4K */
@media (min-width: 3000px) {
    .formation-jour-card {
        border-radius: var(--radius-xl);
        border-width: 3px;
        min-height: 280px;
    }
}

/* Header de la slide avec logo */
.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0px;
    padding: 0px;
    margin-bottom: var(--spacing-md);
    border-bottom-width: 0px;
    border-bottom-color: rgba(0, 0, 0, 0);
    border-bottom-style: none;
    border-image: none;
}

.slide-header .header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    object-fit: cover;
    border-width: 0px;
    border-color: rgba(0, 0, 0, 0);
    border-style: none;
    border-image: none;
    box-shadow: var(--shadow-md);
}

/* En-tête de la carte */
.formation-jour-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
    position: relative;
    overflow: visible;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Adaptation 4K pour l'en-tête */
@media (min-width: 3000px) {
    .formation-jour-header {
        padding: var(--spacing-lg) var(--spacing-xl);
        min-height: 140px;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    
    .formation-jour-salle-label {
        top: -16px;
        right: 24px;
        font-size: var(--font-size-lg);
        padding: var(--spacing-sm) var(--spacing-lg);
    }
    
    .formation-jour-salle-label .material-icons {
        font-size: 28px;
    }
}

.formation-jour-header-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-right: var(--spacing-md);
    gap: 4px;
}

.formation-jour-niveau-type {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-white);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.fmpa-label {
    color: rgba(247, 196, 25, 1);
}

.formation-jour-titre-small {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    letter-spacing: 0.3px;
}

.formation-jour-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    align-self: flex-end;
}

.formation-jour-salle-label {
    position: absolute;
    top: -16px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: linear-gradient(135deg, rgba(247, 196, 25, 1) 0%, rgba(247, 165, 24, 1) 100%);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-weight: 800;
    color: var(--text-white);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
    pointer-events: none;
}

.formation-jour-salle-label .material-icons {
    font-size: 20px;
}

.formation-jour-salle-label .salle-label-text {
    font-size: var(--font-size-base);
}

.formation-type-icon {
    font-size: 72px;
    color: var(--text-white);
    opacity: 0.3;
    line-height: 1;
}

.formation-jour-horaires {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
}

.formation-jour-horaires > span:first-child {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.formation-jour-horaires .material-icons {
    font-size: 28px;
}

.formation-time-until {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-secondary);
    text-align: right;
    margin-top: 2px;
}

/* Contenu de la carte - Optimisé pour hall d'entrée */
.formation-jour-content {
    padding: 20px;
    overflow: visible;
    position: relative;
}

/* Adaptation 4K pour le contenu */
@media (min-width: 3000px) {
    .formation-jour-content {
        padding: var(--spacing-lg);
    }
}

.formation-jour-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: var(--spacing-xs);
    grid-auto-flow: row;
}

.formation-jour-info {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
    white-space: nowrap;
    min-width: 0;
}

.formation-jour-info:hover {
    background: var(--bg-card-hover);
}

.formation-jour-info .material-icons {
    font-size: 28px;
    color: var(--color-primary);
    margin-top: 2px;
}

.formation-jour-info .grade-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.formation-jour-info .info-text {
    display: flex;
    flex-direction: column;
}

.formation-jour-info .info-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.formation-jour-info .info-value {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Heure de formation - Plus grande */
.formation-horaires-info .horaire-display {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Heure de repas - Plus petite pour s'adapter au cadre */
.formation-horaires-info .horaire-display.heure-repas {
    font-size: 22px;
}

.formation-horaires-info .horaire-icon {
    font-size: 36px;
}

.formation-jour-info.responsable {
    background: linear-gradient(135deg, rgba(171, 2, 9, 0.1), transparent);
    border: 1px solid rgba(171, 2, 9, 0.2);
}

/* Statuts de formation */
.formation-status-info.status-en-cours {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), transparent);
    border: 2px solid rgba(34, 197, 94, 0.4);
}

.formation-status-info.status-en-cours .material-icons {
    color: #22C55E;
}

.formation-status-info.status-en-cours .info-value {
    color: #22C55E;
    font-weight: 700;
}

.formation-status-info.status-termine {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.15), transparent);
    border: 2px solid rgba(107, 114, 128, 0.3);
}

.formation-status-info.status-termine .material-icons {
    color: #6B7280;
}

.formation-status-info.status-termine .info-value {
    color: #6B7280;
}

.formation-status-info.status-bientot {
    background: linear-gradient(135deg, rgba(247, 196, 25, 0.15), transparent);
    border: 2px solid rgba(247, 196, 25, 0.4);
}

.formation-status-info.status-bientot .material-icons {
    color: #F7C419;
}

.formation-status-info.status-bientot .info-value {
    color: #F7C419;
    font-weight: 700;
}

.info-value.status-label {
    color: rgba(247, 196, 25, 1);
}

.formation-status-info.status-bientot-flash {
    background: linear-gradient(135deg, rgba(247, 196, 25, 0.25), transparent);
    border: 2px solid rgba(247, 196, 25, 0.6);
    animation: flash-orange 1s ease-in-out infinite;
}

.formation-status-info.status-bientot-flash .material-icons {
    color: #F7C419;
}

.formation-status-info.status-bientot-flash .info-value {
    color: #F7C419;
    font-weight: 800;
}

@keyframes flash-orange {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(247, 196, 25, 0.3);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 20px rgba(247, 196, 25, 0.6);
    }
}

/* Animations améliorées */
@keyframes card-fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections formations */
.formations-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex: 1;
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 80px; /* Espace pour le bandeau de mise à jour */
    padding-top: var(--spacing-md);
}


.formations-section {
    animation: fade-in 0.6s ease-out;
}

/* Adaptation 4K */
@media (min-width: 3000px) {
    .formations-container {
        gap: var(--spacing-xl);
        padding-bottom: 100px;
    }
    
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 19px;
    padding-bottom: var(--spacing-sm);
    box-sizing: content-box;
    border-bottom: 3px solid var(--color-primary);
    text-transform: capitalize;
    display: inline-block;
    height: 46px;
}

/* Adaptation 4K pour les titres de section */
@media (min-width: 3000px) {
    .section-title {
        font-size: 56px;
        margin-bottom: var(--spacing-lg);
        border-bottom-width: 4px;
    }
}

/* Section météo */
.weather-section {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fade-in 0.8s ease-out;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.weather-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    animation: card-fade-slide-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.weather-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(247, 196, 25, 0.3);
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-city {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.weather-icon {
    width: 48px;
    height: 48px;
}

.weather-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.weather-temp {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: var(--spacing-xs) 0;
}

.temp-value {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-secondary);
}

.temp-unit {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

.weather-condition {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    text-transform: capitalize;
    margin-bottom: var(--spacing-xs);
}

.weather-wind,
.weather-humidity {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-base);
    color: var(--text-light);
}

.weather-wind .material-icons,
.weather-humidity .material-icons {
    font-size: 18px;
    color: var(--color-secondary);
}

.wind-speed {
    font-weight: 600;
    color: var(--text-primary);
}

.wind-direction {
    font-size: 20px;
    margin-left: 4px;
}

/* =====================================================
   États: Chargement et erreurs
   ===================================================== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    z-index: 50;
}

.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--spacing-md);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-data-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--text-secondary);
    text-align: center;
}

.no-data-icon {
    font-size: 120px;
    margin-bottom: var(--spacing-md);
    opacity: 0.4;
    filter: grayscale(50%);
}

.no-data-icon .material-icons {
    font-size: 120px;
}

.no-data-message p {
    font-size: var(--font-size-xl);
}

/* Overlay d'erreur */
.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.error-content {
    background: var(--bg-card);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    max-width: 700px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    animation: error-appear 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes error-appear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.error-icon {
    font-size: 100px;
    margin-bottom: var(--spacing-md);
    animation: error-shake 0.5s ease-in-out;
    color: var(--color-primary);
}

.error-icon .material-icons {
    font-size: 100px;
}

@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-content h3 {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.error-content p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================================================
   Bandeau de mise à jour
   ===================================================== */
.update-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 16px;
    z-index: 50;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.update-icon {
    animation: rotate 2s linear infinite paused;
    display: flex;
    align-items: center;
}

.update-icon .material-icons {
    font-size: 20px;
}

.update-banner.updating .update-icon {
    animation-play-state: running;
}

.update-banner.updating {
    color: var(--color-primary);
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   Responsive pour différentes résolutions
   ===================================================== */

/* 4K UHD (3840x2160) - Écran hall d'entrée 16:9 */
@media (min-width: 3000px) {
    :root {
        --font-size-base: 22px;
        --font-size-lg: 28px;
        --font-size-xl: 42px;
        --font-size-2xl: 56px;
        --font-size-3xl: 84px;
        --font-size-time: 160px;
        --spacing-lg: 56px;
        --spacing-xl: 72px;
        --spacing-2xl: 108px;
    }
    
    /* Grille 2 colonnes pour 4K */
    .formations-jour-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .formations-jour-grid.single-formation {
        grid-template-columns: minmax(500px, 50%);
    }
    
    .formations-jour-grid.two-formations {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Heure encore plus grande en 4K */
    .formation-horaires-info .horaire-display {
        font-size: 42px;
    }
    
    /* Heure de repas en 4K */
    .formation-horaires-info .horaire-display.heure-repas {
        font-size: 28px;
    }
    
    .formation-horaires-info .horaire-icon {
        font-size: 44px;
    }
    
    .formation-jour-niveau-type {
        font-size: var(--font-size-2xl);
    }
    
    .formation-jour-titre-small {
        font-size: 18px;
    }
    
    .formation-jour-horaires {
        font-size: var(--font-size-xl);
        padding: var(--spacing-sm) var(--spacing-lg);
    }
    
    .formation-jour-horaires .material-icons {
        font-size: 32px;
    }
    
    .formation-jour-info .info-value {
        font-size: 24px;
    }
    
    .formation-jour-info .info-label {
        font-size: 16px;
    }
    
    .formation-jour-info .material-icons {
        font-size: 32px;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-md);
    }
    
    .slide-title {
        font-size: 64px;
    }
    
    .header-logo {
        width: 140px;
        height: 140px;
    }
    
    .header-time {
        font-size: 144px;
    }
    
    .header-datetime {
        height: auto;
        width: auto;
        min-width: 400px;
    }
    
    .header-date {
        font-size: var(--font-size-xl);
    }
}

/* Full HD (1920x1080) et 2K */
@media (max-width: 2999px) and (min-width: 1367px) {
    :root {
        --font-size-base: 18px;
        --font-size-lg: 24px;
        --font-size-xl: 36px;
        --font-size-2xl: 48px;
        --font-size-3xl: 72px;
        --font-size-time: 140px;
        --spacing-xl: 48px;
        --spacing-2xl: 72px;
    }
    
    /* 2 colonnes pour Full HD */
    .formations-jour-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .formations-jour-grid.single-formation {
        grid-template-columns: minmax(400px, 50%);
    }
    
    .formations-jour-grid.two-formations {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Heure plus grande en Full HD */
    .formation-horaires-info .horaire-display {
        font-size: 28px;
    }
    
    /* Heure de repas en Full HD */
    .formation-horaires-info .horaire-display.heure-repas {
        font-size: 20px;
    }
    
    .formation-horaires-info .horaire-icon {
        font-size: 32px;
    }
    
    .formation-jour-niveau-type {
        font-size: 30px;
    }
    
    .formation-jour-horaires {
        font-size: var(--font-size-lg);
    }
    
    .formation-jour-horaires .material-icons {
        font-size: 24px;
    }
    
    .network-status {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
    }
    
    .app-version {
        bottom: calc(var(--spacing-md) + 60px);
        right: var(--spacing-md);
        font-size: 11px;
    }
    
    .header-time {
        font-size: 72px;
    }
    
    .header-date {
        font-size: var(--font-size-lg);
    }
}

/* HD (1280x720) */
@media (max-width: 1366px) {
    :root {
        --font-size-base: 14px;
        --font-size-lg: 18px;
        --font-size-xl: 28px;
        --font-size-2xl: 36px;
        --font-size-3xl: 54px;
        --font-size-time: 100px;
        --spacing-lg: 32px;
        --spacing-xl: 32px;
        --spacing-2xl: 48px;
    }
    
    .formations-jour-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Heure en HD */
    .formation-horaires-info .horaire-display {
        font-size: 24px;
    }
    
    /* Heure de repas en HD */
    .formation-horaires-info .horaire-display.heure-repas {
        font-size: 18px;
    }
    
    .formation-horaires-info .horaire-icon {
        font-size: 28px;
    }
    
    .formation-jour-info-grid {
        gap: var(--spacing-sm);
    }
    
    .formation-jour-header {
        padding: var(--spacing-sm) var(--spacing-md);
        min-height: 80px;
    }
    
    .formation-jour-niveau-type {
        font-size: var(--font-size-lg);
    }
    
    .formation-jour-titre-small {
        font-size: 12px;
    }
    
    .formation-jour-horaires {
        font-size: var(--font-size-base);
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    .formation-jour-horaires .material-icons {
        font-size: 18px;
    }
    
    .header-time {
        font-size: 54px;
    }
    
    .header-date {
        font-size: var(--font-size-base);
    }
    
    .stats-banner {
        gap: var(--spacing-lg);
        padding: var(--spacing-sm);
    }
    
    .stat-value {
        font-size: var(--font-size-xl);
    }
    
    .stat-label {
        font-size: var(--font-size-base);
    }
    
    .header-icon {
        width: 70px;
        height: 70px;
    }
    
    .logo {
        max-width: 250px;
        max-height: 200px;
    }
    
    .logo-icon {
        font-size: 100px;
    }
    
    .network-status {
        bottom: var(--spacing-sm);
        right: var(--spacing-sm);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .app-version {
        bottom: calc(var(--spacing-sm) + 50px);
        right: var(--spacing-sm);
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .network-text {
        font-size: 14px;
    }
    
    .network-dot {
        width: 10px;
        height: 10px;
    }
}

/* =====================================================
   SLIDE STATISTIQUES
   ===================================================== */
.slide-stats {
    background: radial-gradient(ellipse at top, var(--bg-gradient-mid) 0%, var(--bg-gradient-start) 100%);
}

.stats-slide-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px;
}

.stats-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.stats-slide-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--text-primary);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--color-primary);
    margin-bottom: 0;
}

.stats-slide-title .material-icons {
    font-size: 48px;
    color: var(--color-primary);
}

/* Bandeau de rappel clignotant */
.stats-reminder-banner {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.9), rgba(185, 28, 28, 0.9));
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
    animation: reminder-flash 1.5s ease-in-out infinite;
}

.stats-reminder-banner .material-icons {
    font-size: 36px;
    color: var(--text-white);
    animation: icon-shake 1.5s ease-in-out infinite;
}

.stats-reminder-banner .reminder-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes reminder-flash {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 0 50px rgba(220, 38, 38, 0.8), 0 0 80px rgba(220, 38, 38, 0.4);
        transform: scale(1.02);
    }
}

@keyframes icon-shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    flex: 1;
    align-items: stretch;
}

.stats-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    animation: card-fade-slide-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    display: flex;
    flex-direction: column;
    max-height: 520px;
}

.stats-card:nth-child(1) { animation-delay: 0.1s; }
.stats-card:nth-child(2) { animation-delay: 0.2s; }
.stats-card:nth-child(3) { animation-delay: 0.3s; }

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.stats-card-apprenants {
    border-color: rgba(59, 130, 246, 0.3);
}

.stats-card-apprenants:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.stats-card-formateurs {
    border-color: rgba(34, 197, 94, 0.3);
}

.stats-card-formateurs:hover {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.3);
}

.stats-card-cumul {
    border-color: rgba(247, 196, 25, 0.3);
}

.stats-card-cumul:hover {
    border-color: rgba(247, 196, 25, 0.6);
    box-shadow: 0 0 40px rgba(247, 196, 25, 0.3);
}

.stats-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-card-apprenants .stats-card-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
}

.stats-card-apprenants .stats-card-header .material-icons {
    color: #3B82F6;
}

.stats-card-formateurs .stats-card-header {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
}

.stats-card-formateurs .stats-card-header .material-icons {
    color: #22C55E;
}

.stats-card-cumul .stats-card-header {
    background: linear-gradient(135deg, rgba(247, 196, 25, 0.2), rgba(247, 196, 25, 0.05));
}

.stats-card-cumul .stats-card-header .material-icons {
    color: #F7C419;
}

.stats-card-header .material-icons {
    font-size: 32px;
}

.stats-card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.stats-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    gap: var(--spacing-md);
}

.stats-main-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stats-big-number {
    font-size: 100px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.stats-card-apprenants .stats-big-number {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card-formateurs .stats-big-number {
    background: linear-gradient(135deg, #22C55E 0%, #4ADE80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card-cumul .stats-big-number {
    background: linear-gradient(135deg, #F7C419 0%, #FDE047 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-location {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

.stats-secondary-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-small-number {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.stats-location-small {
    font-size: var(--font-size-base);
    color: var(--text-light);
}

.stats-cumul-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.stats-detail-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-detail-item .material-icons {
    font-size: 24px;
    color: var(--color-secondary);
}

.stats-detail-value {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.stats-detail-label {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

/* Animation de mise à jour des statistiques */
[data-stat] {
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

[data-stat].stat-updating {
    animation: stat-pulse 0.8s ease-out;
}

@keyframes stat-pulse {
    0% {
        transform: scale(1);
        text-shadow: none;
    }
    25% {
        transform: scale(1.15);
        text-shadow: 0 0 30px currentColor;
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 20px currentColor;
    }
    100% {
        transform: scale(1);
        text-shadow: none;
    }
}

.stats-big-number.stat-updating {
    animation: stat-pulse-big 0.8s ease-out;
}

@keyframes stat-pulse-big {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    25% {
        transform: scale(1.12);
        filter: brightness(1.3);
    }
    50% {
        transform: scale(1.08);
        filter: brightness(1.15);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.stats-small-number.stat-updating,
.stats-detail-value.stat-updating {
    animation: stat-pulse-small 0.8s ease-out;
}

@keyframes stat-pulse-small {
    0% {
        transform: scale(1);
        color: var(--text-primary);
    }
    25% {
        transform: scale(1.2);
        color: var(--color-secondary);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        color: var(--text-primary);
    }
}

/* Adaptation 4K pour les statistiques */
@media (min-width: 3000px) {
    .stats-card {
        max-height: 620px;
    }
    
    .stats-slide-title {
        font-size: 56px;
    }
    
    .stats-slide-title .material-icons {
        font-size: 56px;
    }
    
    .stats-reminder-banner {
        padding: var(--spacing-md) var(--spacing-xl);
    }
    
    .stats-reminder-banner .material-icons {
        font-size: 42px;
    }
    
    .stats-reminder-banner .reminder-text {
        font-size: 32px;
    }
    
    .stats-cards-grid {
        gap: var(--spacing-xl);
    }
    
    .stats-card-header {
        padding: var(--spacing-lg);
    }
    
    .stats-card-header .material-icons {
        font-size: 42px;
    }
    
    .stats-card-title {
        font-size: 42px;
    }
    
    .stats-card-content {
        padding: var(--spacing-xl);
    }
    
    .stats-big-number {
        font-size: 130px;
    }
    
    .stats-location {
        font-size: 28px;
    }
    
    .stats-small-number {
        font-size: 48px;
    }
    
    .stats-location-small {
        font-size: 22px;
    }
    
    .stats-detail-item .material-icons {
        font-size: 30px;
    }
    
    .stats-detail-value {
        font-size: 32px;
    }
    
    .stats-detail-label {
        font-size: 22px;
    }
}

/* Full HD pour les statistiques */
@media (max-width: 2999px) and (min-width: 1367px) {
    .stats-card {
        max-height: 480px;
    }
    
    .stats-big-number {
        font-size: 90px;
    }
    
    .stats-location {
        font-size: var(--font-size-base);
    }
    
    .stats-small-number {
        font-size: var(--font-size-lg);
    }
    
    .stats-location-small {
        font-size: 14px;
    }
    
    .stats-reminder-banner .reminder-text {
        font-size: var(--font-size-lg);
    }
    
    .stats-card-title {
        font-size: var(--font-size-lg);
    }
}

/* HD pour les statistiques */
@media (max-width: 1366px) {
    .stats-card {
        max-height: 400px;
    }
    
    .stats-header-row {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .stats-reminder-banner {
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    .stats-reminder-banner .material-icons {
        font-size: 24px;
    }
    
    .stats-reminder-banner .reminder-text {
        font-size: 14px;
    }
    
    .stats-cards-grid {
        gap: var(--spacing-sm);
    }
    
    .stats-card-header {
        padding: var(--spacing-sm);
    }
    
    .stats-card-header .material-icons {
        font-size: 24px;
    }
    
    .stats-card-title {
        font-size: 18px;
    }
    
    .stats-card-content {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .stats-big-number {
        font-size: 60px;
    }
    
    .stats-location {
        font-size: 14px;
    }
    
    .stats-small-number {
        font-size: var(--font-size-lg);
    }
    
    .stats-location-small {
        font-size: 12px;
    }
    
    .stats-detail-value {
        font-size: var(--font-size-base);
    }
    
    .stats-detail-label {
        font-size: 12px;
    }
}
