/* --- 1. Le fond de page qui centre tout --- */
body {
    margin: 0;
    padding: 0;
    background-color: #f3f4f6;
    font-family: 'Quicksand', sans-serif;
    min-height: 100vh; 
    display: flex; /* La méthode la plus fiable pour centrer */
    justify-content: center; /* Centre à l'horizontale */
    align-items: center; /* Centre à la verticale */
}

/* --- 2. Le conteneur de la carte --- */
.page-profil-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: apparitionDouce 0.5s ease-out;
}

/* --- 3. Le bouton cloué en haut à gauche --- */
.bouton-retour {
    position: fixed; /* Magique : le bouton sort du flux normal de la page */
    top: 30px;
    left: 30px;
    text-decoration: none;
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    z-index: 100; /* S'assure qu'il passe au-dessus de tout le reste */
}

.bouton-retour:hover {
    color: #374151;
    background-color: #e5e7eb;
    transform: translateX(-5px);
}

@keyframes apparitionDouce {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 2. La carte de profil principale --- */
.carte-profil {
    background-color: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* --- 3. L'en-tête et l'avatar --- */
.avatar-cercle {
    width: 90px;
    height: 90px;
    background-color: #f3f4f6;
    color: #6b7280;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 auto 15px auto;
}

.nom-praticien {
    color: #1f2937;
    margin: 0 0 5px 0;
    font-size: 1.5rem;
}

.specialite-badge {
    display: inline-block;
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* --- 4. Le séparateur et les détails --- */
.separateur-doux {
    border: 0;
    height: 1px;
    background-color: #f3f4f6;
    margin: 20px 0;
}

.profil-details {
    text-align: left;
    margin-bottom: 30px;
}

.info-groupe {
    margin-bottom: 15px;
}

.info-groupe label {
    font-size: 0.8rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-groupe p {
    margin: 4px 0 0 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
}

/* --- 5. Le bouton d'action --- */
.btn-modifier {
    font-family: 'Quicksand', sans-serif;
    background-color: #f9fafb;
    color: #374151;
    border: 1px solid #e5e7eb;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-modifier:hover {
    background-color: #e5e7eb;
}

/* --- ADAPTATION MOBILE (Écrans < 768px) --- */
@media (max-width: 768px) {
    .bouton-retour {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .carte-profil, .carte-reglages {
        width: 90%;
        padding: 20px;
    }
}