* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #DC143C;
    --secondary: #FFD700;
    --dark: #2c1810;
    --light: #f5f1e8;
    --accent: #c9986a;
}

body {
    font-family: 'Georgia', serif;
    color: #1a1a1a;
    overflow-x: hidden;
    background: #fefefe;
}

/* Section En-tête */
.hero {
    width: 100%;
    background: #4d0000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 5%;
    margin-top: 60px;
    min-height: 300px;
    overflow: visible;
    flex-wrap: wrap;
}

/* L'affiche à gauche */
.hero-poster {
    width: 100%;
    max-width: 350px;
    max-height: 500px;
    height: auto;
    object-fit: contain;
    object-position: top center;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Bloc texte au centre */
.hero-content {
    flex-grow: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--secondary);
    margin-bottom: 10px;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8);
}

.hero .date {
    font-size: 1.8rem;
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border: 2px solid var(--secondary);
    border-radius: 5px;
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
    transition: transform 0.3s;
}

.hero .date:hover {
    transform: scale(1.05);
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg, #8B0000, #DC143C);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    z-index: 1000;
    transition: all 0.3s;
    border-bottom: 3px solid #FFD700;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

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

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
    font-weight: bold;
    padding: 0.5rem 1rem;
    display: block;
}

nav a:hover {
    color: #FFD700;
}

/* --- CAROUSEL MARCHE --- */
.marche-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
    overflow: hidden;
    border: 5px solid #8B0000;
    border-radius: 15px;
    background: #000;
}

.marche-slide {
    display: none;
    width: 100%;
    height: 500px;
    object-fit: cover;
    animation: fadeIn 0.8s;
}

.marche-slide.active {
    display: block;
}

.marche-description-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(139, 0, 0, 0.85);
    color: #FFD700;
    padding: 1.5rem;
    text-align: center;
    border-top: 3px solid #FFD700;
}

.marche-description-overlay p {
    display: none;
    font-size: 1.2rem;
    font-style: italic;
}

.marche-description-overlay p.active {
    display: block;
}

.dot-container {
    position: absolute;
    bottom: 100px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: #FFD700;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================
   MOBILE (CORRECTIFS)
   ========================================== */
@media (max-width: 768px) {
    nav {
        height: auto;
        padding: 0.5rem 2%;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    nav a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .hero {
        flex-direction: column;
        height: auto !important;
        min-height: auto;
        margin-top: 120px;
        padding: 2.5rem 1rem;
        text-align: center;
    }

    .hero-poster {
        max-width: 250px;
        margin-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
    }

    .hero .date {
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .marche-slide {
        height: 300px;
    }

    .marche-description-overlay p {
        font-size: 1rem;
    }
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #DC143C;
    position: relative;
    padding-bottom: 1rem;
    font-weight: bold;
}

.section-title2 {
    font-size: 1.5rem;
    text-align: justify;
    margin-bottom: 3rem;
    color: #DC143C;
    position: relative;
    padding-bottom: 1rem;
    font-weight: bold;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #DC143C, #FFD700, #DC143C);
}

.highlight-section {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 4rem 10%;
    text-align: center;
    margin: 3rem 0;
    border-top: 5px solid #DC143C;
    border-bottom: 5px solid #DC143C;
}

.highlight-section h2 {
    font-size: 3rem;
    color: #8B0000;
    margin-bottom: 1.5rem;
}

.highlight-section p {
    font-size: 1.3rem;
    color: #4a0000;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 3fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
}

.program-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.2);
    transition: all 0.3s;
    border: 3px solid #FFD700;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #DC143C, #FFD700);
}

.program-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.3);
    border-color: #DC143C;
}

.program-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #DC143C;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.program-card .time {
    background: #DC143C;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.program-card p {
    line-height: 1.8;
    color: #333;
}

.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    border: 3px solid #FFD700;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.2);
    transition: transform 0.4s;
}

.program-card:hover img {
    transform: scale(1.05);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 4px solid #FFD700;
}

.gallery-item:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.5);
    border-color: #DC143C;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(139, 0, 0, 0.95));
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.info-banner {
    background: linear-gradient(135deg, #8B0000, #DC143C);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    margin: 3rem 0;
    text-align: center;
    border: 5px solid #FFD700;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

.info-banner h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #FFD700;
}

.info-banner p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.info-banner2 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    margin: 3rem 0;
    text-align: center;
    border: 5px solid #DC143C;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

.info-banner2 h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #8B0000;
}

.info-banner2 p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #8B0000;
}

/* Icônes réseaux sociaux */
.info-banner2 img {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin: 0 0.5rem 0 1.5rem;
}

.cta-button {
    display: block;
    width: fit-content;         /* s'adapte au texte... */
    box-sizing: border-box;
    max-width: 100%;            /* ...sans jamais dépasser son conteneur */
    margin: 2rem auto 0;        /* centré dans le bloc rouge */
    padding: 1.2rem clamp(1rem, 4vw, 4rem);
    background: #FFD700;
    color: #8B0000;
    text-decoration: none;
    font-size: clamp(1rem, 4.2vw, 1.4rem);
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    white-space: normal;        /* le texte passe à la ligne */
    overflow-wrap: anywhere;
    border-radius: 50px;
    transition: all 0.3s;
    letter-spacing: clamp(0px, 0.3vw, 2px);
    border: 3px solid white;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

.cta-button:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.7);
}

/* --- FOOTER --- */
footer {
    background: linear-gradient(90deg, #8B0000, #DC143C);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
    border-top: 5px solid #FFD700;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.social-link svg {
    width: 30px;
    height: 30px;
}

.omf-logo {
    max-width: 300px;
    margin: 1rem 0;
}

.badge {
    font-size: 3.5rem;
    background: #FFD700;
    color: #8B0000;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
    border: 2px solid #DC143C;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(220, 20, 60, 0.3);
    border: 5px solid #FFD700;
}

.carousel-item {
    min-width: 100%;
    position: relative;
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(139, 0, 0, 0.95));
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.carousel-caption h3 {
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    font-size: 1.2rem;
}

.carousel-description {
    background: white;
    padding: 1.5rem;
    margin-top: -5px;
    border-radius: 0 0 15px 15px;
    border: 5px solid #FFD700;
    border-top: none;
    color: #333;
    text-align: center;
    line-height: 1.6;
    font-size: 1rem;
    display: none;
}

.carousel-description.active {
    display: block;
}

.carousel-description h4 {
    color: #DC143C;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.carousel-description h3 {
    color: #333;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(220, 20, 60, 0.9);
    color: white;
    border: 3px solid #FFD700;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    font-weight: bold;
}

.carousel-btn:hover {
    background: #DC143C;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #DC143C;
}

.dot.active {
    background: #DC143C;
    transform: scale(1.3);
}

.dot:hover {
    background: #FFD700;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    animation: fadeIn 0.3s;
}

.modal-content {
    position: relative;
    margin: 2% auto;
    padding: 2rem;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #FFD700;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s;
}

.close-modal:hover {
    color: white;
    transform: scale(1.2);
}

.edition-modal-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    border: 5px solid #FFD700;
}

.edition-modal-content h2 {
    color: #DC143C;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero .subtitle {
        font-size: 1.3rem;
    }

    .hero .date {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        align-items: center;
        max-width: 100%;
    }

    .dropdown-menu {
        position: relative;
        width: 100%;
    }

    section {
        padding: 3rem 5%;
    }

    .section-title {
        font-size: 2.2rem;
    }

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

    .carousel-container {
        padding: 0 40px;
    }

    .carousel-item img {
        height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Grille programme - 4 colonnes responsive */
.program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: none;
}

@media (max-width: 1200px) {
    .program-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .program-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .program-grid { grid-template-columns: 1fr; }
}

section {
    padding: 3rem 5%;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.info-banner.soonest {
    background: linear-gradient(135deg, #8B0000, #DC143C);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 5px solid #FFD700;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
    max-width: 800px;
    margin: 2rem auto;
}

.info-banner.soonest h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #FFD700;
    font-weight: bold;
}

.info-banner.soonest p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #fff;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .info-banner.soonest {
        padding: 1.5rem;
        margin: 1.5rem auto;
        border-radius: 15px;
        border-width: 3px;
        box-shadow: 0 8px 20px rgba(220, 20, 60, 0.3);
    }

    .info-banner.soonest h3 {
        font-size: 2rem;
    }

    .info-banner.soonest p {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* Temps forts : image à gauche, texte à droite */
.temps-forts-layout {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 3rem 0;
}

.temps-forts-layout .hero-poster {
    flex: 0 0 35%;
    width: 35%;
    max-width: 380px;
    max-height: none;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.temps-forts-layout .info-banner {
    flex: 1;
    margin: 0;
}

@media (max-width: 768px) {
    .temps-forts-layout {
        flex-direction: column;
    }

    .temps-forts-layout .hero-poster {
        flex: none;
        width: 100%;
        max-width: 250px;
        margin-bottom: 20px;
    }
}

/* ==========================================
   SMARTPHONE : bandeaux et boutons de réservation
   ========================================== */
@media (max-width: 768px) {
    .info-banner,
    .info-banner2 {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
        border-width: 3px;
        border-radius: 15px;
        overflow-wrap: break-word;
    }

    .info-banner h3,
    .info-banner2 h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .info-banner p,
    .info-banner2 p {
        font-size: 1rem !important; /* écrase les font-size en ligne */
        line-height: 1.6;
    }

    /* Bouton de réservation : pleine largeur, texte sur plusieurs lignes */
    .cta-button {
        display: block;
        width: 100%;
        max-width: 100%;
        margin-top: 1.5rem;
        padding: 1rem 1.2rem;
        font-size: 1.05rem;
        letter-spacing: 0;
        line-height: 1.4;
        text-align: center;
        white-space: normal;
        border-radius: 30px;
    }

    .cta-button:hover {
        transform: none;
    }

    .badge {
        font-size: 1.4rem;
    }

    .highlight-section {
        padding: 2.5rem 1.2rem;
    }

    .highlight-section p {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .section-title2 {
        font-size: 1.1rem;
        text-align: left;
    }

    .info-banner2 img {
        width: 36px;
        height: 36px;
        margin: 0.5rem 0.5rem 0.5rem 0;
    }
}
