@charset "utf-8";
/* CSS Document */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;


}
.fa-phone-alt{
    transform:rotateY('150deg');
}
.container {
    width: 100%;
    height: 100%;
}

/* navbar */
.navbar {
    background-color: #4a3dbb;
}

.navbar-brand {
    margin-left: 100px;
    color: #38B293;
    font-weight: bold;
}

.navbar-brand:hover {
    color: #38B293;
}

.navbar-nav {
    flex: 1;
    justify-content: center;
}

.navbar-brand span {
    color: white;
}

.nav-link {
    margin-right: 20px;
}

button.navbar-toggler {
    border-left-style: none;
    border: none;
    outline: none;
    border: 2px solid #38B293;
}

button.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler .fa-bars {
    font-size: 30px;
    color: white;
    text-align: center;
}

.btn-no-rounded {
    border-radius: 0 !important;


}

.nav-link:hover {
    position: relative;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 2px;
    background-color: #38B293;
    bottom: -2px;
    left: 5px;
}

.btn-outline-success {
    border: 2px solid #38B293;
    color: white;
    margin-right: 20px;
}

.btn-outline-success {
    display: flex;
    align-items: center;
    justify-content: center;

}

.btn-outline-success:hover {
    background-color: #38B293;
    color: white;
}

.btn-outline-success:active {
    background-color: #38B293;
    color: #fff;
}

.btn-custom {
    color: white;
    border-color: #38B293;
    margin-right: 50px;
    background-color: #38B293;
    color: #fff;
    border-radius: 0%;
}


/* .btn-custom:hover {
    background-color: white;
    color: #38B293;
} */



/* section1 */
.hero-section {
    height: 100vh;
    position: relative;
    margin-top: -60px;
    background-image: url("../img/font.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: start;
    align-items: center;
    overflow: hidden;
    padding-left: 30px;
    flex-direction: column;
}

.foreground-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-top: 5px;
    opacity: 0;
    /* border-bottom: 5px solid #ffffff; */
    display: block;
    transition: opacity 0.2s ease-in-out;

}

/* .feature-section img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;

} */

.foreground-image.active {
    opacity: 1;
}

.content {
    margin-top: 30vh;
    right: 25%;
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 50%;
}

.content form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.content a.btn-custom,
.content a.btn-outline-success {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.content h1 {
    font-size: calc(1.5rem + 0.5vw);
}

.content p {
    font-size: calc(0.5rem + 0.5vw);
}


.bouton {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.btn-small {
    display: inline-block;
    background-color: #ffffff;
    border: 2px solid #38B293;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 30px;
    margin: 5px;
    cursor: pointer;
    margin-top: -10px;
}

.btn-small.active {
    background-color: #38B293;
}

/* espace */


/* dbt section2 */
.feature-section {
    height: 100vh;
    position: relative;
    background-image: url("../img/bref.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#feature-heading {
    margin-bottom: 20px;
}

.feature-section img {
    width: 50px;
    height: auto;
}

.feature-section h2 {
    color: #003CC8;
    font-weight: bold;
    font-size: 2rem;
    margin-top: 15px;

}

.feature-section h2 {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.feature-section h2 {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.feature-section h2::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #38B293;
    transition: width 0.3s;
    margin-top: 5px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.feature-section h2:hover::after {
    width: 50%;
}

.btn-primary {
    color: white;
    border-color: #38B293;
    background-color: #38B293;
    color: #fff;
    border-radius: 0%;
    margin-top: -10px;
    width: auto;
    height: 50px;


}

.row.justify-content-center {
    display: flex;
    text-align: center;
    justify-content: center;
    width: 100%;

}

.feature-row .col-md-4 {
    margin-bottom: 30px;
}



@media only screen and (min-width: 767px) and (max-width: 991px) {
    .nav-link:hover::after {
        width: 9%;
        left: 0px;
    }


    .hero-section,
    .feature-section {
        height: auto;
        margin-top: 0;
    }

    .content {
        order: 1;
        margin-top: 2vh;
        margin-bottom: 20px;
        /* max-width: 90%; */
        right: 25%;
        max-width: 50%;
        z-index: 1;

    }

    .foreground-image {
        order: 2;
        width: 100%;
        margin-bottom: 100px;

    }

    .btn-small {
        width: 15px;
        height: 15px;
        margin: 3px;
    }



}

/* Pour les écrans de 767px ou moins */
@media only screen and (max-width:767px) {

    .hero-section {
        margin-top: 0;
        height: 45vh;
        /* Hauteur fixe de la section */
        position: relative;
        z-index: 1;
        overflow: hidden;
        /* Empêche l'image de déborder de la section */
    }

    .content {
        order: 1;
        margin-top: 3vh;
        right: 0;
        max-width: 100%;
        height: auto;
        bottom: 3px;
        position: relative;
        z-index: 2;
    }

    .image-slider {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: auto;
        max-height: 100%;
        z-index: 3;
    }

    .foreground-image {
        width: 100%;
        height: auto;
        position: absolute;
        bottom: 0;
        /* Fixer le bas de l'image au bas de la section */
        z-index: 4;
        display: block;
        transition: opacity 0.2s ease-in-out;
        object-fit: contain;
        /* Assure que l'image garde ses proportions */

    }

    .content form {
        display: flex;
        gap: 2px;
        margin-top: 10px;
    }

    .content a.btn-custom,
    .content a.btn-outline-success {
        padding: 8px 10px;
        font-size: 12px
    }

    .content h1 {
        font-size: 18px
    }

    .content p {
        font-size: 14px;
    }

    .bouton {
        position: absolute;
        bottom: 0;
        z-index: 2;
    }

    .btn-small {

        width: 20px;
        height: 20px;
        text-align: center;
        line-height: 30px;
        margin: 5px;
        cursor: pointer;
        margin-top: -10px;
    }
}
