/* Styles pour la page Planning */
body {
    background: url('../images/B&R-webp.webp') no-repeat center center fixed;
    background-size: cover;
    background-position: 50% 30%;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    text-align: center;
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

/* Container principal de la timeline */
.timeline-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

/* Événements de la timeline */
.timeline-event {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-event.reverse {
    flex-direction: row-reverse;
}

.timeline-event.reverse .event-content {
    text-align: right;
}

.timeline-event.reverse .event-image {
    order: 2;
    margin-left: 0;
    margin-right: 40px;
}

/* Style spécial pour l'événement apéritif */
.apéro-event {
    flex-direction: row-reverse;
}

.apéro-event .event-content {
    text-align: left;
}

.apéro-event .event-image {
    margin-left: 0;
    margin-right: 40px;
}

/* Ajuster l'alignement des titres pour l'événement apéritif */
.apéro-event .event-content h3::after {
    left: 0;
    right: auto;
}

/* Placeholder d'image */
.event-image {
    flex: 0 0 200px;
    margin: 0 40px;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Style spécial pour l'image de l'apéritif */
.apéro-event .image-placeholder,
.eglise-event .image-placeholder,
.reception-event .image-placeholder {
    padding: 0;
    display: block;
    background: none;
    border: none;
}

.apéro-event .image-placeholder img.main-image,
.eglise-event .image-placeholder img.main-image,
.reception-event .image-placeholder img.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.image-placeholder:hover {
    background: #e8e8e8;
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #4a90e2;
}

.image-placeholder span {
    font-weight: 500;
}

/* Contenu des événements */
.event-content {
    flex: 1;
    padding: 20px;
}

.event-content h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
}

.event-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #7bb3f0);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Alignement du texte pour les événements avec image à gauche */
.timeline-event:not(.apéro-event) .event-content {
    text-align: right;
}

/* Alignement des traits bleus pour les événements avec texte à droite */
.timeline-event:not(.apéro-event) .event-content h3::after {
    left: auto;
    right: 0;
}

.timeline-event.reverse .event-content h3::after {
    left: auto;
    right: 0;
}

.event-content p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.event-content strong {
    color: #333;
    font-weight: 600;
}

/* Lignes de connexion */
.timeline-connector {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.connector-line {
    width: 3px;
    height: 60px;
    background: linear-gradient(180deg, #4a90e2, #7bb3f0);
    border-radius: 2px;
    position: relative;
}

.connector-line::before,
.connector-line::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #4a90e2;
    border-radius: 50%;
    transform: translateX(-50%);
}

.connector-line::before {
    top: -6px;
}

.connector-line::after {
    bottom: -6px;
}

/* Section Brunch */
.brunch-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid #e8e8e8;
    text-align: center;
}

.brunch-content {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #ffc107;
}

.brunch-content h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.brunch-content h3 i {
    color: #ffc107;
    font-size: 1.2rem;
}

.brunch-content p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive design pour desktop */
@media (min-width: 1200px) {
    .timeline-container {
        padding: 80px 60px;
    }

    .event-image {
        flex: 0 0 250px;
        margin: 0 60px;
    }

    .image-placeholder {
        width: 250px;
        height: 250px;
    }

    .event-content h3 {
        font-size: 1.7rem;
    }

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

/* Responsive design pour mobile */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .timeline-container {
        padding: 30px 20px;
        border-radius: 15px;
    }

    /* Réorganisation de la timeline en version mobile */
    .timeline-event {
        flex-direction: column;
        margin-bottom: 40px;
        text-align: center;
    }

    .timeline-event.reverse,
    .timeline-event.apéro-event {
        flex-direction: column;
    }

    .timeline-event.reverse .event-content {
        text-align: center;
        order: 1;
    }

    .timeline-event.apéro-event .event-content {
        text-align: left;
        order: 1;
    }

    .timeline-event.reverse .event-content h3::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .timeline-event.apéro-event .event-content h3::after {
        left: 0;
        right: auto;
        transform: none;
    }

    /* Forcer le centrage de l'image de l'apéritif sur mobile */
    .timeline-event.apéro-event .event-image {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .event-image {
        flex: none;
        margin: 20px auto 0 auto;
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Forcer le centrage de toutes les images sur mobile */
    .timeline-event .event-image {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .image-placeholder {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .event-content {
        padding: 15px 10px;
    }

    .event-content h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .event-content p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Lignes de connexion adaptées pour mobile */
    .timeline-connector {
        margin: 30px 0;
    }

    .connector-line {
        height: 40px;
    }

    /* Section brunch adaptée pour mobile */
    .brunch-section {
        margin-top: 50px;
        padding-top: 30px;
    }

    .brunch-content {
        padding: 20px 15px;
    }

    .brunch-content h3 {
        font-size: 1.2rem;
    }

    .brunch-content p {
        font-size: 1rem;
    }
}

/* Responsive design pour très petits écrans */
@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .timeline-container {
        padding: 25px 15px;
    }

    .image-placeholder {
        width: 120px;
        height: 120px;
    }

    .event-content h3 {
        font-size: 1.2rem;
    }

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

/* Animations et transitions */
.timeline-event {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.timeline-event:nth-child(1) { animation-delay: 0.1s; }
.timeline-event:nth-child(3) { animation-delay: 0.2s; }
.timeline-event:nth-child(5) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects */
.timeline-event:hover .image-placeholder {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-event:hover .event-content h3::after {
    width: 70px;
    transition: width 0.3s ease;
}
