/* Mobile first - Structure simple et efficace */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.profile-header {
    position: relative;
    margin-bottom: 2rem;
}

.profile-banner {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.profile-banner img {
    width: 100%;
    height: 315px;
    display: block;
    object-fit: cover;
}

.profile-avatar {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%); /* Centre horizontalement et descend de 50% */
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-color);
    background: var(--bg-color);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-info {
    text-align: center;
    margin-top: 3.5rem; /* Augmenté pour laisser de l'espace à l'avatar */
}

.profile-info h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

/* Tablet */
@media (width >= 768px) {
    .profile-avatar {
        width: 150px;
        height: 150px;
        border-width: 6px;
    }

    .profile-info {
        margin-top: 4.5rem; /* Plus d'espace pour l'avatar plus grand */
    }

    .profile-info h1 {
        font-size: 2.5rem;
    }
}

/* Desktop */
@media (width >= 1024px) {
    .profile-avatar {
        width: 180px;
        height: 180px;
        border-width: 8px;
    }

    .profile-info {
        margin-top: 5rem; /* Encore plus d'espace pour le grand avatar */
    }

    .profile-info h1 {
        font-size: 3rem;
    }
}
