.main-section {
    position: relative;
    color: #fff;
    height: 60vh;
    width: 100%;
    overflow: hidden;
}

.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slide 10s infinite;
}

.filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(34, 87, 130, 0.7);
}

.content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    z-index: 1;
}
.main-title {
    color: #fff;
    font-size: 1em;
    text-align: center;
    text-transform: uppercase;
    width: 80%;
    max-width: 80%;
    margin: 0 auto;
    line-height: 1.3;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 991px) { 

    .content .text-box{
        margin: 0 !important;
    }

    h2{
        font-size: 24px;
    }

    p, .installation-list{
        font-size: 16px;
        margin: 0;
    }

    .noPadding{
        padding-bottom: 0 !important;

    }
    /* Ajout de margin-top sur .content */
    .content {
        margin-top: 10%;
    }

}

@media (min-width: 768px) {
    .main-title {
        font-size: 2em;
        max-width: 60%;
    }
}

h2{
    color: #2c71aa;
    margin-bottom : 5%;
}

.contact-info {
    margin-top: 2%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.email, .phone {
    background-color: #2c71aa;
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.contact-info a {
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-info a:hover {
    text-decoration: none;
    transform: translateY(-2px);
    background-color: #245f8f;
}

.material-icons {
    margin-right: 7px;
    color: #fff;
}

@keyframes slide {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

.content {
    padding: 0;
}

.content .text-box {
    font-size: 1.2em;
    margin: 0 20%;
}

.content.reverse .text-box {
    padding-left: 20px;
}

.content .text-box {
    padding-right: 20px;
}

/* Conteneur du slider */
.carousel-wrapper {
    width: 400px; /* Ajuste selon la taille des logos */
    overflow: hidden;
    position: relative;
}

/* Track contenant les logos */
.carousel-track {
    display: flex;
    gap: 70px; /* Espacement entre les logos */
    width: max-content; /* Permet un défilement fluide */
    animation: scrollLogos 17s linear infinite; /* Animation infinie fluide */
}

/* Forcer les logos à la même taille */
.brand-logo {
    width: 150px; /* Taille standard */
    height: 100px;
    object-fit: contain; /* Garde les proportions sans déformation */
}

/* Animation continue de gauche à droite */
@keyframes scrollLogos {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

#carte{
    margin-left: 15%;
    max-width: 70%;
}

#contactForm {
    max-width: 500px; 
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}


.form-group {
    margin-bottom: 15px;
}

.btn-primary {
    background-color: #2c71aa;
    border: none;
    padding: 10px;
    font-size: 16px;
    width: 100%;
}
.btn-primary:hover {
    background-color: rgba(0, 87, 179, 0.797);
}

.rgpd{
    font-size: 14px;
}
.faq-section {
    background-color: #f8f9fa; /* Fond clair */
    padding: 50px 20px;
}

.faq {
    max-width: 800px;
    margin: auto;
}

.faq-item {
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.faq-question {
    display: flex;
    align-items: center; /* Aligne les éléments verticalement au centre */
    width: 100%;
    text-align: left;
    background-color: #f8f9fa;
    color: #2c71aa;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 12px;
    transition: background 0.3s ease-in-out;
    border-radius: 5px;
}

.faq-question .icon {
    font-size: 30px;
    color: #2c71aa;
    margin-left: auto; /* Déplace l'icône à droite */
}

.faq-question span:not(.icon) {
    flex-grow: 1; /* Permet au texte de prendre tout l'espace disponible */
}

.faq-text{

    margin-left: 15px; /* Ajoute un espace de 10px entre l'icône et le texte */
}


.faq-question:hover {
    background-color: #e9ecef; /* Gris légèrement plus foncé au survol */
}


.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: none; /* Pas de couleur de fond */
    padding: 0 10px;
}

@media (min-width: 768px) and (max-width: 1400px) and (max-height: 800px) {
    .main-title {
        font-size: clamp(0.6rem, 2.1vw, 1.4rem) !important;
        max-width: 90%;
        line-height: 1.2;
        margin-top: 20px;
    }

    .main-section .content {
        margin-top: 5% !important; /* Réduction du décalage */
    }

    .main-section {
        height: 70vh; /* Permet au titre de ne pas déborder */
    }

    .text-box h2{
        font-size: 1.1em !important; /* Réduction */
    }
    .text-box p, ul{
        font-size: 0.9em !important; /* Réduction */
    }

     .row.no-gutters.align-items-center {
        align-items: stretch !important; /* Rend les deux colonnes de même hauteur */
    }

    .col-md-6.p-0 > img.img-fluid {
        height: 100% !important;   /* Remplit la hauteur */
        width: 100%;
        object-fit: cover;         /* Garde un rendu propre */
    }
}

/* ===========================
   TABLETTES HAUTES
   Ex: iPad 1024x1366, iPad Mini 820x1180
   =========================== */
@media (min-width: 768px) and (max-width: 1366px) and (min-height: 801px) {
    .main-title {
        font-size: clamp(1rem, 2.5vw, 1.6rem) !important; /* légèrement plus grand */
        max-width: 90%;
        line-height: 1.2;
        margin-top: 25px;
    }

    .main-section {
        height: 60vh; /* section plus haute pour que les images remplissent correctement */
    }

    .main-section .content {
        margin-top: 8%; /* garde un peu d’espace pour le texte */
    }

    .text-box h2{
        font-size: 1.2em !important; 
    }
    .text-box p, ul{
        font-size: 0.8em !important; 
    }

    /* Pour que les images prennent toute la hauteur de la section */
    .col-md-6.p-0 > img.img-fluid {
        height: 100% !important;
        width: 100%;
        object-fit: cover;
    }

    .row.no-gutters.align-items-center {
        align-items: stretch !important;
    }
}