/* ========================================
   Calendrier Auto-Scraping F1 + MotoGP 2025
   Styles CSS
   ======================================== */

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Container principal */
.liste-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Header */
.liste-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.abonnement-links {
    margin-top: 15px;
}

.btn-abonnement-header {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-abonnement-header:hover {
    background: rgba(255,255,255,0.3) !important;
    transform: translateY(-2px);
    color: white !important;
}

.liste-header h3 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 300;
}

.liste-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 300;
}

/* Liste des événements */
.evenements-liste {
    padding: 15px;
}

.jour-groupe {
    margin-bottom: 20px;
}

.jour-date {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.jour-date-simple {
    font-size: 1.1em;
    font-weight: 600;
    color: #495057;
}

/* Événements */
.evenement-item {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.evenement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.evenement-aujourd-hui {
    border-left-color: #28a745 !important;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%) !important;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3) !important;
    transform: scale(1.02);
}

.evenement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.evenement-sport {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #6c757d;
}

.sport-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.evenement-heure {
    background: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.evenement-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.evenement-type {
    font-size: 1.2em;
    font-weight: 700;
    color: #212529;
}

.evenement-separator {
    color: #6c757d;
    font-weight: 300;
}

.evenement-gp {
    font-size: 1.1em;
    color: #495057;
    font-weight: 500;
}

.evenement-location {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.evenement-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Boutons */
.btn-calendrier {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-calendrier:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Popup calendrier */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-calendrier {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #212529;
    margin-bottom: 20px;
}

.popup-event-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: left;
}

.popup-event-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.popup-event-details {
    color: #6c757d;
    font-size: 0.9em;
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-calendrier-popup {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google-popup {
    background: #4285f4;
    color: white;
}

.btn-google-popup:hover {
    background: #3367d6;
    transform: translateY(-2px);
}

.btn-outlook-popup {
    background: #0078d4;
    color: white;
}

.btn-outlook-popup:hover {
    background: #106ebe;
    transform: translateY(-2px);
}

.btn-ics-popup {
    background: #28a745;
    color: white;
}

.btn-ics-popup:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-fermer {
    background: #6c757d;
    color: white;
    margin-top: 15px;
}

.btn-fermer:hover {
    background: #5a6268;
}

/* États vides */
.aucun-evenement {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.aucun-evenement-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.aucun-evenement h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #495057;
}

.aucun-evenement p {
    font-size: 1.1em;
    line-height: 1.6;
}

.plus-evenements {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .liste-header {
        padding: 20px;
    }
    
    .liste-header h3 {
        font-size: 1.8em;
    }
    
    .liste-subtitle {
        font-size: 1em;
    }
    
    .evenements-liste {
        padding: 15px;
    }
    
    .jour-date {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .jour-date-simple {
        font-size: 1.1em;
    }
    
    .evenement-item {
        padding: 15px;
    }
    
    .evenement-type {
        font-size: 1.2em;
    }
    
    .evenement-gp {
        font-size: 1.1em;
    }
    
    .evenement-location {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .liste-header h3 {
        font-size: 1.5em;
    }
    
    .liste-subtitle {
        font-size: 0.9em;
    }
    
    .evenements-liste {
        padding: 10px;
    }
    
    .jour-date {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .jour-date-simple {
        font-size: 1em;
    }
    
    .evenement-item {
        padding: 12px;
    }
    
    .evenement-type {
        font-size: 1.1em;
    }
    
    .evenement-gp {
        font-size: 1em;
    }
    
    .evenement-location {
        font-size: 0.8em;
    }
}

