/* Améliorations mobiles supplémentaires pour la page d'accueil */

/* Améliorations générales */
@media (max-width: 767px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }

    h1,
    .h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    h2,
    .h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    h3,
    .h3 {
        font-size: 20px;
        line-height: 1.3;
    }

    p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .btn,
    button,
    input[type="submit"] {
        min-height: 44px;
        padding: 10px 20px;
        font-size: 16px;
    }

    /* Amélioration de la navigation */
    .main-menu .navbar-collapse>.navigation>li>a {
        font-size: 16px !important;
        padding: 15px 20px !important;
    }

    .main-menu .navbar-collapse>.navigation>li>ul>li>a {
        font-size: 15px !important;
        padding: 12px 20px 12px 30px !important;
    }

    /* Amélioration de la bannière */
    .banner-section .slide-item {
        background-position: center center;
    }

    .banner-section .sec-title.light {
        padding: 0 10px;
    }

    /* Amélioration des sections de service */
    .services-section .sec-title .title-column,
    .services-section .sec-title .text-column {
        padding: 0 10px;
    }

    .services-section .sec-title .text-column .text {
        font-size: 17px;
        line-height: 1.6;
    }

    .services-section .service-block {
        padding: 0 10px;
    }

    /* Amélioration des blocs produits */
    .product-block {
        padding: 0 10px;
        margin-bottom: 20px;
    }

    /* Amélioration de la section Nos valeurs */
    .feature-block {
        padding: 0 10px;
    }

    .feature-block .inner-box {
        padding: 30px 20px;
    }

    .feature-block .icon-box {
        margin-bottom: 15px;
    }

    .feature-block .icon-box .icon {
        font-size: 50px;
    }

    .feature-block h3 {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 14px;
    }

    .feature-block .text {
        font-size: 18px;
        line-height: 1.5;
    }

    /* Amélioration de la section équipe */
    .team-block {
        padding: 0 10px;
    }

    /* Amélioration de la section contact */
    .map-section .info-column .inner-column {
        border-radius: 8px;
        padding: 25px 20px;
    }

    .map-section .info-column .content h5 {
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 18px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .map-section .info-column .content h5 span {
        margin: 0 5px 5px;
        padding: 6px 12px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        font-size: 17px;
    }

    .map-section .info-column .content .text {
        font-size: 17px;
        line-height: 1.5;
        text-align: center;
    }

    .map-section .map-column {
        height: 250px;
    }
}

