/* ================================================================
   AUTH / ONBOARDING (auth.html) — connexion, inscription, abonnements
   ================================================================ */
.auth-root { min-height: 100vh; background: var(--bg); }
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
}
/* Panneau illustré (gauche) */
.auth-aside {
  position: relative;
  overflow: hidden;
  background: var(--bg-sidebar);
  color: var(--fg-sidebar);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
}
.auth-brand { display: flex; align-items: center; gap: 8px; z-index: 2; }
.auth-brand-mark {
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--accent);
  -webkit-mask: url(assets/logo/logo-mark.png) center / contain no-repeat;
  mask: url(assets/logo/logo-mark.png) center / contain no-repeat;
}
.auth-brand-word {
  width: 104px; height: 28px;
  background: var(--accent);
  -webkit-mask: url(assets/logo/logo-wordmark.png) left center / contain no-repeat;
  mask: url(assets/logo/logo-wordmark.png) left center / contain no-repeat;
}
.auth-aside-body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; z-index: 2; }
.auth-illus-wrap { position: relative; width: 340px; max-width: 70%; margin-bottom: 8px; }
.auth-illus-halo {
  position: absolute; inset: 8%;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent), transparent 68%);
  filter: blur(8px);
}
.auth-illus {
  position: relative;
  width: 100%; display: block;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.28));
  animation: authIllusIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes authIllusIn { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
.auth-aside-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; max-width: 380px; margin: 14px 0 18px; }
.auth-aside-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.auth-aside-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--fg-sidebar-muted); }
.auth-aside-list li svg { color: var(--accent); flex-shrink: 0; }
.auth-aside-foot { z-index: 2; font-size: 12px; color: var(--fg-sidebar-muted); opacity: 0.8; }

/* Feuillage flou décoratif */
.auth-leaf { position: absolute; pointer-events: none; z-index: 0; filter: blur(13px) saturate(1.1); opacity: 0; width: 380px; height: 380px; object-fit: contain; }
.auth-leaf-1 { left: -90px; bottom: -70px; transform: translateX(-60px) rotate(-12deg); animation: authLeaf1 1.2s 0.1s cubic-bezier(0.22,0.7,0.2,1) forwards; }
.auth-leaf-2 { right: -100px; top: -80px; transform: translateX(60px) rotate(16deg); animation: authLeaf2 1.2s 0.2s cubic-bezier(0.22,0.7,0.2,1) forwards; }
@keyframes authLeaf1 { to { opacity: 0.20; transform: translateX(0) rotate(-6deg); } }
@keyframes authLeaf2 { to { opacity: 0.20; transform: translateX(0) rotate(8deg); } }

/* Colonne formulaire (droite) */
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth-head p { color: var(--fg-muted); font-size: 14.5px; margin: 0 0 26px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-field-label { font-size: 13.5px; font-weight: 600; }
.auth-field-label .req { color: var(--red); }
.auth-input {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0 13px;
  background: var(--bg-input);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.auth-input svg { color: var(--fg-muted); flex-shrink: 0; }
.auth-input input { flex: 1; border: none; outline: none; background: transparent; padding: 12px 0; font-size: 14.5px; color: var(--fg); min-width: 0; }
.auth-eye { color: var(--fg-muted); display: grid; place-items: center; padding: 4px; }
.auth-eye:hover { color: var(--fg); }
.auth-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-muted); cursor: pointer; }
.auth-check input { accent-color: var(--accent); }
.auth-link { color: var(--accent); font-weight: 600; font-size: 13.5px; }
.auth-link:hover { text-decoration: underline; }
.auth-submit { justify-content: center; padding: 13px; font-size: 15px; margin-top: 2px; }
.auth-submit.is-loading { opacity: 0.85; }
.auth-spin { display: inline-flex; animation: spin 0.9s linear infinite; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--fg-subtle); font-size: 12px; margin: 4px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-sso { justify-content: center; padding: 12px; }
.auth-switch { text-align: center; margin-top: 24px; font-size: 14px; color: var(--fg-muted); }
.auth-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
/* Évite tout débordement horizontal des champs : la grille peut rétrécir
   sous la largeur disponible, et passe sur une colonne quand c'est trop étroit. */
