/* ========================= */
/* Styles généraux */
/* ========================= */

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f7f4;
    color: #2c3e50;
}

/* ========================= */
/* En-tête */
/* ========================= */

header {
    position: relative;
    background-color: black;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

header h1,
header p {
    position: relative;
    z-index: 1;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header p {
    margin-top: 0.5rem;
    font-size: 1.2rem;
}

/* ========================= */
/* Conteneur responsive vidéo */
/* ========================= */

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================= */
/* Conteneur principal */
/* ========================= */

main {
    padding: 1rem;
}

/* ========================= */
/* 🔵 Navigation Calendrier */
/* ========================= */

#calendar-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 30px 0;
}

#calendar-navigation button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#calendar-navigation button:hover {
    background-color: #219150;
    transform: scale(1.05);
}

#calendar-navigation button:active {
    transform: scale(0.95);
}

#currentMonthLabel {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: capitalize;
}

/* ========================= */
/* Groupes de dates (ancien système) */
/* ========================= */

.date-group {
    margin-bottom: 2rem;
    background-color: #408080;
    padding: 1rem;
    border-radius: 8px;
}

.date-group h2 {
    background-color: #333;
    color: white;
    padding: 0.5rem;
    text-align: center;
    margin-bottom: 1rem;
    border-radius: 8px;
}

/* ========================= */
/* Événements */
/* ========================= */

.event {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    margin: 1.5rem auto;
    padding: 1.5rem;
    max-width: 800px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.event h3 {
    color: #27ae60;
    margin-top: 0;
}

.event h3.red {
    color: red;
}

.event p {
    margin-bottom: 0.5rem;
}

/* ========================= */
/* Liens Maps */
/* ========================= */

.maps-link {
    display: inline-block;
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
    margin-left: 8px;
    padding: 2px 6px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dadce0;
    transition: all 0.3s ease;
}

.maps-link:hover {
    text-decoration: underline;
    background-color: #e8f0fe;
    border-color: #d2e3fc;
}

.maps-link:active {
    background-color: #d2e3fc;
}

/* ========================= */
/* Date de création */
/* ========================= */

.creation-date {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
}

/* ========================= */
/* Erreurs */
/* ========================= */

.error {
    background-color: #ffe6e6;
    border: 2px solid #ff4444;
    border-radius: 8px;
    color: #cc0000;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
}

/* ========================= */
/* Responsive */
/* ========================= */

@media (max-width: 600px) {

    #calendar-navigation {
        gap: 15px;
    }

    #calendar-navigation button {
        padding: 8px 12px;
        font-size: 16px;
    }

    #currentMonthLabel {
        font-size: 1.2rem;
    }

    .event {
        margin: 1rem;
        padding: 1rem;
        font-size: 0.9rem;
    }

    .date-group h2 {
        font-size: 1.2rem;
        padding: 0.8rem;
    }

    /* Adaptation mobile pour les liens */
    .maps-link {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
}
