/* ==========================================================================
   STYLES SPÉCIFIQUES POUR LA PAGE PROGRAMME
   ========================================================================== */

/* HERO SECTION */
.hero-section {
    background: linear-gradient(45deg, rgba(225, 6, 0, 0.9), rgba(10, 10, 10, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-size: cover;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Espace pour la navbar fixe */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    font-family: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    animation: glow 2s ease-in-out infinite alternate;
    color: var(--text-primary);
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(225, 6, 0, 0.5); }
    to { text-shadow: 0 0 40px rgba(225, 6, 0, 0.8), 0 0 60px rgba(225, 6, 0, 0.6); }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-family: var(--font-primary);
}

.date-location {
    font-size: 1.2rem;
    background: var(--card-background);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    font-family: var(--font-primary);
}

/* MAIN CONTAINER */
.schedule-section {
    padding: 80px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: 3rem;
    font-family: var(--font-bold);
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(225, 6, 0, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--primary-color), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* SCHEDULE CARDS */
.panel {
    background: var(--card-background);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    margin-bottom: 3rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(225, 6, 0, 0.2);
}

.panel-header {
    background: rgba(0,0,0,0.3);
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--card-border);
}

.panel-header h3 {
    font-size: 2.5rem;
    font-family: var(--font-bold);
    margin: 0;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.panel-header h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.panel-body {
    padding: 2rem;
}

.event-grid {
    display: grid;
    gap: 1.5rem;
}

.event-item {
    display: grid;
    /* CORRECTION : Augmentation de la largeur de la première colonne */
    grid-template-columns: 180px 1fr auto;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-item::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 ease;
}

.event-item:hover::before {
    left: 100%;
}

.event-item:hover {
    transform: translateX(10px);
    background: rgba(225, 6, 0, 0.1);
    box-shadow: 0 10px 30px rgba(225, 6, 0, 0.2);
}

.event-time {
    font-size: 1.2rem;
    font-family: var(--font-bold);
    color: var(--primary-color);
    text-align: center;
}

.event-details {
    padding: 0 1.5rem;
}

.event-title {
    font-size: 1.3rem;
    font-family: var(--font-bold);
    margin-bottom: 5px;
    color: var(--text-primary);
}

.event-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
    font-family: var(--font-primary);
}

.event-category {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Event Categories */
.category-practice { background: rgba(76, 175, 80, 0.2); color: #4CAF50; border: 1px solid #4CAF50; }
.category-briefing { background: rgba(33, 150, 243, 0.2); color: #2196F3; border: 1px solid #2196F3; }
.category-accueil { background: rgba(0, 188, 212, 0.2); color: #00BCD4; border: 1px solid #00BCD4; }
.category-race { background: rgba(225, 6, 0, 0.2); color: var(--primary-color); border: 1px solid var(--primary-color); }
.category-cloture { background: rgba(103, 58, 183, 0.2); color: #673AB7; border: 1px solid #673AB7; }
.category-q1 { background: rgba(255, 193, 7, 0.2); color: #FFC107; border: 1px solid #FFC107; }
.category-q2 { background: rgba(255, 152, 0, 0.2); color: #FF9800; border: 1px solid #FF9800; }
.category-q3 { background: rgba(255, 87, 34, 0.2); color: #FF5722; border: 1px solid #FF5722; }
.category-pause { background: rgba(158, 158, 158, 0.2); color: #9E9E9E; border: 1px solid #9E9E9E; }


/* INFO SECTION */
.info-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 60px 0;
    margin-top: 80px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.info-title {
    font-size: 1.5rem;
    font-family: var(--font-bold);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-family: var(--font-primary);
}

/* FLOATING ELEMENTS */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 1; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .page-header h1 { font-size: 2.5rem; }
    .panel-header h3 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .hero-section {
        margin-top: 70px;
        padding: 80px 0 60px;
    }
    .hero-title { font-size: 2.5rem; }
    .page-header h1 { font-size: 2rem; }
    .panel-header h3 { font-size: 1.8rem; }
    .event-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    .event-time {
        font-size: 1.5rem;
        padding: 0.8rem;
        background: rgba(225, 6, 0, 0.1);
        border-radius: 10px;
    }
    .event-details { padding: 0; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .page-header h1 { font-size: 1.8rem; }
    .panel-header { padding: 1.5rem 1.5rem 1rem; }
    .panel-body { padding: 1.5rem; }
    .event-item {
        grid-template-columns: 120px 1fr auto; /* Revenir au layout de base si l'écran est petit */
        text-align: left;
    }
    .event-time {
        text-align: center;
        background: none;
    }
}