/**
 * Page « Mon compte » — coquille Liofo V2 (scoped sous .liofo-account-shell uniquement).
 * Thème visuel aligné tableau de bord / cartes sombres Liofo (étape 2D retours utilisateur).
 * SureCart : surcharges prudentes sous `.liofo-account-shell` uniquement.
 */

.liofo-account-shell {
    /* Aligné esprit « dashboard » / popup : surfaces sombres, texte clair (page Mon compte uniquement) */
    --liofo-ac-bg: transparent;
    --liofo-ac-card: rgba(12, 16, 24, 0.78);
    --liofo-ac-card-strong: rgba(12, 16, 24, 0.92);
    --liofo-ac-border: rgba(255, 255, 255, 0.1);
    --liofo-ac-text: #f1f5f9;
    --liofo-ac-muted: #94a3b8;
    --liofo-ac-accent: #2dd4bf;
    --liofo-ac-accent-hover: #5eead4;
    --liofo-ac-accent-soft: rgba(45, 212, 191, 0.14);
    --liofo-ac-radius: 16px;
    --liofo-ac-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    --liofo-ac-surface: rgba(15, 23, 42, 0.55);
    --liofo-ac-table-head: rgba(61, 178, 255, 0.35);

    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.25rem 1rem 2.35rem;
    color: var(--liofo-ac-text);
    font-size: 1rem;
    line-height: 1.55;
    background: var(--liofo-ac-bg);
    border-radius: 0;
}

.liofo-account-shell *,
.liofo-account-shell *::before,
.liofo-account-shell *::after {
    box-sizing: border-box;
}

.liofo-account-shell .liofo-account-section {
    margin-bottom: 1.35rem;
}

/* --- En-tête (même hiérarchie que .liofo-journey-header) --- */
.liofo-account-header {
    margin-bottom: 1.35rem;
}

.liofo-account-header--liofo {
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--liofo-ac-border);
    margin-bottom: 1.5rem;
}

.liofo-account-header .wp-block-heading,
.liofo-account-shell > .wp-block-heading:first-child,
h1.liofo-account-title {
    font-size: clamp(1.45rem, 3.8vw, 2rem);
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin: 0 0 0.45rem;
    color: var(--liofo-ac-text);
}

.liofo-account-lede,
.liofo-account-header .liofo-account-lede {
    margin: 0;
    font-size: 0.95rem;
    color: var(--liofo-ac-muted);
    max-width: 62ch;
    line-height: 1.5;
}

/* --- Cartes génériques (même « grain » que .liofo-journey-card) --- */
.liofo-account-card {
    background: var(--liofo-ac-card);
    border: 1px solid var(--liofo-ac-border);
    border-radius: var(--liofo-ac-radius);
    box-shadow: var(--liofo-ac-shadow);
    padding: 1.1rem 1.2rem;
    margin-bottom: 1rem;
}

.liofo-account-shell .wp-block-group.is-layout-constrained > .liofo-account-card {
    margin-top: 0;
}

.liofo-account-shell .liofo-page-title-head {
  margin-bottom: 0.35rem;
}

.liofo-account-header--liofo {
  padding-bottom: 0;
  border-bottom: 0;
  margin-bottom: 1.25rem;
  text-align: center;
}

.liofo-account-header--liofo .liofo-account-lede {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.liofo-account-card__title {
  position: relative;
  font-size: 1.08rem;
  margin: 0 0 0.55rem;
  padding-left: 0.85rem;
  color: var(--liofo-ac-text);
  letter-spacing: 0.05em;
  text-align: left;
}

.liofo-account-card__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 4px;
  border-radius: 2px;
  background: var(--liofo-ac-card-accent, var(--liofo-ac-accent));
}

.liofo-account-card--summary {
  --liofo-ac-card-accent: #0CC0DF;
}

.liofo-account-card--security {
  --liofo-ac-card-accent: #00BF63;
}

.liofo-account-card--accent-green {
  --liofo-ac-card-accent: #00BF63;
}

.liofo-account-card--accent-gold {
  --liofo-ac-card-accent: #f59e0b;
}

.liofo-account-card--accent-rose {
  --liofo-ac-card-accent: #f43f5e;
}

.liofo-account-card--accent-pink {
  --liofo-ac-card-accent: #FF66C4;
}

.liofo-account-card--accent-blue {
  --liofo-ac-card-accent: #3DB2FF;
}

.liofo-account-card--accent-violet {
  --liofo-ac-card-accent: #8b5cf6;
}

