/* Paramètres : mêmes encarts que les résultats de recherche. */
.account-page { color:#515151; }
.account-shell { width:100%; max-width:675px; margin:0 auto; padding:15px; }
.account-connected .account-shell { padding-top:0; }
.account-connected .account-content { margin-left:48px; }
.account-title { color:#62809B; font-size:22px; font-weight:600; margin:6px 0 18px; }
.account-page .account-card { width:100%; border-radius:10px; }
.account-section { margin:0; min-width:0; }
.account-section-title { color:#62809B; font-size:15px; font-weight:600; margin:0; padding:0 0 8px; border-bottom:1px solid #ddd; }
.account-photo-row { display:flex; flex-direction:column; align-items:center; gap:8px; margin:4px 0 24px; }
.account-import { position:relative; display:block; border:0; padding:0; margin:0; background:transparent; border-radius:50%; cursor:pointer; width:104px; height:104px; }
.account-photo { display:grid; place-items:center; position:relative; overflow:hidden; background:#e3ebf2; color:#62809B; width:100%; height:100%; border-radius:50%; font-size:30px; font-weight:600; }
.account-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:50%; }
.account-edit-icon { position:absolute; right:0; bottom:0; width:30px; height:30px; display:grid; place-items:center; border:2px solid #f5f5f5; border-radius:50%; background:#62809B; }
.account-edit-icon img { width:17px; height:17px; display:block; filter:brightness(0) invert(1); }
.account-import:focus-visible { outline:2px solid #62809B; outline-offset:3px; }
.account-input { display:block; width:100%; min-width:0; min-height:44px; margin:0; padding:10px 0 5px; border:0; border-radius:0; outline:none; box-shadow:none; background:transparent; color:#515151; font:16px Arial,sans-serif; }
.account-input:focus { border:0; outline:none; box-shadow:none; }
.account-input::placeholder { color:#999; }
#account-photo-status,#account-pseudo-status { color:#b22; font-size:13px; margin:8px 0 0; overflow-wrap:anywhere; }
.account-preview-note,.account-login-note { color:#888; font-size:13px; line-height:1.5; margin:12px 0; }
.account-preview-note { margin-bottom:0; }
.account-login-note a { color:#62809B; }

.account-genre { border:0; padding:0; margin:18px 0 0; min-inline-size:0; }
.account-genre legend { width:100%; box-sizing:border-box; }
.account-choice-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; }
.account-choice { position:relative; display:inline-flex; flex:0 0 auto; width:auto; margin:0; cursor:pointer; }
.account-choice input { position:absolute; width:1px; height:1px; opacity:0; }
.account-choice span { display:inline-flex; align-items:center; justify-content:center; min-height:26px; padding:3px 4px; box-sizing:border-box; border:1px solid transparent; border-radius:5px; background:#e8e8e8; color:#666; font-size:14px; font-weight:500; line-height:18px; white-space:nowrap; text-align:center; transition:background-color .15s,color .15s,border-color .15s; }
.account-choice input:checked + span { background:#617789; border-color:#617789; color:#fff; }
.account-choice input:focus-visible + span { outline:2px solid #62809B; outline-offset:2px; }
#account-genre-status { color:#b22; font-size:13px; margin:8px 0 0; overflow-wrap:anywhere; }

.account-birthday { margin-top:27px; }
#account-birthday-status { color:#b22; font-size:13px; margin:8px 0 0; overflow-wrap:anywhere; }

.account-location { margin-top:20px; }
.account-country-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:8px; min-height:44px; padding:8px 0 0; }
.account-country-value { display:inline-flex; align-items:center; min-height:26px; max-width:100%; padding:3px 4px; box-sizing:border-box; border:1px solid transparent; border-radius:5px; background:#e8e8e8; color:#666; font:500 14px/18px Arial,sans-serif; overflow-wrap:anywhere; min-width:0; }
.account-country-value:not([data-country=""]) { background:#617789; border-color:#617789; color:#fff; }
.account-small-button { flex:0 0 auto; min-height:26px; padding:3px 4px; box-sizing:border-box; border:1px solid transparent; border-radius:5px; background:#e8e8e8; color:#666; font:500 14px/18px Arial,sans-serif; cursor:pointer; }
.account-small-button:disabled { opacity:.65; cursor:wait; }
.account-small-button:focus-visible { outline:2px solid #62809B; outline-offset:2px; }
.account-field-status { color:#b22; font-size:13px; margin:8px 0 0; overflow-wrap:anywhere; }
.account-page [hidden] { display:none !important; }

.account-country-value { gap:3px; }
.account-country-pin { display:block; flex:0 0 15px; width:15px; height:15px; filter:brightness(0) invert(1); }

.account-preference, .account-children { margin-top:27px; }

.account-age-range { margin-top:27px; }

.account-age-row { display:flex; align-items:center; justify-content:flex-start; gap:4px; min-height:44px; font:16px Arial,sans-serif; color:#515151; }
.account-age-row .account-age-input { flex:0 0 auto; width:2.5ch; min-width:0; padding:0; min-height:44px; text-align:left; }

.account-wanted-countries { margin-top:27px; }
.account-country-suggestions { max-height:220px; overflow:auto; border:1px solid #ddd; border-radius:8px; background:#fff; }
.account-country-suggestion { display:block; padding:9px 10px; color:#515151; cursor:pointer; font:14px/20px Arial,sans-serif; overflow-wrap:anywhere; }
.account-country-suggestion + .account-country-suggestion { border-top:1px solid #eee; }
.account-country-suggestion:hover,.account-country-suggestion[aria-selected="true"] { background:#e8edf1; }
.account-country-selected { margin-top:4px; gap:8px; }
.account-country-selected:empty { display:none; }
.account-country-chip { display:inline-flex; align-items:center; gap:5px; min-height:26px; max-width:100%; padding:3px 4px; box-sizing:border-box; border:1px solid #617789; border-radius:5px; background:#617789; color:#fff; font:500 14px/18px Arial,sans-serif; cursor:pointer; text-align:left; }
.account-country-chip span { min-width:0; overflow-wrap:anywhere; }
.account-country-chip img { width:13px; height:13px; flex:0 0 13px; filter:brightness(0) invert(1); }
.account-country-chip:focus-visible { outline:2px solid #62809B; outline-offset:2px; }

.account-country-world { cursor:default; }

.account-distance { margin-top:27px; }
.account-age-row .account-distance-input { flex:0 0 auto; width:4.5ch; padding:0; min-height:44px; text-align:left; }

.account-gallery { position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0; padding:54px 0 max(18px,env(safe-area-inset-bottom)); box-sizing:border-box; border:0; background:#000; color:#fff; }
.account-gallery[open] { display:flex; flex-direction:column; align-items:center; }
.account-gallery::backdrop { background:#000; }
html:has(.account-gallery[open]) { overflow:hidden; }
.account-gallery-close,.account-gallery-nav { border:0; background:transparent; color:#fff; width:44px; height:44px; display:grid; place-items:center; cursor:pointer; flex-shrink:0; }
.account-gallery-close { position:absolute; top:max(8px,env(safe-area-inset-top)); right:8px; }
.account-gallery-close img,.account-gallery-nav img { width:27px; height:27px; filter:brightness(0) invert(1); }
.account-gallery-count { margin:0 0 10px; font:14px Arial,sans-serif; color:#ddd; }
.account-gallery-stage { display:grid; grid-template-columns:44px minmax(0,640px) 44px; align-items:center; justify-content:center; width:100%; min-height:0; flex:1; }
.account-gallery-image { grid-column:2; grid-row:1; display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
#account-gallery-prev { grid-column:1;grid-row:1; }
#account-gallery-next { grid-column:3;grid-row:1; }
.account-gallery-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; padding:14px 12px 0; }
.account-gallery-actions button { border:0; border-radius:6px; background:#617789; color:white; padding:9px 13px; font:14px Arial,sans-serif; cursor:pointer; }
.account-gallery-actions #account-gallery-delete { background:#333; }
.account-gallery button:disabled { opacity:.5; cursor:wait; }
#account-gallery-status { color:#ff9393; font:14px Arial,sans-serif; padding:0 12px; text-align:center; }

/* La place réservée permet de faire défiler les derniers champs et suggestions. */
.account-page .account-shell { padding-bottom:calc(115px + env(safe-area-inset-bottom, 0px)); }
.account-save-bar { position:fixed; left:50%; bottom:calc(10px + env(safe-area-inset-bottom, 0px)); transform:translateX(-50%); width:100%; max-width:675px; padding:0 15px; box-sizing:border-box; z-index:30; pointer-events:none; }
.account-connected .account-save-bar { padding-left:63px; }
.account-save-button { pointer-events:auto; display:block; width:100%; min-height:42px; border:0; border-radius:6px; padding:10px 15px; color:#fff; background:#62809B; font:500 15px Arial,sans-serif; cursor:pointer; }
.account-save-button:disabled { opacity:.7; cursor:wait; }
.account-save-button:focus-visible { outline:2px solid #62809B; outline-offset:3px; }
.account-validation-result { background:#f5f5f5; border-radius:10px; padding:12px; margin:12px 0 0; font-size:14px; color:#515151; overflow-wrap:anywhere; }
.account-validation-result.is-error { color:#b22; }

/* L'inscription reprend l'en-tête du journal, sans activer la recherche. */
.account-registration .account-shell { padding-top:0; }
.account-registration .account-content { margin-left:48px; }
.account-registration .account-save-bar { padding-left:63px; }
.account-registration-label { cursor:default; caret-color:transparent; }
.account-registration-close-icon { width:22px; height:22px; display:block; }

.account-delete-section { margin-top:27px; }
.account-delete-question { margin:12px 0 4px; font:14px/1.45 Arial,sans-serif; color:#515151; }

/* Sur mobile, le bloc et la validation utilisent les deux marges de l’en-tête. */
@media (max-width: 767px) {
    .account-page .account-content { margin-left:0; }
    .account-page .account-save-bar { padding-left:15px; padding-right:15px; }
}
/* Les deux champs d’inscription sont successifs, avec le même rythme que les autres rubriques. */
.account-registration #account-email-title { margin-top:0; }
.account-registration section[aria-labelledby="account-email-title"],
.account-registration section[aria-labelledby="account-password-title"] { margin-bottom:18px; }

/* Avatar sans photo : pictogramme local, sous la photo réelle. */
#account-photo-placeholder { position:absolute; inset:0; display:grid; place-items:center; }
#account-photo-placeholder img { position:static; width:65%; height:65%; object-fit:contain; border-radius:0; }
