/* ====== Base ====== */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f5f5;
    color: #111;
    margin: 0;
    padding: 0;
}

/* ====== Conteneur principal ====== */
.container-espace-client {
    max-width: 600px;
    margin: 3rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ====== Titres ====== */
.container-espace-client h2 {
    color: #ff3b3b;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: bold;
}

/* ====== Labels ====== */
.container-espace-client label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: #333;
}

/* ====== Champs de texte ====== */
.container-espace-client input,
.container-espace-client textarea,
.container-espace-client select {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.container-espace-client input:focus,
.container-espace-client textarea:focus,
.container-espace-client select:focus {
    border-color: #ff3b3b;
    box-shadow: 0 0 6px rgba(255,59,59,0.4);
    outline: none;
}

/* ====== Boutons ====== */
.container-espace-client button,
.btn-link {
    display: inline-block;
    margin-top: 1.5rem;
    background: #ff6600;
    color: #fff;
    border: none;
    padding: 0.9rem 1.4rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.container-espace-client button:hover,
.btn-link:hover {
    background: #111;
    transform: translateY(-2px);
}

/* Bouton secondaire (liens retour, navigation) */
.btn-link {
    background: #444;
    margin-top: 1rem;
    width: auto;
    padding: 0.7rem 1.2rem;
}

/* ====== Messages ====== */
.message-error {
    color: #d9534f;
    font-weight: bold;
    margin-top: 1rem;
    text-align: center;
}

.message-success {
    color: #28a745;
    font-weight: bold;
    margin-top: 1rem;
    text-align: center;
}

/* ====== Tableau profil ====== */
.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.profile-table th {
    text-align: left;
    padding: 0.8rem;
    background: #f0f0f0;
    width: 40%;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.profile-table td {
    padding: 0.8rem;
    border-bottom: 1px solid #ddd;
    color: #111;
}

/* ====== Responsive ====== */
@media (max-width: 600px) {
    .container-espace-client {
        margin: 1rem;
        padding: 1.5rem;
    }
    .profile-table th,
    .profile-table td {
        display: block;
        width: 100%;
    }
    .profile-table tr {
        margin-bottom: 1rem;
        display: block;
    }
}
