.parent {
    margin: 100px auto; /* centre horizontalement */
    width: 80%;

    background: linear-gradient(135deg,#0fef35a6,#0f172a);
    border-radius: 20px;
    padding: 20px;

    min-height: 100vh;
}

.child1 {
    flex: 1;
    background: rgba(213, 215, 216, 0.664);
    padding: 20px;
    border-radius: 15px;
   
    grid-template-columns: repeat(4, 1fr);

        margin-top: 20px;
    display: grid;
   
    gap: 20px;

}

.child2 {
    flex: 1;
  
 
    border-radius: 15px;
    display:block;
    grid-template-columns: repeat(4, 1fr);

        margin-top: 20px;
   
   
    gap: 20px;

}


@media (max-width: 768px) {
    .parent {
        flex-direction: column;
        top: 105%;
        width: 90%;
    }


    .login-btn2 {
        width: 70%;
    }
    .child1 {
        display: block;
      
    }

    .fchild2
    {
        display: initial;
        margin-top: 390px;
    }
}

.profile-upload {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0px auto;
    overflow: hidden;
}

/* Image */
.profile-upload img {
    width: 100%;
    height: 100%;
    
    object-fit: cover;
    cursor: pointer;
    display: block;
    transition: 0.3s;
}

/* 📱 Mobile */
@media (max-width: 576px) {
    .profile-upload {
        width: 80px;
        height: 80px;
    }
}

/* 📱 Tablette */
@media (max-width: 768px) {
    .profile-upload {
        width: 145px;
        height: 145px;
        margin-bottom: 0px;
    }
}

/* 💻 Grand écran */
@media (min-width: 1200px) {
    .profile-upload {
        width: 150px;
        height: 150px;
    }
}




.popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(-20px);
    transition: 0.4s;
    z-index: 9999;
    font-weight: bold;
}

.popup.show {
    opacity: 1;
    transform: translateY(0);
}

.popup.success {
    background: #22c55e;
}

.popup.error {
    background: #ef4444;
}