/* UDCShare v2 — pages de compte (connexion, inscription, mot de passe). Jetons : tokens.css. */
.v2-auth .v2-card { padding: var(--space-5) var(--space-4); }
@media (min-width: 48rem) { .v2-auth .v2-card { padding: var(--space-6); } }
.v2-auth h1, .v2-auth__code h2 { font-size: var(--font-size-xl); margin-bottom: var(--space-1); }
.v2-auth .v2-alert { margin-block: var(--space-3); }
/* Bouton Google : charte « Sign in with Google ». Light en clair, Dark en sombre ; même logique que tokens.css (préférence système, sauf thème forcé). */
.v2-gbtn {
  --gbtn-bg: #ffffff; --gbtn-border: #747775; --gbtn-text: #1f1f1f; --gbtn-hover: rgba(48, 48, 48, 0.08);
  display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box;
  min-height: var(--size-tap); margin-top: var(--space-4); padding: 0 12px;
  background: var(--gbtn-bg); color: var(--gbtn-text); border: 1px solid var(--gbtn-border); border-radius: var(--radius-pill);
  font: 500 14px/20px 'Google Sans', Roboto, Arial, sans-serif; text-decoration: none; cursor: pointer;
  transition: background var(--motion-fast);
}
.v2-gbtn:hover { background-image: linear-gradient(var(--gbtn-hover), var(--gbtn-hover)); }
.v2-gbtn__logo { flex: none; width: 20px; height: 20px; margin-right: 10px; }
.v2-gbtn__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .v2-gbtn { --gbtn-bg: #131314; --gbtn-border: #8e918f; --gbtn-text: #e3e3e3; --gbtn-hover: rgba(255, 255, 255, 0.08); }
}
[data-theme="dark"] .v2-gbtn { --gbtn-bg: #131314; --gbtn-border: #8e918f; --gbtn-text: #e3e3e3; --gbtn-hover: rgba(255, 255, 255, 0.08); }
.v2-auth__note { font-size: var(--font-size-sm); color: var(--color-text-muted); margin: var(--space-2) 0 0; }
.v2-auth__separator { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) 0; color: var(--color-text-muted); font-size: var(--font-size-sm); }
.v2-auth__separator::before, .v2-auth__separator::after { content: ""; flex: 1; border-top: 1px solid var(--color-border); }
.v2-auth__password { display: flex; gap: var(--space-2); }
.v2-auth__password .v2-input { flex: 1; min-width: 0; }
/* Champ mot de passe : le bouton œil est posé dans le champ (zone tactile 48 px, comme chez Google). */
.v2-auth [hidden] { display: none !important; }
.v2-auth__password { position: relative; display: block; }
.v2-auth__password .v2-input { width: 100%; padding-inline-end: var(--size-tap); }
.v2-auth__eye { position: absolute; inset-block: 0; inset-inline-end: 0; display: inline-flex; align-items: center; justify-content: center; width: var(--size-tap); background: transparent; border: 0; border-radius: var(--radius-md); color: var(--color-text-muted); cursor: pointer; }
.v2-auth__eye:hover { color: var(--color-text); }
.v2-auth__eye:focus-visible { outline: 3px solid var(--color-focus); outline-offset: -3px; }
.v2-auth__eye svg { width: 22px; height: 22px; }
.v2-auth__eye .v2-auth__eye-off, .v2-auth__eye[aria-pressed="true"] .v2-auth__eye-on { display: none; }
.v2-auth__eye[aria-pressed="true"] .v2-auth__eye-off { display: block; }
/* Étapes : pastille de l'adresse choisie, progression, boutons Retour / Suivant. */
.v2-auth__chip { display: inline-flex; align-items: center; gap: var(--space-2); max-width: 100%; min-height: 40px; margin: 0 0 var(--space-4); padding: 0 var(--space-3) 0 var(--space-2); background: var(--color-surface-2); color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius-pill); font: inherit; font-size: var(--font-size-sm); cursor: pointer; }
.v2-auth__chip:hover { border-color: var(--color-border-strong); }
.v2-auth__chip:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.v2-auth__chip svg { flex: none; width: 18px; height: 18px; }
.v2-auth__chip-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-auth__progress { margin: 0 0 var(--space-4); }
.v2-auth__progress p { margin: 0 0 var(--space-2); }
.v2-auth__bar { height: 4px; background: var(--color-border); border-radius: var(--radius-pill); overflow: hidden; }
.v2-auth__bar span { display: block; height: 100%; width: 0; background: var(--color-brand-strong); border-radius: inherit; transition: width var(--motion-fast); }
.v2-auth__actions { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.v2-auth__actions .v2-btn--primary { margin-inline-start: auto; }
.v2-auth__rule { margin: calc(-1 * var(--space-3)) 0 var(--space-4); }
.v2-auth__forgot { margin: calc(-1 * var(--space-2)) 0 var(--space-4); text-align: right; }
.v2-auth__forgot a, .v2-auth__switch a, .v2-auth__links a { display: inline-block; min-height: var(--size-tap); line-height: var(--size-tap); }
.v2-auth__turnstile:empty { display: none; }
.v2-auth__turnstile { margin-bottom: var(--space-3); max-width: 100%; overflow: hidden; }
.v2-auth [data-v2-form-error] { margin: 0 0 var(--space-3); }
.v2-auth__switch { text-align: center; margin: var(--space-4) 0 0; }
.v2-auth__code-input { font-size: var(--font-size-xl); letter-spacing: 0.3em; text-align: center; }
.v2-auth__code-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); }
.v2-auth__back { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; color: var(--color-link); font-weight: var(--font-weight-medium); text-decoration: none; }
.v2-auth__back svg { width: 20px; height: 20px; }

