﻿@font-face {
  font-family: "Karnov-Display";
  src: url("/fonts/KarnovDisplay-Regular 2.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src:
    local("Roboto Regular"),
    local("Roboto"),
    url("/fonts/Roboto-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src:
    local("Roboto Medium"),
    local("Roboto"),
    url("/fonts/Roboto-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --color-white: #FDFDFD;
  --color-gray-100: #DDDFE6;
  --color-gray-900: #1F2223;
  --color-danger: #D9021B;
  --color-background-danger: #FDF2F4;
  --color-success: #0E7D22;
  --color-focus: #0060DF;
  --color-karnov-yellow: #FED506;
  --color-karnov-yellow-hover: #FFEE9B;
  --color-karnov-blue: #00003C;
  --color-karnov-light_yellow: #FFFBDD;
  --color-gray-200: #C4C7D5;
  --color-gray-600: #555E85;
}

* {
  box-sizing: border-box;
}

body {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  color: var(--color-gray-900);
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

main {
  width: 100%;
  max-width: 544px;
  padding: 0 64px;
  margin: 60px auto 0;
}

h1 {
  margin: 0;
  font-family: "Karnov-Display", sans-serif;
  font-size: 2.25rem;
  font-weight: 400;
}

h1 + p {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--color-gray-600);
}

form {
  margin-top: 32px;
}

[role="img"] + h1 {
  margin-top: 32px;
}

p {
  margin: 0 0 20px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

label {
  display: block;
  margin-bottom: 6px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
}

input:not([type="checkbox"]) {
  width: 100%;
  height: 44px;
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  padding: 10px 12px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-gray-900);
}

input:not([type="checkbox"]):hover {
  border-color: var(--color-gray-900);
}

input:not([type="checkbox"]):focus {
  outline: none;
  box-shadow: none;
}

input:not([type="checkbox"]):focus-visible {
  outline: none;
  outline-offset: 0;
  box-shadow: none;
}

.keyboard-nav input:not([type="checkbox"]):focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
  box-shadow: none;
}

input:not([type="checkbox"])::placeholder {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--color-gray-600);
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  color: var(--color-gray-900);
  border-color: var(--color-gray-900);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.3l3 3 6.6-6.8' fill='none' stroke='%231F2223' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.password-field-wrap {
  position: relative;
}

.password-field-wrap input:not([type="checkbox"]) {
  padding-right: 44px;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 30;
  width: 18px;
  height: 18px;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.password-toggle-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 31;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  padding: 4px 6px;
  border: 1px solid var(--color-gray-600);
  border-radius: 4px;
  color: var(--color-gray-600);
  background-color: var(--color-white);
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}

.password-toggle-btn:hover::after {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.3s;
}

.password-toggle-btn:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.password-toggle-btn.tooltip-dismissed::after {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.password-toggle-icon {
  display: block;
  width: 100%;
  height: 100%;
  filter: brightness(0) saturate(100%) invert(37%) sepia(14%) saturate(958%) hue-rotate(191deg) brightness(93%) contrast(89%);
}

.form-two-fields input:not([type="checkbox"]) + label[for],
.form-two-fields .password-field-wrap + label[for],
.form-two-fields .password-requirements-anchor + label[for] {
  margin-top: 24px;
}

.password-requirements-anchor {
  position: relative;
}

.password-requirements-anchor.has-password-rules-error input:not([type="checkbox"]) {
  border-color: var(--color-danger);
}

.password-rules-error-message {
  margin: 0;
  margin-top: 4px;
  font-size: 14px;
  color: var(--color-gray-900);
  display: none;
  align-items: center;
  gap: 6px;
}

.password-rules-error-message img {
  width: 14px;
  height: 14px;
  filter: brightness(0) saturate(100%) invert(13%) sepia(99%) saturate(6720%) hue-rotate(349deg) brightness(93%) contrast(116%);
}

.field-error-message {
  margin: 0;
  margin-top: 4px;
  font-size: 14px;
  color: var(--color-gray-900);
  display: none;
  align-items: center;
  gap: 6px;
}

.field-error-message img {
  width: 14px;
  height: 14px;
  filter: brightness(0) saturate(100%) invert(13%) sepia(99%) saturate(6720%) hue-rotate(349deg) brightness(93%) contrast(116%);
}

.field-error-message.is-visible {
  display: inline-flex;
}

.password-requirements-anchor.has-password-rules-error .password-rules-error-message {
  display: inline-flex;
}

.password-requirements-bubble {
  position: absolute;
  left: calc(100% + 16px);
  top: 50%;
  transform: translateY(-33%);
  width: 320px;
  max-width: min(320px, calc(100vw - 32px));
  padding: 20px 20px 24px;
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  background-color: var(--color-white);
  z-index: 20;
}

.password-requirements-bubble.is-above {
  left: 0;
  top: auto;
  bottom: calc(100% + 8px);
  transform: none;
}

.password-requirements-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-gray-900);
}

