* {
    font-family: "Baloo 2";
}

.header-content {
    position: absolute;
    top: 30%;
    max-width: 60%;
}

.header-title {
    color: #2a5891;
    font-size: 30px;
    position: relative;
    bottom: 2rem;
}

.header-text {
    color: #2a5891;
    font-size: 20px;
    position: relative;
    bottom: 2rem;
    text-align: justify;
    padding-right: 5% !important;
}

#application-links .soustraitance-link {
    background: #83c5aa;
    color: #fff;
    padding: 20px 20px 0px 20px;
    text-decoration: none;
}

#application-links .marketplace-link {
    background: #5b9cec;
    color: #fff;
    padding: 20px 20px 0px 20px;
    text-decoration: none;
}

.application-link-title {
    font-size: 25px;
}

.application-link-desc {
    font-size: 14px;
}

.s2_response {
    font-size: 20px;
    width: 65%;
    color: #5a5a5a;
}

.contraintes-text {
    color: #5a5a5a;
    font-size: 25px;
    font-weight: 500;
}

.s2-card {
    height: 100%;
}

.s2-card:hover {
    background: #5b9cec;
    border-radius: 5px;
    padding: 15px;
}

.s2-card:hover .s2-card-text {
    color: #ffffff;
}

.s2-card:focus {
    background: #5b9cec;
    border-radius: 5px;
    padding: 20px;
}

.s2-card:focus .s2-card-text {
    color: #ffffff;
}

.li-1 {
    margin-bottom: -1.5rem;
}

.number {
    width: 48px;
    font: normal normal 900 80px/76px Muli;
    letter-spacing: 0px;
    opacity: 0.1;
}

.linkivia-txt {
    color: #5a5a5a;
}

.blue-txt {
    color: #5b9cec;
}

#services {
    background: url('../img/home/bg-3.svg') no-repeat;
    height: 60rem;
    background-size: cover;
}

.services-row {
    position: relative;
    top: 1rem;
}

.card-link {
    color: #83c5aa;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
}

.s3-txt {
    color: #5a5a5a;
    font-size: 18px;
}

#marketplace-service {
    background: url('../img/home/bg-3.png') no-repeat;
    background-size: cover;
    padding-bottom: 4rem;
}

.marketplace-service-text {
    font-size: 15px;
    text-align: justify;
}

.home-logo {
    width: 146px;
}

.s15 {
    font-size: 15px;
}

#navHome {
    transition: all 0.5s;
}

.scrolled {
    background: #fff;
    -webkit-box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.25);
    z-index: 9999999 !important;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.25);
}

.logo-image {
    width: 142px;
    height: 50px;
}

.navbar-brand {
    margin-left: 140px; /* Adjust the margin-left for smaller screens */
}

.navbar-toggler:focus,
.navbar-toggler:active {
    /* box-shadow: none; */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Ajoute une ombre subtile */
}

.navbar-light .navbar-nav .nav-link {
    color: #57636d;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: #83C5AA;
}

@media only screen and (max-width: 990px) and (min-width: 768px) {
    h4.lab {
        bottom: 7rem;
        font-size: 30px;
    }

    .lab-txt {
        bottom: 6rem;
    }
}

@media (max-width: 575px) {

    .s2_response {
        width: 100%;
    }

    #services {
        height: 90rem;
    }

    .home-logo {
        width: 100px; /* Adjust the width for smaller screens */
        height: 35px; /* Adjust the height for smaller screens */
    }
    .header-content {
        top: 25%;
        max-width: 85%;
    }
    .header-title {
        bottom: 3rem;
    }
    #navbarSupportedContent .nav-link {
        color: #78ac57 !important; /* Applique la couleur rouge au texte */
    }
    #navbarSupportedContent .border-secondary {
        border-color: #78ac57 !important; /* Applique la couleur rouge à la bordure */
    }
    #navbarSupportedContent .fw-bold {
        font-weight: normal !important; /* Retire le style de gras */
    }
    #navbarSupportedContent .px-2 {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    #services {
        height: 80rem;
    }
}

@media (min-width: 768px) {
    .custom-margin-bottom {
        margin-bottom: 150px; /* Ou toute autre valeur que vous préférez */
    }
    .second-custom-margin-bottom {
        margin-bottom: 50px; /* Ajustez cette valeur selon vos besoins */
    }
}

@media only screen and (max-width: 768px) {
    .logo-image {
        width: 100px; /* Adjust the width for smaller screens */
        height: 35px; /* Adjust the height for smaller screens */
    }

    .navbar-brand {
        margin-left: 20px; /* Adjust the margin-left for smaller screens */
    }
}

