:root {
    --primary-color: #2E7D32;
    --secondary-color: #4CAF50;
    --accent-color: #FF9800;
    --light-color: #ffffff;
    --dark-color: #333;
}

/* Styles de base pour tous les écrans */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

nav {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* En-tête */
header {
    position: relative;
    width: 100%;
    margin-top: 70px;
    overflow: hidden;
    background-color: #d4e6d4;
}

.header-bg-container {
    width: 100%;
    height: 40vh;
    min-height: 250px;
    max-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.header-bg {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.header-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.header-text h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.header-text h2 {
    font-size: 1.8rem;
}

.date-location {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

section {
    padding: 60px 0;
    background-color: var(--light-color);
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

section h2:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
}

.programme {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.jour {
    margin-bottom: 40px;
}

.jour h3 {
    color: var(--accent-color);
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.evenement {
    background-color: #fcfcfc;
    border-left: 5px solid var(--secondary-color);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.evenement:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.evenement h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.heure {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
    background-color: rgba(255, 152, 0, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

.infos-pratiques {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.organisateurs {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.organisateurs img {
    max-width: 100%;
    height: auto;
}

.version {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.illustration {
    text-align: center;
    margin: 40px 0;
}

.illustration img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.illustration img:hover {
    transform: scale(1.02);
}

/* Bouton pour afficher l'affiche */
.affiche-container {
    text-align: center;
    margin-bottom: 20px;
}

.affiche-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-block;
}

.affiche-button img {
    width: 200px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.affiche-button:hover img {
    transform: scale(1.05);
}

.affiche-button p {
    margin-top: 10px;
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: bold;
}

/* Modale pour afficher l'affiche en plein écran */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    display: block;
    margin: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* Styles spécifiques pour les écrans mobiles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 3px 0;
        transition: 0.3s;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links li {
        margin: 10px 0;
    }

    /* En-tête pour les écrans mobiles */
    .header-bg-container {
        height: 30vh;
        min-height: 180px;
    }

    .header-text h1 {
        font-size: 1.8rem;
    }

    .header-text h2 {
        font-size: 1.2rem;
    }

    section {
        padding: 30px 0;
    }

    .affiche-button img {
        width: 150px;
    }

    .affiche-button p {
        font-size: 0.9rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 0.6s ease-out forwards;
}