/* Impré'son — Page « Mon profil » (espace pro). Cartes « façons de commander » : site.css */
.profil-page { max-width: 980px; margin: 2rem auto 3rem; padding: 2rem; background: #ffffff; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    /* Fiche lue après l'affichage (GET /centre/moi) : hauteur réservée pour que le pied de page
       ne soit pas repoussé à l'arrivée du contenu (CLS) */
    min-height: min(calc(100vh - 6rem), 48rem); }
.profil-entete { text-align: center; margin-bottom: 1.5rem; }
.profil-entete h1 { margin: 0.5rem 0 0.3rem; font-size: 2rem; font-weight: 800; color: var(--bleu-fonce); }
.profil-entete p { margin: 0; color: var(--texte-discret); }
.profil-message { margin: 0 auto 1.25rem; max-width: 640px; text-align: center; font-size: 0.92rem; color: var(--texte-discret); line-height: 1.55; }
.profil-message[hidden] { display: none; }
.profil-message.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 10px; padding: 0.8rem 1rem; }
.profil-message.erreur { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 10px; padding: 0.8rem 1rem; }
.profil-message a { color: inherit; font-weight: 700; }
.profil-bloc { border-top: 1px solid var(--bordure-subtile); padding-top: 1.5rem; margin-top: 1.5rem; }
.profil-bloc[hidden] { display: none; }
.profil-bloc h2 { margin: 0 0 0.3rem; font-size: 1.2rem; color: var(--bleu-fonce); }
.profil-aide { margin: 0 0 1rem; font-size: 0.88rem; color: var(--texte-discret); }
.profil-aide a { color: var(--orange-action); font-weight: 700; }
.profil-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.1rem; }
.btn-profil { font: inherit; font-weight: 800; font-size: 0.95rem; color: #ffffff; background: var(--orange-action); border: none;
    border-radius: 10px; padding: 0.75rem 1.5rem; cursor: pointer; }
.btn-profil:disabled { opacity: 0.6; cursor: wait; }
.profil-statut { font-size: 0.88rem; color: var(--texte-discret); }
.profil-statut.ok { color: #166534; }
.profil-statut.ok a { color: var(--orange-action); font-weight: 700; }
.profil-statut.erreur { color: #991b1b; font-weight: 600; }
.profil-infos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem 1.5rem; margin: 0.9rem 0 1rem; }
.profil-infos div { min-width: 0; }
.profil-infos dt { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--texte-discret); }
.profil-infos dd { margin: 0.15rem 0 0; color: var(--bleu-fonce); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 720px) {
    .profil-page { margin: 1rem 0.75rem 6rem; padding: 1.25rem 1rem; }
    .profil-entete h1 { font-size: 1.6rem; }
    .profil-infos { grid-template-columns: 1fr; }
}
.badge-etape { display: inline-flex; align-items: center; background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }

/* Affichage clair / sombre / automatique */
.theme-choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.theme-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; text-align: center;
    padding: 0.9rem 0.75rem; border: 1.5px solid var(--bordure-subtile); border-radius: 12px; background: #ffffff; cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.theme-option:hover { border-color: var(--orange-impres); }
.theme-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.theme-option:has(input:checked) { border-color: var(--orange-action); box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.18); background: #fff7ed; }
.theme-option:has(input:focus-visible) { outline: 3px solid var(--orange-impres); outline-offset: 2px; }
.theme-ico { font-size: 1.5rem; line-height: 1.2; }
.theme-option strong { color: var(--bleu-fonce); font-size: 0.98rem; }
.theme-sous { font-size: 0.8rem; color: var(--texte-discret); line-height: 1.35; }
#statut-theme { margin: 0.75rem 0 0; min-height: 1.2em; }
@media (max-width: 520px) {
    .theme-choix { grid-template-columns: 1fr; }
    .theme-option { flex-direction: row; justify-content: flex-start; text-align: left; gap: 0.65rem; padding: 0.75rem 0.9rem; }
    .theme-sous { margin-left: auto; text-align: right; }
}
