/* =========================
STRUCTURE DES SECTIONS
========================= */

section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

/* Séparation douce entre sections */
section + section {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* =========================
VARIANTES DE FOND
========================= */

.section-vert {
    background-color: #AEB4A2;
}


/* =========================
BLOC TEXTE CENTRAL
========================= */

section .text-center {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 1.5rem);
}

/* =========================
TYPOGRAPHIE RESPONSIVE
========================= */

/* Titres */
section h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.3;
}

/* Paragraphes */
section p {
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    line-height: 1.7;
    margin-bottom: clamp(0.9rem, 3vw, 1.2rem);
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
FORMULAIRE CONTACT
========================= */

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

/* Formulaire */
.contact-form {
    color: #000000;
    padding: 2rem;
}

/* Champs */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #000;
    border-radius: 12px;
    background-color: #EFE7D6;
    color: #000000;
    font-size: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* ombre portée */
}

/* Labels */
.contact-form label {
    font-weight: 600;
    display: block;
    margin-top: 1.2rem;
}

/* Focus */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #000;
}

.contact-form textarea {
    height: 400px;
}

/* Bouton */
.contact-form button {
    border: 2px solid #000;
    border-radius: 12px;
    background-color: #EFE7D6;
    color: #000000;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 1.5rem auto 0 auto; /* top, horizontal centré, bottom */
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center; /* centre tous les enfants horizontalement */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* ombre portée */
}

/* Hover bouton */
.contact-form button:hover {
    background-color: #f5f0e6;
    transition: background-color 0.3s ease;
}


.fin_de_page {
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* =========================
CAROUSEL PARTENAIRES
========================= */

/* Container desktop multi-images */
.carousel-desktop {
    display: none; /* caché par défaut */
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    margin: 0 auto 2rem auto;
}

.carousel-desktop img {
    height: 200px;
    width: auto;
    object-fit: cover;
    border-radius: 12px;
}

/* Carousel Bootstrap mobile */
#carouselExample .carousel-inner {
    overflow: hidden;
    position: relative;
    align-items: center;
}

#carouselExample .carousel-item {
    position: relative;
    transition: opacity 1s ease !important; /* fondu doux */
    transform: none !important; /* pas de zoom */
}

#carouselExample .carousel-inner img {
    width: auto;
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    transform: none !important;
    transition: none !important;
}

#carouselExample .carousel-control-prev-icon,
#carouselExample .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 10px;
}

.prez {
    margin-top: 3rem;
}

/* =========================
RESPONSIVE
========================= */

/* Mobile & tablette (<992px) */
@media (max-width: 991px) {
    #carouselExample {
        display: block;
    }
    .carousel-desktop {
        display: none;
    }
}

/* Desktop (≥992px) */
@media (min-width: 992px) {
    #carouselExample {
        display: none; /* on cache le carousel bootstrap */
    }
    .carousel-desktop {
        display: flex;           /* on affiche les images côte à côte */
        flex-wrap: wrap;         /* passe à la ligne si elles dépassent l'écran */
        justify-content: center; /* centre les images */
        gap: 20px;               /* espace entre les images */
        margin: 0 auto 2rem auto; /* centrage du bloc global */
    }
}

/* Logo bas de page */
img[alt="logo"] {
    display: block;
    margin: clamp(3rem, 8vw, 4rem) 2rem clamp(1.5rem, 4vw, 2rem) auto;
    max-width: clamp(150px, 30vw, 220px);
}

/* Responsive général */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    section .text-center {
        max-width: 100%;
    }

    #carouselExample .carousel-inner img {
        height: 180px;
    }
}