#section1 {
    position: relative;
    background-size: cover;
    background-attachment: fixed;
    height: 65vh;
    color: white;
    background-color: rgba(255, 255, 255, 0.7) !important;
}

.overlay-titre {
    transition: 0.5s;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1; /* L'overlay est en arrière-plan */
}
.overlay{
    transition: 0.3s;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.3);
}
.container {
    position: relative;
    z-index: 2; /* Le contenu passe au-dessus de l'overlay */
}

.titre-projet {
    font-size: 60px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
}

.form-projet {
    position: relative;
    z-index: 3; /* Au-dessus de l'overlay */
    width: 50%;
}

.input-projet {
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 60px !important;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
    outline: none !important;
}

.input-projet::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}
.btn-projet {
    margin-top: 10px;
    z-index: 3;
}
.box {
    position: relative;
    width: 100%; /* Utilise toute la largeur disponible */
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0); /* Optionnel */
    box-shadow: 0px 0px 20px rgb(0, 0, 0);
    overflow: hidden; /* Assure que le contenu ne dépasse pas */
}

#titrePage{
    font-family: monospace !important;
    transition: 0.5s;
    position: absolute;
    margin: 0;
    color: rgb(255, 255, 255);
    font-size: 60px;
    z-index: 1;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
}
header{
    box-sizing: unset!important;
}
#titreExplicative{
    margin-top: 50px;
    display: flex;
    align-items: center;
    width: 80%;
    height: 80%;
    padding-left: 50px;
    z-index: 1;
    transition: 1s;
}
#titreExplicative #titrePage{
    z-index: 1;
}
#titreExplicative p{
    font-size: 20px;
}
#section2{
    margin-bottom: 50px;
}
section{
    color: rgb(188, 188, 188);;
}

.titreRubrique{
    color: white;
    margin-top: 70px;
    font-size: 45px;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgb(0, 0, 0);
}
article{
    color: white;
}
#section2 article{
    display: flex;
    justify-content: space-evenly;
}

hr{
    opacity: 1 !important;
    transition: 1s;
    border: none;
    margin: 70px auto 70px auto !important;
    width: 100%;
    height: 1px !important;
    background: white !important;
    color: white !important;
}
.vertical-line {
    width: 2px;
    height: 300px;
    background-color: white;
    margin: 0 10px;
}
.CaseLabelInput{
    display: flex;
    flex-direction: column;
}

form{
    height: 100%;
    font-family: monospace !important;
}
.field label{
    font-family: monospace !important;
    color: white;
}
input::placeholder,textarea::placeholder{
    color: rgba(0, 0, 0, 0.45)!important;
}
textarea{
    padding: 10px;
    flex-grow: 1; /* Permet au textarea de grandir pour occuper l'espace disponible */
}
p{
    font-size: 100%;
    font-weight: 400;
    font-family: monospace !important;
}
.custom-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(128, 128, 128, 0.5);
    z-index: 1050; 
    display: none;
}
.custom-modal.show {
    display: flex !important;
    align-items: center!important;
    justify-content: center!important;
}

.custom-modal-dialog {
    max-width: 1200px!important; 
    width: 90%!important; 
    height: 85vh!important;
    display: flex!important;
    align-items: center!important; 
    justify-content: center!important;
}

.custom-modal-content {
    height: 85vh!important; 
    display: flex!important;
    flex-direction: column!important;
}

.custom-modal-body {
    flex-grow: 1!important; /* Remplir l'espace dispo */
    overflow-y: auto!important; /* Activer le scroll si besoin */
}
.competence-selected {
    background-color: #28a745 !important; /* Vert Bootstrap */
    color: white;
    border-radius: 5px;
    position: relative;
}
.competence-img{
    object-fit: cover;
    height: 60px!important;
}
.select-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 20px;
    color: white;
    background-color: #218838;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    display: none;
}

.competence-selected .select-overlay {
    display: flex;
}
.competence-selected {
    background-color: rgba(0, 255, 0, 0.2); /* Fond vert léger */
    border: 2px solid green;
}

.marked-for-delete {
    background-color: rgba(255, 0, 0, 0.2); /* Fond rouge léger */
    border: 2px solid red;
}

.select-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 20px;
    font-weight: bold;
}


.titrebox{
    margin: 0;
    position: absolute;
    color: #f5f5f5;
    display: none;
    transform: translate(-50%,-50%);
    left: 50%;
    top: 50%;
    z-index: 1;
    font-size: 25px;
    width: 100%;
    text-align: center;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
}

