/* style_home.css */
header#header {
    background-color: #f5f7f7;
}

header#header h2 {
    font-size: 32px;
    font-weight: 500;
    color: var(--color-secondary);
    font-family: var(--font-secondary);
}

header#header h2 span {
    color: var(--color-primary);
    font-weight: 900;
}

.slider_text h1 {
    letter-spacing: 0.2rem;
    font-size: 48px;
    font-weight: 500;
    color: var(--color-secondary);
    font-family: var(--font-secondary);
}

.imageHeader img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px 0px rgb(216, 239, 244);
}

/* Hide sections by default */
.section {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    /* transition: all 0.5s ease; */
    /* Smooth transition effect */
}

/* Show sections */
.section.active {
    opacity: 1;
    max-height: 1000px;
    animation: fade 2s alternate;
    /* Adjust as needed */
}

.carousel_wrapper {
    width: 100%;
    margin-top: 50px;
}

.slider1,
.slider2 {

    width: 90%;
    margin: 0 auto;
}

.img-div {
    height: 112.5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.img-div:hover {
    transform: scale(1.15);
}

.img-div img {
    height: 100%;
    display: block;
    margin: auto;
}

.carousels_container {
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: center;
}

.imageHeader {
    padding: 10px;
}

.contactContainer {
    gap: 20px;
    display: flex;
}

/* Contrôle de la taille et de l'aspect des images */
.carousel-inner {
    height: 60vh;
    /* Ajustable selon ton design */
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Conserve le ratio sans déformer */
    border-radius: 10px;
    transition: transform 0.5s ease;
}


/* Contrôle des boutons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
}

/* Pour le container global */
#portfolio {
    padding: 60px 0;
    background-color: #f9f9f9;
}


@keyframes fade {
    0% {
        opacity: 0;
        /* Start opacity */
    }

    50% {
        opacity: 0.5;
        /* End opacity */
    }

    100% {
        opacity: 1;
        /* End opacity */
    }
}


#slowType,
#slowType1,
#slowType2,
#slowType3 {
    animation: typing 10s steps(40, end), blink-caret 0.5s step-end infinite alternate;
}

#fadeText1,
#fadeText2 {
    opacity: 0;
    transition: opacity 2s;
    margin: 0;
}

.slider_text {
    width: 45%;
    padding: 0 0 0 5rem;
}

@media screen and (max-width: 1023px) {
    .imageHeader {
        display: none;
    }

    .carousels_container {
        flex-direction: column;
    }

    .contactContainer {
        flex-direction: column;
    }

    .slider_text {
        width: 100%;
    }

    .section-header h2 {
        font-size: 25px;
    }

    .img-div {
        height: 80px;
    }

    .fw-bold {
        font-size: 22px !important;
    }
}