.password-requirements-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.password-requirement-item {
  display: flex;
  align-items: flex-start;
  min-height: 32px;
  gap: 8px;
  font-size: 14px;
  color: var(--color-gray-900);
}

.password-requirement-item img {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  filter: brightness(0) saturate(100%) invert(13%) sepia(99%) saturate(6720%) hue-rotate(349deg) brightness(93%) contrast(116%);
}

.password-requirement-item.is-valid {
  color: var(--color-gray-900);
}

.password-requirement-item.is-valid img {
  filter: brightness(0) saturate(100%) invert(31%) sepia(86%) saturate(932%) hue-rotate(91deg) brightness(93%) contrast(95%);
}

.auth-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 416px;
  max-width: 100%;
  height: 44px;
  margin-top: 32px;
  margin-bottom: 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--color-gray-900);
  text-decoration: none;
  background-color: var(--color-karnov-yellow);
}

.auth-action-btn:visited {
  color: var(--color-gray-900);
}

.auth-action-btn:hover,
.auth-action-btn:focus-visible {
  color: var(--color-gray-900);
  background-color: var(--color-karnov-yellow-hover);
}

.auth-action-btn:disabled,
.auth-action-btn[aria-disabled="true"] {
  background-color: var(--color-gray-200);
  cursor: not-allowed;
}

.auth-action-btn:disabled:hover,
.auth-action-btn:disabled:focus-visible,
.auth-action-btn[aria-disabled="true"]:hover,
.auth-action-btn[aria-disabled="true"]:focus-visible {
  background-color: var(--color-gray-200);
}

.auth-action-btn-secondary {
  border: 1px solid var(--color-gray-200);
  background-color: var(--color-white);
}

.auth-action-btn-secondary:hover,
.auth-action-btn-secondary:focus-visible {
  background-color: var(--color-gray-100);
}

.site-header,
.site-footer {
  width: 100%;
}

#site-footer {
  width: 100%;
  margin-top: auto;
}

#site-header {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 64px 0;
}

.site-footer {
  min-height: 54px;
  margin-top: 136px;
  background-color: var(--color-karnov-blue);
}

.site-footer-content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 54px;
  padding: 12px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer-content > nav {
  min-width: 0;
}

.footer-logo {
  height: 20px;
  width: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.site-footer p,
.site-footer a,
.site-footer a:visited {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--color-white);
  text-decoration: none;
}

.footer-nav a {
  white-space: nowrap;
}

a {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
}

.text-important {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
}

.login-options-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.stay-connected-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--color-gray-900);
}

.forgot-password-link,
.forgot-password-link:visited {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-gray-600);
}

.forgot-password-link:hover,
.forgot-password-link:focus-visible {
  color: var(--color-gray-900);
}

.login-error-alert {
  margin-top: 32px;
  padding: 20px 24px;
  background-color: var(--color-background-danger);
  border-left: 4px solid var(--color-danger);
  border-radius: 4px;
  color: var(--color-gray-900);
}

.login-error-alert-title {
  margin: 0 0 16px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--color-gray-900);
}

.login-error-alert-text {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--color-gray-900);
}

.login-error-state #identifier,
.login-error-state #password {
  border-color: var(--color-danger);
}

.login-error-state #identifier:hover,
.login-error-state #password:hover {
  border-color: var(--color-danger);
}

.keyboard-nav .login-error-state #identifier:focus,
.keyboard-nav .login-error-state #password:focus {
  outline-color: var(--color-danger);
}

input.field-error {
  border-color: var(--color-danger);
}

input.field-error:hover {
  border-color: var(--color-danger);
}

.keyboard-nav input.field-error:focus {
  outline-color: var(--color-danger);
}

.login-success-state #identifier,
.login-success-state #password {
  border-color: var(--color-success);
}

.login-success-state #identifier:hover,
.login-success-state #password:hover {
  border-color: var(--color-success);
}

.keyboard-nav .login-success-state #identifier:focus,
.keyboard-nav .login-success-state #password:focus {
  outline-color: var(--color-success);
}

.login-success-state .auth-action-btn[type="submit"] {
  opacity: 0.5;
}

.login-intro-text {
  margin-bottom: 8px;
  color: var(--color-gray-600);
}

.login-separator-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 0 8px;
  margin-bottom: 0;
}

.login-separator-text::before,
.login-separator-text::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--color-gray-200);
}

