/* ==========================================================================
   Page « Mon compte » (/compte/) — complète styles.css et download.css
   ========================================================================== */

.account-card {
  max-width: 760px;
}

.account-demo {
  margin-top: 12px;
  text-align: center;
}

.account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-new {
  height: 38px;
  padding: 0 16px;
  font-size: calc(13px * var(--text-scale, 1));
}

.account-head .btn-outline {
  height: 38px;
}

.account-attention {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  background: var(--status-warning-bg);
  color: var(--status-warning);
  font-size: calc(13px * var(--text-scale, 1));
  font-weight: 700;
  text-decoration: none;
}

a.account-attention:hover {
  text-decoration: underline;
}

.account-attention-go {
  margin-left: auto;
  text-decoration: underline;
}

.account-tab--alert {
  color: var(--status-warning);
}

.account-section {
  margin-top: 28px;
}

.account-empty {
  margin-top: 12px;
}

.account-shares {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.account-share {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.account-share--expired {
  background: var(--surface-soft);
}

.account-share-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-more {
  color: var(--text-soft);
  font-weight: 600;
}

.account-state {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: calc(12px * var(--text-scale, 1));
  font-weight: 700;
}

.account-state--active { background: var(--status-good-bg); color: var(--status-good); }
.account-state--expired,
.account-state--disabled { background: var(--status-neutral-bg); color: var(--status-neutral); }
.account-state--blocked { background: var(--status-critical-bg); color: var(--status-critical); }

.account-share-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-share-actions .result-open {
  margin-top: 0;
}

/* Formule du compte */
.plan-pill {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: calc(12px * var(--text-scale, 1));
  font-weight: 800;
}

.plan-pill--free {
  background: var(--status-neutral-bg);
  color: var(--status-neutral);
}

.plan-pill--premium {
  background: var(--navy);
  color: #fff;
}

/* Raccourci « Étendre la date de validité » */
.account-extend {
  height: 34px;
  padding: 0 14px;
  font-size: calc(13px * var(--text-scale, 1));
}

.account-extend-wrap {
  display: inline-flex;
}

/* Grisé (compte Premium) : pas désactivé pour le navigateur afin que l'infobulle s'affiche au survol et au focus. */
.account-extend.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.account-extend.is-disabled:hover {
  background: transparent;
}

.account-delete {
  margin: 0 0 0 auto;
}

/* ---------- Page « Mon compte » : tableau de bord (hors carte) ---------- */
.account-card.is-dashboard {
  max-width: 980px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.account-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: calc(20px * var(--text-scale, 1));
  font-weight: 800;
}

.account-title {
  font-size: calc(28px * var(--text-scale, 1));
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}

.account-logout {
  height: 40px;
}

.account-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Roue crantée : fenêtre « Mon offre et mes options » ---------- */
.account-gear {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.account-gear:hover {
  border-color: var(--blue);
  background: var(--tint);
}

.account-gear-icon,
.account-gear-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.account-gear-icon {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.account-gear-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-gear:hover .account-gear-icon {
  transform: rotate(90deg);
}

.account-gear.has-alert::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--status-warning);
}

.account-settings-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
}

.account-settings {
  gap: 16px;
}

.account-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-settings-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.account-settings-close:hover {
  background: var(--tint);
  color: var(--navy);
}

.account-settings-close .ui-icon,
.account-settings-close svg {
  display: block;
  width: 18px;
  height: 18px;
}

.account-settings-close svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Les onglets restent à l'écran quand on fait défiler la page (voir `updateStuckTabs` dans js/account.js : fond et ombre une fois collés en haut). */
.account-tabs {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  gap: 8px;
  margin: 24px -12px 0;
  padding-inline: 12px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.account-tabs.is-stuck {
  background: var(--surface);
  box-shadow: 0 10px 22px -16px rgba(15, 30, 80, 0.5);
}

/* Petit écran : si les onglets ne tiennent pas, ils défilent sur le côté plutôt que de passer sous la page. */
@media (max-width: 720px) {
  .account-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .account-tab {
    flex: none;
    white-space: nowrap;
  }
}

.account-tab {
  margin-bottom: -1px;
  padding: 10px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: calc(14px * var(--text-scale, 1));
  font-weight: 700;
  cursor: pointer;
}

.account-tab:hover {
  color: var(--navy);
}

.account-tab.is-active {
  border-bottom-color: var(--green);
  color: var(--navy);
}

.account-panel {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.account-verify {
  margin-top: 20px;
  padding: 18px 22px;
  border-left: 4px solid #f5b301;
  border-radius: var(--radius-md);
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: calc(14px * var(--text-scale, 1));
}

.account-verify-title {
  margin-bottom: 4px;
  color: var(--warn-strong);
  font-size: calc(17px * var(--text-scale, 1));
  font-weight: 800;
}

.account-verify-note {
  margin-top: 8px;
  font-weight: 700;
}

.account-verify-button {
  height: 40px;
  margin-top: 12px;
  padding: 0 18px;
  background: #e07b00;
  color: #fff;
  font-size: calc(14px * var(--text-scale, 1));
}

.account-verify-button:hover {
  background: #c76b00;
}

.account-block {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.account-eyebrow {
  color: var(--text-muted);
  font-size: calc(12px * var(--text-scale, 1));
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-storage-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: calc(14px * var(--text-scale, 1));
}

.account-bar {
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.account-bar-fill {
  min-width: 18px; /* un peu rempli reste visible */
  height: 100%;
  border-radius: 999px;
  background: var(--green);
}

/* Rien d'utilisé : la barre est vraiment vide (pas de trait vert). */
.account-bar-fill[style*="width: 0%"] {
  min-width: 0;
}

/* Barre d'espace libre : elle se vide quand l'espace se remplit ; plein = la piste devient rouge pâle. */
.account-bar--free .account-bar-fill {
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.account-bar--free.is-full {
  background: var(--red-soft);
}

.account-bar.is-high .account-bar-fill {
  background: #f59e0b;
}

.account-bar.is-full .account-bar-fill {
  background: var(--red);
}

.account-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.account-history {
  margin-top: 28px;
}

.account-share--deleted {
  background: var(--surface-soft);
}

.account-state--deleted {
  background: var(--status-neutral-bg);
  color: var(--status-neutral);
}

/* Message de retour (ex. « 30,6 Mo libérés ») avec son raccourci */
.account-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
}

.account-notice-action {
  height: 34px;
  background: var(--surface);
}

/* ---------- Pagination de « Mes fichiers » ---------- */
.account-head-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 16px;
}

.account-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.account-pager-btn {
  height: 38px;
  min-width: 0;
  padding: 0 14px;
}

.account-pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.account-pager-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-pager-num {
  min-width: 36px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--navy);
  font: inherit;
  font-size: calc(14px * var(--text-scale, 1));
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.18s ease;
}

.account-pager-num:hover {
  background: var(--tint);
  transform: translateY(-1px);
}

.account-pager-num.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.account-pager-gap {
  color: var(--text-soft);
  font-weight: 700;
}

.account-pager-range {
  margin: 2px 0 0;
  font-size: calc(13px * var(--text-scale, 1));
  color: var(--text-soft);
}

/* ---------- Onglet « Augmenter l'espace » ---------- */
.space-upgrade,
.space-free {
  display: grid;
  gap: 14px;
}

.space-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.space-offer {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.space-offer.is-featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent);
}

.space-offer-name {
  margin: 0;
  font-size: calc(18px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--navy);
}

.space-offer-quota {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 0;
  font-weight: 800;
}

/* Espace actuel barré, espace de l'offre mis en évidence. */
.space-offer-quota-old {
  color: var(--text-soft);
  font-size: calc(18px * var(--text-scale, 1));
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.space-offer-quota-arrow {
  color: var(--text-soft);
  font-size: calc(18px * var(--text-scale, 1));
}

.space-offer-quota-new {
  color: var(--navy);
  font-size: calc(28px * var(--text-scale, 1));
  font-weight: 800;
}

.space-offer-gain {
  display: block;
  width: fit-content;
  justify-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--green-soft, #dcfce7);
  color: var(--green-dark, #166534);
  font-size: calc(13px * var(--text-scale, 1));
  font-weight: 800;
}

.space-offer .btn {
  height: 42px;
  font-size: calc(14px * var(--text-scale, 1));
}

.space-offer-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: 6px 0 4px;
  font-weight: 700;
  color: var(--text-muted);
}

.space-offer-price strong {
  color: var(--text);
  font-size: calc(30px * var(--text-scale, 1));
  font-weight: 800;
}

/* Essai gratuit disponible : le prix mensuel est barré, le badge « 14 jours d'essai gratuit » est à côté. */
.space-offer-price strong.is-struck {
  color: var(--text-soft);
  font-size: calc(24px * var(--text-scale, 1));
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.space-offer-price .is-struck-unit {
  color: var(--text-soft);
  text-decoration: line-through;
}

.space-offer-price .space-offer-trial-badge {
  margin: 0 0 0 4px;
  align-self: center;
}

.space-offer-old {
  color: var(--text-soft);
  font-size: calc(17px * var(--text-scale, 1));
  font-weight: 600;
}

/* Fiche cliquable de la Vue d'ensemble (liste des fichiers récupérables). */
.account-info-block--link {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.account-info-block--link:hover {
  border-color: var(--navy);
  box-shadow: 0 12px 28px -18px rgba(30, 58, 138, 0.45);
  transform: translateY(-2px);
}

/* Fenêtre « Fichiers expirés récupérables » : l'essai gratuit de 14 jours est mis en avant en premier. */
.recover-trial {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin: 8px 0 4px;
  padding: 16px 18px;
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  background: var(--navy-soft);
}

.recover-trial-title {
  color: var(--navy);
  font-size: calc(1.05rem * var(--text-scale, 1));
}

.recover-trial .extend-text {
  margin: 0;
}

.recover-upgrade {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin: 14px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.recover-upgrade .extend-text {
  margin: 0;
}

.recover-or {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-weight: 700;
}

/* Fenêtre « Fichiers expirés récupérables ». */
.recover-list {
  display: grid;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.recover-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.recover-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.recover-name {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.recover-main small {
  color: var(--text-muted);
}

.recover-until {
  color: var(--status-warning) !important;
  font-weight: 700;
}

.recover-action {
  flex: none;
  padding: 7px 16px;
}

/* Historique des paiements (fenêtre de la roue crantée). */
.account-payments {
  display: grid;
  gap: 10px;
}

.payments-next {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.payments-toggle {
  justify-self: start;
}

.payments-list {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.payments-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.payments-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.payments-label {
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.payments-main small {
  color: var(--text-muted);
}

.payments-amount {
  flex: none;
  color: var(--navy);
  white-space: nowrap;
}

.payments-total {
  display: flex;
  justify-content: space-between;
  margin: 6px 0 0;
  font-size: calc(1.05rem * var(--text-scale, 1));
}

/* Démo : bouton qui redonne un essai gratuit tout de suite. */
.space-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px dashed var(--warn-border);
  border-radius: var(--radius-md);
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: calc(14px * var(--text-scale, 1));
}

.space-demo-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: calc(11px * var(--text-scale, 1));
  font-weight: 800;
  letter-spacing: 0.04em;
}

.space-demo .btn {
  padding: 7px 14px;
}

.space-offer-trial-badge {
  display: block;
  width: fit-content;
  justify-self: start;
  margin: 2px 0 4px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: calc(13px * var(--text-scale, 1));
  font-weight: 800;
}

.space-offer-trial {
  margin: 8px 0 0;
  color: var(--text-body);
  font-size: calc(14px * var(--text-scale, 1));
  font-weight: 600;
  line-height: 1.4;
}

.space-offer-save {
  display: block;
  width: fit-content;
  justify-self: start;
  margin-top: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--status-good);
  font-size: calc(12px * var(--text-scale, 1));
  font-weight: 800;
}

.space-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.space-sort-btn {
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  font: inherit;
  font-size: calc(13px * var(--text-scale, 1));
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.space-sort-btn:hover {
  background: var(--tint);
}

.space-sort-btn.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.space-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.space-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.space-row:hover {
  background: var(--surface-soft);
}

.space-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  cursor: pointer;
}

.space-row-main input {
  flex: none;
  width: 18px;
  height: 18px;
}

.space-size {
  flex: none;
  font-size: calc(16px * var(--text-scale, 1));
  color: var(--navy);
}

.space-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.space-summary {
  font-weight: 700;
  color: var(--text-muted);
}

.account-gear--small {
  flex: none;
  width: 34px;
  height: 34px;
}

.account-gear--small .account-gear-icon,
.account-gear--small .account-gear-icon svg {
  width: 18px;
  height: 18px;
}

.share-setting {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.share-setting-title {
  margin: 0;
  font-size: calc(14px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--navy);
}

.share-setting-name {
  overflow-wrap: anywhere;
}

.share-setting-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-setting-row .option-input {
  flex: 1 1 200px;
  min-width: 0;
}

.account-bar--small {
  height: 6px;
  margin-top: 8px;
}

.account-share-files {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  font-size: calc(13px * var(--text-scale, 1));
}

.account-share-files summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.account-share-files ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 2px;
  padding: 0;
  list-style: none;
}

.account-share-files li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
}

.account-tile {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

/* Fiche cliquable (le compteur de fichiers mène à « Mes fichiers »). */
.account-tile--link {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.account-tile--link:hover {
  border-color: var(--navy);
  box-shadow: 0 12px 28px -18px rgba(30, 58, 138, 0.45);
  transform: translateY(-2px);
}

/* Barre d'espace de la Vue d'ensemble : cliquable, elle mène à « Augmenter l'espace ». */
.account-storage--link {
  cursor: pointer;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.account-storage--link:hover {
  border-color: var(--navy);
  box-shadow: 0 12px 28px -18px rgba(30, 58, 138, 0.45);
}

.account-storage-anchor {
  color: inherit;
  text-decoration: none;
}

.account-storage-anchor:focus-visible {
  outline: none;
  border-radius: 6px;
  box-shadow: var(--focus-ring);
}

.account-storage-go {
  margin-top: 8px;
}

.account-tile-anchor,
.account-tile-anchor:hover {
  text-decoration: none;
}

.account-tile-anchor {
  color: inherit;
  text-decoration: none;
}

.account-tile-anchor:focus-visible {
  outline: none;
  border-radius: 6px;
  box-shadow: var(--focus-ring);
}

.account-tile-go {
  display: block;
  margin-top: 6px;
  color: var(--blue);
  font-size: calc(13px * var(--text-scale, 1));
  font-weight: 700;
}

.account-tile-value {
  margin-top: 8px;
  color: var(--navy);
  font-size: calc(28px * var(--text-scale, 1));
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* Informations du compte : quatre blocs, deux par ligne (un par ligne sur téléphone), le nom au-dessus de la valeur. */
.account-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}

.account-info-block {
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

/* Formule gratuite : « Gratuite » et, à côté, la proposition de passer à Premium. */
.account-plan-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.account-plan-cta {
  padding: 7px 16px;
  font-size: calc(14px * var(--text-scale, 1));
}

.account-info-block dt {
  margin: 0;
}

.account-info-block dd {
  margin: 8px 0 0;
  font-size: calc(17px * var(--text-scale, 1));
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}

.account-info .plan-pill {
  margin: 0;
}

/* Fiches « d'un coup d'œil » : un titre, une valeur, une précision et, si utile, le bouton qui règle la situation. */
.account-highlights {
  margin-top: -4px;
}

.account-info-value {
  margin: 8px 0 0;
  font-size: calc(17px * var(--text-scale, 1));
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}

.account-info-value.is-ok {
  color: var(--status-good);
}

.account-info-value.is-warn {
  color: var(--status-warning);
}

.account-info-sub {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: calc(14px * var(--text-scale, 1));
  line-height: 1.4;
}

.account-info-action {
  margin-top: 12px;
  padding: 7px 14px;
}

@media (max-width: 640px) {
  .account-info {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

.account-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 12px;
}

.account-section-title {
  font-size: calc(20px * var(--text-scale, 1));
  font-weight: 800;
  color: var(--text);
}

.account-link {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-size: calc(13px * var(--text-scale, 1));
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* « Mot de passe oublié ? » et « Retour » : lien centré sous le formulaire. */
.account-forgot-link {
  display: block;
  margin: 14px auto 0;
  text-align: center;
}

.account-recent {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.account-empty-box {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 16px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: calc(14px * var(--text-scale, 1));
  text-align: center;
}

.account-empty-box .account-new {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 600px) {
  .account-tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-title {
    font-size: calc(24px * var(--text-scale, 1));
  }

  .account-storage-top {
    flex-direction: column;
    gap: 4px;
  }
}
@media (max-width: 600px) {
  .account-share-head {
    flex-wrap: wrap;
  }

  .account-head .share-actions {
    width: 100%;
  }

  .account-head .share-actions .btn {
    flex: 1;
  }
}

.account-premium {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.account-premium-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-premium-text {
  margin: 4px 0 0;
  font-weight: 600;
}

.account-attention-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.account-back {
  justify-self: start;
  margin-bottom: 4px;
}

/* Options de l'offre (notification de téléchargement, logo, couleur) */
.plan-pill--business {
  background: #0f172a;
  color: #fff;
}

.account-options {
  display: grid;
  gap: 16px;
}

.account-options .option-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.account-options .option-check input {
  margin-top: 4px;
}

.option-brand {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border, #e3e8f0);
  border-radius: var(--radius-md, 12px);
}

.option-brand legend {
  padding: 0 6px;
  font-weight: 800;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.option-color {
  width: 44px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border-strong, #c9d4e5);
  border-radius: 8px;
  background: none;
  cursor: pointer;
}

.option-logo-preview {
  display: flex;
  align-items: center;
  min-height: 56px;
  margin: 8px 0;
}

.option-logo-preview img {
  max-width: 200px;
  max-height: 64px;
  object-fit: contain;
}

.option-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.account-note {
  margin: 0;
  color: var(--text-muted, #5b6b85);
  font-size: calc(14px * var(--text-scale, 1));
}

/* ---------- Inscription ---------- */
.account-signup-line {
  margin: 14px 0 0;
  text-align: center;
  color: var(--text-soft, #5b6b8c);
  font-size: calc(14px * var(--text-scale, 1));
}

.signup-form .option-check {
  margin-top: 12px;
}

.signup-password-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signup-password-row .option-input {
  flex: 1;
  min-width: 0;
}

.signup-eye {
  flex: none;
}

.signup-meter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 6px;
}

.signup-meter span {
  height: 5px;
  border-radius: 3px;
  background: var(--border, #d8e0ee);
  transition: background 0.2s ease;
}

.signup-meter[data-level="1"] span:nth-child(1) { background: #d64545; }
.signup-meter[data-level="2"] span:nth-child(-n+2) { background: #e0a100; }
.signup-meter[data-level="3"] span { background: #1faa59; }

/* Champ piège anti-robot : invisible pour les humains, hors de l'écran (jamais display:none, que certains robots détectent). */
.signup-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-error {
  margin: 10px 0 0;
}

.signup-error[hidden] {
  display: none;
}

/* Fenêtre « Rattacher vos envois à votre compte ? » */
.claim-warning {
  padding: 10px 12px;
  border-left: 4px solid var(--orange, #e0a100);
  border-radius: 6px;
  background: var(--surface-soft, #f5f7fb);
  font-size: calc(13.5px * var(--text-scale, 1));
}

.claim-list {
  display: grid;
  gap: 6px;
  max-height: 240px;
  margin: 10px 0 4px;
  overflow-y: auto;
}

.claim-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border, #d8e0ee);
  border-radius: 8px;
  cursor: pointer;
}

.claim-name {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claim-all {
  justify-self: start;
  margin-top: 6px;
}

/* Statistiques de téléchargement d'un envoi */
.dlstats-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 14px;
}

.dlstats-stat {
  display: grid;
  min-width: 110px;
  padding: 8px 12px;
  border: 1px solid var(--border, #d8e0ee);
  border-radius: 10px;
  background: var(--surface-soft, #f5f7fb);
}

.dlstats-stat strong {
  font-size: calc(20px * var(--text-scale, 1));
}

.dlstats-stat span,
.dlstats-label {
  color: var(--text-soft, #5b6b8c);
  font-size: calc(12.5px * var(--text-scale, 1));
}

.dlstats-label {
  margin: 10px 0 4px;
  font-weight: 700;
}

.dlstats-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
  padding: 4px 0;
}

.dlstats-bar {
  flex: 1;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: var(--navy, #1e3a8a);
}

.dlstats-countries {
  margin: 6px 0 0;
  font-size: calc(13px * var(--text-scale, 1));
}

.dlstats-list {
  display: grid;
  gap: 2px;
  max-height: 180px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  font-size: calc(13px * var(--text-scale, 1));
}

.dlstats-list li {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid var(--border, #d8e0ee);
}