
header #Accueil{
    background-color: #f3a7b5;
    color: white;
    border-radius: 50px;
}


/* ------------------------------------------------------CONTENT 1------------------------------------------------- */


.content-1{
    
    background-color: black;
}

.content-1 video{
    width: 100%;
    object-fit: cover;
    opacity: 0.7;
    
} 

.box-1{
    display: flex;
    flex-direction: column;
    gap: 30px;

    padding: 0 20px;
    color: white;

    position: absolute;
    top: 50vh;
    left: 2%;
}

.box-1 h1{
    font-size: 68px;
    line-height: 100px;
}

.box-1 .text{
    display: flex;
    align-items: center;
    gap: 20px;
}

.box-1 p{
    width: fit-content;
    padding: 2% 5%;

    background-color: #EEDEF9;
    color: black;
    border-radius: 100px 0 100px 0;
}

/* -----------------------------------------CONTENT 2-------------------------------------------------- */

.content-2{
    position: relative;
    margin: 100px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;

    background-color: #EEDEF9;

}

.content-2 .bob,
.content-2 .text{
    z-index: 1;
}

.content-2 .text{
    margin-right: 270px;
    width: 470px;
}


.etoile-1,
.etoile-2{
    position: absolute;
    z-index: 0;
}

.etoile-1{
    left: 0;
    top: 0vh;

}

.etoile-2{
    right: 0;
    top: 30vh;
}

/* ---------------------------------------CONTENT 3---------------------------------------------------------- */

.content-3{
    width: 100%;
    margin: 150px 0;
    padding-bottom: 5%;

    background-color: #EEDEF9;
}

.content-3 .text2{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 45%;
}

.content-3 .text2 h2{
    padding: 50px 0;

    font-size: 48px;
}

.content-3 .text2 p{
    text-align: center;
}

.box-3{
    width: 100%;
    display: flex;
    justify-content: center;
}

.grille{
    margin-top: 100px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px , 1fr));
    gap: 30px;
}


/* ---------------------SLIDER---------------------------- */
/* Styles du slider */
 .slider-wrapper {
    position: relative;
    width: 100%;
    margin: auto;
    padding: 30px;

}


.slider-container {
    overflow: hidden;
    width: 100%;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: max-content; /* Permet au slider de s'étendre selon le nombre de projets */
}

.projet {
    flex: 0 0 calc(20%); /* 50% pour afficher 2 projets à la fois, ajustable */
    margin: 10px;
    background: #EEDEF9;
    border-radius: 20px;
    text-align: center;
}



.projet img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}


.projet h2 {
    font-size: 1.8rem; /* Augmente la taille du texte */
    font-weight: 600; /* Rend le titre plus visible */
    white-space: nowrap; /* Empêche le texte de s'étaler sur plusieurs lignes */
    overflow: hidden; /* Coupe le texte si nécessaire */
    text-overflow: ellipsis; /* Ajoute "..." si le texte dépasse */
    padding: 30px 0;
}

.projet p {
    font-size: 0.9rem;
    margin: 5px 0;
}

button.info {
    height: 50px;
    width: 100px;
    margin-bottom: 10px;
    background-color: transparent;
    border: solid 2px #f3a7b5;
    border-radius: 30px;
}

button.info:hover {
    transform: scale(1.1);
    background-color: #c0a0d6;
    transition: 0.3s;
    color: white;
    border: 0px;
}

/* Flèches de navigation */
button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: fit-content;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 100%;

    z-index: 10;
}

button.prev:hover, button.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transition: 0.3s;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

@media (max-width : 768px) and (min-width : 300px){
    *{
        width: 100%;
    }
    /* ---------------------------------------------- Header - mobile ---------------------------------------------------------------- */
    
 
    
 
    
    /* ------------------------------------------------------CONTENT 1 - mobile ------------------------------------------------- */
    .box-1{
        display: flex;
        flex-direction: column;
    
        padding: 0 20px;
        color: white;

    
        position: absolute;
        top: 10vh;
        left: 2%;
    }
    .text{
        width: 50px;
        margin-top: 50px;
        gap: 5px !important; 
    }
    .text h1{
        font-size: 20px;
        line-height: 10px;
    }

    .box-1 p{
        width: fit-content;
        padding: 12px 15px;
        font-size: 10px;
    
        background-color: #EEDEF9;
        color: black;
        border-radius: 100px 0 100px 0;
    }

    
    /* -----------------------------------------CONTENT 2- mobile -------------------------------------------------- */

    .content-2{
        position: relative;
        margin: 40px 0;
        padding: 20px 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        max-width: 100%;

        background-color: #EEDEF9;

    }

    .content-2 .bob,
    .content-2 .text{
        z-index: 1;
    }

    .content-2 .text{
        width: 470px;
        margin: 0px;

        font-size: 10px;
    }


    .etoile-1,
    .etoile-2{
        position: absolute;
        z-index: 0;
        width: 150px;
    }

    .etoile-1{
        left: 0;
        top: 0vh;

    }

    .etoile-2{
        right: 0;
        top: 20vh;
    }
    /* ---------------------------------------CONTENT 3---------------------------------------------------------- */

    .content-3{
        width: 100%;
        margin: 150px 0;
        padding-bottom: 5%;

        background-color: #EEDEF9;
    }

    .content-3 .text2{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;


        width: 45%;
    }

    .content-3 .text2 h2{
        padding: 50px 0;

        font-size: 30px;
        text-align: center;
    }

    .content-3 .text2 p{
        text-align: center;
        margin: 0;
        padding: 0;
    }

    .box-3{
        width: 100%;
        /* display: flex;
        justify-content: center; */
    }


    /* ---------------------SLIDER---------------------------- */
    /* Styles du slider */
    .slider-wrapper {
        position: relative;
        width: 100%;
        margin: auto;
        padding: 30px;

    }


    .slider-container {
        overflow: hidden;
        width: 100%;
    }

    .slider {
        display: flex;
        transition: transform 0.5s ease-in-out;
        
    }

    .projet {
        flex: 0 0 calc(10%); /* 50% pour afficher 2 projets à la fois, ajustable */
        margin: 250px;
        background: #EEDEF9;
        border-radius: 20px;
        text-align: center;
    }



    .projet img {
        height: 300px;
        width: 100%;
        object-fit: cover;
        border-radius: 20px;
    }


    .projet h2 {
        font-size: 20px; /* Augmente la taille du texte */
        font-weight: 600; /* Rend le titre plus visible */
        white-space: nowrap; /* Empêche le texte de s'étaler sur plusieurs lignes */
        overflow: hidden; /* Coupe le texte si nécessaire */
        text-overflow: ellipsis; /* Ajoute "..." si le texte dépasse */
        padding: 30px 0;
    }

    .projet p {
        font-size: 0.9rem;
        margin: 5px 0;
    }

    button.info {
        height: 50px;
        width: 100px;
        margin-bottom: 10px;
        background-color: transparent;
        border: solid 2px #f3a7b5;
        border-radius: 30px;
    }

    button.info:hover {
        transform: scale(1.1);
        background-color: #c0a0d6;
        transition: 0.3s;
        color: white;
        border: 0px;
    }

    /* Flèches de navigation */
    button.prev, button.next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        width: fit-content;
        padding: 10px;
        cursor: pointer;
        font-size: 20px;
        border-radius: 100%;

        z-index: 10;
    }

    button.prev:hover, button.next:hover {
        background-color: rgba(0, 0, 0, 0.8);
        transition: 0.3s;
    }

    button.prev {
        left: 10px;
    }

    button.next {
        right: 10px;
    }

}