.section2 {
    margin: 50px auto; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    flex-wrap: wrap;
    max-width: 1200px; 
    height: auto; 
    margin-bottom: 40px; 
}

.header-btn{
    background-color: #bacf3b !important;
}

.header-btn:hover{
    border: 1px solid #fff;
    background: transparent!important;
}


#photo {
    display: flex;
    justify-content: center; 
    align-items: center;
    width: 50% ; 
    height: auto; 
}

#photo img {
    width: 100%; 
    height: auto;
    object-fit: contain;
}

#txt  {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    gap: 15px; 
    width: 50%;  
}

#txt img {
    width: 75%;
    height: auto;
    margin: 15px;
}


/* #txt h2, #para h2 {
    color: #222(47, 47, 87);
    font-weight: 200;
    font-size: 50px; 
    text-align: center;
}

#txt, #para span {
    font-weight: 700;
} */

#cp{
    width: 150px !important;
    height: auto !important;
}

#lg{
    width: 300px !important;
    height: auto !important;
}

#btn {
    background-color: #bacf3b;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 20px;
    border: 1px solid #ccc;
    margin-top: 10px;
    text-align: center;
    cursor: pointer;
}


#mid {
    text-align: center;
}


#btn:hover {
    background-color: #212529!important; 
    color: white;
}

.primary-btn{
   background-color: #bacf3b !important; 
}

.primary-btn:hover{
    border: 1px solid #fff;
    background: transparent!important;
}

.about-video-left .primary-btn:hover{
    background-color: transparent !important; 
       border: 1px solid #bacf3b !important;
       color: #bacf3b !important;
}

.blog-area .owl-dot.active{
    background-color: #bacf3b !important; 
}

.single-footer-widget .click-btn{
    background-color: #bacf3b !important; 
}

.about-video-left h6{
    color: #222 !important; 
}

/* .feature-area .single-feature:hover{
    background-color: #bacf3b !important; 
} */

.feature-area .single-feature:hover h4{
    color: #ffffff !important; 
}

.feature-area .single-feature:hover .lnr{
    color: #ffffff !important; 
}

.feature-area .single-feature:hover p{
    color: #ffffff !important; 
}

.feature-area{
       background-color: #bacf3b !important; 
}

.single-service:hover{
    background-color: #bacf3b !important; 
    border: none;
}

.single-service:hover h4{
    color: #333 !important; 
}

.genric-btn.primary{
       background-color: #bacf3b !important; 
}

.genric-btn.primary:hover{
       background-color: transparent !important; 
       border: 1px solid #bacf3b !important;
       color: #bacf3b !important;
}

.contact-page-area .single-contact-address .lnr{
    color: #bacf3b !important;
}

.blog-area .single-blog-post .title:hover {
    color: #bacf3b !important;
}

.blog-area .single-blog-post .tags li:hover {
    background-color: #bacf3b !important;
}


.about-video-right {
    background: url(../img/e4.webp) no-repeat center !important;
    background-size: cover;
    height: 330px;
}


.footer-social a:hover i {
    color: #73831b !important;
}

.alert-msg {
    margin-top: 10px;
    font-weight: bold;
}

/* Couleurs selon le message */
.alert-msg.success { color: green; }
.alert-msg.error   { color: red; }




@media (max-width: 767px) {
    .section2 {
        margin: 10px;
        flex-direction: column;
        padding: 10px; 
    }

    #photo img {
        display: none;
    }

    #txt {
        display: flex;
        margin-top: 20px;
        align-items: center;
        width: 100%;
    }

   
    #dt {
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center;
        gap: 15px; 
        width: 50%;  
    }

    #txt img {
        width: 90%;
        margin: 15px;
    }

    #txt h2 {
        font-size: 30px; 
    }

    #btn {
        font-size: 12px !important;
        padding: 8px  !important;
        margin-top: 20px;
    }

    #lg{
        width: 180px !important;
    }

    #para {
        width: 100%;
        margin-left: 0;
    }

    #photo2 img {
        width: 90%;
        margin-left: 0;
    }

    #txt h2, #para h2 {
        font-size: 35px;
    }
}


@media (max-width: 1024px) {
    .section2 {
        margin: 50px;
        flex-direction: column;
        padding: 20px;
    }

    #photo img {
        width: 85%;
        margin-left: 0;
        display: none;
    }

    #txt img {
        width: 80%;
    }

    #txt h2 {
        font-size: 25px; 
    }

    #btn {
        font-size: 18px;
        padding: 12px 24px;
        
    }

    
    #dt {
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center;
        gap: 15px; 
        width: 50%;  
    }

    #photo2 img {
        width: 85%;
        margin-left: 0;
    }
}

@media (min-width: 1025px) {
    .section2 {
        margin: 100px auto;
        flex-direction: row;
        justify-content: space-between; 
        margin-bottom: 60px; 
    }

    #photo {
        width: 50%; 
    }

    #txt {
        width: 50%; 
    }

    #photo img {
        width: 100%; 
    }

    #txt img {
        width: 75%;
    }

    #txt h2 {
        font-size: 60px; 
    }

    #btn {
        font-size: 20px;
        padding: 14px 28px;
    }

    #photo2 img {
        width: 75%;
    }
}

.section3 { 
    display: flex;
    justify-content: center; 
    align-items: center; 
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto; 
    padding: 20px; 
}

#all2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

#photo2 {
    display: flex;
    justify-content: center; 
    align-items: center; 
    width: 100%;
    height: auto;
}

#photo2 img {
    width: 100%;
    max-width: 100%; 
    height: auto;
    object-fit: cover; 
    display: block; 
}

#para {
    text-align: justify;
    margin-right: 0; 
    width: 100%; 
    margin-top: 20px; 
}

#para p {
    font-size: 16px; 
    line-height: 1.6; 
    color: #333; 
    margin-top: 20px; 
    width: 100%;
}

@media (max-width: 767px) {
    .section3 {
        flex-direction: column; 
        align-items: flex-start; 
        padding: 20px;
    }

    #photo2 img {
        width: 100%; 
        margin-bottom: 10px; 
    }

    #para {
        width: 100%;
        margin-left: 0;
        margin-top: 10px; 
    }

    #para h2 {
        text-align: center;
        font-size: 24px; 
    }

    #para p {
        font-size: 14px; 
    }
}


@media (max-width: 1024px) {
    .section3 {
        margin: 0px 10px 10px 0px;
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    #photo2 img {
        width: 100%;
        margin-left: 0;
    }

    #para {
        width: 90%; 
        margin-left: 0;
    }

    #para h2 {
        font-size: 30px; 
    }

    #para p {
        font-size: 16px; 
    }
}

/* Styles pour les grands écrans */
@media (min-width: 1025px) {
    .section3 {
        margin: 15px 0px 75px 0px;
        flex-direction: row;
        justify-content: space-between; 
        padding: 20px;
    }

    #photo2 img {
        width: 75%; 
        margin-left: 0; 
    }

    #para {
        width: 50%; 
        margin: 20px 0px 20px 25px;
    }

    #para h2 {
        font-size: 50px; 
    }

    #para p {
        font-size: 18px;
    }
}