.liofo-account-card--accent-teal {
  --liofo-ac-card-accent: #0CC0DF;
}

.liofo-account-card--accent-green {
  --liofo-ac-card-accent: #00BF63;
}

.liofo-account-section-intro {
    margin: 0 0 0.95rem;
    font-size: 0.9rem;
    color: var(--liofo-ac-muted);
    max-width: 62ch;
    line-height: 1.5;
}

/* Résumé : bandeau Liofo discret (identité produit) */
.liofo-account-card--summary {
    position: relative;
    overflow: hidden;
}

.liofo-account-card--summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #b45309 0%, #f59e0b 50%, #fbbf24 100%);
    border-radius: var(--liofo-ac-radius) var(--liofo-ac-radius) 0 0;
    pointer-events: none;
}

/* --- Résumé compte : titre à gauche, avatar à droite --- */
.liofo-account-summary__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.85rem;
}

.liofo-account-summary__head .liofo-account-card__title {
    margin-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.liofo-account-card--summary .liofo-account-summary__row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}

.liofo-account-summary__avatar {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #0f766e, #0d9488);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.18);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    margin-left: auto;
}

.liofo-account-summary__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.liofo-account-profile-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.25rem;
}

.liofo-account-profile-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: var(--liofo-ac-surface);
    border: 1px solid var(--liofo-ac-border);
}

.liofo-account-profile-row__main {
    flex: 1 1 12rem;
    min-width: 0;
}

.liofo-account-profile-row__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--liofo-ac-muted);
    margin-bottom: 0.15rem;
}

.liofo-account-profile-row__value {
    display: block;
    font-size: 0.95rem;
    color: var(--liofo-ac-text);
    word-break: break-word;
}

.liofo-account-profile-row__edit {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.82rem;
    color: var(--liofo-ac-accent);
    background: transparent;
    border: 1px solid rgba(45, 212, 191, 0.35);
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    cursor: pointer;
}

.liofo-account-profile-row__edit:hover,
.liofo-account-profile-row__edit:focus-visible {
    background: var(--liofo-ac-accent-soft);
    color: var(--liofo-ac-accent-hover);
}

.liofo-account-profile-row__editor {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.liofo-account-profile-row__editor input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--liofo-ac-border);
    border-radius: 10px;
    color: var(--liofo-ac-text);
    padding: 0.5rem 0.65rem;
    font-size: 0.95rem;
}

.liofo-account-profile-row__editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.liofo-account-avatar-menu {
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--liofo-ac-border);
    background: rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: flex-start;
}

.liofo-account-avatar-menu__title {
    margin: 0;
    font-size: 0.88rem;
    color: var(--liofo-ac-text);
}

.liofo-account-avatar-menu__hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--liofo-ac-muted);
    max-width: 42ch;
}

.liofo-account-avatar-menu__upload {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
    .liofo-account-btn,
    .liofo-account-action,
    .liofo-account-link,
    .liofo-account-tertiary-link,
    .liofo-account-profile-row__edit {
        transition: none;
    }
}

.liofo-account-summary__body {
    flex: 1;
    min-width: 0;
}

.liofo-account-summary__name {
    margin: 0.15rem 0 0.25rem;
    font-size: 1.05rem;
}

.liofo-account-summary__email {
    margin: 0;
    font-size: 0.9rem;
}

.liofo-account-summary__email a {
    color: var(--liofo-ac-accent);
    text-decoration: none;
}

.liofo-account-summary__email a:hover {
    text-decoration: underline;
}

.liofo-account-summary__status {
    margin: 0.65rem 0 0;
}

.liofo-account-summary__note {
    margin: 0.75rem 0 0;
    padding: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--liofo-ac-muted);
    max-width: 52ch;
}

.liofo-account-summary__since {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    color: var(--liofo-ac-muted);
}

.liofo-account-summary__meta {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.liofo-account-summary__meta li {
    font-size: 0.78rem;
    color: var(--liofo-ac-muted);
    background: var(--liofo-ac-surface);
    border: 1px solid var(--liofo-ac-border);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.liofo-account-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--liofo-ac-accent-soft);
    color: var(--liofo-ac-accent);
    border: 1px solid rgba(45, 212, 191, 0.35);
}

.liofo-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.liofo-account-btn--primary {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #0f172a;
    width: 100%;
}

