/* Reset et variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3f0b14;
    --secondary-color: #961e20;
    --accent-color: #d4a017;
    --light-color: #f5f5f5;
    --dark-color: #2c1810;
    --text-color: #333;
    --text-light: #fff;
    --font-main: 'Georgia', serif;
    --font-secondary: 'Arial', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Style global */
body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header fixe */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    background-color: var(--secondary-color);
}

.nav-link.active {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-content {
    max-width: 1200px;
    width: 100%;
}

.section h1 {
    font-family: var(--font-main);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section h2 {
    font-family: var(--font-main);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

/* Section Accueil */
#accueil {

/*background: linear-gradient(135deg, var(--light-color) 0%, #e8e8e8 100%);*/
background: #fefefe;
padding-top: 8rem;
}

#accueil h1 {
font-size: 5.5rem;
margin-bottom: 0.5rem;
}

#accueil h2 {
font-size: 3rem;
color: var(--secondary-color);
margin-bottom: 2rem;
}

#accueil h3 {
font-size: 2rem;
color: var(--secondary-color);
margin-bottom: 2rem;
}

/* Conteneur principal de l'accueil */
.hero-content {
    display: flex;
    width: 100%;
    max-width: 1200px;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Texte à gauche (60%) */
.hero-text {
    flex: 1;
    min-width: 300px;
    max-width: 60%; /* ✅ Prend exactement 50% de la largeur */
    text-align: center;
}

.hero-text .subtitle {
    font-family: var(--font-main);
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Image à droite (40%) */
.hero-image {
    flex: 1;
    min-width: 400px;
    max-width: 40%; /* ✅ Prend exactement 50% de la largeur */
}

.placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    box-shadow: var(--shadow);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column; /* Passe en colonne sur mobile */
        gap: 2rem;
    }

    .hero-text,
    .hero-image {
        max-width: 100%; /* Prend toute la largeur sur mobile */
    }

    .hero-text {
        text-align: center; /* Centre le texte sur mobile */
    }
}

/* Section Présentation */
#presentation {
background: linear-gradient(135deg, var(--light-color) 0%, #fff 100%);
}

.presentation-content {
    text-align: center;
}

.presentation-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

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

.feature {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature p {
    color: var(--text-color);
    font-size: 1rem;
}

/* Section Programme */
#programme {
background: linear-gradient(135deg, #f0f0f0 0%, var(--light-color) 100%);
}

.programme-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.programme-content > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Style des spectacles - pleine largeur */
.spectacle {
    width: 100%;
    margin-bottom: 3rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.spectacle:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.spectacle-image {
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    max-width: 100%;
    max-height: 100%;
}

.spectacle-image .placeholder {
    width: 100%;
    height: 100%;
}

.spectacle-image .placeholder img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.spectacle-details {
    padding: 2rem;
    text-align: left;
}

.spectacle-details h3 {
    font-family: var(--font-main);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.spectacle-author {
    color: var(--secondary-color);
    font-style: italic;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.spectacle-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.meta-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.meta-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.spectacle-description p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Section Informations */
#infos {
background: linear-gradient(135deg, var(--light-color) 0%, #e8e8e8 100%);
}

.infos-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.infos-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.infos-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.infos-section p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.infos-section .image-container {
    width: 100%;
    max-width: 400px;    /* Largeur max du conteneur */
    margin: 1rem auto;    /* Centre le conteneur */
    overflow: hidden;    /* Masque les débordements */
    border-radius: 8px;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style des images dans le conteneur */
.infos-section .image-container img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.tarifs-list {
    list-style: none;
    margin-top: 1rem;
}

.tarifs-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
    color: var(--text-color);
}

.tarifs-list li:last-child {
    border-bottom: none;
}

.reservation-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--text-light);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    font-weight: bold;
}

.reservation-btn:hover {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Section Partenaires */
#partners {
background: linear-gradient(135deg, var(--light-color) 0%, #e8e8e8 100%);
}

.partners-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.partners-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.partners-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.partners-section p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.partners-section .image-container {
    width: 100%;
    max-width: 400px;    /* Largeur max du conteneur */
    margin: 1rem auto;    /* Centre le conteneur */
    overflow: hidden;    /* Masque les débordements */
    border-radius: 8px;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style des images dans le conteneur */
.partners-section .image-container img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--text-light);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content p {
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Responsive */

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

@media (min-width: 769px) {
    .spectacle {
        flex-direction: row;
    }

    .spectacle-image {
        width: 40%;
        height: auto;
        min-height: 300px;
    }

    .spectacle-details {
        width: 60%;
        padding: 2rem;
    }

    .spectacle-meta {
        grid-template-columns: repeat(5, 1fr);
    }

    .hero-content {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .main-nav {
        display: none;
        width: 100%;
        padding: 1rem 0;
    }
    .main-nav.open {
        display: block;
    }
    .section {
        padding: 5rem 1rem 3rem;
    }

    .section h1 {
        font-size: 2.5rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .features,
    .infos-content {
        grid-template-columns: 1fr;
    }
}



/* Style pour la carte Leaflet */
.map-container {
    width: 100%;
    height: 600px;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #f8f8f8;
}

/* Leaflet a besoin de ces styles */
#map {
height: 100%;
width: 100%;
}
