@import 'css/main.css';

/* -------------------------------------- */
/* Profile */
/* -------------------------------------- */

.infos {
    display: flex;
    flex-direction: column;
    grid-column: 1 / 3;
    padding-right: 25px;
    cursor: context-menu;
}

.pp {
    height: 100%;
    max-height: 444px;
    background-color: transparent;
}

.pp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.paragraphe {
    /* sinon le paragraphe dépasse légèrement de la largeur de la colonne de la grille
    quand on arrive proche du breakpoint mobile */
    width: 100%;
}

/* -------------------------------------- */
/* Inspirations */
/* -------------------------------------- */

.inspi {
    overflow: hidden;
    position: relative;
}

.inspirations-grid img {
    width: 100%;
    height: 100%;
    /* max-height: 200px; */
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.35s;
}

.hover-inspi1,
.hover-inspi2,
.hover-inspi3,
.hover-inspi4,
.hover-inspi5,
.hover-inspi6 {
    opacity: 0;
}

.inspi1:hover .hover-inspi1,
.inspi2:hover .hover-inspi2,
.inspi3:hover .hover-inspi3,
.inspi4:hover .hover-inspi4,
.inspi5:hover .hover-inspi5,
.inspi6:hover .hover-inspi6 {
    opacity: 1;
}

.inspi1:hover .inspi1bis,
.inspi2:hover .inspi2bis,
.inspi3:hover .inspi3bis,
.inspi4:hover .inspi4bis,
.inspi5:hover .inspi5bis,
.inspi6:hover .inspi6bis {
    opacity: 0;
}

/* -------------------------------------- */
/* Skills */
/* -------------------------------------- */

.skills-grid ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* ------------------TOOLS-------------------- */

.tool {
    height: 35px;
    width: fit-content;
    margin-right: 6px;
}

.box6 img {
    height: 100%;
    width: auto;
}

.line1,
.line2 {
    display: flex;
    margin-bottom: 6px;
}

.imageOff,
#tool1:hover .imageOn,
#tool2:hover .imageOn,
#tool3:hover .imageOn,
#tool4:hover .imageOn,
#tool5:hover .imageOn,
#tool6:hover .imageOn,
#tool7:hover .imageOn,
#tool8:hover .imageOn,
#tool9:hover .imageOn,
#tool10:hover .imageOn {
    display: none;
}

.imageOn,
#tool1:hover .imageOff,
#tool2:hover .imageOff,
#tool3:hover .imageOff,
#tool4:hover .imageOff,
#tool5:hover .imageOff,
#tool6:hover .imageOff,
#tool7:hover .imageOff,
#tool8:hover .imageOff,
#tool9:hover .imageOff,
#tool10:hover .imageOff {
    display: block;
}

/* -------------------------------------- */
/* Association */
/* -------------------------------------- */

.asso-grid img {
    height: auto;
    width: 100%;
    max-width: 400px;
}

/* -------------------------------------- */
/* Resume */
/* -------------------------------------- */

.resume a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
}

.resume2 {
    display: none;
}

.resume {
    margin-bottom: 40px;
}

/* -------------------------------------- */
/* M E D I A S   Q U E R I E S */
/* -------------------------------------- */

@media (max-width: 768px) {

    .resume1 {
        display: none;
    }

    .resume2 {
        display: block;
    }

    /* Pas de survol pour les images en Tablette et Mobile */
    .inspi1:hover .hover-inspi1,
    .inspi2:hover .hover-inspi2,
    .inspi3:hover .hover-inspi3,
    .inspi4:hover .hover-inspi4,
    .inspi5:hover .hover-inspi5,
    .inspi6:hover .hover-inspi6 {
        opacity: 0;
    }

    .inspi1:hover .inspi1bis,
    .inspi2:hover .inspi2bis,
    .inspi3:hover .inspi3bis,
    .inspi4:hover .inspi4bis,
    .inspi5:hover .inspi5bis,
    .inspi6:hover .inspi6bis {
        opacity: 1;
    }
}

@media (max-width: 450px) {

    .pp {
        height: 350px;
        margin-top: 20px;
    }
}