/* Pages login / pricing : cartes autonomes (compatible thème clair et sombre) */



.auth-page {

  min-height: 100vh;

  display: flex;

  flex-direction: column;

  background:

    radial-gradient(ellipse 130% 70% at 50% -15%, rgba(239, 74, 52, 0.14), transparent 52%),

    linear-gradient(168deg, #f8fafc 0%, #f1f5f9 40%, #eef2ff 100%);

}



html.theme-dark body.auth-page {

  background:

    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(239, 74, 52, 0.2), transparent 55%),

    linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #1e1b4b 100%);

}



.auth-main {

  flex: 1;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 2rem 1rem;

}



.auth-card {

  --auth-surface: #ffffff;

  --auth-text: #0f172a;

  --auth-muted: #64748b;

  --auth-border: #e2e8f0;

  --auth-input-bg: #ffffff;

  --auth-input-text: #0f172a;

  --auth-tabs-bg: #f1f5f9;

  --auth-tab-active-bg: #ffffff;



  color-scheme: light;

  width: 100%;

  max-width: 440px;

  background: var(--auth-surface);

  color: var(--auth-text);

  border-radius: 16px;

  box-shadow: var(--shadow-lg);

  padding: 2rem 1.75rem;

  border: 1px solid var(--auth-border);

}



html.theme-dark .auth-card {

  --auth-surface: #1e293b;

  --auth-text: #f1f5f9;

  --auth-muted: #94a3b8;

  --auth-border: #334155;

  --auth-input-bg: #0f172a;

  --auth-input-text: #f1f5f9;

  --auth-tabs-bg: #0f172a;

  --auth-tab-active-bg: #1e293b;



  color-scheme: dark;

}



.auth-card h1 {

  font-size: 1.5rem;

  margin-bottom: 0.35rem;

  color: var(--auth-text);

}



.auth-card .auth-subtitle {

  color: var(--auth-muted);

  font-size: 0.95rem;

  margin-bottom: 1.5rem;

  line-height: 1.5;

}



.auth-oauth-btn {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 0.65rem;

  width: 100%;

  margin-bottom: 1rem;

  padding: 0.65rem 1rem;

  border: 1px solid var(--auth-border);

  border-radius: 10px;

  background: var(--auth-tab-active-bg);

  color: var(--auth-text);

  font-family: inherit;

  font-size: 0.95rem;

  font-weight: 600;

  cursor: pointer;

  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;

}



.auth-oauth-btn:hover:not(:disabled) {

  border-color: var(--primary);

  box-shadow: var(--shadow-sm);

}



.auth-oauth-btn:disabled {

  opacity: 0.65;

  cursor: wait;

}



.auth-oauth-btn__icon {

  display: block;

  flex-shrink: 0;

  width: 20px;

  height: 20px;

  object-fit: contain;

}



.auth-oauth-divider {

  display: flex;

  align-items: center;

  gap: 0.75rem;

  margin: 0 0 1.15rem;

  color: var(--auth-muted);

  font-size: 0.8rem;

}



.auth-oauth-divider::before,

.auth-oauth-divider::after {

  content: "";

  flex: 1;

  height: 1px;

  background: var(--auth-border);

}



.auth-oauth-finish__lead {

  color: var(--auth-muted);

  font-size: 0.95rem;

  margin-bottom: 1rem;

  line-height: 1.5;

}



.auth-tabs {

  display: flex;

  gap: 0.35rem;

  margin-bottom: 1.35rem;

  background: var(--auth-tabs-bg);

  padding: 0.3rem;

  border-radius: 10px;

  border: 1px solid var(--auth-border);

}



.auth-tabs button {

  flex: 1;

  border: none;

  background: transparent;

  padding: 0.6rem 1rem;

  border-radius: 8px;

  font-weight: 600;

  cursor: pointer;

  color: var(--auth-muted);

  font-family: inherit;

  font-size: 0.9rem;

  transition: background 0.15s, color 0.15s;

}



.auth-tabs button:hover:not(.active) {

  color: var(--auth-text);

}