.liofo-account-btn--primary:hover {
    background: linear-gradient(135deg, #14b8a6, #5eead4);
    color: #0f172a;
}

/* CTA déconnexion : bouton plein largeur type primaire (lisible sur fond sombre) */
.liofo-account-btn--logout-cta {
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    color: #f8fafc;
    text-shadow: 0 1px 0 rgba(15, 23, 42, 0.35);
}

.liofo-account-btn--logout-cta:hover {
    color: #fff;
}

.liofo-account-btn--primary:focus-visible {
    outline: 2px solid rgba(45, 212, 191, 0.55);
    outline-offset: 2px;
}

.liofo-account-btn--ghost {
    background: transparent;
    color: var(--liofo-ac-text);
    border: 1px solid rgba(248, 250, 252, 0.35);
    width: 100%;
    max-width: 20rem;
}

.liofo-account-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(248, 250, 252, 0.5);
    color: #fff;
}

@media (min-width: 480px) {
    .liofo-account-btn--primary {
        width: auto;
    }
}

/* --- Liens sécurité --- */
.liofo-account-linklist {
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.liofo-account-linklist li {
    margin-bottom: 0.5rem;
}

.liofo-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0 1rem;
    border-radius: 10px;
    color: var(--liofo-ac-accent);
    font-size: 0.92rem;
    text-decoration: none;
    border: 1px solid rgba(45, 212, 191, 0.4);
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.liofo-account-link:hover {
    background: var(--liofo-ac-accent-soft);
    text-decoration: none;
    border-color: rgba(45, 212, 191, 0.55);
}

.liofo-account-security-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.liofo-account-action {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--liofo-ac-border);
    border-radius: 10px;
    background: var(--liofo-ac-surface);
    padding: 0.75rem 0.85rem;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.liofo-account-action:hover {
    border-color: rgba(45, 212, 191, 0.45);
    background: rgba(255, 255, 255, 0.06);
}

.liofo-account-action__title {
    display: block;
    font-size: 0.92rem;
    color: var(--liofo-ac-text);
}

.liofo-account-action__hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    color: var(--liofo-ac-muted);
}

.liofo-account-security-note {
    margin: 0.85rem 0 0;
    font-size: 0.8rem;
    color: var(--liofo-ac-muted);
}

.liofo-account-section-intro--tight {
    margin-bottom: 0.65rem;
}

.liofo-account-card__title--footer {
    margin-bottom: 0.35rem;
}

.liofo-account-card--logout-footer {
    margin-top: 1.5rem;
    background: var(--liofo-ac-card-strong);
}

.liofo-account-logout-footer__body {
    display: flex;
    justify-content: center;
    padding-top: 0.15rem;
}

/* --- Pages parcours compte (infos-profil-liofo, mot-de-passe-liofo) — finition 2G --- */

.liofo-account-security-nav {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.liofo-account-tertiary-link {
    display: block;
    text-decoration: none;
    color: var(--liofo-ac-text);
    font-size: 0.92rem;
    line-height: 1.35;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.15s ease;
}

.liofo-account-tertiary-link:last-of-type {
    border-bottom: none;
}

.liofo-account-tertiary-link:hover {
    color: var(--liofo-ac-accent-hover);
}

.liofo-account-tertiary-link__hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: var(--liofo-ac-muted);
    line-height: 1.4;
}

.liofo-account-tertiary-link--accent {
    color: var(--liofo-ac-accent);
}

.liofo-account-tertiary-link--accent:hover {
    color: var(--liofo-ac-accent-hover);
}