.error-code-display {
  width: 128px;
  height: 128px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(254, 213, 6, 0.4);
  border-radius: 4px;
  font-family: "Karnov-Display", sans-serif;
  font-size: 48px;
  line-height: 1;
  font-weight: 400;
}

.support-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.support-contact p {
  margin: 0;
  font-size: 16px;
}

.support-contact-link {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--color-gray-600);
}

.support-contact-link:hover,
.support-contact-link:focus-visible {
  color: var(--color-gray-900);
}

.change-password-submit-wrap {
  position: relative;
}

.confirm-password-wrap {
  position: relative;
}

.password-mismatch-message {
  margin: 0;
  margin-top: 4px;
  font-size: 14px;
  color: var(--color-gray-900);
  display: none;
  align-items: center;
  gap: 6px;
}

.password-mismatch-message img {
  width: 14px;
  height: 14px;
  filter: brightness(0) saturate(100%) invert(13%) sepia(99%) saturate(6720%) hue-rotate(349deg) brightness(93%) contrast(116%);
}

.confirm-password-wrap.has-password-mismatch .password-mismatch-message {
  display: inline-flex;
}

@media (max-width: 1300px) {
  .site-footer-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 32px 64px;
    gap: 48px;
  }

  .site-footer-content > nav {
    width: 100%;
  }

  .footer-nav {
    flex-wrap: wrap;
    width: 100%;
    column-gap: 32px;
    row-gap: 32px;
  }

  .footer-nav > li {
    flex: 0 0 calc((100% - 64px) / 3);
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .footer-nav > li {
    flex-basis: calc((100% - 32px) / 2);
  }
}

@media (max-width: 620px) {
  .footer-nav > li {
    flex-basis: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0;
  }

  #site-header {
    padding: 24px 24px 0;
  }

  main {
    max-width: 464px;
    padding: 0 24px;
  }

  .site-footer-content {
    padding: 32px 24px;
  }

  .floating-page-links {
    display: none;
  }

  .password-toggle-btn::after {
    display: none;
  }
}

.floating-page-links {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  padding: 8px 10px;
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  background-color: var(--color-white);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

.floating-page-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.floating-page-links a {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
}

.floating-page-links a[aria-current="page"] {
  font-weight: 500;
}

.floating-page-links-group-title {
  margin-top: 6px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: var(--color-gray-900);
  text-transform: uppercase;
}




.forgot-password-success-image {
  display: block;
  margin: 0 auto 32px;
}

.recaptcha-placeholder {
  margin-top: 12px;
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 4px;
  background-color: var(--color-gray-200);
  color: var(--color-gray-600);
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
}

#recaptcha-wrapper {
  margin-top: 12px;
}

.display-none {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.line-break {
  display: block;
}



/* =====================================================================
   =====================================================================
   ESPACE PERSONNEL (profil / création de compte / confirmation)
   ---------------------------------------------------------------------
   Ajouts au design system du module de connexion ci-dessus.
   Règles réservées à l'espace personnel : soit des classes nouvelles,
   soit des surcharges scopées sous « .userspace » afin de NE JAMAIS
   modifier le rendu des pages de connexion.
   =====================================================================
   ===================================================================== */

/* ---------- Jetons complémentaires ---------- */
:root {
  --color-background-success: #EAF5EA;
  --color-background-info: #EEF2FF;
}

/* Les écrans de l'espace personnel sont embarqués (iframe) : on neutralise
   la mise en page pleine hauteur héritée du module de connexion. */
body.userspace {
  min-height: 0;
  display: block;
}

/* Rétablit l'attribut `hidden` : certains conteneurs de l'espace personnel
   (`.form-field`, `.auth-action-btn`…) forcent un `display`, ce qui masquerait
   sinon l'effet de `hidden` (champ mot de passe, boutons Enregistrer/Annuler). */
.userspace [hidden] {
  display: none !important;
}

/* Espace entre le bouton d'action du profil et le lien « Modifier mon mot de passe ». */
.userspace #change-password-link {
  display: inline-flex;
  margin-top: 24px;
}

/* Formulaire de changement de mot de passe (modèle connexion `form-two-fields`) :
   espacements maîtrisés dans l'espace réduit de l'iframe. */
.userspace #change-password-form {
  margin-top: 20px;
}

/* Espacement inter-groupes appliqué directement sur chaque label, indépendant
   de l'adjacence input+label (un <p> d'erreur peut s'intercaler entre un champ
   et le label suivant et casserait le sélecteur `form-two-fields`). */
.userspace #change-password-form label[for] {
  margin-top: 24px;
}

.userspace #change-password-form label[for]:first-of-type {
  margin-top: 0;
}

.userspace #change-password-form .change-password-submit-wrap {
  margin-top: 24px;
}

