/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/

#hero {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

#hero #container {
    margin-bottom: 10px;
}

#hero .plus {
    color: var(--text-ilight);
    font-size: xx-large;
    font-weight: bold;
}

#hero {
    width: 100%;
    height: calc(100vh - 107px);
    background: url("/Portfolio/assets/media/img/hero-bg.jpeg") top center;
    background-size: cover;
    position: relative;
}

#hero:before {
    content: "";
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}

#hero h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
}

#hero h2 {
    color: #eee;
    margin-bottom: 32px;
    font-size: 24px;
    width: 75%;
}

#hero .btn-get-started {
    font-family: "Raleway", sans-serif;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 10px 28px;
    transition: 0.5s;
    border: 2px solid #fff;
    color: #fff;
}

#hero .btn-get-started:hover {
    background: var(--background-three);
    border-color: var(--background-three);
}

#hero.btn-get-started:active {
    background: var(--background-three);
    border-color: var(--background-three);
    transform: translateY(2px);
}

@media (min-width: 1024px) {
    #hero {
        background-attachment: fixed;
    }
}

@media (max-width: 768px) {
    #hero {
        text-align: center;
    }
    #hero .container {
        padding-top: 40px;
    }
    #hero h1 {
        font-size: 28px;
        line-height: 36px;
        text-align: center;
    }
    #hero h2 {
        font-size: 18px;
        line-height: 24px;
        margin: 30px auto;
    }
    #hero .plus {
        font-size: larger;
        /* Ajustement de la taille de la police pour les écrans plus petits */
    }
}


/*--------------------------------------------------------------
                            About Section
        --------------------------------------------------------------*/

.about .container i {
    font-size: 1.2rem;
    color: var(--text-ilight-secondary);
}

.about .container #FAQ {
    text-align: start;
}

.about .container #FAQ>div {
    margin: 0 auto;
    margin-bottom: 10px;
}

.about .container #FAQ p {
    margin: 0px;
    margin-bottom: 10px;
    font-size: .9rem;
}

.about .container #FAQ h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    transition: all 0.5s ease-in-out;
    font-weight: bolder;
}

.about:hover .container #FAQ h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: bolder;
    transition: all 0.5s ease-in-out;
}

.about .container #FAQ span {
    font-size: 1.5rem;
    color: var(--text-ilight);
    font-weight: bolder;
}

.about #photo {
    width: 400px;
    height: 400px;
    background-image: url("/Portfolio/assets/media/img/sasha-daza.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease-in-out, background-image 0.5s ease-in-out;
    transform-style: preserve-3d;
    transform-origin: center;
}

.about:hover #photo {
    background-image: url("/Portfolio/assets/media/img/sasha-pro.jpg");
    transform: rotateY(180deg);
}

@media (max-width: 768px) {
    .about #photo {
        height: 100vw;
        width: 100%;
        max-height: 400px;
    }
}


/*--------------------------------------------------------------
                            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;
}

#hobbies #hobbies-grid article h4::after {
    content: attr(data-hobbies);
    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(--text-light);
}


/* ====== RESPONSIVE DESIGN ====== */

@media (max-width: 1024px) {
    #hobbies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #hobbies-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@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;
    }
    article h4 {
        position: relative;
    }
    #hobbies #hobbies-grid article h4:after {
        content: attr(data-hobbies);
        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;
    }
    #hobbies #hobbies-grid article:hover .article-content h4:after {
        color: var(--text-dark);
    }
    #hobbies #hobbies-grid article:hover h4:after {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    #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;
    }
}