h1{
    margin: 0;
    color: white;
    font-size: 40px;
}

#titreExplicative{
    margin-top: 50px;
    display: flex;
    align-items: center;
    height: 80%;
    padding-left: 50px;
}

#titreExplicative p{
    font-size: 20px;
    opacity: 1 !important;
}
@keyframes glowEffect {
    0% { filter: drop-shadow(0px 0px 4px rgb(62, 165, 255)); }
    20% { filter: drop-shadow(0px 0px 16px rgb(62, 165, 255)); }
    100% { filter: drop-shadow(0px 0px 4px rgb(62, 165, 255)); }
}

.glow-animation {
    animation: glowEffect 4s infinite ease-in-out;
}

@keyframes glowEffect-small {
    0% { filter: drop-shadow(0px 0px 4px rgb(62, 165, 255)); }
    20% { filter: drop-shadow(0px 0px 12px rgb(62, 165, 255)); }
    100% { filter: drop-shadow(0px 0px 4px rgb(62, 165, 255)); }
}

.glow-animation-small{
    animation: glowEffect-small 4s infinite ease-in-out;

}


@keyframes glowEffectText {
    0% {text-shadow:0px 0px 2px rgb(62, 165, 255); }
    20% { text-shadow:0px 0px 12px rgb(62, 165, 255); }
    100% { text-shadow:0px 0px 2px rgb(62, 165, 255); }
}

.glow-animation-text {
    animation: glowEffectText 4s infinite ease-in-out !important;
}

section{
    color: rgb(188, 188, 188);
}

.titreRubrique{
    color: white;
    margin-top: 70px;
    font-size: 35px;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgb(0, 0, 0);
}

article{
    color: white;
}

#section2 article{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

#section2 article p{
    font-size: 16px;
    /* text-align: justify; */
}

.avatar{
    object-fit: cover;
    margin-top: 50px;
    width: 420px;
    height: 350px;
    box-shadow: 0px 0px 50px rgb(0,0,0);
}

hr{
    border: none;
    margin-top: 70px;
    width: 100%;
    height: 1px;
    background: white;
}

.rubrique{
    margin: 0px 100px 0px 100px;
}

#competences #conteneur-box-competences{
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.competence-img{
    object-fit: cover;
    height: 70px!important;
}

.box-competence , .box-projet{
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box-competence p, .box-projet p{
    font-size: 18px;
}

/* ------------projets, formations, expériences------------- */
.conteneur-box{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
}

.box {
    position: relative;
    width: 100%; /* Utilise toute la largeur disponible */
    padding-top: 100%; /* Garde un ratio 1:1 pour rendre la div carrée */
    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 */
}

.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 */
}

.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,.grosse-box:hover .titregrosse-box{
    display: block;
}

.overlay{
    transition: 0.3s;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.box:hover .overlay,.box-centre-interet:hover .overlay,.grosse-box:hover .overlay{
    background-color: rgba(0, 0, 0, 0.7);
}

.hrefbox{
    z-index: 3;
    transition: 0.3s;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* -------------centre d'interêt------------- */
.titrebox-centre-interet, .titregrosse-box{
    margin: 0;
    position: absolute;
    color: #f5f5f5;
    transform: translate(-50%,-50%);
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 100%;
    text-align: center;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
}

.box-centre-interet, .grosse-box{
    border-radius: 15px;
    width: 200px;
    height: 200px;    
    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 */
}
.grosse-box{
    width: 300px;
    height: 300px;  
}
.box-centre-interet-button-add, .grosse-box-button-add {
    width: 200px;
    height: 200px;
}

.imagebox-centre-interet,.imagebox-projets{
    border-radius: 15px;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: 0.3s ease; /* Ajout de transition pour l'effet hover */
}

.box-action-grosse-box{
    z-index: 6!important;
    display: flex;
    width: 100%;
    justify-content: space-evenly;
}
@media screen and (max-width: 1170px){
    @keyframes glowEffect {
        0% { filter: drop-shadow(0px 0px 2px rgb(62, 165, 255)); }
        20% { filter: drop-shadow(0px 0px 12px rgb(62, 165, 255)); }
        100% { filter: drop-shadow(0px 0px 2px rgb(62, 165, 255)); }
    }
    @keyframes glowEffect-small {
        0% { filter: drop-shadow(0px 0px 2px rgba(62, 165, 255, 0.688)); }
        20% { filter: drop-shadow(0px 0px 10px rgb(62, 165, 255)); }
        100% { filter: drop-shadow(0px 0px 2px rgba(62, 165, 255, 0.608)); }
    }
    #conteneurSection2{
        margin: 50px 50px 50px 50px;
    }

    #section2 article{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #section2 article p{
        font-size: 15px;
        /* text-align: justify; */
    }

    .avatar{
        margin-top: 50px;
        width: 420px;
        height: 350px;
        box-shadow: 0px 0px 30px rgb(6, 214, 255);
    }

    .conteneur-box{
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: center;
    }

    .box{
        width: 200px;
        height: 200px;
    }

    .rubrique{
        margin: 0px ;
    }

    .titreRubrique{
        text-align: center;
        font-size: 32px;
    }

    .box-centre-interet,.grosse-box{
        border-radius: 15px;
        width: 130px;
        height: 130px;    
        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;
    }
    .grosse-box{
        width: 230px;
        height: 230px;    
    }
    #competences #conteneur-box-competences{
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .box-competence p, .box-projet p{
        font-size: 14px;
    }

    .titrebox-centre-interet, .titrebox,.titregrosse-box {
        font-size: 1.2rem ;
    }

    .overlay{
        background-color: rgba(0, 0, 0, 0.6);
    }

    .titrebox{
        display:block;
    }
    #titreExplicative p{
        font-size: 18px;
    }
    #titreExplicative h1{
        font-size: 45px !important;
    }
    .competence-img{
        height: 66px!important;
    }
    .image-supplement-projet{
        width: 100px !important;
        height: 100px !important;
        top: -40px !important;
    }
}

