/*--------------------------------------------------------------
                            compétences
--------------------------------------------------------------*/

#services #competences article h4::after {
    content: attr(data-content);
    display: block;
    font-size: 0.6em;
    font-weight: normal;
    padding-left: 10px;
    color: var(--color-primary);
    margin: 10px auto;
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
}

#services #competences article:hover .article-content h4:after {
    color: var(--text-light);
}

article .article-content .icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    background-color: var(--background-secondary);
    margin: 0 auto;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

article:hover .article-content .icon {
    background-color: var(--background-three);
    color: var(--text-light);
}

article .article-content h4 {
    margin-top: 10px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

article:hover .article-content h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary);
}

@media screen and (max-width: 600px) {
    #services {
        padding-bottom: 100px;
    }
    article {
        text-align: center;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        min-height: 120px;
        height: 120px;
        overflow: visible;
    }
    .article:hover {
        box-shadow: none;
    }
    article .article-content {
        height: 100%;
        overflow: visible;
    }
    .article-content .icon svg {
        width: 15px;
    }
    #services #competences article h4 {
        position: relative;
    }
    #services #competences article h4:after {
        content: attr(data-content);
        position: absolute;
        top: -50%;
        left: 0;
        background-color: var(--background-primary);
        color: var(--text-dark);
        width: 100%;
        padding: 8px;
        font-size: 12px;
        text-align: center;
        border-radius: 5px;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        z-index: 2;
    }
    #services #competences article:hover .article-content h4:after {
        color: var(--text-dark);
    }
    #services #competences article:hover h4:after {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    article .article-content .icon {
        font-size: 20px;
        width: 30px;
        height: 30px;
        margin: 0 auto;
    }
    article .article-content h4 {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 10px;
    }
    article:hover .article-content h4 {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 10px;
    }
}


/********************************/


/* TODO    CV 

/********************************/

#show-cv-btn {
    padding: 10px 20px;
    background-color: var(--background-secondary);
    color: var(--text-light);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.5s ease;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 800;
    border: solid 3px var(--background-secondary);
}

#show-cv-btn:hover {
    background-color: var(--text-light);
    color: var(--text-ilight);
    border: solid 3px var(--text-ilight);
}

#mon-cv {
    width: 600px;
    /* Largeur fixe du CV */
    max-height: 0;
    /* Par défaut, l'élément est caché */
    overflow: hidden;
    /* Empêche tout débordement lors du repli */
    visibility: hidden;
    /* L'élément n'est pas visible par défaut */
    opacity: 0;
    /* L'élément est invisible par défaut */
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    /* Transition de déroulé */
}

#mon-cv.visible {
    max-height: 1000px;
    /* Hauteur maximale du CV, ajustez selon le contenu */
    visibility: visible;
    /* Rendre l'élément visible */
    opacity: 1;
    /* Rendre l'élément opaque */
}

#mon-cv.visible img {
    width: 70%;
    margin: 0 auto;
}

#pdf_download {
    padding: 10px;
    background-color: var(--secondary);
    border-radius: 5px;
    color: var(--text-light);
    transition: all 0.5s ease-in-out;
}

#pdf_download:hover {
    padding: 16px;
    background-color: var(--background-three);
}

#langage-row,
#soft-row {
    margin-top: 10px;
}

#langages,
#logiciel {
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.CV-langages,
.CV-soft {
    position: relative;
    width: 200px;
    height: 200px;
    perspective: 1000px;
    background-color: var(--background-primary);
}

.CV-soft>div,
.CV-langages>div {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
    cursor: pointer;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateY(0deg);
}

.icon-box .icon {
    width: 80px;
    max-width: 100%;
}

.back-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateY(180deg);
    flex-direction: column;
    text-align: center;
    padding: 10px;
}

.back-icon h4 {
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-dark);
}

.back-icon .level {
    display: flex;
    align-items: center;
}

.back-icon .svg-container {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.back-icon .svg-container img {
    width: 20px;
    height: 20px;
    margin: 3px;
}

.CV-langages:hover .icon-box,
.CV-soft:hover .icon-box {
    transform: rotateY(-180deg);
}

.CV-langages:hover .back-icon,
.CV-soft:hover .back-icon {
    transform: rotateY(0deg);
}


/* ----- Responsive ----- */
@media screen and (max-width: 768px) {
    .CV-langages,
    .CV-soft {
        width: 150px;
        height: 150px;
    }
    .icon-box .icon {
        width: 60px;
    }
    .back-icon h4 {
        font-size: 1em;
    }
    .back-icon .svg-container img {
        width: 16px;
        height: 16px;
        margin: 2px;
    }
}

@media screen and (max-width: 480px) {
    .CV-langages,
    .CV-soft {
        width: 120px;
        height: 120px;
    }
    .icon-box .icon {
        width: 50px;
    }
    .back-icon h4 {
        font-size: 0.9em;
    }
    .back-icon {
        padding: 5px;
    }
    .back-icon .svg-container img {
        width: 14px;
        height: 14px;
    }
}


/********************************/


/* TODO    XP

/********************************/


/* Conteneur principal */
:root {
    --exp-gutter: 16px;
}

#exp-container {
    position: relative; 
}

#exp-container > article {
    box-sizing: border-box;
    position: absolute; 
    width: calc(33.333% - var(--exp-gutter));
    margin: calc(var(--exp-gutter) / 2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
    background-color: var(--background-primary);
    min-height: 250px;
    height: 250px;
}

/* Hover */
#exp-container > article:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, .2);
    background-color: var(--background-primary);
}

/* Contenu interne */
#exp-container > article .box {
    padding: 1.5em;
    background-color: var(--background-primary);
}

#exp-container > article .pointer {
    cursor: pointer;
}

#exp-container > article .box span {
    display: flex;
    align-items: center;
    font-size: 1.6em;
    font-weight: 700;
    color: var(--text-ilight-secondary);
    margin-bottom: .5em;
    text-align: start;
}

#exp-container > article .box span svg {
    width: 25px;
    height: 25px;
    margin-right: .5em;
}

#exp-container > article .box h4 {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: .5em;
    text-align: start;
}

#exp-container > article .box p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-dark);
    letter-spacing: .8;
    margin: 0;
    text-align: start;
}

#exp-container > article:hover .box span {
    color: var(--text-ilight);
}

/* Filtres */
#exp #filter-container {
    margin: 20px auto;
}

#exp #filter-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#exp #filter-container ul li {
    padding: 10px 20px;
    background-color: var(--background-primary);
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease-in-out;
}

#exp #filter-container ul li:first-child {
    border-radius: 5px 0 0 5px;
}

#exp #filter-container ul li #filter-autre {
    border-radius: 0 5px 5px 0;
}

#exp #filter-container ul li:hover {
    background-color: var(--background-three);
    color: var(--text-ilight);
}

#exp #filter-container ul li.active {
    background-color: var(--background-three);
    color: var(--text-ilight);
    font-weight: 700;
}

/* ===== Responsive ===== */
/* 2 colonnes */
@media (max-width: 1024px) {
    #exp-container > article {
        width: calc(50% - var(--exp-gutter));
        height: auto;
        min-height: 190px;
    }
    #exp #filter-container ul li:first-child {
    border-radius: 0px;
    }

    #exp #filter-container ul li #filter-autre {
        border-radius: 0px ;
    }
}

/* 1 colonne */
@media (max-width: 560px) {
    :root {
        --exp-gutter: 12px;
    }

    #exp-container > article {
        width: calc(100% - var(--exp-gutter));
        height: auto;
        min-height: 170px;
    }
}