.auth-tabs button.active {

  background: var(--auth-tab-active-bg);

  color: var(--primary);

  box-shadow: var(--shadow-sm);

}



html.theme-dark .auth-tabs button.active {

  color: #ffb199;

}



.auth-panel {

  display: none;

}



.auth-panel.active {

  display: block;

}



.auth-form label {

  display: block;

  font-size: 0.875rem;

  font-weight: 600;

  margin-bottom: 0.4rem;

  color: var(--auth-text);

}



.auth-forgot-wrap {

  margin: -0.25rem 0 0.75rem;

  text-align: right;

}



.auth-forgot-link {

  padding: 0;

  border: none;

  background: none;

  font-family: inherit;

  font-size: 0.8125rem;

  font-weight: 600;

  color: var(--primary, #ef4a34);

  cursor: pointer;

  text-decoration: underline;

  text-underline-offset: 2px;

}



.auth-forgot-link:hover {

  color: var(--secondary, #b5590b);

}



.auth-form .auth-hint {

  display: block;

  font-size: 0.75rem;

  font-weight: 400;

  color: var(--auth-muted);

  margin: -0.2rem 0 0.5rem;

}



.auth-form input {

  width: 100%;

  padding: 0.7rem 0.85rem;

  border: 1px solid var(--auth-border);

  border-radius: 8px;

  margin-bottom: 1rem;

  font-size: 1rem;

  font-family: inherit;

  background: var(--auth-input-bg);

  color: var(--auth-input-text);

}



.auth-form input::placeholder {

  color: var(--auth-muted);

  opacity: 0.85;

}



.auth-form input:focus {

  outline: 2px solid var(--primary-light);

  outline-offset: 0;

  border-color: var(--primary);

}



.auth-form .btn-submit {

  width: 100%;

  margin-top: 0.35rem;

  padding: 0.75rem 1rem;

  font-size: 1rem;

}



.auth-error {

  background: #fef2f2;

  color: #b91c1c;

  padding: 0.65rem 0.85rem;

  border-radius: 8px;

  font-size: 0.875rem;

  margin-bottom: 1rem;

  border: 1px solid #fecaca;

}



html.theme-dark .auth-error {

  background: rgba(127, 29, 29, 0.35);

  color: #fecaca;

  border-color: #991b1b;

}



.auth-success {

  background: #ecfdf5;

  color: #047857;

  padding: 0.65rem 0.85rem;

  border-radius: 8px;

  font-size: 0.875rem;

  margin-bottom: 1rem;

  border: 1px solid #a7f3d0;

}



html.theme-dark .auth-success {

  background: rgba(6, 78, 59, 0.35);

  color: #a7f3d0;

  border-color: #065f46;

}



.auth-info {

  background: #eef3fb;

  color: #1b2a4e;

  padding: 0.65rem 0.85rem;

  border-radius: 8px;

  font-size: 0.875rem;

  margin-bottom: 1rem;

  border: 1px solid #c9d6ee;

}



html.theme-dark .auth-info {

  background: rgba(30, 58, 138, 0.35);

  color: #dbeafe;

  border-color: #1e40af;

}



.auth-error[hidden],

.auth-info[hidden],

.auth-success[hidden] {

  display: none;

}



/* Après l'inscription par e-mail : l'adresse doit être validée (lien reçu par mail) */
.auth-confirm {
  text-align: center;
}

.auth-confirm[hidden] {
  display: none;
}

.auth-confirm:focus {
  outline: none;
}

.auth-confirm__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  color: var(--primary, #ef4a34);
  background: color-mix(in srgb, var(--primary, #ef4a34) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary, #ef4a34) 24%, var(--auth-border, #e2e8f0));
}

.auth-confirm__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--auth-text);
}

.auth-confirm__lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--auth-text);
  overflow-wrap: anywhere;
}

.auth-confirm__steps {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem 0.8rem 2.2rem;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--auth-text);
  background: var(--auth-tabs-bg);
  border: 1px solid var(--auth-border);
  border-radius: 10px;
}

.auth-confirm__steps li + li {
  margin-top: 0.3rem;
}