/* --- SureCart : surfaces dans la coquille (sans !important) --- */
.liofo-account-shell .wp-block-surecart-dashboard-area,
.liofo-account-shell .surecart-dashboard-area {
    margin-top: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

/* Espacement entre les cartes « billing » et « orders » générées par le bloc */
.liofo-account-shell .wp-block-surecart-dashboard-area > .wp-block-group {
    margin-top: 0;
    margin-bottom: 0;
}

.liofo-account-shell .wp-block-surecart-customer-subscriptions,
.liofo-account-shell .wp-block-surecart-customer-orders,
.liofo-account-shell .wp-block-surecart-customer-downloads,
.liofo-account-shell .sc-customer-subscriptions,
.liofo-account-shell .sc-customer-orders,
.liofo-account-shell .sc-customer-downloads {
    background: var(--liofo-ac-surface);
    border: 1px solid var(--liofo-ac-border);
    border-radius: 12px;
    padding: 0.95rem 1.05rem;
    margin-top: 0.65rem;
    margin-bottom: 0.65rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    color: var(--liofo-ac-text);
}

.liofo-account-shell .wp-block-surecart-customer-subscriptions p,
.liofo-account-shell .wp-block-surecart-customer-orders p,
.liofo-account-shell .wp-block-surecart-customer-downloads p,
.liofo-account-shell .wp-block-surecart-customer-subscriptions h1,
.liofo-account-shell .wp-block-surecart-customer-subscriptions h2,
.liofo-account-shell .wp-block-surecart-customer-subscriptions h3,
.liofo-account-shell .wp-block-surecart-customer-orders h1,
.liofo-account-shell .wp-block-surecart-customer-orders h2,
.liofo-account-shell .wp-block-surecart-customer-orders h3,
.liofo-account-shell .wp-block-surecart-customer-downloads h1,
.liofo-account-shell .wp-block-surecart-customer-downloads h2,
.liofo-account-shell .wp-block-surecart-customer-downloads h3 {
    color: var(--liofo-ac-text);
}

.liofo-account-shell .liofo-account-section--billing .wp-block-surecart-customer-subscriptions,
.liofo-account-shell .liofo-account-section--orders .wp-block-surecart-customer-orders,
.liofo-account-shell .liofo-account-section--orders .wp-block-surecart-customer-downloads {
    margin-bottom: 0;
}

.liofo-account-shell .liofo-account-section--orders .wp-block-surecart-customer-orders {
    margin-bottom: 0.9rem;
}

/* Typo SureCart dans les cartes */
.liofo-account-shell .wp-block-surecart-customer-subscriptions a,
.liofo-account-shell .wp-block-surecart-customer-orders a,
.liofo-account-shell .wp-block-surecart-customer-downloads a {
    color: var(--liofo-ac-accent);
}

.liofo-account-shell .wp-block-surecart-customer-subscriptions > *:first-child,
.liofo-account-shell .wp-block-surecart-customer-orders > *:first-child,
.liofo-account-shell .wp-block-surecart-customer-downloads > *:first-child {
    margin-top: 0;
}

.liofo-account-shell .wp-block-surecart-customer-subscriptions table,
.liofo-account-shell .wp-block-surecart-customer-orders table,
.liofo-account-shell .wp-block-surecart-customer-downloads table {
    width: 100%;
    border-collapse: collapse;
}

.liofo-account-shell .wp-block-surecart-customer-subscriptions th,
.liofo-account-shell .wp-block-surecart-customer-orders th,
.liofo-account-shell .wp-block-surecart-customer-downloads th,
.liofo-account-shell .wp-block-surecart-customer-subscriptions td,
.liofo-account-shell .wp-block-surecart-customer-orders td,
.liofo-account-shell .wp-block-surecart-customer-downloads td {
    font-size: 0.88rem;
}

.liofo-account-shell .wp-block-surecart-customer-subscriptions th,
.liofo-account-shell .wp-block-surecart-customer-orders th,
.liofo-account-shell .wp-block-surecart-customer-downloads th {
    color: #e2e8f0;
    background: rgba(61, 178, 255, 0.22);
}

.liofo-account-shell .wp-block-surecart-customer-subscriptions tbody tr:nth-child(even),
.liofo-account-shell .wp-block-surecart-customer-orders tbody tr:nth-child(even),
.liofo-account-shell .wp-block-surecart-customer-downloads tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.04);
}

.liofo-account-shell .wp-block-surecart-customer-subscriptions td,
.liofo-account-shell .wp-block-surecart-customer-orders td,
.liofo-account-shell .wp-block-surecart-customer-downloads td {
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--liofo-ac-text);
}