@media (max-width: 992px) {
    @keyframes glowEffect-small {
        0% { filter: drop-shadow(0px 0px 2px rgba(62, 165, 255, 0.688)); }
        20% { filter: drop-shadow(0px 0px 7px rgb(62, 165, 255)); }
        100% { filter: drop-shadow(0px 0px 2px rgba(62, 165, 255, 0.608)); }
    }
    #reseauSociaux{
        margin-top: 80px !important;
    }
    .grosse-box{
        width: 170px;
        height: 170px;    
    }
    .image-supplement-projet{
        width: 80px !important;
        height: 80px !important;
        top: -30px !important;
    }
}
@media (max-width: 768px) { /* Tablettes et écrans plus petits */
    @keyframes glowEffect {
        0% { filter: drop-shadow(0px 0px 2px rgb(62, 165, 255)); }
        20% { filter: drop-shadow(0px 0px 10px rgb(62, 165, 255)); }
        100% { filter: drop-shadow(0px 0px 2px rgb(62, 165, 255)); }
    }
    @keyframes glowEffect-small {
        0% { filter: drop-shadow(0px 0px 2px rgba(62, 165, 255, 0.355)); }
        20% { filter: drop-shadow(0px 0px 5px rgb(62, 165, 255)); }
        100% { filter: drop-shadow(0px 0px 2px rgba(62, 165, 255, 0.352)); }
    }
    .titrebox-centre-interet, .titrebox,.titregrosse-box{
        font-size: 1.1rem;
    }

    .overlay{
        background-color: rgba(0, 0, 0, 0.6);
    }
    .grosse-box{
        width: 150px;
        height: 150px;    
    }
    #section2 article p{
        font-size: 13px;
    }
    #titreExplicative p{
        font-size: 16px;
    }
    #titreExplicative h1{
        font-size: 40px !important;
    }
    .titreRubrique{
        font-size: 30px;
    }
    .competence-img{
        height: 63px!important;
    }
    .image-supplement-projet{
        width: 65px !important;
        height: 65px !important;
        top: -30px !important;
        left: 0px !important;
    }
}


@media (max-width: 574px) { /* Écrans de mobile */
    @keyframes glowEffect-small {
        0% { filter: drop-shadow(0px 0px 2px rgba(62, 165, 255, 0.688)); }
        20% { filter: drop-shadow(0px 0px 10px rgb(62, 165, 255)); }
        100% { filter: drop-shadow(0px 0px 2px rgba(62, 165, 255, 0.608)); }
    }
    .titrebox-centre-interet, .titrebox ,.titregrosse-box{
        font-size: 1rem;
    }

    .overlay{
        background-color: rgba(0, 0, 0, 0.6);
    }
    .grosse-box{
        width: 180px;
        height: 180px;    
    }
    .avatar{
        width: 350px;
        height: 290px;
    }
    #section2 article p{
        font-size: 12px;
    }
    #titreExplicative{
        padding: 30px !important;
    }
    #titreExplicative p{
        font-size: 14px;
    }
    #titreExplicative h1{
        font-size: 35px !important;
    }
    .titreRubrique{
        font-size: 28px;
    }
    .competence-img{
        height: 60px!important;
    }
    .image-supplement-projet{
        width: 80px !important;
        height: 80px !important;
        top: -30px !important;
        left: 30px !important;
    }
}
@media (max-width: 477px) { /* Écrans de mobile */
    @keyframes glowEffect-small {
        0% { filter: drop-shadow(0px 0px 2px rgba(62, 165, 255, 0.488)); }
        20% { filter: drop-shadow(0px 0px 6px rgb(62, 165, 255)); }
        100% { filter: drop-shadow(0px 0px 2px rgba(62, 165, 255, 0.408)); }
    }
    .image-supplement-projet{
        width: 80px !important;
        height: 80px !important;
        top: -30px !important;
        left: 0px !important;
    }
}
.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;
}

.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;
}
.custom-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(128, 128, 128, 0.5);
    z-index: 1050; 
    display: none;
}


@media (max-width: 400px) { /* Tablettes et écrans plus petits */
    .grosse-box{
        width: 140px;
        height: 140px;    
    }
    .avatar{
        width: 300px;
        height: 250px;
    }
    #titreExplicative{
        padding: 20px !important;
    }
    #titreExplicative p{
        font-size: 13px;
    }
    #titreExplicative h1{
        font-size: 30px !important;
    }
    .titreRubrique{
        font-size: 26px;
    }
    .competence-img{
        height: 56px!important;
    }
    .image-supplement-projet{
        width: 67px !important;
        height: 67px !important;
        top: -23px !important;
        left: 0px !important;
    }
}
@media screen and (max-width: 360px) { /* mobile petit */
    .box-action-grosse-box{
        display: flex;
        width: 100%;
        justify-content: space-evenly;
        flex-direction: column;
        align-items: center;
    }
    .image-supplement-projet{
        width: 57px !important;
        height: 57px !important;
        top: -15px !important;
        left: 0px !important;
    }
}
@media screen and (max-width: 320px) { /* mobile petit */
    .grosse-box{
        width: 130px;
        height: 130px;    
    }
    .avatar{
        width: 250px;
        height: 200px;
    }
    .competence-img{
        height: 54px!important;
    }
}