/* Section principale */
#intro-section {
    height: 440px;
    margin-top: 80px;
    position: relative;
    z-index: 1;  /* Définit la section intro comme étant en dessous */
}

#intro-section .intro-container {
    height: 100%;
    position: relative;
}

#intro-section .intro-container .intro-item {
    position: relative;
    height: 100%;
    width: 100%;
}

#intro-section .intro-container .image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

#intro-section .intro-container .background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
    position: relative;
    z-index: -1;
}

#intro-section .intro-container .intro-content {
    position: absolute;
    top: 15%;
    left: 5%;
    right: 5%;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    z-index: 10;
}

/* Media Query pour les écrans de moins de 576px */
@media (max-width: 400px) {
    #intro-section .intro-container .intro-content {
        top: 5%;
        left: 2%;
        right: 2%;
    }
}

#intro-section .intro-container .intro-content h5 {
    font-size: 1.8rem;
    font-weight: bold;
    word-spacing: 0.2rem;
    line-height: 1.8;
    margin: 0 30px;
}

/* Media query pour réduire la taille du h5 sur les petits écrans */
@media (max-width: 992px) {
    #intro-section .intro-container .intro-content h5 {
        font-size: 1.2rem;
        margin: 0 10px; /* Réduire encore l'espacement */
    }
}

#intro-section .intro-container .d-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

#intro-section .intro-container .d-flex span {
    font-size: 1.2rem;
}

/* Media query pour réduire la taille des spans sur les petits écrans */
@media (max-width: 1315px) {
    #intro-section .intro-container .d-flex span {
        font-size: 0.9rem;
    }
}

#intro-section .intro-container .blurred-card {
    position: relative;
    border-radius: 10px;
    padding: 10px 15px;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
}

#intro-section .intro-container .blurred-card i {
    font-size: 1.5em;
}

/* Media query pour ajuster la taille des icônes et des cartes sur les petits écrans */
@media (max-width: 768px) {
    #intro-section .intro-container .blurred-card i {
        font-size: 1.2em;
    }

    #intro-section .intro-container .blurred-card {
        padding: 8px 12px;
    }

    #intro-section {
        margin-top: 70px;
    }
}

@media (max-width: 576px) {
    #intro-section .intro-container .blurred-card i {
        font-size: 1em;
    }

    #intro-section .intro-container .blurred-card {
        padding: 5px 10px;
    }
}

/* Feature Links Section */
#feature-links {
    position: relative; /* Pour que z-index fonctionne */
    z-index: 2; /* La section feature-links sera au-dessus */
    margin-top: -20px;
}

#feature-links .d-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Card styles */
#feature-links .card {
    background-color: #83c5aa;
    color: white;
    text-align: center;
    padding: 15px;
    width: 300px;
    position: relative;
    overflow: visible;
    border: none;
    border-radius: 0;
}

#feature-links .card.card-alt {
    background-color: #5b9cec;
}

#feature-links .icon-circle {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

#feature-links .card .icon-circle {
    color: #83c5aa;
}

#feature-links .card.card-alt .icon-circle {
    color: #5b9cec;
}

#feature-links .card h1 {
    font-size: 20px;
    margin: 20px 0 5px;
}

#feature-links .card p {
    font-size: 14px;
    margin: 5px 0 10px;
}

#feature-links .card a {
    display: inline-block;
    background-color: #1d4f91;
    color: white;
    text-decoration: none;
    padding: 5px 20px;
    font-weight: bold;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
    transition: background-color 0.3s ease;
}

#feature-links .card a:hover {
    background-color: #83c5aa;
}

#feature-links .card.card-alt a:hover {
    background-color: #5b9cec;
}

/* Media query pour écran < 1272px */
@media (max-width: 1272px) {
    #feature-links .card.card-alt:nth-child(4) {
        margin-top: 50px;
    }
}

/* Media query pour écran < 956px */
@media (max-width: 956px) {
    #feature-links .card:nth-child(3) {
        margin-top: 50px;
    }
}

/* Media query pour écran < 640px */
@media (max-width: 639.98px) {
    #feature-links .card:nth-child(2) {
        margin-top: 50px;
    }
    #feature-links .card.card-alt:nth-child(4) {
        margin-bottom: 30px;
    }
}

/* Media query pour les écrans entre 400px et 639px */
@media (min-width: 480px) and (max-width: 639.98px) {
    #feature-links .card {
        width: 400px;
    }
}

@media (max-width: 768px) {
    #linkLearningModal .modal-dialog,
    #comparaLinkModal .modal-dialog {
        margin-top: 100px; /* Ajustez selon la hauteur de votre navbar pour petits écrans */
    }
}
