:root {
    --bs-primary: #1e7fa3;
    --bs-secondary: #5a3e2b;
    --bs-warning: #f2b705;
    --bs-light: #f7f3ee;
    --bs-dark: #163b48;

    /* Carte */
    --menu-bg: #f3ede4;
    --menu-bg-hover: #ece3d6;
    --menu-text: #3e2a1f;
}
/* Body et wrapper pour pousser le footer en bas */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Le main prend tout l’espace restant */
main {
    flex: 1 0 auto; /* pousse le footer en bas */
}

/* Footer */
.site-footer {
    flex-shrink: 0; /* ne rétrécit pas */
}
/* =======================
   GLOBAL
======================= */
body {
    font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bs-light);
    color: #2c2c2c;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--bs-warning);
    text-decoration: none;
}

a:hover {
    color: #d89f04;
}

/* =======================
   HEADER
======================= */
header {
    background-color: var(--bs-primary);
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: 0.06rem;
    font-size: 1.25rem;
    color: #fff;
}

header nav a {
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

header nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* =======================
   TITRES
======================= */
h2,
h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--bs-secondary);
}

/* =======================
   CARTE / MENU
======================= */
.list-group {
    border-radius: 12px;
    overflow: hidden;
}

.list-group-item {
    padding: 1rem;
    font-size: 1rem;
    background-color: var(--menu-bg);
    color: var(--menu-text);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.list-group-item strong {
    font-size: 1.1rem;
    color: var(--bs-secondary);
}

.list-group-item:hover {
    background-color: var(--menu-bg-hover);
    transition: background-color 0.25s ease;
}

/* =======================
   IMAGE FLYER
======================= */
.img-flyers {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* =======================
   PARTENAIRES
======================= */
.partenaires-grid .col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}

.partner-logo {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: var(--bs-light);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

@media (max-width: 576px) {
    .partner-logo {
        max-width: 200px;
    }
}

/* =======================
   FOOTER
======================= */
.site-footer {
    background-color: var(--bs-dark);
    color: #ffffff;
    padding: 2rem 1rem 1rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-contact a {
    color: var(--bs-warning);
}

.footer-contact a:hover {
    text-decoration: underline;
}

.social {
    display: flex;
    gap: 1rem;
}

.social a svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
    transition: transform 0.3s ease, fill 0.3s ease;
}

.social a:hover svg {
    transform: scale(1.15);
    fill: var(--bs-warning);
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 768px) {
    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .list-group-item {
        font-size: 0.95rem;
    }

    .list-group-item strong {
        font-size: 1.05rem;
    }

    .img-flyers {
        height: auto;
        object-fit: contain;
    }
}

/* =======================
   LEAFLET MAP
======================= */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
}

/* =======================
   CAROUSELS
======================= */

/* Carrousel général */
.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 500px;
    border-radius: 12px;
}

/* Caption */
.carousel-caption {
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.95rem;
}

/* Carrousel page index */
#carouselExampleAutoplaying .carousel-item img {
    width: 100%;
    height: 600px;
    /* hauteur augmentée */
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

/* Overlay léger pour un effet plus pro */
#carouselExampleAutoplaying .carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

#carouselExampleAutoplaying .carousel-item.active img {
    transform: scale(1.05);
}

/* Mobile */
@media (max-width: 576px) {
    #carouselExampleAutoplaying .carousel-item img {
        height: 400px;
        /* hauteur mobile augmentée */
    }

    .carousel-caption {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}

/* =======================
   SPLIT PRESENTATION CAROUSEL
======================= */
#presentationCarousel .carousel-item .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Texte animé */
.presentation-text p {
    margin-bottom: 0.8rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.carousel-item.active .presentation-text p {
    opacity: 1;
    transform: translateY(0);
}

.carousel-image {
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Zoom léger sur image du slide actif */
.carousel-item.active .carousel-image {
    transform: scale(1.05);
}

/* =======================
   RESPONSIVE : mobile
======================= */
@media (max-width: 768px) {
    #presentationCarousel .carousel-item {
        flex-direction: column;
        /* texte au-dessus, image en dessous */
        padding: 1rem 0;
    }

    .presentation-text {
        order: 1;
        text-align: center;
        width: 100%;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .carousel-image {
        order: 2;
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 12px;
        margin-top: 0;
        transform: scale(1);
    }
}