.compte-profil {
    --compte-bleu: #082d57;
    --compte-gris: #506883;
    --compte-bordure: #dce6f1;
    max-width: 1080px;
    margin: 16px auto 24px;
    color: var(--compte-bleu);
}
.compte-profil :is(a, button):focus-visible { outline: 2px solid #0b5b93; outline-offset: 3px; }
.compte-entete {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: clamp(16px, 3vw, 26px);
    border: 1px solid var(--compte-bordure);
    border-top: 4px solid #ff7900;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 15px #0a315310;
}
.compte-avatar { flex: 0 0 88px; border-radius: 50%; }
.compte-avatar img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: inherit;
    border: 2px solid var(--compte-bordure);
    box-sizing: border-box;
    background: #edf4fb;
}
.compte-identite { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.compte-profil h2 { margin: 0 0 12px; color: var(--compte-bleu); font-size: 1.15rem; }
.compte-identite h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.compte-identite p { margin: 4px 0 0; color: var(--compte-gris); }
.compte-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.compte-profil .compte-bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    box-sizing: border-box;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.compte-profil .compte-bouton-principal { color: #17283c; background: #ff8a26; }
.compte-profil .compte-bouton-principal:hover { background: #ff9a45; }
.compte-profil .compte-bouton-secondaire { color: var(--compte-bleu); border-color: var(--compte-bordure); background: #fff; }
.compte-profil .compte-bouton-secondaire:hover { background: #edf4fb; }
.compte-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.compte-carte {
    padding: clamp(14px, 2vw, 20px);
    border: 1px solid var(--compte-bordure);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 15px #0a315310;
    overflow-wrap: anywhere;
}
.compte-donnees { margin: 0; }
.compte-donnees div { display: grid; grid-template-columns: minmax(85px, 30%) 1fr; gap: 8px; padding: 8px 0; }
.compte-donnees div + div { border-top: 1px solid var(--compte-bordure); }
.compte-donnees dt, .compte-discret { color: var(--compte-gris); }
.compte-donnees dd, .compte-stats dd { margin: 0; font-weight: 700; }
.compte-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.compte-stats div { border-radius: 8px; background: #f0f5fb; padding: 10px 12px; }
.compte-stats dt { color: var(--compte-gris); font-size: .9rem; }
.compte-stats dd { font-size: 1.55rem; }
.compte-stats small { color: var(--compte-gris); font-size: .9rem; }
.compte-statut { display: inline-block; padding: 4px 9px; border-radius: 20px; background: #e8f5eb; color: #21603b; font-weight: 700; }
.compte-packs { padding-left: 20px; }
.compte-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.compte-suppression { padding: 4px 0; border: 0; background: transparent; color: #9d2626; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 740px) {
    .compte-grille { grid-template-columns: 1fr; }
    .compte-entete { flex-wrap: wrap; }
    .compte-actions { flex-basis: 100%; }
    .compte-avatar { flex-basis: 64px; }
    .compte-avatar img { width: 64px; height: 64px; }
}

.compte-profil.compte-formulaire {
    width: 100%;
    max-width: 1080px;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
:is(#profil-form, #annonce-form).compte-formulaire .section {
    margin: 0 0 14px;
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid var(--compte-bordure);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 15px #0a315310;
}
:is(#profil-form, #annonce-form).compte-formulaire .section:first-of-type { border-top: 4px solid #ff7900; }
:is(#profil-form, #annonce-form).compte-formulaire h2 {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--compte-bordure);
}
.compte-formulaire .profil-photo-slot,
.compte-formulaire .profil-photo-slot label,
.compte-formulaire .profil-photo-slot img { width: 110px; height: 110px; }
.compte-formulaire .profil-photo-slot { overflow: visible; }
.compte-formulaire .profil-photo-slot img {
    border: 2px solid var(--compte-bordure);
    border-radius: 50%;
    box-sizing: border-box;
}
.compte-formulaire .profil-photo-slot:focus-within img { outline: 2px solid #0b5b93; outline-offset: 3px; }
.compte-formulaire .compte-photo-fichier { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; clip-path: inset(50%); }
.compte-formulaire .profil-photo-help { color: var(--compte-gris); max-width: 48ch; }
.compte-formulaire #type-compte-section > label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    margin: 0 8px 8px 0;
    border: 1px solid var(--compte-bordure);
    border-radius: 8px;
    cursor: pointer;
}
.compte-formulaire #type-compte-section > label:has(input:checked) { background: #edf4fb; border-color: #91aecb; }
.compte-formulaire input[type="radio"] { accent-color: var(--compte-bleu); }
.compte-profil.compte-formulaire :is(input:not([type]), input[type="text"], input[type="tel"], input[type="email"], input[type="password"], select, textarea) {
    border-color: #b7c8da;
    border-radius: 8px;
    color: var(--compte-bleu);
}
.compte-profil.compte-formulaire :is(input, select, textarea):focus-visible { outline: 2px solid #0b5b93; outline-offset: 2px; }
.compte-profil.compte-formulaire textarea { min-height: 100px; max-width: 100%; box-sizing: border-box; resize: vertical; }
.compte-profil.compte-formulaire #actions-profil { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
@media (max-width: 640px) {
    .compte-profil.compte-formulaire .grille-coordonnees { grid-template-columns: minmax(0, 1fr); }
    .compte-profil.compte-formulaire #actions-profil > * { flex: 1 1 100%; }
}

.compte-formulaire-annonce .annonce-photos-miniatures .annonce-photo-slot img { border-radius: 8px; }
.compte-formulaire-annonce .annonce-validation-summary { border-radius: 8px; margin-bottom: 14px; }
#annonce-form.compte-formulaire-annonce .annonce-photos-miniatures { flex-wrap: wrap; }
.compte-annonce-message { width: min(100%, 680px); box-sizing: border-box; border-top: 4px solid #ff7900; }
.compte-annonce-message p { color: var(--compte-gris); margin: 0 0 16px; }
.compte-annonce-succes { border-top-color: #21603b; }
.compte-annonce-suppression { justify-content: flex-end; }