.box:hover .titrebox, .box-centre-interet:hover .titrebox-centre-interet{
    display: block;
}
.box:hover .overlay,.box-centre-interet:hover .overlay{
    background-color: rgba(0, 0, 0, 0.7);
}
.imagebox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover; /* Maintient le contenu de l'image dans le conteneur avec un bon ratio */
    border-radius: 15px;
    transition: transform 0.3s ease; /* Pour l'effet hover */
}

.box:hover .imagebox {
    transform: scale(1.1); /* Zoom léger sur hover */
}
.hrefbox{
    z-index: 2;
    transition: 0.3s;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}
.grosse-box{
    width: 300px;
    height: 300px;  
    border-radius: 15px;
    
    box-shadow: 0px 0px 20px rgb(0, 0, 0);
    position: relative;
    background-color: rgba(0, 0, 0, 0);
    margin: 10px;
    flex-direction: column;
    align-items: center;
    transition: 0.3s; /* Ajout de transition pour l'effet hover */
}
.description-box{
    /* text-align: justify; */
    font-size: 15px;
}
/* Style Lightbox image pour l'adapter à l'écran */
.lb-image {
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: cover !important;  /* 'cover' rogne l'image, 'contain' l'adapte sans rogner */
    width: auto !important;
    height: auto !important;
    margin: auto !important;
    display: block !important;
    border-radius: 10px !important; /* Optionnel pour un effet arrondi */
}
.lb-outerContainer, .lb-container {
    max-width: 100vw !important;
    max-height: 100vh !important;
}
.box-image-galerie{
    width: 300px !important;
    height: 300px !important;
}


@media screen and (max-width: 1398px){
    .grosse-box{
        width: 230px;
        height: 230px;    
    }
    .titrebox{
        font-size: 20px ;
    }
    .competence-img{
        height: 56px!important;
    }
    .box-image-galerie{
        width: 250px !important;
        height: 250px !important;
    }
}
@media screen and (max-width: 1200px){
    .box-image-galerie{
        width: 200px !important;
        height: 200px !important;
    }
}
@media screen and (max-width: 1130px){
    .titre-projet{
        font-size: 40px;
    }
    .titrebox-centre-interet, .titrebox {
        font-size: 1.2rem ;
    }

    .overlay{
        background-color: rgba(0, 0, 0, 0.6);
    }

    .titrebox{
        display:block;
    }
    .box{
        width: 200px;
        height: 200px;
    }
    .input-projet {
        font-size: 50px !important;
        text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
    }
    .grosse-box{
        width: 200px;
        height: 200px;    
    }
    .description-box{
        font-size: 14px;
    }
    .competence-img{
        height: 53px!important;
    }
    .box-image-galerie{
        width: 200px !important;
        height: 200px !important;
    }
}
@media screen and (max-width: 992px) { /* Tablettes et écrans plus petits */
    .titre-galerie-images{
        flex-direction: column;
    }
}
@media screen and (max-width: 767px) { /* Tablettes et écrans plus petits */
    .titrebox-centre-interet, .titrebox {
        font-size: 1.1rem;
    }
    .overlay{
        background-color: rgba(0, 0, 0, 0.6);
    }
    #barre-vertical{
        display: none;
    }
    .input-projet {
        font-size: 40px !important;
        text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
    }
    .titre-projet{
        font-size: 35px;
    }
    .grosse-box{
        width: 150px;
        height: 150px;    
    }
    .description-box{
        font-size: 13px;
    }
    .competence-img{
        height: 50px!important;
    }
    .box-image-galerie{
        width: 230px !important;
        height: 230px !important;
    }
}
@media screen and (max-width: 574px) { /* Écrans de mobile */
    .titrebox-centre-interet, .titrebox {
        font-size: 1rem;
    }
    .overlay{
        background-color: rgba(0, 0, 0, 0.6);
    }
    .titre-projet{
        font-size: 28px;
    }
    .grosse-box{
        width: 180px;
        height: 180px;    
    }
    .description-box{
        font-size: 12px;
    }
    .competence-img{
        height: 47px!important;
    }
    .box-image-galerie{
        width: 300px !important;
        height: 300px !important;
    }
    .swiper-slide{
        justify-items: center !important;
    }
}
@media screen and (max-width: 400px) { /* Tablettes et écrans plus petits */
    .grosse-box{
        width: 140px;
        height: 140px;    
    }
    .competence-img{
        height: 45px !important;
    }
}
@media screen and (max-width: 320px){
    .overlay{
        background-color: rgba(0, 0, 0, 0.6);
    }
    .titre-projet{
        font-size: 22px;
    }
    .grosse-box{
        width: 130px;
        height: 130px;    
    }
}