.auth-card, .auth-form { min-width: 0; }
.auth-form { width: 100%; }
@media (max-width: 420px) {
  .auth-grid-2 { grid-template-columns: 1fr; }
}
/* Badge « bientôt disponible » sur le bouton France Connect (désactivé). */
.auth-sso:disabled { opacity: 1; cursor: not-allowed; color: var(--fg-muted); }
.auth-sso:disabled svg { opacity: 0.6; }
.auth-soon {
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
  background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 80%, var(--fg));
  margin-left: 2px;
}

/* Stepper inscription */
.auth-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.auth-step { display: inline-flex; align-items: center; gap: 8px; width: 26px; height: 26px; border-radius: 999px; background: var(--bg-subtle); color: var(--fg-muted); font-size: 13px; font-weight: 700; justify-content: center; position: relative; }
.auth-step i { position: absolute; left: 34px; font-style: normal; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--fg-muted); }
/* Le libellé de la dernière étape se place à gauche de la pastille pour rester
   dans le cadre (sinon « Activité » déborde à droite sur petit écran). */
.auth-step:last-child i { left: auto; right: 34px; }
.auth-step.done { background: var(--accent); color: var(--check-ink, #2A2208); }
.auth-step.done i { color: var(--fg); }
.auth-step-line { flex: 1; height: 2px; background: var(--border); margin-left: 78px; }
.auth-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--fg-muted); transition: all 0.12s; }
.auth-chip:hover { border-color: var(--border-strong); }
.auth-chip.active { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--fg); font-weight: 600; }
.auth-cgu { align-items: flex-start; line-height: 1.4; }

/* Page abonnements */
.auth-pricing { position: relative; overflow: hidden; min-height: 100vh; padding: 40px 24px 60px; }
.pricing-head { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pricing-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 0; }
.pricing-head > p { color: var(--fg-muted); font-size: 15px; margin: 0; }
.pricing-toggle { display: inline-flex; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 2px; }
.pricing-toggle button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--fg-muted); }
.pricing-toggle button.active { background: var(--bg-card); color: var(--fg); box-shadow: var(--shadow-sm); }
.pricing-save { background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.pricing-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: 18px; justify-content: center; align-items: start; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; position: relative; transition: transform 0.18s, box-shadow 0.18s; }
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pricing-card.popular { border-color: var(--accent); box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 18%, transparent); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--check-ink, #2A2208); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.pricing-name { font-size: 18px; font-weight: 700; }
.pricing-tagline { font-size: 13px; color: var(--fg-muted); }
.pricing-price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 6px; flex-wrap: wrap; }
.pricing-price strong { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.pricing-price span { font-size: 12.5px; color: var(--fg-muted); }
.pricing-features { list-style: none; margin: 6px 0 18px; padding: 14px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 11px; flex: 1; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.pricing-features li svg { color: var(--green); flex-shrink: 0; }
.pricing-card .btn { justify-content: center; padding: 12px; }
.pricing-switch { position: relative; z-index: 1; }

@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 32px 20px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .pricing-card.popular { order: -1; }
}

/* ================================================================
   SKELETON LOADER — beige/doré animé (réutilisable)
   ================================================================ */
/* Nouveau skeleton loader — aligné sur le Design System (.snt-skeleton) :
   dégradé beige/doré animé par background-position (shimmer sntShimmer).
   Feuille chargée en dernier parmi celles définissant .skeleton → fait foi. */
.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--accent) 14%, var(--bg-subtle)) 30%,
    color-mix(in srgb, var(--accent) 34%, var(--bg-card)) 50%,
    color-mix(in srgb, var(--accent) 14%, var(--bg-subtle)) 70%);
  background-size: 200% 100%;
  animation: sntShimmer 1.3s ease-in-out infinite;
  border-radius: 8px;
}
.skeleton::after { content: none; } /* neutralise l'ancien balayage translateX */
@keyframes skeletonSweep { 100% { transform: translateX(100%); } }
.skeleton-text { height: 0.85em; border-radius: 5px; margin: 4px 0; }
.skeleton-circle { border-radius: 999px; }
.skeleton-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }
