@font-face {
    font-family: "Montreal";
    src: url("https://montreal.ca/fonts/montreal/v1/Montreal-Web-Regulier.woff2") format("woff2"),
         url("https://montreal.ca/fonts/montreal/v1/Montreal-Web-Regulier.woff") format("woff"),
         url("https://montreal.ca/fonts/montreal/v1/Montreal-Web-Regulier.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Montreal";
    src: url("https://montreal.ca/fonts/montreal/v1/Montreal-Web-Italique.woff2") format("woff2"),
         url("https://montreal.ca/fonts/montreal/v1/Montreal-Web-Italique.woff") format("woff"),
         url("https://montreal.ca/fonts/montreal/v1/Montreal-Web-Italique.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "Montreal";
    src: url("https://montreal.ca/fonts/montreal/v1/Montreal-Web-Gras.woff2") format("woff2"),
         url("https://montreal.ca/fonts/montreal/v1/Montreal-Web-Gras.woff") format("woff"),
         url("https://montreal.ca/fonts/montreal/v1/Montreal-Web-Gras.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Montreal";
    src: url("https://montreal.ca/fonts/montreal/v1/Montreal-Web-GrasItalique.woff2") format("woff2"),
         url("https://montreal.ca/fonts/montreal/v1/Montreal-Web-GrasItalique.woff") format("woff"),
         url("https://montreal.ca/fonts/montreal/v1/Montreal-Web-GrasItalique.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
}

html {
    scroll-behavior: smooth;
}

section, 
[id] {
    scroll-margin-top: 30px; 
}


   /* Reset and Base Styles */
   *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montreal",Helvetica,Arial,sans-serif;
    background-color: #e3f2fd;
    color: #333333;
    line-height: 1.5;
}


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

.centered-element {
    width: 120px;
    margin: 0px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Header 
header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}*/

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-ville {
    width: auto;
    z-index: 1051;
}

.nav-btn {
    display: inline-flex;
    align-items: stretch; 
    padding: 0; 
    border: none;
    border-radius: 6px; 
    overflow: hidden; 
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- Bloc de gauche (Icône) --- */
.nav-btn-icon {
    background-color: #FFF2A1; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px; 
}

.nav-btn-icon svg, 
.nav-btn-icon img {
    width: 16px;
    height: auto;
    fill: #222;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px; /* Espace entre la navigation globale et le bouton */
}
/* --- STYLE DESKTOP (PAR DÉFAUT) --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav {
    display: flex;
    align-items: baseline;
    gap: 25px;
}

/* On masque le bouton hamburger sur les ordinateurs */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100; /* Reste au-dessus du menu mobile */
}

.hamburger-menu .bar {
    width: 100%;
    height: 2px;
    background-color: #1b5e20; /* Vert de votre charte */
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* --- LOGIQUE RESPONSIVE (MOBILE) --- */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex; /* On affiche le hamburger */
    }

    /* Transformation de la nav en menu plein écran overlay */
    .main-nav {
    position: fixed;
    top: 0px;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgb(0 0 0 / 10%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    padding: 70px 40px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
}

    /* Classe déclenchée par JS pour ouvrir le menu */
    .main-nav.active {
        right: 0;
    }

    /* Ajustement cosmétique des liens pour le mode mobile */
    .nav-link {
        font-size: 1.2rem;
    }

    /* --- ANIMATION DU HAMBURGER EN "X" (Optionnel mais pro) --- */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/* --- Menu de navigation --- */
.main-nav {
    display: flex;
    align-items: baseline;
    gap: 20px; /* Espace entre les deux liens */
}

.nav-link {
    color: #1b5e20; /* Reprend le vert sapin de votre charte */
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
    padding: 4px 0;
}

.nav-link:hover {
    color: #000000;
    border-bottom-color: #F7DC43; /* Rappel du jaune au survol */
}

/* --- Bloc de droite (Texte) --- */
.nav-btn-text {
    background-color: #F7DC43;
    color: #000;      
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    padding: 10px 20px;
}
.nav-btn-text a {
    color: #000;      
}

@media (max-width: 768px) {
    .main-nav {
    align-items: center !important;
 
}
}


/* --- Effet au survol (Hover) --- */
.nav-btn:hover .nav-btn-text {
    background-color: #e5cb36; /* Assombrit légèrement le jaune principal au survol */
}

/* Hero Section */
.hero {
    background: radial-gradient(40% 40% at 50% 50%, #ffde52 20%, #a8d22959 65%, transparent 100%);
    background-repeat: no-repeat;
    text-align: center;
    padding: 0px 0px;
    margin-top: -20px;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    color: #1b5e20;
    margin-bottom: 10px;
    font-weight: 800;
}
.hero-img img {
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 600;
}

.hero-date {
    display: inline-block;
    background-color: #ffffff;
    color: #1b5e20;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.hero-location {
    font-size: 1.3rem;
    color: #FFDD81;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    filter: drop-shadow(3px 0px 3px #000);
}

.hero-landscape-img {
    width: 100%;
    height: 550px;
    position: relative;
    z-index: 1;
    background-size: cover;
    background-image: url(../images/150e-montroyal-hero-banniere.webp);
    margin: 0px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    top: -22vh;
}

.hero-sep {
    margin-top: -35vh;
    position: relative;
    z-index: 2;
}

/* Featured Events */
.featured {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    line-height: 1em;
    color: #2c3e50;
    margin-bottom: 35px;
    position: relative;
}
/* Conteneur du titre centré avec ses ornements */
.section-title-curly {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espace entre les images et ton texte */
    margin: 0 auto;
    text-align: center;
}

/* Ornement GAUCHE */
.section-title-curly::before {
    content: "";
    display: inline-block;
    width: 60px;
    height: 30px;
    background-image: url("../images/left-curly-title-line.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Ornement DROIT */
.section-title-curly::after {
    content: "";
    display: inline-block;
    width: 65px; 
    height: 30px;
    background-image: url("../images/right-curly-title-line.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* --- AJUSTEMENT MOBILE --- */
@media (max-width: 576px) {
    .section-title-curly::before {
        width: 70px;
        height: 18px;
        position: relative;
        left: 35px;
        top: 20px;
    }
    .section-title-curly::after {
        width: 70px;
        position: relative;
        right: 38px;
        height: 18px;
        top: 20px;
    }
    .section-title-curly {
        gap: 0px; 
        width: 350px;
    }
}

 /* --- SECTION A LA UNE (3 ÉVÉNEMENTS EN LOOP INFINI) --- */

.featured {
    padding: 0px 0 40px 0; 
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1b5e20;
    padding-top: 20px;
    margin-bottom: 50px;
    font-weight: 800;
}

/* MODIFIÉ : Configuration pour le drag & swipe */
.featured-slider {
    display: flex;
    width: 100vw;               /* Prend toute la largeur de l'écran */
    overflow: hidden;
    cursor: grab;               /* Curseur main ouverte par défaut */
    user-select: none;          /* Empêche la sélection de texte pendant le drag */
    -webkit-user-select: none;
}

/* MODIFIÉ : Changement de curseur lors du clic maintenu */
.featured-slider:active {
    cursor: grabbing;           /* Curseur main fermée */
}

/* MODIFIÉ : Retrait de l'animation CSS (gérée par le JS pour permettre le drag) */
.featured-track {
    display: flex;
    width: max-content;
    will-change: transform;     /* Optimise la fluidité de l'animation JS */
}

/* Diapositives */
.carousel-slide {
    width: calc((100vw - 40px) * 0.6666); 
    padding: 0 15px;
    flex-shrink: 0;
    box-sizing: border-box;
    
    /* Sécurité pour le drag */
    user-select: none;
    -webkit-user-drag: none;
}

.mt-20 {
    margin-top: 20px;
}

/* Tuiles "À la une" : Image gauche (Desktop) / Image haut (Mobile) */
.featured-card {
    display: flex;
    cursor: pointer;
    flex-direction: row;
    background-image: url(../images/arriere-plan-slide-vedette.jpg);
    background-size: cover;
    min-height: 350px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 1. Le conteneur parent (votre placeholder) */
.featured-img-placeholder {
    width: 300px;
    height: 270px;
    background-color: #bdc3c7;
    display: flex;
    margin: 40px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
    position: relative; 
}

/* 2. Cibler l'image à l'intérieur du placeholder */
.featured-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center center; 
    display: block;
    
    /* MODIFIÉ : Empêche le comportement natif du navigateur qui détache l'image au drag */
    -webkit-user-drag: none; 
    pointer-events: none; 
}

.featured-body {
    width: 55%;
    padding: 40px 40px 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* Sécurité pour le drag */
    user-select: none;
}

.featured-title {
    font-size: 1.8rem;
    color: #1b5e20;
    margin-bottom: 15px;
    line-height: 1.25em;
}

/* Version Mobile / Tablette */
@media (max-width: 992px) {

    .hero {
        background: radial-gradient(70% 50% at 50% 50%, #ffde52 50%, #a8d22959 74%, transparent 100%);
    }

    .hero-landscape-img {
        width: 100%;
        height: 380px;
        background-position-x: center;
        position: relative;
        z-index: 1;
        background-size: cover;
        background-image: url(../images/150e-montroyal-hero-banniere.png);
        margin: 0px auto 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: bold;
        top: -10vh;
    }
    .hero-img img {
        width: 320px;
    }

    .hero-sep {
        margin-top: -13vh;
    }

    .hero-subtitle {
        font-size: 20px;
        margin-top: -40px;
        margin-bottom: 15px;
        filter: drop-shadow(6px 4px 8px black);
    }

    .carousel-slide {
        width: calc((100vw - 40px) * 0.85); /* 85% de l'écran sur mobile */
        padding: 0 10px;
    }
    .featured-card {
        flex-direction: column;
        min-height: auto;
    }
    .featured-img-placeholder {
        width: 85%;
        height: 180px;
        margin: 20px 0px 0px 20px;
    }
    .featured-body {
        width: 100%;
        padding: 25px;
    }
    .featured-title {
        font-size: 1.5rem;
    }
}

/* Ambassador Section */
.ambassador {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.ambassador-img-wrap {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.ambassador-img-wrap .photo-credit-wrapper-bl {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: inline-block;
    cursor: pointer;
    z-index: 10;
}

.ambassador-img-wrap .credit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.ambassador-img-wrap .photo-credit-wrapper-bl:hover .credit-icon {
    background-color: rgba(0, 0, 0, 0.9);
}

.ambassador-img-wrap .credit-tooltip {
    position: absolute;
    bottom: 32px; 
    left: 0;
    background-color: #333333;
    color: #ffffff;
    padding: 5px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.ambassador-img-wrap .credit-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 8px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.ambassador-img-wrap .photo-credit-wrapper-bl:hover .credit-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.ambassador-img {
    width: 415px;
    height: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ambassador-content h2 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.ambassador-content h4 {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 15px;
    font-weight: 400;
}

/* Programming Section */
.programming {
    padding: 30px 0;
    border-radius: 24px;
}

/* MODIFICATION: Slider de gauche à droite sur mobile pour la navigation des mois */
.filter-nav {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 40px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 15px 10px 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Masquer la barre de défilement par défaut pour garder le design propre */
.filter-nav::-webkit-scrollbar {
    height: 4px;
}
.filter-nav::-webkit-scrollbar-thumb {
    background-color: #1b5e20;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .filter-nav {
        justify-content: center;
        overflow-x: visible;
        white-space: normal;
        padding: 0;
    }
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: uppercase;
    color: #7f8c8d;
    border-bottom: 2px solid transparent;
    flex-shrink: 0; /* Évite que les boutons s'écrasent dans le slider mobile */
}

.filter-btn.active, .filter-btn:hover {
    color: #1b5e20;
    border-bottom: 2px solid #1b5e20;
    font-weight: bold;
}

.prog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 576px) {
    .prog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .prog-grid { grid-template-columns: repeat(4, 1fr); }
}

.prog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    display: flex;
    height: 100%;
}

/* Style pour les cartes d'événements passés */
.prog-card.date-expired {
    opacity: 0.65; /* Rend la carte légèrement transparente */
    filter: grayscale(80%); /* Passe l'image et les logos en quasi noir et blanc */
    cursor: pointer; /* Reste cliquable au cas où ils veulent voir les détails passés */
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.prog-card.date-expired .prog-date {
    color: #777777 !important;
}

.prog-card.date-expired .prog-title {
    color: #4c4c4c !important;

}

/* --- ANIMATION DES CARTES AU CHANGEMENT D'ONGLET --- */

/* État initial de la carte générée en JS (Prête à être animée) */
.prog-card {
    opacity: 0;
    transform: translateY(15px);
    will-change: transform, opacity;
}

/* Classe d'animation déclenchée par le script */
.prog-card.animate-in {
    animation: fadeInUp 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Effet Hover optimisé */
.prog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

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

/* MODIFICATION: Sur mobile, l'image est à gauche et les infos à droite */
@media (max-width: 575px) {

    .modal-partner-logo img {
        max-width: 100px;
    }

    .filter-btn.active, .filter-btn:hover {
        border-bottom: none;
        background-color: #c9dae4;
    }

    .prog-card {
        flex-direction: row;
        height: 110px;
    }
    .prog-img-wrap img {
        border-radius: 8px;
    }
    
    .prog-img-wrap {
        width: 100px;
        height: 100% !important;
        padding: 8px;
        flex-shrink: 0;
    }
    
    .partner-logo-badge {
        width: 50px !important;
        height: 40px !important;
        font-size: 0.5rem !important;
        bottom: 5px !important;
        right: 5px !important;
    }
    .partner-logo-badge img {

        max-width: 48px !important;
        border-radius: initial;
    }
    
    .prog-info {
        padding: 12px !important;
        justify-content: center;
    }
    
    .prog-title {
        font-size: 0.95rem !important;
    }
}

/* Style par défaut pour les écrans plus grands (image au top) */
@media (min-width: 576px) {
    .prog-card {
        flex-direction: column;
        cursor: pointer;
    }
    .prog-img-wrap {
        height: 180px;
    }
}

.prog-img-wrap {
    background-color: #FFDD81;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.partner-logo-badge img {
    height: fit-content;
    max-height: 35px;
    width: max-content;
    max-width: 60px;
}

.partner-logo-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 70px;
    height: 35px;
    overflow: hidden;
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    font-size: 0.6rem;
    font-weight: bold;
    z-index: 2;
}

.prog-info {
    padding: 15px;
    background-color: #FFDD81;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.prog-date {
    font-size: 0.85rem;
    color: #000000;
    font-weight: bold;
    margin-bottom: 5px;
    display: block !important;
    white-space: normal !important;
}

.prog-title {
    font-size: 1.05rem;
    color: #000000;
    font-weight: bold;
    line-height: 1.3;
}

/* Patrimoine Section */
.patrimoine {
    padding: 60px 0;
}

.patrimoine-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .patrimoine-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.stat-box {
    background-color: #cbf0a3;
    padding: 30px;
    border-radius: 14px 14px 64px 14px !important;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: top;
}

.accordion-header.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    line-height: 1em;
}


.stat-label {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.patrimoine-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* MODIFICATION: Accordéons / Collapsibles sur mobile pour le patrimoine */

div#acc-resilience {
    background-color: transparent;
    border: 2px solid black;
    box-shadow: none;
    background-image: url(../images/terre-line-icon.svg);
    background-repeat: no-repeat;
    background-position: 100%;
    background-position-y: 100px;
    background-size: 170px;
    overflow: hidden;
}

@media (max-width: 767px) {

    .accordion-header.stat-number {
        font-size: 24px;
    }
    div#acc-resilience {
        background-position-y: 420px;
    }
    .patrimoine-grid {
        padding: 0 14px;
    }

    .patrimoine-right {
        gap: 10px;
    }
    
    .info-block {
        border-radius: 12px !important;
        padding: 0 !important;
        overflow: hidden;
    }
    
    .accordion-header {
        background-color: #ffffff;
        padding: 18px 20px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: bold;
        font-size: 24px;
        color: #000000;
        user-select: none;
    }

    .transparent-bg {
        background-color: transparent !Important;
    }
    
    .accordion-header::after {
        content: '+';
        font-size: 1.4rem;
        color: #000000;
        transition: transform 0.2s ease;
    }
    
    .info-block.active .accordion-header::after {
        content: '−';
    }
    
    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease;
        background-color: #fff;
        padding: 0 20px;
    }
    
    .info-block.active .accordion-content {
        max-height: 700px;
        padding: 0 20px 20px 20px;
    }
    
    .resilience-wrap-inner {
        display: block !important;
    }
    .resilience-img-placeholder {
        margin-top: 15px;
        width: 100% !important;
        height: 120px !important;
    }
}


.bg-green {
    background-color: #cbf0a3 !important;
    padding-bottom: 4px;
}

/* Mode Desktop pour les blocs patrimoine */
@media (min-width: 767px) {
    .accordion-header {
        padding-bottom: 10px;
        font-size: 1.5rem;
        font-weight: bold;
        color: #000000;
    }
    .accordion-header::after {
        display: none;
    }
    .resilience-wrap-inner {
        display: flex;
        gap: 15px;
        align-items: center;
    }
    .resilience-img-placeholder {
        width: 100px;
        flex-shrink: 0;
    }
}

.info-block {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

 /* --- CARROUSEL PARTENAIRES (LOOP INFINI MAX 115PX) --- */
 .partners-section {
    background-color: #ffffff;
    padding: 40px 0;
    overflow: hidden;
    border-top: 1px solid #eee;
}

.partners-slider {
    display: flex;
    width: max-content;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scrollInfinite 65s linear infinite;
}

.partner-logo img {
    max-height: 70px;
    max-width: 200px;
}

.partner-logo {
    height: 100px;
    max-height: 100px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #95a5a6;
    border-radius: 8px;
    flex-shrink: 0;
}
@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer */

/* --- Styles du Footer --- */
.site-footer {
    color: #ffffff;
    padding: 40px 0 20px 0;
    width: -webkit-fill-available;
}

/* Le conteneur réutilise votre classe .container existante pour l'alignement de page */
.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-top {
    display: block;
    text-align: left;
    margin-bottom: 25px;
}

.footer-logos {
    display: inline-flex;
    align-items: center;
    gap: 30px; 
}

.footer-logo {
    height: auto;
    max-height: 50px;
    max-width: 190px;
    width: auto;
    display: block;
}

.footer-divider {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 0 0 20px 0;
    padding: 0;
}

/* Zone du bas */
.footer-bottom-content {
    text-align: left; 
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Ajustement Responsive Mobile --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 15px 0;
    }
    
    .footer-logos {
        gap: 20px; 
    }
    
    .footer-logo {
        max-height: 45px;
    }
    
    .footer-bottom-content {
        font-size: 0.8rem;
    }
}


.footer-banner {
    height: 500px;
    background-color: #2e7d32;
    background-image: url(../images/pied-de-page-montroyal.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    display: flex;
    align-items:end;
    color: #fff;
    padding-bottom: 20px;
}
@media (max-width: 768px) {
    .footer-banner {
        height: 300px;
    }
    .footer-top, .footer-bottom-content  {
        text-align: center;
    }
}
.footer-banner-content {
    color: #fff;
    padding: 20px 20px 40px 40px;
    text-align: left;
    font-size: 0.9rem;
}
 

.footer-bottom {
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Modal / Popup Style */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 15px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
   background-image: url(../images/modal-yellow-background.jpg);
    width: 100%;
    max-width: 750px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #fff;
    color: #000;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1060;
    -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
    background-color: #f4f4f4;
}

.modal-img-wrap {
    height: 300px;
    background-image: url(../images/modal-green-header-background.png);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    padding: 30px 30px 0px 30px;
}

.modal-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.modal-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-date {
    color: #2c3e50;
    font-weight: bold;
    font-size: 1rem;
}
/* Pastille Événement Passé dans la Modal */
.modal-pastille-expired {
    display: inline-block;
    background-color: #111111;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    margin: 4px 0 6px 0;
}

.modal-partner-logo {
    padding: 5px 10px;
    background-color: #fff;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    position: relative;
    bottom: 40px;
}

.modal-title {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.2;
}

.modal-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    max-height: 29vh;
   /* max-height: 250px; */
    overflow-y: auto; 
    padding-right: 10px;  
    overflow-y: auto;          /* Active le scroll interne pour le long texte */
    -webkit-overflow-scrolling: touch; /* Force un défilement fluide et "momentum" sur iOS */
    flex-grow: 1;
}

@media (max-width: 768px) {
    .modal-card {
         max-height: 85vh;

}
}
/* --- BLOC METADONNÉES SOUS LE TITRE (LIEU & HEURE) --- */
.modal-meta-block {
    margin: 15px 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 4px; /* Espace entre la ligne Lieu et la ligne Heure */
}
/* --- CORRECTION DES BULLET POINTS DANS LE MODAL --- */

#modalDesc ul {
    list-style-type: disc !important;
    padding-left: 25px !important;  
    margin-top: 15px !important;     
    margin-bottom: 15px !important;   
}

#modalDesc li {
    display: list-item !important; 
    margin-bottom: 8px !important; 
    list-style-type: disc !important;   
}

.meta-item {
    display: flex;
    align-items: flex-start; 
    gap: 12px; 
}

.meta-icon {
    width: 16px;
    height: auto;
    flex-shrink: 0;
    margin-top: 2px;
}

.meta-text {
    font-size: 14px;
    color: #000;
    line-height: 1.4;
    font-weight: 500;
}

/* Style optionnel si le texte du lieu contient un lien hypertexte */
.meta-text a {
    color: #000;
    text-decoration: underline;
}
/* Assure que le conteneur parent de l'image permet le positionnement absolu */
.modal-img-wrap {
    position: relative;
    overflow: hidden;
}

/* Positionnement du bouton de crédit dans le coin INFÉRIEUR GAUCHE */
.photo-credit-wrapper-bl {
    position: absolute;
    bottom: 8px;
    left: 40px;
    z-index: 10;
    display: inline-block;
}

/* Style de la pastille © */
.credit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transform: scale(1.05);
    transition: background 0.2s ease, transform 0.2s ease;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.credit-icon:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

/* Style de l'infobulle (Tooltip) réajusté pour apparaître AU-DESSUS du bouton */
.credit-tooltip {
    position: absolute;
    left: 0;
    bottom: 35px; /* S'affiche juste au-dessus de l'icône désormais */
    background: #111;
    color: #eee;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
    border: 1px solid #333;
    
    /* Comportement masqué par défaut avec transition fluide */
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Flèche pointant vers le bas pour le tooltip inversé */
.credit-tooltip::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 9px;
    border-width: 5px 5px 0 5px;
    border-style: solid;
    border-color: #111 transparent transparent transparent;
}

.photo-credit-wrapper-bl:hover .credit-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 576px) {
    .credit-tooltip {
        white-space: normal;
        width: 180px;
        text-align: left;
    }
}

@media (max-width: 575px) {
    .modal-meta-block {
        margin: 10px 0 15px 0;
    }
    
    .meta-text {
        font-size: 0.9rem;
    }
    
    .meta-icon {
        width: 16px;
    }
}

/* Parallax effect Desktop */
@media (min-width: 1440px) {
    .hero-subtitle {
     margin-top: 10px;
   }
   .hero-landscape-img {
    height: 620px;
    top: 13vh;
}
.hero-sep {
    margin-top: 0vh;
    margin-bottom:-40px;
}
 }
 
   section.main {
    z-index: 2;
    position: relative;
    background-color: #e1f2fe;
    background-image: url(../images/curvy-lines-background.png);
    background-position: top;
    background-size: contain;
    background-repeat: no-repeat
}

@media (min-width: 768px) and (max-width: 1339px) {
    .hero-img {
        position: fixed;
        width: 100%;
        text-align: center;
        z-index: 1;
    }
    .hero-landscape-img {
        top: 30vh;
    }
    .hero-sep {
        margin-top: 5vh;
    margin-bottom: -5vh;
    }
    }