/* Améliorations pour très petits écrans */
@media (max-width: 479px) {

    .services-section .sec-title .title-column h2,
    .services-section .sec-title.style-two h2 {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .services-section .sec-title .text-column .text {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Ajustement des tailles de texte pour les très petits écrans */
    .banner-section .sec-title .text {
        font-size: 17px;
        line-height: 1.5;
    }

    .product-block .content-box .text {
        font-size: 17px;
    }

    .feature-block .text {
        font-size: 17px;
    }

    /* Garantir une taille minimale pour tous les textes */
    p,
    li {
        font-size: 17px !important;
        line-height: 1.5 !important;
    }

    /* Garantir une taille minimale pour les titres */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        line-height: 1.3 !important;
    }

    h1,
    .h1 {
        font-size: 26px !important;
    }

    h2,
    .h2 {
        font-size: 24px !important;
    }

    h3,
    .h3 {
        font-size: 22px !important;
    }

    h4,
    .h4 {
        font-size: 20px !important;
    }

    /* Ajustement spécifique pour les cartes */
    .service-block .caption-box .text p {
        font-size: 17px !important;
    }

    .service-block .caption-box .text p strong {
        font-size: 18px !important;
    }

    /* Ajustement spécifique pour les cartes du carousel */
    .banner-section .testimonial-carousel .testimonial-block .process-block {
        margin-bottom: 0 !important;
        /* Suppression du margin-bottom en mode mobile */
    }

    .banner-section .testimonial-carousel .testimonial-block .process-block .inner-box .icon {
        font-size: 45px !important;
    }

    .banner-section .testimonial-carousel .testimonial-block .process-block .inner-box h4 a {
        font-size: 19px !important;
    }

    .banner-section .testimonial-carousel .testimonial-block .process-block .inner-box .text {
        font-size: 17px !important;
        line-height: 1.7 !important;
    }

    /* Amélioration des statistiques */
    .service-block .caption-box h3 {
        font-size: 20px;
        display: flex;
        align-items: center;
    }

    .service-block .caption-box h3 .icon {
        font-size: 24px;
        margin-right: 10px;
    }

    .service-block .caption-box h2 {
        font-size: 28px;
        line-height: 1.3;
    }

    .service-block .caption-box .text p {
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .service-block .caption-box .text p strong {
        font-size: 19px;
        font-weight: 600;
    }

    /* Amélioration de la section contact */
    .map-section .info-column .content h5 span {
        display: inline-block;
        margin-right: 8px;
        margin-bottom: 5px;
    }
}

/* Améliorations spécifiques pour les éléments de la page d'accueil */
.banner-section .testimonial-carousel .owl-dots {
    margin-top: 20px;
}

.banner-section .testimonial-carousel .owl-dot {
    margin: 0 5px;
}

.banner-section .testimonial-carousel .owl-dot span {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: block;
}

.banner-section .testimonial-carousel .owl-dot.active span {
    background-color: #fff;
}

/* Styles pour les cartes du carousel - CONSERVER LA COULEUR VERTE D'ORIGINE */
.banner-section .testimonial-carousel .testimonial-block .process-block {
    margin-bottom: 0;
    /* Suppression du margin-bottom en mode mobile */
}

.banner-section .testimonial-carousel .testimonial-block .process-block .inner-box .icon {
    color: #ffffff;
    font-size: 50px;
    margin-bottom: 15px;
}

.banner-section .testimonial-carousel .testimonial-block .process-block .inner-box h4 {
    margin-bottom: 12px;
}

.banner-section .testimonial-carousel .testimonial-block .process-block .inner-box h4 a {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.banner-section .testimonial-carousel .testimonial-block .process-block .inner-box .text {
    color: #ffffff !important;
    font-size: 18px;
    line-height: 1.7;
    padding: 0 5px;
}

/* Amélioration des blocs produits */
.product-block .content-box h3 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.product-block .content-box h4 {
    font-size: 21px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.product-block .content-box .text {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 18px;
}

/* Amélioration des liens */
.product-block .content-box .link a {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Amélioration des espacements */
@media (max-width: 767px) {
    .services-section {
        margin-bottom: 0;
    }

    .services-section+.services-section {
        padding-top: 30px;
    }

    .why-choose-us {
        margin-top: 20px;
    }

    .team-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .map-section {
        margin-top: 20px;
    }

    /* Amélioration de la section équipe */
    .team-block {
        margin-bottom: 20px;
    }

    .team-block .inner-box {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .team-block .image-box img {
        width: 100%;
        height: auto;
    }

    .team-block .image-box .name {
        padding: 12px 15px;
        font-size: 18px;
    }

    .team-block .overlay-box {
        padding: 15px;
    }

    .team-block .overlay-box .designation {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .team-block .overlay-box .text {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
}

/* Améliorations supplémentaires pour les blocs de service */
@media (max-width: 767px) {
    /* Mobile flexbox styles are handled in responsive.css */
    /* Keeping only mobile-specific text adjustments */

    .service-block .caption-box .text p {
        margin-bottom: 8px;
    }

    /* Amélioration des blocs produits avec image de fond */
    .product-block .content-box .text[style*="background-image"] {
        height: 180px;
        border-radius: 8px;
        margin-top: 10px;
        background-position: center center;
        background-size: cover;
    }
}