
/* ============================================================
   SECTION HOME
   ============================================================ */
.home {
    display: flex;
    flex-direction: column;
    padding: 10rem 5%;
}

.home-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.home-content {
    flex: 1;
}

.home-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.home-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.home-img {
    flex-shrink: 0;
}

.home-img img {
    border-radius: 50%;
    width: 32vw;
    max-width: 300px;
    min-width: 200px;
    height: 32vw;
    max-height: 300px;
    min-height: 200px;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    object-fit: cover;
    object-position: 50% 10%;
}

.home-img .photo_color {
    display: none;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
    transform: scale(1.05);
}

/* ============================================================
   ICONES SOCIALES
   ============================================================ */
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: all 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--bg-nextjs);
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}

   /* ============================================================
   STACKS & TECHNOLOGIES
   ============================================================ */
.stacks {
    text-align: center;
}

.stacks h3 {
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.stacks-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 90px;
}

.stack-item img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.stack-item span {
    font-size: 1.4rem;
    font-weight: 500;
}

.stack-item:hover img {
    transform: scale(1.2) translateY(-5px);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Desktop large */
@media (min-width: 1285px) {
    .home{
        padding: 15rem;
    }
}

/* Tablettes et petits desktops */
@media (max-width: 1024px) {
  
}

/* Tablettes */
@media (max-width: 895px) {
    html {
        font-size: 65%;
    }
    
    .home {
        padding-top: 12rem;
    }
    
    .home-top {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }
    
    .home-content h1 {
        font-size: 4.5rem;
    }
    
    .home-content h3 {
        font-size: 2.2rem;
    }
    
    .home-content p {
        max-width: 100%;
        margin: 0 auto 1.5rem;
    }

      .home-img img {
        width: 250px;
        height: 250px;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Très petits écrans */
@media (max-width: 400px) {
    .home-content h1 {
        font-size: 3rem;
    }

     .social-icons a {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
        margin: 2rem 1rem 2rem 0;
    }
}