:root {
  --account-ink: #07382c;
  --account-green: #0f5b40;
  --account-green-2: #167554;
  --account-cream: #f7f2e8;
  --account-gold: #efa91a;
  --account-border: #e4dac8;
  --account-muted: #60736b;
  --account-danger: #a72f2f;
}

.account-auth-section,
.account-security-section {
  background:
    radial-gradient(circle at 88% 12%, rgba(21, 117, 84, .12), transparent 29rem),
    linear-gradient(135deg, #fbf8f1 0%, #f7f2e8 72%);
}

.account-auth-section { min-height: min(760px, calc(100svh - 80px)); padding: clamp(2.5rem, 7vw, 6.5rem) 0; }
.account-auth-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.account-auth-copy { max-width: 690px; }
.account-auth-copy h1,
.account-status-card h1,
.account-delete-card h1 { margin: .55rem 0 1.15rem; color: var(--account-ink); font-size: clamp(2.45rem, 6vw, 5.3rem); line-height: .98; letter-spacing: -.045em; }
.account-auth-copy > p { max-width: 620px; color: var(--account-muted); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.7; }
.account-benefits { display: grid; gap: .8rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.account-benefits li { display: flex; gap: .75rem; align-items: center; color: var(--account-ink); font-weight: 700; }
.account-benefits span { display: grid; width: 1.75rem; height: 1.75rem; place-items: center; border-radius: 50%; background: #dff1e8; color: var(--account-green); }

.account-card { min-width: 0; padding: clamp(1.4rem, 3.6vw, 2.4rem); border: 1px solid var(--account-border); border-radius: 22px; background: rgba(255, 255, 255, .96); box-shadow: 0 24px 64px rgba(20, 56, 44, .09); }
.account-card h2 { margin: .35rem 0 1.15rem; color: var(--account-ink); font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.1; }
.account-card > p { color: var(--account-muted); line-height: 1.65; }
.account-card-kicker { color: #a66b00; font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.account-auth-card form,
.account-card form { display: grid; gap: 1rem; }
.account-field { display: grid; gap: .45rem; min-width: 0; color: var(--account-ink); font-weight: 750; }
.account-field > span:first-child { font-size: .91rem; }
.account-field input { box-sizing: border-box; width: 100%; min-height: 48px; padding: .78rem .9rem; border: 1px solid #cfc3b0; border-radius: 10px; background: #fff; color: #142d25; font: inherit; }
.account-field input:hover { border-color: #a99a83; }
.account-field input:focus { border-color: var(--account-gold); outline: 3px solid rgba(239, 169, 26, .22); box-shadow: none; }
.password-control { position: relative; display: block; }
.password-control input { padding-inline-end: 3.6rem; }
.password-toggle { position: absolute; top: 50%; right: .35rem; display: grid; width: 42px; height: 42px; padding: 0; place-items: center; transform: translateY(-50%); border: 0; border-radius: 9px; background: transparent; color: var(--account-green); cursor: pointer; }
.password-toggle:hover { background: #edf6f1; }
.password-toggle:focus-visible { outline: 3px solid rgba(239, 169, 26, .42); outline-offset: 1px; }
.password-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.caps-warning { color: #8d5500; font-weight: 650; }
.password-match { min-height: 1.15em; color: var(--account-muted); font-weight: 650; }
.password-match.is-match { color: var(--account-green-2); }
.password-match.is-mismatch { color: var(--account-danger); }
.password-strength { display: grid; gap: .42rem; margin-top: -.35rem; }
.password-strength-track { display: block; height: 5px; overflow: hidden; border-radius: 99px; background: #ece7de; }
.password-strength-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--account-danger); transition: width .2s ease, background-color .2s ease; }
.password-strength small { color: var(--account-muted); line-height: 1.45; }
.password-strength[data-level="1"] i { width: 25%; background: #b54236; }
.password-strength[data-level="2"] i { width: 50%; background: #d88614; }
.password-strength[data-level="3"] i { width: 75%; background: #89a828; }
.password-strength[data-level="4"] i { width: 100%; background: var(--account-green-2); }
.account-choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; padding: .85rem; border: 1px solid var(--account-border); border-radius: 12px; background: #fbf8f1; cursor: pointer; }
.account-choice input { width: 19px; height: 19px; margin-top: .1rem; accent-color: var(--account-green); }
.account-choice span { display: grid; gap: .2rem; }
.account-choice small,
.account-legal-note { color: var(--account-muted); font-size: .79rem; line-height: 1.55; }
.account-legal-note a,
.account-form-links a,
.account-switch a { color: var(--account-green); font-weight: 750; }
.account-form-links { display: flex; justify-content: flex-end; margin-top: -.3rem; font-size: .9rem; }
.account-switch { margin: 1.2rem 0 0; color: var(--account-muted); text-align: center; }
.account-card .button { min-height: 48px; }
.account-card button:disabled { cursor: progress; opacity: .72; }

.account-status-shell { display: grid; max-width: 760px; place-items: center; }
.account-status-card { width: min(100%, 620px); text-align: center; }
.account-status-card h1,
.account-delete-card h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
.account-status-card > p { max-width: 520px; margin-inline: auto; }
.account-status-icon { display: grid; width: 64px; height: 64px; margin: 0 auto 1.1rem; place-items: center; border-radius: 18px; background: #dff1e8; color: var(--account-green); font-size: 1.7rem; font-weight: 900; }
.account-status-warning { background: #fff0ca; color: #9a6200; }
.account-steps { display: grid; gap: .65rem; margin: 1.5rem 0; padding: 1.2rem 1.2rem 1.2rem 2.4rem; border-radius: 14px; background: var(--account-cream); color: var(--account-ink); text-align: left; }
.account-tip,
.account-pending { margin: 1rem 0; padding: .9rem 1rem; border-left: 4px solid var(--account-gold); border-radius: 10px; background: #fff5d7; color: #604b19; line-height: 1.55; text-align: left; }
.account-resend-form { margin-top: 1.5rem; text-align: left; }

.account-security-hero { padding: clamp(2.5rem, 6vw, 5rem) 0; background: linear-gradient(135deg, #083c2f, #126a4c); color: #fff; }
.account-security-hero h1 { margin: .45rem 0 .75rem; color: #fff; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; }
.account-security-hero p { max-width: 680px; margin: 0; color: #d6ebe2; font-size: 1.08rem; }
.account-security-section { padding: clamp(2rem, 6vw, 5rem) 0; }
.account-security-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 4rem); align-items: start; }
.account-security-nav { position: sticky; top: 100px; display: grid; gap: .2rem; padding: 1rem; border: 1px solid var(--account-border); border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 16px 42px rgba(20,56,44,.07); }
.account-security-nav strong { padding: .6rem .75rem; color: var(--account-ink); }
.account-security-nav a { padding: .65rem .75rem; border-radius: 9px; color: var(--account-muted); font-weight: 700; text-decoration: none; }
.account-security-nav a:hover,
.account-security-nav a:focus-visible { background: #edf6f1; color: var(--account-green); }
.account-security-nav .account-danger-link { margin-top: .5rem; color: var(--account-danger); }
.account-security-content { display: grid; gap: 1.25rem; min-width: 0; }
.account-security-content .account-card { scroll-margin-top: 110px; box-shadow: 0 18px 48px rgba(20,56,44,.07); }
.account-card-heading { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.account-card-heading h2 { margin-bottom: .45rem; }
.verified-badge { flex: none; padding: .45rem .7rem; border-radius: 99px; background: #dff1e8; color: var(--account-green); font-size: .78rem; font-weight: 800; }
.account-mini-icon { display: grid; flex: none; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--account-cream); color: var(--account-green); font-size: 1.15rem; font-weight: 900; }
.account-details { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin: 1.2rem 0 0; }
.account-details div { min-width: 0; padding: 1rem; border-radius: 12px; background: var(--account-cream); }
.account-details dt { color: var(--account-muted); font-size: .78rem; font-weight: 700; }
.account-details dd { overflow-wrap: anywhere; margin: .3rem 0 0; color: var(--account-ink); font-weight: 800; }
.account-profile-form { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--account-border); }

.account-delete-section { background: linear-gradient(135deg, #fbf8f1, #f8eee7); }
.account-delete-card { width: min(100%, 650px); }
.account-delete-card .account-status-icon { margin-inline: 0; }
.account-delete-summary { margin: 1.4rem 0; padding: 1rem 1.15rem; border: 1px solid #efc9c3; border-radius: 13px; background: #fff5f2; color: #682c27; }
.account-delete-summary ul { margin-bottom: 0; padding-left: 1.25rem; }
.account-delete-button { background: var(--account-danger) !important; border-color: var(--account-danger) !important; color: #fff !important; }

.dashboard-account-shortcut { margin: 1.25rem 0; }
.dashboard-account-shortcut .dashboard-panel { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.dashboard-account-shortcut p { margin: .35rem 0 0; color: var(--account-muted); }

@media (max-width: 900px) {
  .account-auth-shell { grid-template-columns: 1fr; max-width: 720px; }
  .account-auth-copy { text-align: center; }
  .account-auth-copy > p { margin-inline: auto; }
  .account-benefits { width: fit-content; margin-inline: auto; text-align: left; }
  .account-security-layout { grid-template-columns: 1fr; }
  .account-security-nav { position: static; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .account-security-nav strong { grid-column: 1 / -1; }
  .account-security-nav a { text-align: center; }
  .account-details { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .account-auth-section { min-height: auto; padding: 2rem 0 3rem; }
  .account-auth-shell { gap: 1.6rem; }
  .account-auth-copy h1 { font-size: clamp(2.35rem, 15vw, 3.8rem); }
  .account-benefits { width: 100%; }
  .account-card { padding: 1.15rem; border-radius: 17px; }
  .account-security-nav { display: flex; overflow-x: auto; padding: .65rem; scroll-snap-type: x proximity; }
  .account-security-nav strong { display: none; }
  .account-security-nav a { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
  .account-details { grid-template-columns: 1fr; }
  .account-card-heading { align-items: center; }
  .verified-badge { max-width: 110px; text-align: center; }
  .dashboard-account-shortcut .dashboard-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 380px) {
  .account-card { padding: 1rem; }
  .account-auth-copy h1 { font-size: 2.3rem; }
  .account-choice { padding: .7rem; }
  .account-card-heading { align-items: flex-start; flex-direction: column; }
  .verified-badge { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .password-strength-track i { transition: none; }
}

/* NEW-ATTEMPT-BUTTON:v1 — priorité sur la règle générique .panel-heading a */
.pronunciation-history .panel-heading > a.button.button-small,
.pronunciation-history .panel-heading > a.button.button-small:visited {
  border-color: var(--green-800);
  background: var(--green-800);
  color: #fff;
  font-size: .86rem;
  font-weight: 850;
}
.pronunciation-history .panel-heading > a.button.button-small:hover,
.pronunciation-history .panel-heading > a.button.button-small:focus-visible {
  border-color: var(--green-700);
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 10px 25px rgba(15, 81, 50, .18);
}
.pronunciation-history .panel-heading > a.button.button-small:active {
  border-color: var(--green-900);
  background: var(--green-900);
  color: #fff;
  transform: translateY(0);
}
@media (max-width: 640px) {
  .pronunciation-history .panel-heading { align-items: stretch; flex-direction: column; }
  .pronunciation-history .panel-heading > a.button.button-small { width: 100%; min-height: 44px; }
}