/* --- Sessions : thème clair lisible dans la carte sombre (neutralise sessions-management.css) --- */
.liofo-account-shell .liofo-sessions-container {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

.liofo-account-shell .liofo-sessions-heading {
    margin: 0 0 0.75rem;
    padding: 0 0 0.65rem;
    border-bottom: 1px solid var(--liofo-ac-border);
    font-size: 0.95rem;
    color: var(--liofo-ac-text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.liofo-account-shell .liofo-sessions-heading__label {
    flex: 1;
}

.liofo-account-shell .liofo-sessions-container .tooltip-icon {
    color: var(--liofo-ac-muted);
    cursor: help;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.liofo-account-shell .liofo-sessions-container .sessions-loading,
.liofo-account-shell .liofo-sessions-container .sessions-error {
    background: rgba(15, 23, 42, 0.65);
    color: var(--liofo-ac-muted);
    border: 1px solid var(--liofo-ac-border);
}

.liofo-account-shell .liofo-sessions-container .sessions-list {
    margin: 0 0 0.75rem;
}

.liofo-account-shell .liofo-sessions-container .sessions-list table {
    border-radius: 12px;
    overflow: hidden;
}

.liofo-account-shell .liofo-sessions-container .sessions-list th,
.liofo-account-shell .liofo-sessions-container .sessions-list td {
    color: var(--liofo-ac-text);
    border-color: rgba(255, 255, 255, 0.1);
}

.liofo-account-shell .liofo-sessions-container .sessions-list th {
    background: rgba(61, 178, 255, 0.25);
    color: #f8fafc;
}

.liofo-account-shell .liofo-sessions-container .sessions-list tr:nth-child(even),
.liofo-account-shell .liofo-sessions-container .sessions-list tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.04);
}

.liofo-account-shell .liofo-sessions-container .sessions-list tr:hover {
    background: rgba(61, 178, 255, 0.12);
    color: var(--liofo-ac-text);
}

.liofo-account-shell .liofo-sessions-container .sessions-list .session-row.current-session {
    background: rgba(45, 212, 191, 0.12) !important;
}

.liofo-account-shell .liofo-sessions-container .no-sessions {
    color: var(--liofo-ac-muted);
    padding: 1.25rem 0.5rem;
}

.liofo-account-shell .liofo-sessions-container .sessions-actions {
    margin-top: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--liofo-ac-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    align-items: center;
}

.liofo-account-shell .liofo-sessions-container .sessions-actions .btn-style {
    min-width: 0;
}

/* Surcharge locale : le global `.btn-style:hover` passe le texte en noir (illisible sur fond sombre). */
.liofo-account-shell .liofo-sessions-container .sessions-actions .btn-style:hover,
.liofo-account-shell .liofo-sessions-container .sessions-actions input[type="button"].btn-style:hover,
.liofo-account-shell .liofo-sessions-container .sessions-actions input[type="submit"].btn-style:hover {
    color: #fff !important;
}

.liofo-account-shell .liofo-sessions-container .btn-style,
.liofo-account-shell .liofo-sessions-container .btn-refresh,
.liofo-account-shell .liofo-sessions-container .btn-close-all {
    min-height: 2.5rem;
    padding: 0.45rem 1rem;
    border-radius: 10px;
}

.liofo-account-shell a:focus-visible,
.liofo-account-shell button:focus-visible {
    outline: 2px solid rgba(15, 118, 110, 0.45);
    outline-offset: 2px;
}

/* --- Responsive --- */
@media (min-width: 700px) {
    .liofo-account-security-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .liofo-account-shell {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .liofo-account-shell {
        padding: 1rem 0.75rem 1.9rem;
    }

    .liofo-account-card {
        padding: 0.95rem 0.95rem;
    }

    .liofo-account-header--liofo {
        padding-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .liofo-account-shell {
        padding: 1rem 0.65rem 1.85rem;
    }

    .liofo-account-card {
        padding: 0.9rem 0.85rem;
    }

    .liofo-account-summary__meta {
        gap: 0.4rem;
    }

    .liofo-account-summary__meta li {
        font-size: 0.74rem;
    }

    .liofo-account-shell .liofo-sessions-container .sessions-actions .btn-style {
        min-width: 0;
        width: 100%;
    }

    .liofo-account-shell .wp-block-surecart-customer-subscriptions th,
    .liofo-account-shell .wp-block-surecart-customer-orders th,
    .liofo-account-shell .wp-block-surecart-customer-downloads th,
    .liofo-account-shell .wp-block-surecart-customer-subscriptions td,
    .liofo-account-shell .wp-block-surecart-customer-orders td,
    .liofo-account-shell .wp-block-surecart-customer-downloads td {
        font-size: 0.82rem;
    }
}

/* Fond plein écran + masquage navigation (body.liofo-account-flow-page posée par functions.php) */
body.liofo-account-flow-page {
    background: #0a0f18;
}

body.liofo-account-flow-page #outer-wrap > header.custom-header,
body.liofo-account-flow-page #footer,
body.liofo-account-flow-page footer.site-footer,
body.liofo-account-flow-page .site-footer,
body.liofo-account-flow-page .page-header,
body.liofo-account-flow-page .page-header-title {
    display: none !important;
}

body.liofo-account-flow-page #content,
body.liofo-account-flow-page #main {
    background: transparent;
}

.liofo-account-flow-main {
    min-height: calc(100vh - 2rem);
    min-height: calc(100dvh - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 2.5rem;
    margin: 0;
    background: radial-gradient(120% 80% at 50% -10%, rgba(45, 212, 191, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, rgba(10, 15, 26, 0.96) 0%, rgba(15, 23, 42, 0.92) 45%, #0a0f18 100%);
    box-sizing: border-box;
}

.liofo-account-flow {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    color: var(--liofo-ac-text);
}

.liofo-account-flow-panel {
    width: 100%;
    padding: 1.35rem 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.97);
    box-shadow:
        0 28px 56px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
    box-sizing: border-box;
}

.liofo-account-flow-brand {
    text-align: center;
    margin-bottom: 0.65rem;
}

.liofo-account-flow-logo {
    display: block;
    margin: 0 auto;
    max-width: min(42vw, 132px);
    height: auto;
}

.liofo-account-flow-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--liofo-ac-border);
}

.liofo-account-flow-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.2rem, 3.5vw, 1.45rem);
    line-height: 1.25;
    letter-spacing: 0.05em;
    color: var(--liofo-ac-text);
}

.liofo-account-flow-lede {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--liofo-ac-muted);
}