/* Écran d'appli (27/10/2026) : barre courte (retour, logo, thème), écran plein sur téléphone, carte centrée sur ordinateur,
   pied court (aide, contact, pages légales) à la place du grand pied du site. */
.v2-appbar {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: var(--size-tap) 1fr var(--size-tap); align-items: center;
  gap: var(--space-2); min-height: 56px; padding: env(safe-area-inset-top) max(var(--space-2), env(safe-area-inset-right)) 0 max(var(--space-2), env(safe-area-inset-left));
  background: var(--color-bg); border-bottom: 1px solid var(--color-border);
}
.v2-appbar__back { display: inline-flex; align-items: center; justify-content: center; width: var(--size-tap); height: var(--size-tap); border-radius: var(--radius-pill); color: var(--color-text); }
.v2-appbar__back:hover, .v2-appbar__back:active { background: var(--color-surface-2); }
.v2-appbar__back:focus-visible, .v2-appbar__brand:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.v2-appbar__back svg { width: 22px; height: 22px; }
.v2-appbar__brand { justify-self: center; display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--size-tap); color: var(--color-brand-strong); font-weight: 700; text-decoration: none; }
.v2-appbar > .udc-theme-toggle { justify-self: end; width: var(--size-tap); padding: 0; justify-content: center; }
.v2-appbar > .udc-theme-toggle .udc-theme-toggle__text { display: none; }

.v2-auth--app { display: flex; flex-direction: column; min-height: calc(100dvh - 57px); padding: var(--space-4) max(var(--space-4), env(safe-area-inset-right)) max(var(--space-4), env(safe-area-inset-bottom)) max(var(--space-4), env(safe-area-inset-left)); }
.v2-auth--app .v2-auth__screen { width: 100%; max-width: 26rem; margin: 0 auto; }
.v2-auth--app h1 { font-size: var(--font-size-2xl); line-height: 1.2; }
.v2-auth--app .v2-btn--block, .v2-auth--app .v2-auth__actions .v2-btn { min-height: 48px; }
.v2-auth--app .v2-btn:active { transform: scale(0.98); }
@media (prefers-reduced-motion: reduce) { .v2-auth--app .v2-btn:active { transform: none; } }
/* Téléphone : pas de carte dans la carte, l'écran entier est le formulaire. */
@media (max-width: 47.99rem) {
  .v2-auth--app .v2-auth__screen { padding: var(--space-2) 0 0; background: transparent; border: 0; box-shadow: none; }
}
@media (min-width: 48rem) { .v2-auth--app { justify-content: center; padding-block: var(--space-7); } }

/* Liens légaux sous Google : une ligne centrée qui se replie proprement, sans point orphelin. */
.v2-auth__note.v2-auth__links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--space-3); }
.v2-auth__switch a { font-weight: 600; }

.v2-auth__legal { display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--space-4); margin-top: auto; padding-top: var(--space-6); font-size: var(--font-size-sm); }
.v2-auth__legal a { display: inline-flex; align-items: center; min-height: var(--size-tap); color: var(--color-text-muted); text-decoration: none; }
.v2-auth__legal a:hover { color: var(--color-text); text-decoration: underline; }
.v2-auth--app .v2-auth__switch { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: var(--space-1); }
.v2-auth--app .v2-auth__actions .v2-btn { padding-inline: var(--space-3); }
.v2-auth--app .v2-auth__actions .v2-btn--primary { flex: 1; min-width: 0; white-space: nowrap; }
