/* Variables CSS pour la cohérence du design */
:root {
    --primary-bg: #000000;
    --secondary-bg: #1a1a1a;
    --accent-bg: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    
    /* Couleurs des logos transport */
    --rer-a-color: #e60012;
    --rer-d-color: #00a650;
    --ligne-1-color: #ffce00;
    --ligne-8-color: #ceadd2;
    --ligne-14-color: #62259d;
    
    /* Couleurs aéroport */
    --airport-orange: #ff6b35;
    --airport-pink: #ff69b4;
    --airport-blue: #4a90e2;
    
    /* Couleurs train */
    --train-blue: #0066cc;
    --train-green: #00a650;
    --train-orange: #ff8c00;
    
    /* Couleurs marées */
    --tide-blue: #1e88e5;
    
    /* Espacement */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Rayons de bordure */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    
    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.3s ease-in-out;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* En-tête principal */
.main-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    border-bottom: 2px solid var(--accent-bg);
}

.main-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Dashboard principal */
.dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* Sections du tableau de bord */
.dashboard-section {
    background: var(--secondary-bg);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--accent-bg);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.dashboard-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--accent-bg);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--tide-blue), var(--airport-orange));
    border-radius: 1px;
}

/* Sous-sections */
.subsection {
    margin-bottom: var(--spacing-lg);
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.subsection-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--tide-blue);
    border-radius: 2px;
}

/* Grille de logos */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

/* Cartes de logos */
.logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    background: var(--accent-bg);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.logo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: var(--border-radius-md);
    z-index: 1;
}

.logo-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--secondary-bg);
}

.logo-card:hover::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

/* Images de logos */
.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: var(--spacing-sm);
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-medium);
}

.logo-card:hover .logo-img {
    transform: scale(1.1);
}

/* Labels des logos */
.logo-label {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-secondary);
    z-index: 2;
    position: relative;
    transition: color var(--transition-medium);
}

.logo-card:hover .logo-label {
    color: var(--text-primary);
}

/* Pied de page */
.main-footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--accent-bg);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Styles responsives */
@media (max-width: 1200px) {
    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .container {
        padding: var(--spacing-sm);
    }
    
    .main-header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .subsection-title {
        font-size: 1.1rem;
    }
    
    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .logo-card {
        padding: var(--spacing-sm);
        min-height: 100px;
    }
    
    .logo-img {
        width: 48px;
        height: 48px;
    }
    
    .logo-label {
        font-size: 0.8rem;
    }
    
    .dashboard-section {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 1.8rem;
    }
    
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo-card {
        min-height: 90px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
}

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-section {
    animation: fadeInUp var(--transition-medium) ease-out;
}

.dashboard-section:nth-child(1) { animation-delay: 0.1s; }
.dashboard-section:nth-child(2) { animation-delay: 0.2s; }
.dashboard-section:nth-child(3) { animation-delay: 0.3s; }
.dashboard-section:nth-child(4) { animation-delay: 0.4s; }

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.logo-card:focus {
    outline: 2px solid var(--tide-blue);
    outline-offset: 2px;
}

/* États d'accessibilité */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --accent-bg: #333333;
        --secondary-bg: #222222;
    }
    
    .logo-card {
        border: 2px solid var(--text-primary);
    }
}