.liofo-account-flow-section {
    margin-bottom: 1rem;
}

.liofo-account-flow-section__title {
    margin: 0 0 0.55rem;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--liofo-ac-accent);
}

.liofo-account-flow-steps {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--liofo-ac-text);
}

.liofo-account-flow-steps li {
    margin-bottom: 0.45rem;
}

.liofo-account-flow-steps li:last-child {
    margin-bottom: 0;
}

.liofo-account-flow-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--liofo-ac-muted);
}

.liofo-account-flow-dl {
    margin: 0;
}

.liofo-account-flow-dl__row {
    display: grid;
    grid-template-columns: minmax(0, 8.5rem) 1fr;
    gap: 0.35rem 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--liofo-ac-border);
    font-size: 0.9rem;
}

.liofo-account-flow-dl__row:last-child {
    border-bottom: none;
}

.liofo-account-flow-dl__row dt {
    margin: 0;
    color: var(--liofo-ac-muted);
}

.liofo-account-flow-dl__row dd {
    margin: 0;
    color: var(--liofo-ac-text);
    word-break: break-word;
}

.liofo-account-flow-dl__row dd a {
    color: var(--liofo-ac-accent);
    text-decoration: none;
}

.liofo-account-flow-dl__row dd a:hover {
    text-decoration: underline;
}

.liofo-account-flow-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.liofo-account-flow-actions .liofo-account-btn--primary,
.liofo-account-flow-actions .liofo-account-flow-cta {
    width: 100%;
    max-width: none;
    text-align: center;
}

.liofo-account-flow-actions .liofo-account-btn--ghost {
    width: 100%;
    max-width: none;
}

.liofo-account-flow-note {
    margin: 1rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--liofo-ac-muted);
    text-align: center;
}

.liofo-account-flow-note--muted {
    font-size: 0.78rem;
}

.liofo-account-flow-back-wrap {
    margin: 0.85rem 0 0;
    text-align: center;
}

.liofo-account-flow-back {
    font-size: 0.88rem;
    color: var(--liofo-ac-accent);
    text-decoration: none;
}

.liofo-account-flow-back:hover {
    color: var(--liofo-ac-accent-hover);
    text-decoration: underline;
}

@media (max-width: 520px) {
    .liofo-account-flow-panel {
        padding: 1.15rem 1rem 1.35rem;
    }

    .liofo-account-flow-dl__row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .liofo-account-flow-back,
    .liofo-account-flow-actions .liofo-account-btn {
        transition: none;
    }
}

/* SureCart dashboard : pleine largeur, masquer login latéral si WP connecté */
body.logged-in.liofo-journey-page--mon-compte .liofo-account-shell .wp-block-surecart-dashboard-area,
body.logged-in.liofo-journey-page--mon-compte .liofo-account-shell surecart-dashboard-area {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.logged-in .liofo-account-shell sc-customer-login,
body.logged-in .liofo-account-shell .sc-customer-login,
body.logged-in .liofo-account-shell surecart-customer-login,
body.logged-in .liofo-account-shell .wp-block-surecart-customer-login {
    display: none !important;
}

body.logged-in .liofo-account-shell .sc-dashboard-layout,
body.logged-in .liofo-account-shell surecart-dashboard-area {
    grid-template-columns: 1fr !important;
}

body.liofo-journey-page--mon-compte .liofo-account-shell .liofo-page-title-head {
    text-align: center;
}