.auth-confirm__hint {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--auth-muted);
}

.auth-confirm .btn-submit {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--auth-muted);
  cursor: pointer;
}

.auth-terms input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-terms a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-terms a:hover {
  color: var(--primary-dark, #ef4a34);
}



.legal-main {
  align-items: flex-start;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.legal-card {
  width: 100%;
  max-width: 720px;
  background: var(--auth-surface, #fff);
  color: var(--auth-text, #0f172a);
  border: 1px solid var(--auth-border, #e2e8f0);
  border-radius: 16px;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: var(--shadow-md, 0 10px 30px rgba(15, 23, 42, 0.08));
}

html.theme-dark .legal-card {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

.legal-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.legal-meta {
  color: var(--auth-muted, #64748b);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.legal-card section {
  margin-bottom: 1.1rem;
}

.legal-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.legal-card p,
.legal-card li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: inherit;
}

.legal-card ul {
  padding-left: 1.25rem;
}

.legal-back {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.legal-back a {
  color: var(--primary);
  font-weight: 600;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--auth-border, #e2e8f0);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: rgba(239, 74, 52, 0.08);
  font-weight: 600;
}

html.theme-dark .legal-table th,
html.theme-dark .legal-table td {
  border-color: #334155;
}

html.theme-dark .legal-table th {
  background: rgba(239, 74, 52, 0.15);
}

.legal-site-footer {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
}

.legal-site-footer a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer .legal-site-footer {
  margin: 0;
}



.auth-footer-link {

  margin-top: 1.25rem;

  text-align: center;

  font-size: 0.9rem;

}



.auth-footer-link a {

  color: var(--primary);

  font-weight: 600;

  text-decoration: none;

}



.auth-footer-link a:hover {

  text-decoration: underline;

}









.settings-block__title {

  margin: 0 0 0.65rem;

  font-size: 0.95rem;

  font-weight: 700;

  color: var(--auth-text, var(--text-dark));

}



.settings-block__desc {

  margin: 0 0 0.85rem;

  font-size: 0.875rem;

  color: var(--auth-muted, var(--text-light));

  line-height: 1.5;

}

.settings-page {
  width: 100%;
  max-width: 920px;
  --auth-surface: #fff;
  --auth-text: var(--text-dark, #14141a);
  --auth-muted: var(--text-light, #4a4a52);
  --auth-border: var(--border, #e6ddc8);
  --auth-input-bg: #fff;
  --auth-input-text: var(--text-dark, #14141a);
}

.settings-page__head {
  margin-bottom: 1.5rem;
}

.settings-page__head h1 {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
  color: var(--text-dark, #0f172a);
}

.settings-page__head .auth-subtitle {
  margin: 0;
  color: var(--text-light, #64748b);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.settings-card {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-top: 1.25rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.settings-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.settings-grid .settings-card {
  margin-top: 0;
}

.settings-card .settings-row + .auth-form {
  margin-top: 1.35rem;
}

.settings-card--session {
  padding: 1.1rem 1.5rem;
}

.settings-card--danger {
  border-color: rgba(185, 28, 28, 0.3);
  background: rgba(185, 28, 28, 0.03);
}

.settings-card--danger .settings-block__title {
  color: #b91c1c;
}

@media (max-width: 720px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}



.settings-btn {

  width: 100%;

  justify-content: center;

}

.settings-billing-card {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--auth-border, #e2e8f0);
  background: rgba(239, 74, 52, 0.05);
}

.settings-billing-card__text {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--auth-muted, #64748b);
}

.settings-row--billing {
  margin: 0;
  background: var(--auth-surface, #fff);
}

.settings-billing-portal-btn {
  white-space: nowrap;
}

.settings-billing-lifetime {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--auth-muted, #64748b);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--auth-border, #e2e8f0);
}

html.theme-dark .settings-billing-card {
  background: rgba(239, 74, 52, 0.12);
  border-color: #475569;
}

html.theme-dark .settings-row--billing {
  background: rgba(15, 23, 42, 0.5);
}

html.theme-dark .settings-billing-lifetime {
  background: rgba(30, 41, 59, 0.65);
  border-color: #475569;
  color: #94a3b8;
}



.settings-btn-inline {

  width: auto;

  min-width: 10rem;

  margin-top: 0.25rem;

}



.settings-btn-inline--danger {

  width: 100%;

  margin-top: 0.35rem;

}



.settings-divider {

  display: flex;

  align-items: center;

  gap: 0.75rem;

  margin: 1rem 0 0.75rem;

  color: var(--auth-muted, var(--text-light));

  font-size: 0.8rem;

}



.settings-divider::before,

.settings-divider::after {

  content: "";

  flex: 1;

  height: 1px;

  background: var(--border, #e2e8f0);

}



.settings-text-btn {

  display: inline-block;

  padding: 0;

  border: none;

  background: none;

  font-family: inherit;

  font-size: 0.875rem;

  font-weight: 600;

  color: var(--primary, #ef4a34);

  cursor: pointer;

  text-align: left;

  text-decoration: underline;

  text-underline-offset: 2px;

}



.settings-text-btn:hover {

  color: var(--secondary, #b5590b);

}



.settings-text-btn:disabled {

  opacity: 0.6;

  cursor: wait;

}



.settings-text-btn--link {

  text-decoration: none;

}



.settings-text-btn--link:hover {

  text-decoration: underline;

}



.settings-logout-btn {

  display: inline-flex;

  align-items: center;

  gap: 0.45rem;

  padding: 0.5rem 1rem;

  border-radius: 8px;

  border: 1px solid rgba(185, 28, 28, 0.35);

  background: transparent;

  color: #b91c1c;

  font-family: inherit;

  font-size: 0.875rem;

  font-weight: 600;

  cursor: pointer;

  transition: background 0.15s ease, border-color 0.15s ease;

}



.settings-logout-btn:hover {

  background: rgba(185, 28, 28, 0.08);

  border-color: #b91c1c;

}



html.theme-dark .settings-logout-btn {

  color: #fca5a5;

  border-color: rgba(248, 113, 113, 0.4);

}



html.theme-dark .settings-logout-btn:hover {

  background: rgba(127, 29, 29, 0.35);

}






.settings-row {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 1rem;

  padding: 0.75rem 0.9rem;

  border-radius: 10px;

  border: 1px solid var(--border, #e2e8f0);

  background: rgba(248, 250, 252, 0.5);

}



.settings-row__info {

  min-width: 0;

}



.settings-row__label {

  display: block;

  font-size: 0.9rem;

  font-weight: 600;

  color: var(--auth-text, var(--text-dark));

}



.settings-row__meta {

  display: block;

  font-size: 0.75rem;

  color: var(--auth-muted, var(--text-light));

  margin-top: 0.15rem;

}



.settings-row__btn {

  flex-shrink: 0;

  padding: 0.4rem 0.85rem;

  border-radius: 8px;

  border: 1px solid var(--border, #e2e8f0);

  background: #fff;

  font-family: inherit;

  font-size: 0.8125rem;

  font-weight: 600;

  color: var(--primary, #ef4a34);

  cursor: pointer;

  transition: background 0.15s ease, border-color 0.15s ease;

}



.settings-row__btn:hover {

  background: rgba(239, 74, 52, 0.08);

  border-color: rgba(239, 74, 52, 0.35);

}



.settings-text-btn--sm {

  margin-top: 0.5rem;

  font-size: 0.8125rem;

}



html.theme-dark .settings-row {

  background: rgba(30, 41, 59, 0.45);

  border-color: #475569;

}



html.theme-dark .settings-row__btn {

  background: #1e293b;

  border-color: #475569;

  color: #ffb199;

}



/* Modal mot de passe */

body.modal-open {

  overflow: hidden;

}



.settings-modal {

  position: fixed;

  inset: 0;

  z-index: 2000;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 1rem;

}



.settings-modal[hidden] {

  display: none !important;

}



.settings-modal__backdrop {

  position: absolute;

  inset: 0;

  background: rgba(15, 23, 42, 0.55);

  backdrop-filter: blur(4px);

}



.settings-modal__dialog {

  --modal-bg: #ffffff;

  --modal-text: #0f172a;

  --modal-muted: #64748b;

  --modal-border: #e2e8f0;

  --modal-input-bg: #f8fafc;

  position: relative;

  width: min(100%, 340px);

  padding: 1.15rem 1.15rem 1.1rem;

  border-radius: 16px;

  background: var(--modal-bg);

  color: var(--modal-text);

  border: 1px solid var(--modal-border);

  box-shadow:

    0 4px 6px rgba(15, 23, 42, 0.04),

    0 24px 48px rgba(15, 23, 42, 0.18);

}



.settings-modal__close {

  position: absolute;

  top: 0.65rem;

  right: 0.65rem;

  width: 2rem;

  height: 2rem;

  border: none;

  border-radius: 8px;

  background: transparent;

  font-size: 1.35rem;

  line-height: 1;

  color: var(--auth-muted, var(--text-light));

  cursor: pointer;

}



.settings-modal__close:hover {

  background: rgba(148, 163, 184, 0.2);

  color: var(--auth-text, var(--text-dark));

}



.settings-modal__title {

  margin: 0 1.75rem 0.85rem 0;

  font-size: 1.05rem;

  font-weight: 700;

  letter-spacing: -0.02em;

  color: var(--modal-text);

}

.settings-modal__hint {

  margin: -0.35rem 0 0.85rem;

  font-size: 0.8125rem;

  color: var(--auth-muted, #64748b);

  line-height: 1.4;

}



.settings-modal__error {

  background: #fef2f2;

  color: #b91c1c;

  padding: 0.5rem 0.65rem;

  border-radius: 8px;

  font-size: 0.8125rem;

  margin-bottom: 0.75rem;

  border: 1px solid #fecaca;

}



.settings-modal__error[hidden] {

  display: none;

}



.settings-modal__form {

  display: flex;

  flex-direction: column;

  gap: 0.65rem;

}



.settings-modal__field {

  display: flex;

  flex-direction: column;

  gap: 0.3rem;

}



.settings-modal__field label {

  font-size: 0.75rem;

  font-weight: 600;

  color: var(--modal-muted);

  text-transform: uppercase;

  letter-spacing: 0.04em;

}



.settings-modal__input {

  box-sizing: border-box;

  width: 100%;

  padding: 0.55rem 0.7rem;

  font-size: 0.9375rem;

  font-family: inherit;

  color: var(--modal-text);

  background: var(--modal-input-bg);

  border: 1px solid var(--modal-border);

  border-radius: 8px;

  transition: border-color 0.15s ease, box-shadow 0.15s ease;

}



.settings-modal__input::placeholder {

  color: #94a3b8;

}



.settings-modal__input:hover {

  border-color: #cbd5e1;

}



.settings-modal__input:focus {

  outline: none;

  border-color: #ef4a34;

  box-shadow: 0 0 0 3px rgba(239, 74, 52, 0.2);

  background: var(--modal-bg);

}



.settings-modal__actions {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 0.5rem;

  margin-top: 0.35rem;

  padding-top: 0.5rem;

  border-top: 1px solid var(--modal-border);

}



.settings-modal__btn {

  box-sizing: border-box;

  flex: none;

  width: 100%;

  padding: 0.55rem 0.75rem;

  border-radius: 8px;

  font-family: inherit;

  font-size: 0.875rem;

  font-weight: 600;

  cursor: pointer;

  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;

}



.settings-modal__btn--ghost {

  border: 1px solid var(--modal-border);

  background: var(--modal-bg);

  color: var(--modal-text);

}



.settings-modal__btn--ghost:hover {

  background: var(--modal-input-bg);

  border-color: #cbd5e1;

}



.settings-modal__btn--primary {

  border: none;

  background: #ef4a34;

  color: #fff;

}



.settings-modal__btn--primary:hover {

  background: #ef4a34;

}



.settings-modal__btn--primary:active,

.settings-modal__btn--ghost:active {

  transform: scale(0.98);

}



.settings-modal__btn:disabled {

  opacity: 0.55;

  cursor: not-allowed;

}



html.theme-dark .settings-modal__dialog {

  --modal-bg: #1e293b;

  --modal-text: #f1f5f9;

  --modal-muted: #94a3b8;

  --modal-border: #475569;

  --modal-input-bg: #0f172a;

}



html.theme-dark .settings-modal__error {

  background: rgba(127, 29, 29, 0.35);

  color: #fecaca;

  border-color: #991b1b;

}



html.theme-dark .settings-modal__input:focus {

  border-color: #ff8a72;

  box-shadow: 0 0 0 3px rgba(255, 138, 114, 0.25);

}



html.theme-dark .settings-modal__btn--primary {

  background: #ef4a34;

}



html.theme-dark .settings-modal__btn--primary:hover {

  background: #ff8a72;

}



.settings-block--danger .settings-block__title {

  color: #b91c1c;

}



.settings-delete-input {

  width: 100%;

  margin-bottom: 0.75rem;

  padding: 0.65rem 0.85rem;

  border-radius: 8px;

  border: 1px solid #fecaca;

  font-family: inherit;

  font-size: 0.9rem;

}



.btn-danger {

  background: #dc2626;

  color: #fff;

  border: none;

  border-radius: 8px;

  padding: 0.65rem 1rem;

  font-weight: 600;

  cursor: pointer;

  font-family: inherit;

}



.btn-danger:hover:not(:disabled) {

  background: #b91c1c;

}



.btn-danger:disabled {

  opacity: 0.55;

  cursor: not-allowed;

}



.theme-switch {

  display: inline-flex;

  padding: 4px;

  border-radius: 12px;

  background: var(--light-bg, #f1f5f9);

  border: 1px solid var(--border, #e2e8f0);

  gap: 4px;

  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);

}



.theme-switch__btn {

  display: inline-flex;

  align-items: center;

  gap: 0.35rem;

  border: none;

  background: transparent;

  color: var(--auth-muted, var(--text-light));

  font-family: inherit;

  font-size: 0.8125rem;

  font-weight: 600;

  padding: 0.5rem 1rem;

  border-radius: 9px;

  cursor: pointer;

  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;

}



.theme-switch__btn .theme-switch__icon {

  font-size: 1rem;

  line-height: 1;

}



.theme-switch__btn.is-active {

  background: #fff;

  color: var(--primary, #ef4a34);

  box-shadow: 0 2px 8px rgba(239, 74, 52, 0.15);

}



html.theme-dark .theme-switch {

  background: #1e293b;

  border-color: #475569;

}



html.theme-dark .theme-switch__btn.is-active {

  background: #334155;

  color: #ffb199;

}



html.theme-dark .settings-delete-input {

  background: #0f172a;

  border-color: #7f1d1d;

  color: #f1f5f9;

}



/* Pricing */

.pricing-card {

  max-width: 480px;

}



.pricing-card--plans {

  max-width: 920px;

}



.pricing-already-access {
  margin: 1.25rem 0;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  text-align: center;
}

.pricing-already-access p {
  margin: 0 0 0.75rem;
}

.pricing-already-access__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

html.theme-dark .pricing-already-access {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
}



.pricing-plans {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 1rem;

  margin: 1.25rem 0 1rem;

  list-style: none;

  padding: 0;

}



.pricing-plan {

  position: relative;

  display: flex;

  flex-direction: column;

  gap: 0.5rem;

  padding: 1.15rem 1.1rem;

  border-radius: 14px;

  border: 1px solid var(--border, #e2e8f0);

  background: rgba(248, 250, 252, 0.6);

}



.pricing-plan--featured {

  border-color: rgba(239, 74, 52, 0.45);

  box-shadow: 0 8px 28px rgba(239, 74, 52, 0.12);

}



.pricing-plan__badge {

  position: absolute;

  top: 0.65rem;

  right: 0.65rem;

  font-size: 0.65rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.05em;

  padding: 0.2rem 0.45rem;

  border-radius: 999px;

  background: linear-gradient(135deg, var(--primary), var(--secondary));

  color: #fff;

}



.pricing-plan__name {

  margin: 0;

  font-size: 1rem;

  font-weight: 700;

  color: var(--auth-text, var(--text-dark));

}



.pricing-plan__price {

  margin: 0;

  font-size: 1.75rem;

  font-weight: 800;

  color: var(--primary);

  line-height: 1.2;

}



.pricing-plan__price span {

  display: block;

  font-size: 0.8rem;

  font-weight: 500;

  color: var(--auth-muted, var(--text-light));

  margin-top: 0.15rem;

}



.pricing-plan__hint {

  margin: 0 0 0.35rem;

  font-size: 0.8rem;

  color: var(--auth-muted, var(--text-light));

  line-height: 1.45;

  flex: 1;

}



.pricing-plan__btn {

  width: 100%;

  margin-top: auto;

}



.pricing-legal {

  margin-top: 1rem !important;

  margin-bottom: 0 !important;

  font-size: 0.78rem !important;

}



html.theme-dark .pricing-plan {

  background: rgba(30, 41, 59, 0.5);

  border-color: #475569;

}



.pricing-price {

  font-size: 2.5rem;

  font-weight: 800;

  color: var(--primary);

  margin: 0.5rem 0;

}



.pricing-card h1,

.pricing-card p,

.pricing-features li {

  color: var(--auth-text, var(--text-dark));

}



.pricing-card .auth-subtitle {

  color: var(--auth-muted, var(--text-light));

}



.pricing-price span {

  font-size: 1rem;

  font-weight: 500;

  color: var(--auth-muted, var(--text-light));

}



.pricing-included {
  margin: 1.15rem 0 1.35rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--auth-border, #e2e8f0);
  background: color-mix(in srgb, var(--primary, #ef4a34) 6%, var(--auth-surface, #fff));
}

.pricing-included__title {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--auth-muted, #64748b);
}

.pricing-included__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.pricing-included__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: var(--auth-tab-active-bg, #fff);
  border: 1px solid var(--auth-border, #e2e8f0);
}

.pricing-included__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  object-fit: contain;
}

.pricing-included__glyph {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary, #ef4a34);
  background: color-mix(in srgb, var(--primary, #ef4a34) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary, #ef4a34) 22%, var(--auth-border, #e2e8f0));
}

.pricing-included__glyph--atelier {
  font-size: 0.85rem;
  font-family: ui-monospace, monospace;
}

.pricing-included__glyph--quiz {
  font-size: 1rem;
}

.pricing-included__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.pricing-included__body strong {
  font-size: 0.9rem;
  color: var(--auth-text, #0f172a);
}

.pricing-included__body span {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--auth-muted, #64748b);
}

.pricing-included__note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--auth-muted, #64748b);
}

html.theme-dark .pricing-included {
  background: color-mix(in srgb, var(--primary, #ef4a34) 14%, #1e293b);
}

html.theme-dark .pricing-included__item {
  background: #0f172a;
  border-color: #334155;
}

.pricing-features {

  list-style: none;

  margin: 1.25rem 0 1.5rem;

}



.pricing-features li {

  padding: 0.4rem 0;

  padding-left: 1.5rem;

  position: relative;

}



.pricing-features li::before {

  content: "✓";

  position: absolute;

  left: 0;

  color: var(--success);

  font-weight: 700;

}



.pricing-user {

  font-size: 0.875rem;

  color: var(--auth-muted, var(--text-light));

  margin-bottom: 1rem;

}



.pricing-user strong {

  color: var(--auth-text, var(--text-dark));

}



.pricing-guest-hint {

  margin: 0 0 1.25rem;

  font-size: 0.9rem;

  line-height: 1.55;

  color: var(--text-light);

  text-align: center;

}



.pricing-guest-hint a {

  font-weight: 600;

  color: var(--primary);

  text-decoration: none;

}



.pricing-guest-hint a:hover {

  text-decoration: underline;

}



.btn-logout-link {

  display: block;

  text-align: center;

  margin-top: 1rem;

  background: none;

  border: none;

  color: var(--auth-muted, var(--text-light));

  cursor: pointer;

  font-size: 0.875rem;

  text-decoration: underline;

  font-family: inherit;

  width: 100%;

}



.btn-logout-link[hidden] {

  display: none;

}



.btn-logout-link:hover {

  color: var(--primary);

}



.home-pay-banner {

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: space-between;

  gap: 1rem;

  max-width: 1100px;

  margin: 1rem auto 0;

  padding: 1rem 1.25rem;

  border-radius: 12px;

  background: linear-gradient(135deg, rgba(239, 74, 52, 0.12), rgba(181, 89, 11, 0.08));

  border: 1px solid rgba(239, 74, 52, 0.25);

  box-shadow: var(--shadow-sm);

}



.home-pay-banner p {

  margin: 0;

  color: var(--text-dark);

  font-size: 0.95rem;

  flex: 1;

  min-width: 200px;

}



.home-pay-banner__actions {

  display: flex;

  flex-wrap: wrap;

  gap: 0.5rem;

  align-items: center;

}



.home-pay-banner[hidden] {

  display: none;

}



.btn-sm {

  padding: 0.5rem 1rem;

  font-size: 0.875rem;

}



.nav-auth-link {

  font-weight: 600;

  color: var(--primary) !important;

}



.nav-auth-link--cta {

  background: linear-gradient(135deg, var(--primary), var(--secondary));

  color: white !important;

  padding: 0.35rem 0.85rem !important;

  border-radius: 8px;

}



.nav-auth-link--cta:hover {

  opacity: 0.92;

}



@media (max-width: 480px) {

  .auth-card {

    padding: 1.5rem 1.15rem;

  }

}

/* Pricing cleanup: lighter and cleaner layout */
.pricing-card--plans {
  max-width: 1060px;
  padding: 1.45rem 1.35rem 1.25rem;
  border-radius: 18px;
}

.pricing-card--plans h1 {
  margin-bottom: 0.2rem;
}

.pricing-card--plans .auth-subtitle {
  margin-bottom: 1rem;
}

.pricing-included {
  margin: 0.95rem 0 1.1rem;
  padding: 0.85rem 0.9rem;
  background: color-mix(in srgb, var(--primary, #ef4a34) 4%, var(--auth-surface, #fff));
}

.pricing-included__grid {
  gap: 0.5rem;
}

.pricing-included__item {
  gap: 0.55rem;
  padding: 0.5rem 0.55rem;
  border-radius: 9px;
  background: color-mix(in srgb, var(--auth-tab-active-bg, #fff) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--auth-border, #e2e8f0) 88%, transparent);
}

.pricing-included__body strong {
  font-size: 0.88rem;
}

.pricing-included__body span {
  font-size: 0.75rem;
}

.pricing-included__note {
  margin-top: 0.6rem;
  font-size: 0.76rem;
}

.pricing-guest-hint {
  margin: 0 0 0.95rem;
  font-size: 0.86rem;
}

.pricing-plans {
  gap: 0.8rem;
  margin: 0.95rem 0 0.8rem;
}

.pricing-plan {
  gap: 0.35rem;
  padding: 0.95rem 0.9rem;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.48);
}

.pricing-plan__name {
  font-size: 0.93rem;
}

.pricing-plan__price {
  font-size: 1.55rem;
}

.pricing-plan__price span {
  font-size: 0.76rem;
}

.pricing-plan__hint {
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
}

.pricing-plan__btn {
  min-height: 42px;
}

html.theme-dark .pricing-plan {
  background: rgba(30, 41, 59, 0.42);
}



/* Formule demandée depuis l'accueil (pricing.html?plan=…) */
.pricing-plan--highlight {
  outline: 3px solid var(--primary, #ef4a34);
  outline-offset: 3px;
  animation: pricing-plan-pulse 1.4s ease-out 1;
}

@keyframes pricing-plan-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 74, 52, 0.45); }
  100% { box-shadow: 0 0 0 18px rgba(239, 74, 52, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-plan--highlight { animation: none; }
}