.userspace #change-password-form .auth-action-btn-secondary {
  margin-top: 12px;
}

/* Espace personnel embarqué (iframe) : les critères du mot de passe sont
   affichés en flux, sous le champ, plutôt qu'en bulle flottante à droite. */
.userspace .password-requirements-bubble {
  position: static;
  width: auto;
  max-width: none;
  transform: none;
  margin-top: 12px;
  padding: 0 0 0 16px;
  border: none;
}

.userspace .password-requirements-bubble.is-above {
  bottom: auto;
}

.userspace .password-requirements-title {
  margin-bottom: 8px;
}

.userspace .password-requirement-item {
  min-height: 24px;
}

/* ---------- Champ désactivé (ex. code d'accès) ---------- */
input:not([type="checkbox"]):disabled {
  background-color: var(--color-gray-100);
  color: var(--color-gray-600);
  cursor: not-allowed;
  -webkit-text-fill-color: var(--color-gray-600);
}

input:not([type="checkbox"]):disabled:hover {
  border-color: var(--color-gray-200);
}

/* ---------- Boutons dans le contexte espace personnel ---------- */
.userspace .auth-action-btn {
  width: 100%;
  margin: 0;
  gap: 8px;
}

.auth-action-label {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
}

.auth-action-btn[aria-busy="true"] {
  cursor: progress;
}

.auth-action-btn[aria-busy="true"] .auth-action-label {
  opacity: 0.6;
}

.auth-action-spinner {
  display: none;
  width: 1.05em;
  height: 1.05em;
  border: 2px solid rgba(31, 34, 35, 0.35);
  border-top-color: var(--color-gray-900);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.auth-action-btn[aria-busy="true"] .auth-action-spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Lien secondaire de type bouton (« Modifier mon mot de passe ») */
.auth-link-btn {
  align-self: flex-start;
  margin-top: 8px;
  padding: 4px 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-gray-600);
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  border-radius: 4px;
}

.auth-link-btn:hover {
  color: var(--color-gray-900);
}

.auth-link-btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  color: var(--color-gray-900);
}

/* ---------- Mise en page ---------- */
.account-main {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 24px;
}

.account-main--center {
  text-align: center;
}

.account-panel {
  width: 100%;
}

.account-heading {
  margin: 0 0 8px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--color-gray-900);
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  align-self: flex-start;
}

.account-form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* ---------- Bandeau d'état (succès / erreur / info) ---------- */
.account-alert {
  display: inline;
  font-size: 0.95rem;
}

.account-alert--success,
.account-alert--error,
.account-alert--info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.account-alert--success {
  color: var(--color-success);
  background-color: var(--color-background-success);
  border-color: rgba(14, 125, 34, 0.25);
}

.account-alert--error {
  color: var(--color-danger);
  background-color: var(--color-background-danger);
  border-color: rgba(217, 2, 27, 0.25);
}

.account-alert--info {
  color: var(--color-focus);
  background-color: var(--color-background-info);
  border-color: rgba(0, 96, 223, 0.25);
}

.account-alert-text {
  flex: 1 1 auto;
  min-width: 0;
}

.account-alert-close {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: -2px -4px 0 0;
  padding: 0;
  color: inherit;
  background: none;
  border: none;
  border-radius: 4px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.account-alert--success .account-alert-close,
.account-alert--error .account-alert-close,
.account-alert--info .account-alert-close {
  display: inline-flex;
}

.account-alert-close:hover {
  background: rgba(0, 0, 0, 0.08);
}

.account-alert-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px currentColor;
}

/* ---------- Boîte de dialogue (confirmation d'identité) ---------- */
.account-dialog {
  width: min(400px, calc(100vw - 2rem));
  padding: 24px;
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  color: var(--color-gray-900);
  background-color: var(--color-white);
}

.account-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.account-dialog-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.account-dialog-title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
}

.account-dialog-text {
  margin: 0;
  color: var(--color-gray-600);
  font-size: 0.95rem;
}

.account-dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.userspace .account-dialog-actions .auth-action-btn {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

/* ---------- Écran de confirmation ---------- */
.account-confirm-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-success);
}

.account-confirm-icon svg {
  width: 56px;
  height: 56px;
}

/* ---------- Info-bulle (qtip) ---------- */
.qtip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  max-width: 220px;
  padding: 4px 6px;
  font-family: "Roboto", sans-serif;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--color-white);
  background: var(--color-gray-900);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0s linear 0.12s;
}

.qtip.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.12s ease;
}

/* ---------- Responsive espace personnel ---------- */
@media (max-width: 480px) {
  .account-main {
    padding: 24px 16px;
  }
}
