/* ==========================================
   PAGE PROGRAMME
   ========================================== */

.programme-panel {
    padding: 2.5rem;
}

.programme-intro {
    margin-bottom: 3rem;
}

.programme-intro p {
    margin: 0;
    color: #64748b;
}


/* ==========================================
   JOURNÉE
   ========================================== */

.programme-day {
    margin-bottom: 3.5rem;
}

.programme-day:last-child {
    margin-bottom: 0;
}


/* ==========================================
   EN-TÊTE DU JOUR
   ========================================== */

.day-header {
    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary)
    );

    color: white;

    padding: 1rem 1.5rem;

    border-radius: 12px;

    box-shadow: 0 4px 12px rgba(120, 0, 0, 0.15);
}

.day-header h3 {
    margin: 0;

    font-size: 1.5rem;
    font-weight: 800;
}

.day-header span {
    display: block;

    margin-top: 0.1rem;

    font-size: 0.9rem;
    opacity: 0.85;
}


/* ==========================================
   TIMELINE
   ========================================== */

.timeline {
    position: relative;

    margin-top: 1.2rem;
    margin-left: 1.2rem;

    padding-left: 2rem;
}


/* Ligne verticale */

.timeline::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;

    width: 2px;

    background: rgba(193, 18, 31, 0.2);
}


/* ==========================================
   ÉVÉNEMENT
   ========================================== */

.programme-event {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;

    min-height: 48px;

    padding: 0.75rem 0;

    margin: 0.4rem 0;
}


/* Petit rond sur la timeline */

.programme-event::before {
    content: "";

    position: absolute;

    left: -2.45rem;

    width: 10px;
    height: 10px;

    background: white;

    border: 3px solid var(--primary);

    border-radius: 50%;
}


/* ==========================================
   CONTENU DE L'ÉVÉNEMENT
   ========================================== */

.event-content {
    flex: 1;

    min-width: 0;
}


/* Titre */

.event-content h4 {
    margin: 0;

    color: var(--text);

    font-size: 1.1rem;
    font-weight: 800;
}


/* Description */

.event-content p {
    margin: 0.3rem 0 0;

    color: #64748b;

    font-size: 0.95rem;
    line-height: 1.5;
}


/* ==========================================
   ÉVÉNEMENTS IMPORTANTS
   ========================================== */

.programme-event.important {
    background: rgba(193, 18, 31, 0.06);

    border-radius: 10px;

    padding: 1rem 1.2rem;

    margin: 0.6rem 0;
}

.programme-event.important::before {
    width: 12px;
    height: 12px;

    left: -2.5rem;

    background: var(--primary);

    border-color: var(--primary);
}

.programme-event.important .event-content h4 {
    color: var(--primary);

    font-weight: 800;
}

.programme-event.important .event-content p {
    color: #475569;
}


/* ==========================================
   IMAGES DES ÉVÉNEMENTS
   ========================================== */

.event-image {
    flex-shrink: 0;

    width: 180px;
    height: 120px;

    overflow: hidden;

    border-radius: 10px;
}

.event-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.event-image img:hover {
    transform: scale(1.05);
}


/* ==========================================
   STYLES DES HORAIRES
   ========================================== */

/*
   Ces styles sont volontairement conservés.

   Les horaires ne sont pas encore affichés sur le site,
   mais ils pourront être réactivés lorsque les heures
   officielles seront connues.
*/

.event-time {
    color: var(--primary);

    font-weight: 700;

    white-space: nowrap;
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 768px) {

    .programme-panel {
        padding: 1.5rem;
    }

    .programme-intro {
        margin-bottom: 2rem;
    }

    .programme-day {
        margin-bottom: 2.5rem;
    }

    .day-header {
        padding: 0.9rem 1.2rem;
    }

    .day-header h3 {
        font-size: 1.3rem;
    }

    .timeline {
        margin-left: 0.8rem;

        padding-left: 1.5rem;
    }

    .programme-event {
        gap: 1rem;

        padding: 0.75rem 0;
    }

    .programme-event::before {
        left: -1.95rem;
    }

    .programme-event.important::before {
        left: -2rem;
    }

    .event-content h4 {
        font-size: 1rem;
    }

    .event-content p {
        font-size: 0.9rem;
    }

    .event-image {
        width: 120px;
        height: 90px;
    }
}


/* ==========================================
   TRÈS PETITS ÉCRANS
   ========================================== */

@media (max-width: 500px) {

    .programme-event {
        align-items: flex-start;

        flex-direction: column;
    }

    .event-image {
        width: 100%;
        height: 180px;

        margin-top: 0.5rem;
    }
}