/* UDCShare v2 — composants. Toute cible mesure au moins var(--size-tap) (40 px à la souris, 44 px au toucher). */

/* ── Boutons ── */
.v2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--size-tap); padding: var(--space-2) var(--space-4);
  border: 1px solid transparent; border-radius: var(--radius-md);
  font: inherit; font-size: var(--font-size-control); font-weight: var(--font-weight-medium); line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: background var(--motion-fast), border-color var(--motion-fast);
}
.v2-btn--primary { background: var(--color-brand-strong); color: var(--color-on-brand); }
.v2-btn--primary:hover { filter: brightness(1.08); }
.v2-btn--secondary { background: var(--color-surface); color: var(--color-link); border-color: var(--color-border-strong); }
.v2-btn--ghost { background: transparent; color: var(--color-link); }
.v2-btn--danger { background: var(--color-surface); color: var(--color-danger); border-color: var(--color-danger); }
.v2-btn--block { width: 100%; }
.v2-btn svg { width: var(--size-icon); height: var(--size-icon); }
.v2-btn--sm { min-height: 32px; padding: var(--space-1) var(--space-3); font-size: var(--font-size-sm); }
@media (pointer: coarse) { .v2-btn--sm { min-height: var(--size-control); } }
.v2-btn[disabled], .v2-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* ── En-tête ── */
.v2-header { position: sticky; top: 0; z-index: 20; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.v2-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--size-header); }
.v2-header__brand { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--size-tap); color: var(--color-text); font-weight: var(--font-weight-bold); font-size: var(--font-size-base); text-decoration: none; }
.v2-header .udc-logo-mark, .v2-appbar .udc-logo-mark { width: 24px; height: 22px; }
.v2-header__brand-mark { display: inline-flex; align-items: center; gap: 8px; }
.v2-header__nav { display: none; }
.v2-header__nav a { display: inline-flex; align-items: center; min-height: var(--size-tap); padding-inline: var(--space-3); color: var(--color-text); text-decoration: none; font-weight: var(--font-weight-medium); font-size: var(--font-size-control); }
.v2-header__nav a[aria-current="page"] { color: var(--color-link); text-decoration: underline; }
.v2-header__more { position: relative; }
.v2-header__more > summary { display: inline-flex; align-items: center; gap: 6px; min-height: var(--size-tap); padding-inline: var(--space-3); cursor: pointer; list-style: none; color: var(--color-text); font-weight: var(--font-weight-medium); }
.v2-header__more > summary::-webkit-details-marker { display: none; }
.v2-header__more > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.v2-header__more > summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-md); }
.v2-header__more-list { position: absolute; top: 100%; left: 0; z-index: 30; display: grid; min-width: 14rem; padding: var(--space-2); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.v2-header__more-list a { padding-inline: var(--space-3); border-radius: var(--radius-md); }
.v2-header__more-list a:hover { background: var(--color-surface-2); }
.v2-header__actions { display: none; gap: var(--space-2); }
/* Accès au compte visible sur toutes les pages publiques, y compris sur téléphone. */
.v2-header__account-shortcut {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 42px; height: 42px; margin-inline-start: auto; border: 1px solid var(--color-border);
  border-radius: 50%; background: var(--color-surface-2); color: var(--color-text); text-decoration: none;
}
.v2-header__account-shortcut .v2-avatar { width: 34px; height: 34px; }
.v2-header__account-shortcut:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
/* Téléphone et tablette : l'inscription reste visible, le menu reste accessible sans écraser le logo. */
.v2-header__cta-mobile { min-height: var(--size-control); padding-inline: var(--space-3); margin-left: auto; white-space: nowrap; }
.v2-header__bar > .v2-header__cta-mobile + .udc-theme-toggle { margin-left: 8px; }
.v2-header__menu { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
.v2-header__menu-group { padding-block: var(--space-2); border-bottom: 1px solid var(--color-border); }
.v2-header__menu-group:last-of-type { border-bottom: 0; }
.v2-header__menu-title { margin: 0; padding: var(--space-2) var(--space-2) var(--space-1); color: var(--color-text-muted); font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); letter-spacing: .06em; text-transform: uppercase; }
.v2-header__menu a[aria-current="page"] { color: var(--color-link); font-weight: var(--font-weight-bold); background: var(--color-surface-2); border-radius: var(--radius-md); }
@media (min-width: 80rem) { .v2-header__cta-mobile { display: none; } }
.v2-header__toggle { display: inline-flex; align-items: center; justify-content: center; width: var(--size-tap); height: var(--size-tap); border: 0; background: transparent; color: var(--color-text); cursor: pointer; border-radius: var(--radius-md); }
.v2-header__menu { border-top: 1px solid var(--color-border); padding-block: var(--space-2); }
.v2-header__menu[hidden] { display: none; }
/* Compte dans le menu mobile : identité + déconnexion (connecté), connexion + inscription (invité). */
.v2-header__account { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
/* Menu mobile : « Se déconnecter » / « Se connecter » collés en bas du menu, toujours visibles même si la liste défile. */
.v2-header__menu .v2-header__account { position: sticky; bottom: 0; z-index: 1; background: var(--color-surface); padding-bottom: var(--space-2); }
/* Téléphone connecté : la barre du bas (Envoyer, Transferts, Dropzones, Compte, Menu) est fixe, 68 px, au-dessus de tout (z-index 480).
   Le menu s'arrête au-dessus d'elle pour que « Se déconnecter » ne passe pas dessous, et laisse la place à la bulle de chat à droite. */
@media (max-width: 899px) {
  body:has(.udc-app-nav) .v2-header__menu {
    max-height: calc(100vh - 64px - 68px); max-height: calc(100dvh - 64px - 68px - env(safe-area-inset-bottom));
  }
  body:has(.udc-app-nav) .v2-header__menu .v2-header__account { padding-inline-end: 4.5rem; padding-bottom: var(--space-3); }
}
.v2-header__who { display: flex; align-items: center; gap: var(--space-2); margin: 0; min-height: var(--size-tap); color: var(--color-text); font-weight: var(--font-weight-bold); }
.v2-header__who svg, .v2-header__logout svg, .v2-header__cta svg { flex: none; width: 20px; height: 20px; }
.v2-header__who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-header__menu a.v2-header__logout, .v2-header__menu a.v2-header__cta {
  justify-content: center; gap: var(--space-2); padding-inline: var(--space-4); border: 2px solid var(--color-border-strong); border-radius: var(--radius-md); font-weight: var(--font-weight-bold);
}
.v2-header__menu a.v2-header__logout { color: var(--color-danger); border-color: var(--color-danger); }
.v2-header__menu a.v2-header__cta--secondary { color: var(--color-link); }
.v2-header__menu a.v2-header__cta--primary { background: var(--color-brand-strong); border-color: var(--color-brand-strong); color: var(--color-on-brand); }
.v2-header__menu a { display: flex; align-items: center; gap: var(--space-3); min-height: var(--size-tap); padding-inline: var(--space-2); border-radius: var(--radius-md); color: var(--color-text); text-decoration: none; font-weight: var(--font-weight-medium); transition: background var(--motion-fast); }
.v2-header__menu a svg { flex: none; width: 20px; height: 20px; color: var(--color-text-muted); }
.v2-header__menu a:hover { background: var(--color-surface-2); }
.v2-header__menu a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.v2-header__menu a[aria-current="page"] { background: var(--color-brand-soft); color: var(--color-brand-ink); font-weight: var(--font-weight-bold); }
.v2-header__menu a[aria-current="page"] svg { color: var(--color-brand-ink); }
@media (min-width: 80rem) {
  .v2-header__nav, .v2-header__actions { display: flex; align-items: center; }
  .v2-header__toggle, .v2-header__menu { display: none !important; }
}

/* ── Barre basse (tableau de bord, mobile) ── */
.v2-bottom-nav { position: fixed; inset: auto 0 0 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--color-surface); border-top: 1px solid var(--color-border); padding-bottom: env(safe-area-inset-bottom); }
.v2-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; color: var(--color-text-muted); text-decoration: none; font-size: var(--font-size-xs); }
.v2-bottom-nav a[aria-current="page"] { color: var(--color-link); font-weight: var(--font-weight-bold); }
@media (min-width: 64rem) { .v2-bottom-nav { position: static; display: flex; flex-direction: column; width: 14rem; border: 0; border-right: 1px solid var(--color-border); } .v2-bottom-nav a { flex-direction: row; justify-content: flex-start; padding-inline: var(--space-4); font-size: var(--font-size-base); gap: var(--space-3); } }

/* Barre de navigation basse : strictement réservée aux écrans mobiles.
   Le layout desktop utilise exclusivement la navigation latérale du dashboard. */
@media (min-width: 56rem) {
  html body .v2-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* ── Pied de page ── */
/* Pied de page : même style que l'accueil (views/partials/footer.ejs) — titres discrets en capitales, liens sobres. */
.v2-footer { margin-top: var(--space-7); padding-block: var(--space-6); background: var(--color-surface-2); color: var(--color-text); font-size: var(--font-size-sm); border-top: 1px solid var(--color-border); }
.v2-footer__grid { display: grid; gap: var(--space-5) var(--space-4); grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.v2-footer__brand { grid-column: 1 / -1; }
.v2-footer__brand p { margin: var(--space-2) 0 0; color: var(--color-text-muted); line-height: 1.6; max-width: 32rem; }
.v2-footer__newsletter { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--color-border); }
.v2-footer__newsletter h2 { margin-bottom: var(--space-1); }
.v2-footer__newsletter p { margin: 0; color: var(--color-text-muted); }
.v2-footer__newsletter-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.v2-footer__newsletter-row .v2-input {
  box-sizing: border-box; flex: 1 1 17rem; width: 100%; max-width: 100%; min-width: 0;
  height: 42px; min-height: 42px; padding: 0 12px;
  color: var(--color-text); caret-color: var(--color-text);
  font-size: 15px; line-height: normal; letter-spacing: normal;
  text-align: left; vertical-align: middle;
  opacity: 1; -webkit-text-fill-color: var(--color-text);
}
.v2-footer__newsletter-row .v2-input::placeholder {
  color: var(--color-text-muted); font-size: 15px; line-height: normal;
  opacity: 1; -webkit-text-fill-color: var(--color-text-muted);
}
@media (min-width: 48rem) {
  /* Champ et bouton restent sur le même axe ; le texte saisi et le placeholder
     gardent une taille lisible et un contraste explicite. */
  .v2-footer__newsletter-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: center; gap: 10px; width: 100%; min-width: 0;
  }
  .v2-footer__newsletter-row .v2-input {
    /* Sur ordinateur, reprendre l'alignement mobile avec un texte légèrement
       plus grand pour rester confortable sur un écran large. */
    box-sizing: border-box; justify-self: stretch; align-self: center;
    width: 100%; max-width: none; min-width: 0;
    height: 44px; min-height: 44px; padding: 0 14px;
    color: var(--color-text); caret-color: var(--color-text);
    font-size: 16px; line-height: normal; letter-spacing: normal;
    text-align: left; vertical-align: middle;
    opacity: 1; -webkit-text-fill-color: var(--color-text);
  }
  .v2-footer__newsletter-row .v2-input::placeholder {
    color: var(--color-text-muted); font-size: 16px; line-height: normal;
    opacity: 1; -webkit-text-fill-color: var(--color-text-muted);
  }
}
.v2-footer__newsletter-row .v2-btn {
  flex: 0 0 auto; width: auto; min-height: 40px;
  padding: 8px 14px; font-size: 14px; line-height: 1.35;
}
@media (min-width: 48rem) { .v2-footer__newsletter { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.v2-newsletter__card { max-width: 32rem; margin-inline: auto; }
.v2-newsletter__card .v2-input {
  min-height: 44px; padding: 8px 12px; font-size: 14px; line-height: 1.35;
}
.v2-newsletter__card form > .v2-btn {
  min-height: 44px; padding: 8px 16px; font-size: 15px; line-height: 1.35;
}
.v2-footer__logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--color-text); font-size: 18px; }
@media (min-width: 48rem) { .v2-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); } .v2-footer__brand { grid-column: auto; } }
.v2-footer h2 { margin: 0 0 var(--space-3); font-family: var(--font-family-mono); font-size: var(--font-size-xs); font-weight: var(--font-weight-medium); text-transform: uppercase; letter-spacing: var(--font-tracking-label); color: var(--color-text-muted); }
.v2-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.v2-footer li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--color-text-muted); text-decoration: none; }
.v2-footer li a:hover, .v2-footer li a:focus-visible { color: var(--color-text); }
.v2-footer__legal { margin: var(--space-5) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: var(--font-size-xs); }
/* Logo unique (views/v2/partials/logo.ejs) */
.udc-logo-mark { flex: 0 0 auto; display: block; color: #ff3366; } /* couleur du logo d'origine, identique en clair et en sombre */
.udc-logo-name { font-weight: 800; letter-spacing: -0.4px; white-space: nowrap; line-height: 1; color: var(--color-text); }
.udc-logo-name em { font-style: normal; color: #ff3366; } /* logotype : « Share » dans la couleur d'origine */

/* ── Cartes ── */
.v2-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); }
.v2-card__title { font-size: var(--font-size-lg); margin-bottom: var(--space-2); }
.v2-grid { display: grid; gap: var(--space-4); }
@media (min-width: 48rem) { .v2-grid--2 { grid-template-columns: repeat(2, 1fr); } .v2-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .v2-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ── Champs ── */
.v2-field { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-4); }
.v2-field label { font-size: var(--font-size-control); font-weight: var(--font-weight-medium); }
.v2-field__hint { font-size: var(--font-size-sm); color: var(--color-text-muted); }
.v2-field__error { font-size: var(--font-size-sm); color: var(--color-danger); font-weight: var(--font-weight-medium); }
.v2-input, .v2-select, .v2-textarea {
  width: 100%; min-height: var(--size-tap); padding: var(--space-2) var(--space-3);
  font: inherit; font-size: var(--font-size-base); /* 16 px : pas de zoom automatique sur iOS */
  color: var(--color-text); background: var(--color-surface);
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
}
.v2-input[aria-invalid="true"] { border-color: var(--color-danger); }
.v2-check { display: flex; align-items: center; gap: var(--space-3); min-height: var(--size-tap); }
.v2-check input { flex-shrink: 0; width: 24px; height: 24px; accent-color: var(--color-brand-strong); }
/* Lien seul sur sa ligne (hors paragraphe) : zone de toucher de 44 px, comme un bouton. */
.v2-card > a:not(.v2-btn) { display: inline-flex; align-items: center; min-height: var(--size-tap); }

/* ── Onglets ── */
.v2-tabs__list { display: flex; gap: var(--space-1); border-bottom: 2px solid var(--color-border); overflow-x: auto; }
.v2-tabs__tab { min-height: var(--size-tap); padding-inline: var(--space-4); border: 0; background: transparent; color: var(--color-text-muted); font: inherit; font-size: var(--font-size-control); font-weight: var(--font-weight-medium); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.v2-tabs__tab[aria-selected="true"] { color: var(--color-link); border-bottom-color: var(--color-brand-strong); }
.v2-tabs__panel { padding-top: var(--space-4); }
.v2-tabs__panel[hidden] { display: none; }

/* ── Feuille modale (bas d'écran sur mobile, centrée sur grand écran) ── */
.v2-sheet { border: 0; padding: 0; width: 100%; max-width: 32rem; margin: auto auto 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-md); }
.v2-sheet::backdrop { background: var(--color-overlay); }
.v2-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); }
.v2-sheet__head h2 { margin: 0; font-size: var(--font-size-lg); }
.v2-sheet__body { padding: var(--space-5); }
@media (min-width: 48rem) { .v2-sheet { margin: auto; border-radius: var(--radius-lg); } }

/* ── Notifications ── */
.v2-toast-region { position: fixed; z-index: 50; left: var(--space-4); right: var(--space-4); bottom: calc(var(--space-4) + 56px); display: flex; flex-direction: column; gap: var(--space-2); pointer-events: none; }
@media (min-width: 48rem) { .v2-toast-region { left: auto; width: 24rem; bottom: var(--space-4); } }
.v2-toast, .v2-alert { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); pointer-events: auto; }
.v2-toast { box-shadow: var(--shadow-md); }
.v2-alert--success, .v2-toast--success { background: var(--color-success-soft); border-color: var(--color-success); }
.v2-alert--warning, .v2-toast--warning { background: var(--color-warning-soft); border-color: var(--color-warning); }
.v2-alert--danger, .v2-toast--danger { background: var(--color-danger-soft); border-color: var(--color-danger); }
.v2-alert--success .v2-alert__title { color: var(--color-success); }
.v2-alert--warning .v2-alert__title { color: var(--color-warning); }
.v2-alert--danger .v2-alert__title { color: var(--color-danger); }
.v2-alert__title { font-weight: var(--font-weight-bold); margin: 0 0 var(--space-1); }
.v2-toast, .v2-alert { font-size: var(--font-size-control); text-align: left; }
.v2-toast > svg, .v2-alert > svg { width: var(--size-icon-lg); height: var(--size-icon-lg); margin-top: 1px; color: var(--color-text-muted); }
.v2-alert p { margin: 0; }

/* ── Barre de progression ── */
.v2-progress { display: flex; flex-direction: column; gap: var(--space-1); }
.v2-progress__track { height: 10px; border-radius: var(--radius-pill); background: var(--color-surface-2); border: 1px solid var(--color-border); overflow: hidden; }
.v2-progress__bar { height: 100%; width: 0; background: var(--color-brand-strong); transition: width var(--motion-base); }
.v2-progress__label { display: flex; justify-content: space-between; font-size: var(--font-size-sm); color: var(--color-text-muted); }

/* ── Carte de forfait ── */
.v2-plan { display: flex; flex-direction: column; gap: var(--space-3); }
.v2-plan__price { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.v2-plan__price-usd { display: flex; align-items: baseline; gap: var(--space-2); font-size: 2rem; font-weight: var(--font-weight-bold); line-height: 1.1; color: var(--color-text); }
.v2-plan__price-usd small { font-size: var(--font-size-sm); font-weight: var(--font-weight-regular); color: var(--color-text-muted); white-space: nowrap; }
.v2-plan__price-cdf { font-size: 0.75rem; font-weight: var(--font-weight-regular); color: var(--color-text-muted); line-height: 1.4; }
.v2-plan__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); font-size: var(--font-size-control); }
.v2-plan__list li { display: flex; gap: var(--space-2); }
.v2-plan__list .is-off { color: var(--color-text-muted); }
.v2-plan .v2-btn { margin-top: auto; }

/* ── États vide / erreur ── */
.v2-state { text-align: center; padding: var(--space-6) var(--space-4); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.v2-state__icon { width: 56px; height: 56px; color: var(--color-text-muted); }
.v2-state--error .v2-state__icon { color: var(--color-danger); }

/* ── Bandeau cookies ── */
/* Bandeau cookies : carte sombre arrondie en bas d'écran (couleurs « inverse » de design/tokens.json). */
.v2-cookie { position: fixed; z-index: 40; inset: auto var(--space-2) var(--space-2) var(--space-2); max-width: 30rem; max-height: calc(100dvh - var(--space-4)); overflow-y: auto; margin-inline: auto; padding: var(--space-4); font-size: var(--font-size-sm); background: var(--color-inverse-surface); color: var(--color-inverse-text); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.v2-cookie[hidden] { display: none; }
.v2-cookie :focus-visible { outline-color: var(--color-inverse-focus); }
.v2-cookie__head { display: flex; align-items: center; gap: var(--space-3); }
.v2-cookie__icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--color-inverse-surface-2); color: var(--color-inverse-link); }
.v2-cookie h2 { margin: 0; font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); color: var(--color-inverse-text); }
.v2-cookie__text { margin: var(--space-3) 0 0; color: var(--color-inverse-text-muted); }
.v2-cookie a { color: var(--color-inverse-link); text-decoration: underline; text-underline-offset: 2px; }
.v2-cookie__panel { display: grid; gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; border: 0; }
.v2-cookie__panel[hidden] { display: none; }
.v2-cookie__category { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--color-inverse-surface-2); }
.v2-cookie__category h3 { margin: 0; font-size: var(--font-size-base); color: var(--color-inverse-text); }
.v2-cookie__category p { margin: var(--space-1) 0 0; font-size: var(--font-size-xs); color: var(--color-inverse-text-muted); }
.v2-cookie__switch { appearance: none; flex-shrink: 0; position: relative; width: 48px; height: 28px; margin: 0; border-radius: var(--radius-pill); background: var(--color-border-strong); cursor: pointer; transition: background var(--motion-fast); }
.v2-cookie__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--color-inverse-text); transition: transform var(--motion-fast); }
.v2-cookie__switch:checked { background: var(--color-brand-strong); }
.v2-cookie__switch:checked::after { transform: translateX(20px); }
.v2-cookie__switch:disabled { cursor: not-allowed; opacity: 0.75; }
.v2-cookie__actions { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.v2-cookie__btn { min-height: var(--size-tap); width: 100%; padding: var(--space-2) var(--space-4); border: 0; border-radius: var(--radius-md); font: inherit; font-size: var(--font-size-base); font-weight: var(--font-weight-bold); cursor: pointer; }
.v2-cookie__btn[hidden] { display: none; }
.v2-cookie__btn--refuse { background: var(--color-inverse-surface-2); color: var(--color-inverse-text); }
.v2-cookie__btn--link { background: transparent; color: var(--color-inverse-link); }
.v2-cookie__btn--accept { background: var(--color-brand-strong); color: var(--color-on-brand); }
.v2-cookie__btn--refuse:hover, .v2-cookie__btn--link:hover { text-decoration: underline; }
.v2-cookie__btn--accept:hover { filter: brightness(1.08); }
@media (prefers-reduced-motion: reduce) { .v2-cookie__switch, .v2-cookie__switch::after { transition: none; } }
/* Téléphone : bandeau compact (une carte basse, deux boutons côte à côte) au lieu d'une moitié d'écran. */
@media (max-width: 47.99rem) {
  .v2-cookie { padding: var(--space-3); border-radius: var(--radius-lg); }
  .v2-cookie__icon { display: none; }
  .v2-cookie h2 { font-size: var(--font-size-sm); }
  .v2-cookie__text { margin-top: var(--space-1); font-size: var(--font-size-xs); line-height: 1.45; }
  .v2-cookie__actions { grid-template-columns: auto 1fr 1fr; align-items: center; margin-top: var(--space-2); }
  .v2-cookie__btn { min-height: 40px; padding: var(--space-1) var(--space-3); font-size: var(--font-size-sm); }
  .v2-cookie__btn--link { grid-column: 1; grid-row: 1; padding-inline: var(--space-1); }
}
@media (min-width: 48rem) {
  /* Ordinateur : carte discrète (taille de texte moyenne, trois boutons sur une ligne), comme un avis de console. */
  .v2-cookie { inset: auto auto var(--space-4) var(--space-4); margin: 0; max-width: 27rem; padding: var(--space-4); }
  .v2-cookie__icon { width: 32px; height: 32px; }
  .v2-cookie h2 { font-size: var(--font-size-base); }
  .v2-cookie__text { margin-top: var(--space-2); line-height: 1.5; }
  .v2-cookie__actions { grid-template-columns: auto 1fr 1fr; align-items: center; margin-top: var(--space-3); }
  .v2-cookie__btn { min-height: 36px; padding: var(--space-1) var(--space-3); font-size: var(--font-size-sm); }
  .v2-cookie__btn--link { grid-column: 1; grid-row: 1; padding-inline: var(--space-1); }
}
/* La bulle de discussion ne recouvre pas le bandeau tant qu'aucun choix n'est fait. */
body:has(.v2-cookie:not([hidden])) #chat-widget-toggle { display: none; }

/* ── Badge ── */
.v2-badge { display: inline-flex; align-items: center; padding: 2px var(--space-2); border-radius: var(--radius-pill); background: var(--color-brand-soft); color: var(--color-text); font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); }

/* ── Galerie /_ui (page interne) ── */
.v2-gallery__theme { padding: var(--space-5) var(--space-4); background: var(--color-bg); color: var(--color-text); border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.v2-gallery__row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.v2-gallery__block + .v2-gallery__block, .v2-grid + .v2-gallery__block { margin-top: var(--space-6); }
.v2-bottom-nav--demo { position: static; }

/* Phrase rassurante (« le destinataire n'a pas besoin de compte »), avec coche. */
.v2-reassure { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-3) 0 0; font-size: var(--font-size-sm); color: var(--color-success); font-weight: var(--font-weight-medium); }
.v2-reassure svg { width: 20px; height: 20px; }

/* ── Sections communes aux pages publiques (déplacées de home.css au J4) ── */
.v2-hero { padding-block: var(--space-3) var(--space-6); }
.v2-hero h1 { font-size: var(--font-size-xl); margin-bottom: var(--space-1); }
.v2-hero__lead { color: var(--color-text-muted); margin-bottom: var(--space-3); }
@media (min-width: 48rem) {
  .v2-hero { padding-block: var(--space-7); }
  .v2-hero h1 { font-size: var(--font-size-3xl); }
  .v2-hero__lead { font-size: var(--font-size-lg); max-width: 40rem; }
}
.v2-alert--info { background: var(--color-surface-2); }
/* Volets repliables (options d'envoi, import Drive, questions). */
.v2-fold { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); margin-top: var(--space-3); }
.v2-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--size-tap); padding: var(--space-2) var(--space-4); cursor: pointer; font-size: var(--font-size-control); font-weight: var(--font-weight-medium); list-style: none; }
.v2-fold > summary::-webkit-details-marker { display: none; }
/* Chevron fin à droite (comme les listes déroulantes d'une console), tourné quand le bloc est ouvert. */
.v2-fold > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); color: var(--color-text-muted); transition: transform var(--motion-fast); }
.v2-fold[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.v2-fold__hint { display: block; font-weight: var(--font-weight-regular); font-size: var(--font-size-sm); }
.v2-fold__body { padding: 0 var(--space-4) var(--space-4); }
.v2-fold[open] > summary { border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-3); }
/* Étapes numérotées */
.v2-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); counter-reset: v2-step; }
.v2-steps__item { counter-increment: v2-step; position: relative; padding-left: calc(2.25rem + var(--space-3)); min-height: 2.25rem; }
.v2-steps__item::before {
  content: counter(v2-step); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--color-brand-strong); color: var(--color-on-brand); font-weight: var(--font-weight-bold);
}
.v2-steps__item h3 { font-size: var(--font-size-base); margin-bottom: var(--space-1); }
.v2-steps__item p { margin: 0; }
@media (min-width: 48rem) { .v2-steps { grid-template-columns: repeat(4, 1fr); } .v2-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.v2-grid--3 .v2-card p { margin: 0; }
.v2-cta { text-align: center; }


/* Bouton de thème (public/v2/js/theme.js) : Auto, Clair, Sombre */
.udc-theme-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: var(--size-control); padding: 0 10px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: var(--font-size-control); font-weight: var(--font-weight-medium); cursor: pointer; white-space: nowrap; }
.udc-theme-toggle:hover { background: var(--color-surface-2); }
.udc-theme-toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.udc-theme-toggle[hidden] { display: none; }
.udc-theme-toggle--floating { position: fixed; left: 12px; bottom: 12px; z-index: 400; box-shadow: var(--shadow-sm); }
.v2-header__bar > .udc-theme-toggle { margin-left: auto; }
@media (min-width: 64rem) {
  .v2-header__nav { margin-inline: auto; }
  .v2-header__bar > .udc-theme-toggle { order: 3; margin-left: 0; }
  .v2-header__actions { order: 4; }
}
/* Téléphone : le bouton de thème garde son icône seule (nom lu par aria-label) et ne colle plus au nom UDCShare. */
@media (max-width: 599px) {
  .udc-theme-toggle:not(.udc-theme-toggle--floating) { width: 44px; padding: 0; justify-content: center; flex: 0 0 44px; }
  .udc-theme-toggle:not(.udc-theme-toggle--floating) .udc-theme-toggle__text { display: none; }
}

/* Logos des opérateurs Mobile Money (partials/pay-operators.ejs). Mobile d'abord : ils passent à la ligne, jamais de défilement horizontal.
   Fond blanc fixe : les logos sont dessinés pour du blanc, aussi en thème sombre. */
.v2-payops { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.v2-payops__list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.v2-payops__item { display: flex; align-items: center; justify-content: center; padding: var(--space-1) var(--space-2); background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.v2-payops__item img { display: block; width: auto; height: 40px; max-width: 100%; object-fit: contain; }
.v2-payops--sm .v2-payops__item img { height: 28px; }
.v2-payops__caption { margin: 0; color: var(--color-text-muted, inherit); font-size: var(--font-size-sm); }
@media (min-width: 768px) {
  .v2-payops__item img { height: 48px; }
  .v2-payops--sm .v2-payops__item img { height: 32px; }
}

/* Pied de page à 5 colonnes de liens (Produit, Développeurs, Comparer, Aide, Légal) : 3 par ligne sur tablette, 6 colonnes avec la marque sur grand écran. */
@media (min-width: 64rem) { .v2-footer__grid { grid-template-columns: 1.6fr repeat(5, minmax(0, 1fr)); gap: var(--space-4); } }
.v2-guest__why { margin: var(--space-2) 0 0; font-size: var(--font-size-xs); color: var(--color-text-muted); line-height: 1.5; }

/* UI/UX Pro Max — cohérence des états interactifs et visibilité du focus. */
.v2-btn, .v2-header__toggle, .v2-header__more > summary, .v2-bottom-nav a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.v2-btn:focus-visible, .v2-header__toggle:focus-visible, .v2-bottom-nav a:focus-visible,
.v2-header__menu a:focus-visible, .v2-header__nav > a:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  position: relative;
  z-index: 1;
}
.v2-btn:active:not(:disabled), .v2-header__toggle:active, .v2-bottom-nav a:active {
  filter: brightness(.94);
}
.v2-btn:disabled, .v2-btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: .56;
}
.v2-header__menu a, .v2-header__nav a, .v2-header__more-list a,
.v2-bottom-nav a { scroll-margin-block: 6rem; }
.v2-header__more-list a { min-height: var(--size-tap); }
.v2-header__menu a { min-height: var(--size-tap); }
.v2-footer a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .v2-btn--secondary:hover, .v2-btn--danger:hover { background: var(--color-surface-2); }
  .v2-header__toggle:hover { background: var(--color-surface-2); }
}
@media (forced-colors: active) {
  .v2-btn, .v2-input, .v2-select, .v2-textarea { border: 1px solid ButtonText; }
  :focus-visible { outline: 2px solid Highlight; }
}


/* UI/UX Pro Max — finitions transversales pour toutes les pages v2. */
:where(button, a, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}
:where(button, input, select, textarea) { font: inherit; }
:where(button, a, summary) { -webkit-tap-highlight-color: transparent; }
:where(button, [role="button"], summary) { touch-action: manipulation; }
:where(button, input[type="submit"], input[type="button"], a.v2-btn) { cursor: pointer; }
:where(button:disabled, input:disabled, select:disabled, textarea:disabled, [aria-disabled="true"]) {
  cursor: not-allowed;
}
:where(input, select, textarea) { min-width: 0; max-width: 100%; }
:where(textarea) { resize: vertical; }
:where(img, video, iframe, canvas) { max-width: 100%; }
:where(pre, code) { overflow-wrap: anywhere; }
:where(main, section, article, aside, form, fieldset) { min-width: 0; }
:where(.v2-card, .v2-panel, .v2-alert, .v2-table-wrap) { min-width: 0; }
:where(.v2-card, .v2-panel, .v2-alert) :where(h1,h2,h3,p,li,dd,dt,a,button,label) { overflow-wrap: anywhere; }
:where(.v2-btn, .v2-input, .v2-select, .v2-textarea) { max-width: 100%; }
:where(.v2-btn) { min-height: var(--size-tap); }
:where(.v2-input, .v2-select, .v2-textarea) { min-height: var(--size-tap); }
:where(a) { text-underline-offset: .18em; }
@media (max-width: 30rem) {
  :where(.v2-container) { padding-inline: max(var(--space-3), env(safe-area-inset-left)); }
  :where(.v2-grid, .v2-grid--2, .v2-grid--3, .v2-grid--4) { grid-template-columns: minmax(0, 1fr); }
  :where(.v2-actions, .v2-form-actions, .v2-toolbar) { flex-wrap: wrap; }
  :where(.v2-actions > *, .v2-form-actions > *, .v2-toolbar > *) { min-width: 0; max-width: 100%; }
}
@media (forced-colors: active) {
  :where(.v2-btn, .v2-input, .v2-select, .v2-textarea, .v2-card, .v2-panel) { border: 1px solid CanvasText; }
  :where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid Highlight; }
}


/* Newsletter du pied de page — champ compact et stable sur ordinateur comme sur mobile.
   Pas de height fixe : on utilise padding vertical pour que le texte et le placeholder
   soient toujours centrés, quel que soit le moteur de rendu. */
.v2-footer__newsletter,
.v2-footer__newsletter-row { min-width: 0; }
.v2-footer__newsletter-row { width: 100%; }
.v2-footer__newsletter-row .v2-input {
  box-sizing: border-box;
  flex: 1 1 0%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  /* padding vertical symétrique : centre le texte sans height fixe */
  padding: 10px 11px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: left;
}
.v2-footer__newsletter-row .v2-input::placeholder {
  font-size: 14px;
  line-height: 1.4;
  opacity: 1;
}
.v2-footer__newsletter-row .v2-btn {
  flex: 0 0 auto;
  width: auto;
  min-height: 40px;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}
@media (min-width: 48rem) {
  .v2-footer__newsletter {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 16px;
  }
  .v2-footer__newsletter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }
  .v2-footer__newsletter-row .v2-input {
    justify-self: stretch;
    width: 100%;
    max-width: none;
    padding: 11px 14px;
    font-size: 15px;
    line-height: 1.4;
  }
  .v2-footer__newsletter-row .v2-input::placeholder { font-size: 15px; line-height: 1.4; }
}

/* Avatar (photo Google ou initiale) sur les pages publiques (header hamburger). */
.v2-avatar {
  position: relative; flex: none; display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
  background: var(--color-brand-soft); color: var(--color-text);
  font-size: 0.8rem; font-weight: var(--font-weight-bold);
}
.v2-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Champ e-mail du bulletin (pied de page) : moins haut et texte centré, 02/11/2026.
   Plusieurs règles plus anciennes (accueil, bureau, 16 px forcé sur mobile) se contredisaient et laissaient le texte
   collé en bas du champ : cette règle finale, portée par l'identifiant, fixe hauteur et centrage pour toutes les pages. */
.v2-footer__newsletter-row .v2-input#footer-newsletter-email {
  box-sizing: border-box !important;
  display: block !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  line-height: normal !important;
  font-size: 14px !important;
  text-align: center !important;
  vertical-align: middle !important;
}
.v2-footer__newsletter-row .v2-input#footer-newsletter-email::placeholder {
  font-size: 14px !important;
  line-height: normal !important;
  text-align: center !important;
}
.v2-footer__newsletter-row .v2-btn { min-height: 36px !important; padding-top: 0 !important; padding-bottom: 0 !important; }

/* Panneau « Détails du transfert » (public/v2/js/transfer-engine.js) : envoi et réception, façon gestionnaire de téléchargement. */
.v2-xfer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.v2-xfer-actions__link { color: var(--color-link); }
.v2-xfer { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); font-size: var(--font-size-sm); text-align: left; }
.v2-xfer__summary { cursor: pointer; padding: var(--space-2) var(--space-3); font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.v2-xfer[open] .v2-xfer__summary { border-bottom: 1px solid var(--color-border); }
.v2-xfer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1) var(--space-3); margin: 0; padding: var(--space-2) var(--space-3); }
.v2-xfer__item { display: flex; justify-content: space-between; gap: var(--space-2); min-width: 0; }
.v2-xfer__item dt { color: var(--color-text-muted); white-space: nowrap; }
.v2-xfer__item dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.v2-xfer__head { margin: 0; padding: var(--space-1) var(--space-3); color: var(--color-text-muted); border-top: 1px solid var(--color-border); }
.v2-xfer__conns { list-style: none; margin: 0; padding: 0 var(--space-3) var(--space-2); max-height: 220px; overflow-y: auto; }
.v2-xfer__conn { display: grid; grid-template-columns: 1.5rem minmax(4.5rem, auto) 1fr minmax(6.5rem, auto); grid-template-areas: "num bytes bar state" "name name name name"; align-items: center; gap: 0 var(--space-2); padding: 4px 0; border-bottom: 1px solid var(--color-border); font-variant-numeric: tabular-nums; }
.v2-xfer__conn:last-child { border-bottom: 0; }
.v2-xfer__num { grid-area: num; color: var(--color-text-muted); }
.v2-xfer__bytes { grid-area: bytes; }
.v2-xfer__bar { grid-area: bar; width: 100%; height: 6px; }
.v2-xfer__state { grid-area: state; color: var(--color-text-muted); text-align: right; }
.v2-xfer__name { grid-area: name; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 2rem; }
.v2-xfer__name[hidden] { display: none; }
.v2-xfer__conn[data-state="waiting"] .v2-xfer__state, .v2-xfer__conn[data-state="retrying"] .v2-xfer__state { color: var(--color-warning); }
.v2-xfer__conn[data-state="done"] .v2-xfer__state { color: var(--color-success); }
@media (max-width: 420px) {
  .v2-xfer__grid { grid-template-columns: 1fr; }
}

/* ── Duo de formules Free / Pro (boîte invité + bas de l'inscription), inspiré de la page « famille » de Smash ── */
.udc-plan-popup { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.udc-plan-popup[hidden] { display: none; }
.udc-plan-popup__overlay { position: absolute; inset: 0; background: rgba(18, 18, 20, .72); backdrop-filter: blur(3px); }
.udc-plan-popup__box { position: relative; width: 100%; max-width: 780px; max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; padding: 44px 20px 24px; border-radius: 20px; background: #2f3033; color: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }
.udc-plan-popup__close { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #fff; cursor: pointer; }
.udc-plan-popup__close:hover, .udc-plan-popup__close:focus-visible { background: rgba(255, 255, 255, .14); outline: none; }
.udc-plan-popup__title { color: #fff; margin: 0 auto 24px; max-width: 20ch; text-align: center; font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 800; line-height: 1.15; }
.udc-plan-popup__more { display: block; min-height: 44px; margin-top: 12px; line-height: 44px; text-align: center; font-size: .88rem; color: rgba(255, 255, 255, .82); text-decoration: none; }
.udc-plan-popup__more:hover, .udc-plan-popup__more:focus-visible { color: #fff; text-decoration: underline; }
.plan-duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan-duo__card { position: relative; display: flex; flex-direction: column; box-sizing: border-box; min-height: 340px; padding: 28px 22px 22px; border-radius: 12px; background: #fafafa; color: #2b2b2e; text-align: center; }
.plan-duo__body { flex: 1; }
.plan-duo__card--free .plan-duo__body { padding-bottom: 64px; }
.plan-duo__name { margin: 0 0 14px; font-size: 1.7rem; font-weight: 800; line-height: 1.15; }
.plan-duo__text { max-width: 32ch; margin: 0 auto; font-size: .92rem; line-height: 1.55; color: #46464b; }
.plan-duo__price { margin: 16px 0 0; font-size: .92rem; font-weight: 700; color: #2b2b2e; }
.plan-duo__cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin-top: 22px; padding: 0 16px; box-sizing: border-box; border: 0; border-radius: 8px; font: inherit; font-size: .92rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: filter .15s, transform .1s; }
.plan-duo__cta:hover, .plan-duo__cta:focus-visible { filter: brightness(1.12); }
.plan-duo__cta:focus-visible { outline: 3px solid color-mix(in srgb, var(--color-brand) 45%, transparent); outline-offset: 2px; }
.plan-duo__cta:active { transform: scale(.98); }
.plan-duo__cta--free { background: #333438; color: #fff; }
.plan-duo__cta--pro { background: var(--color-brand); color: var(--color-on-brand, #fff); }
.plan-duo__art { position: absolute; pointer-events: none; }
.plan-duo__art--plane { left: 12px; bottom: 82px; width: 104px; }
.plan-duo__art--rocket { top: 14px; right: 12px; width: 46px; }
.plan-duo__cdf { margin: 4px 0 0; font-size: .85rem; font-weight: 600; color: #46464b; }
@media (max-width: 640px) {
  /* Boîte compacte : tient dans l'écran sans barre de défilement visible (le défilement reste possible en paysage). */
  .udc-plan-popup { padding: 12px; }
  .udc-plan-popup__box { max-height: calc(100dvh - 24px); padding: 34px 12px 8px; border-radius: 16px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; }
  .udc-plan-popup__box::-webkit-scrollbar { display: none; }
  .udc-plan-popup__close { top: 0; right: 0; width: 40px; height: 40px; }
  .udc-plan-popup__title { max-width: 24ch; margin-bottom: 10px; font-size: 1.1rem; }
  .udc-plan-popup__more { min-height: 36px; margin-top: 2px; line-height: 36px; font-size: .8rem; }
  .plan-duo__grid { grid-template-columns: 1fr; gap: 8px; }
  .plan-duo__card { min-height: 0; padding: 12px; border-radius: 10px; }
  .plan-duo__card--free .plan-duo__body { padding-bottom: 0; }
  .plan-duo__name { min-height: 28px; margin-bottom: 4px; font-size: 1.05rem; line-height: 28px; }
  .plan-duo__text { max-width: none; font-size: .8rem; line-height: 1.4; }
  .plan-duo__price { margin-top: 6px; font-size: .82rem; }
  .plan-duo__cdf { margin-top: 2px; font-size: .78rem; }
  .plan-duo__cta { min-height: 40px; margin-top: 10px; font-size: .88rem; }
  .plan-duo__art--plane { top: 10px; right: auto; bottom: auto; left: 8px; width: 38px; }
  .plan-duo__art--rocket { top: 6px; right: 10px; width: 20px; }
}
}
/* Variante « inscription » : même duo, sur la page claire (jetons du thème, clair ou sombre). */
.plan-duo--inline { width: 100%; max-width: 44rem; margin: 32px auto 0; padding-top: 28px; border-top: 1px solid var(--color-border); }
.plan-duo--inline .plan-duo__title { max-width: 24ch; margin: 0 auto 20px; text-align: center; font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.plan-duo--inline .plan-duo__card { min-height: 0; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); }
.plan-duo--inline .plan-duo__text { color: var(--color-text-muted); }
.plan-duo--inline .plan-duo__price { color: var(--color-text); }
.plan-duo--inline .plan-duo__cdf { color: var(--color-text-muted); }
.plan-duo--inline .plan-duo__cta--free { background: var(--color-text); color: var(--color-bg); }
.plan-duo__business { margin: 16px 0 0; text-align: center; font-size: .85rem; color: var(--color-text-muted); }
.plan-duo__business a { display: inline-block; min-height: 44px; line-height: 44px; font-weight: 600; color: var(--color-brand); text-decoration: none; }
.plan-duo__business a:hover, .plan-duo__business a:focus-visible { text-decoration: underline; }

/* ── Bannière plan en attente (dashboard) ───────────────────────────────── */
.udc-pending-plan-banner { display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--color-primary, #ff3366) 8%, transparent); border: 1.5px solid color-mix(in srgb, var(--color-primary, #ff3366) 30%, transparent); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; flex-wrap: wrap; }
.udc-pending-plan-banner__text { flex: 1; min-width: 180px; }
.udc-pending-plan-banner__title { font-weight: 700; font-size: .9rem; margin: 0 0 2px; }
.udc-pending-plan-banner__desc { font-size: .82rem; color: var(--color-muted, #666); margin: 0; }
.udc-pending-plan-banner__actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }



/* Écran de chargement de marque. Doit vivre dans components.css, chargé aussi sur les pages v2.
   Anti-saut (« le logo monte et descend ») : sur téléphone, la barre d'adresse se replie pendant le chargement et la
   hauteur « 100vh » change ; un bloc centré dans toute la fenêtre bougeait donc de haut en bas. Le bloc est maintenant
   calé sur la PETITE hauteur de fenêtre (svh, stable) et seul le fond prend tout l'écran. Seuls transform et opacity
   sont animés (aucune mesure de mise en page), donc rien ne peut pousser le logo. */
@keyframes v2-brand-loader-run { from { transform: translateX(-110%); } to { transform: translateX(290%); } }
@keyframes v2-loader-layer-in { from { opacity: 0; transform: translate3d(0, -10px, 0) scale(.96); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes v2-loader-name-in { from { opacity: 0; transform: translate3d(-8px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes v2-loader-track-in { from { opacity: 0; } to { opacity: 1; } }
.v2-brand-loader {
  position: fixed; top: 0; right: 0; left: 0; bottom: auto; z-index: 10000;
  height: 100vh; height: 100svh;
  display: grid; place-content: center; justify-items: center; gap: 1.25rem;
  color: var(--color-text, #172033);
  opacity: 1; visibility: visible; transition: opacity 260ms ease, visibility 260ms ease;
}
.v2-brand-loader::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--color-bg, #fff); }
.v2-brand-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.v2-brand-loader__logo { display: flex; align-items: center; gap: .6rem; height: 40px; line-height: 1; }
.v2-brand-loader__logo .udc-logo-mark { display: block; width: 42px; height: 40px; overflow: visible; }
.v2-brand-loader__logo .udc-logo-name { display: block; font-size: 1.55rem; line-height: 1; font-weight: 750; letter-spacing: -.045em; }
.v2-brand-loader__track { display: block; width: 112px; height: 3px; overflow: hidden; border-radius: 99px; background: var(--color-border, #e5e7eb); }
.v2-brand-loader__track > span { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--color-brand, #E91E63); animation: v2-brand-loader-run 1.05s ease-in-out infinite; }
/* Les trois plaques du logo se posent l'une après l'autre, puis le nom apparaît (une seule fois, sans boucle). */
.v2-brand-loader__logo .udc-logo-mark path { transform-box: fill-box; transform-origin: center; animation: v2-loader-layer-in 520ms cubic-bezier(.2, .8, .2, 1) both; }
.v2-brand-loader__logo .udc-logo-mark path:nth-child(3) { animation-delay: 0ms; }
.v2-brand-loader__logo .udc-logo-mark path:nth-child(2) { animation-delay: 140ms; }
.v2-brand-loader__logo .udc-logo-mark path:nth-child(1) { animation-delay: 280ms; }
.v2-brand-loader__logo .udc-logo-name { animation: v2-loader-name-in 460ms cubic-bezier(.2, .8, .2, 1) 420ms both; }
.v2-brand-loader__track { animation: v2-loader-track-in 300ms ease 600ms both; }
@media (prefers-reduced-motion: reduce) {
  .v2-brand-loader, .v2-brand-loader__track > span { transition: none; animation: none; }
  .v2-brand-loader__track > span { width: 100%; }
  .v2-brand-loader__logo .udc-logo-mark path, .v2-brand-loader__logo .udc-logo-name, .v2-brand-loader__track { animation: none; }
}

/* ─── register-pricing : grille marketing bas de page d'inscription ─────── */
:root { --rp-art-cloud: #d6ecfb; --rp-art-shadow: #8f1240; }

.rp-wrap { width: 100%; max-width: 56rem; margin: 48px auto 0; padding-top: 36px; border-top: 1px solid var(--color-border); }

/* En-tête */
.rp-head { text-align: center; margin-bottom: 32px; }
.rp-eyebrow { display: inline-block; margin-bottom: 10px; padding: 4px 14px; border-radius: 999px; background: color-mix(in srgb, var(--color-brand) 12%, transparent); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-brand); }
.rp-title { margin: 0 0 10px; font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 900; line-height: 1.15; color: var(--color-text); }
.rp-sub { max-width: 44ch; margin: 0 auto 14px; font-size: .92rem; color: var(--color-text-muted); line-height: 1.6; }
.rp-mm { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: .85rem; font-weight: 600; color: var(--color-brand); }
.rp-mm svg { flex-shrink: 0; }

/* Grille */
.rp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Carte */
.rp-card { position: relative; display: flex; flex-direction: column; padding: 24px 18px 20px; border-radius: 14px; border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--color-text); transition: box-shadow .2s, transform .15s; }
.rp-card:hover { box-shadow: 0 6px 24px color-mix(in srgb, var(--color-brand) 14%, transparent); transform: translateY(-3px); }
.rp-card--featured { border-color: var(--color-brand); background: color-mix(in srgb, var(--color-brand) 5%, var(--color-surface)); box-shadow: 0 4px 20px color-mix(in srgb, var(--color-brand) 18%, transparent); }

/* Badge */
.rp-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 3px 12px; border-radius: 999px; background: var(--color-brand); color: var(--color-on-brand, #fff); font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.rp-badge--biz { background: #334155; }

/* Icône */
.rp-icon { display: block; width: 52px; height: 52px; margin: 4px auto 14px; }

/* Nom + prix */
.rp-plan-name { margin: 0 0 8px; font-size: 1.1rem; font-weight: 800; text-align: center; }
.rp-price { margin: 0 0 18px; text-align: center; line-height: 1.3; }
.rp-price__amount { display: block; font-size: 1.55rem; font-weight: 900; color: var(--color-text); }
.rp-price__amount--free { color: var(--color-text-muted); font-size: 1.2rem; }
.rp-price__period { font-size: .78rem; color: var(--color-text-muted); }
.rp-price__cdf { display: block; font-size: .78rem; color: var(--color-text-muted); }

/* Features */
.rp-feats { flex: 1; list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rp-feats li { display: flex; align-items: flex-start; gap: 7px; font-size: .82rem; line-height: 1.45; color: var(--color-text); }
.rp-feats li.is-off { color: var(--color-text-muted); }
.rp-feats svg { flex-shrink: 0; margin-top: 1px; }

/* CTA */
.rp-cta { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 9px; border: 1.5px solid var(--color-border-strong); font: inherit; font-size: .86rem; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer; transition: filter .15s, transform .1s; background: var(--color-surface-2); color: var(--color-text); }
.rp-cta--featured { background: var(--color-brand); color: var(--color-on-brand, #fff); }
.rp-cta--free { background: var(--color-text); color: var(--color-bg); }
.rp-cta:hover, .rp-cta:focus-visible { filter: brightness(1.1); }
.rp-cta:active { transform: scale(.98); }
.rp-cta:focus-visible { outline: 3px solid color-mix(in srgb, var(--color-brand) 45%, transparent); outline-offset: 2px; }

/* Pied */
.rp-foot { margin-top: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rp-reassure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: .82rem; color: var(--color-text-muted); }
.rp-voir-tout { font-size: .88rem; font-weight: 600; color: var(--color-brand); text-decoration: none; }
.rp-voir-tout:hover, .rp-voir-tout:focus-visible { text-decoration: underline; }

/* Responsive */
@media (max-width: 860px) {
  .rp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .rp-grid { grid-template-columns: 1fr; gap: 20px; }
  .rp-card { padding: 22px 16px 18px; }
  .rp-title { font-size: 1.4rem; }
}
/* ─────────────────────────────────────────────────────────────────────────── */

/* Modale formules : « ! » jamais seul sur une ligne, prix lisible, bouton assez haut pour le pouce. */
.plan-duo__price { text-wrap: balance; }
.plan-duo__cta { min-height: 52px; font-size: 1rem; }
@media (max-width: 640px) { .plan-duo__cta { min-height: 40px; font-size: .88rem; } .plan-duo__price { text-wrap: pretty; } }


/* Après la première page de la session, masquer le loader avant le premier rendu pour éviter tout flash. */
.udc-brand-seen #udc-brand-loader { display: none !important; }

/* Bandeau des visiteurs : dégradé orange sous la barre de navigation, pleine largeur. */
/* Bandeau d'actualité façon notice Render (21/11/2026, demande du propriétaire) : encadré lavande, texte fixe (plus de défilement), lien souligné dessous. */
.udc-news-banner { display: flex; align-items: flex-start; gap: 10px; margin: 10px clamp(.75rem, 2vw, 1.5rem); padding: 12px 12px 12px 14px; border: 1px solid #DDD6FE; border-radius: 10px; background: #F1EEFF; color: #1F1B2E; font-size: .85rem; line-height: 1.45; }
.udc-news-banner[hidden] { display: none !important; }
.udc-news-banner__icon { flex: none; margin-top: 2px; color: #6D4AFF; }
.udc-news-banner__body { flex: 1; min-width: 0; }
.udc-news-banner__text { margin: 0 0 6px; }
.udc-news-banner__text strong { font-weight: 600; }
.udc-news-banner__more { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.udc-news-banner__more:hover { text-decoration-thickness: 2px; }
.udc-news-banner__close { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin: -4px -4px 0 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; opacity: .7; }
.udc-news-banner__close:hover, .udc-news-banner__close:focus-visible { opacity: 1; background: rgba(109, 74, 255, .12); }
html[data-theme="dark"] .udc-news-banner { border-color: #3B2F66; background: #231C3D; color: #E9E5FF; }
html[data-theme="dark"] .udc-news-banner__icon { color: #A18BFF; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .udc-news-banner { border-color: #3B2F66; background: #231C3D; color: #E9E5FF; }
  html:not([data-theme="light"]) .udc-news-banner__icon { color: #A18BFF; }
}


/* ── Menu mobile moderne (ordre du propriétaire, 09/11/2026) ──────────────────────────────────────────────
   Avant : une liste collée sous l'en-tête, coupée par la barre du bas et la bulle de chat.
   Maintenant : bouton rond avec croix à l'ouverture, panneau flottant arrondi, groupes en cartes, icônes en pastilles de marque,
   connexion / inscription côte à côte collées en bas. Le panneau s'arrête AU-DESSUS de la barre du bas ; la bulle de chat se cache. */
@media (max-width: 79.999rem) {
  .v2-header__toggle {
    position: relative; inline-size: 44px; block-size: 44px; flex: 0 0 auto;
    border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface-2, var(--color-surface));
    transition: background .18s ease, border-color .18s ease, transform .12s ease;
  }
  .v2-header__toggle:active { transform: scale(.94); }
  .v2-header__toggle svg { inline-size: 22px; block-size: 22px; stroke-width: 2; }
  .v2-header__toggle svg + svg { display: none; }
  .v2-header__toggle[aria-expanded="true"] { border-color: var(--color-brand-strong); background: var(--color-brand-soft); color: var(--color-brand-ink); }
  .v2-header__toggle[aria-expanded="true"] svg:first-child { display: none; }
  .v2-header__toggle[aria-expanded="true"] svg + svg { display: block; }

  html .v2-header .v2-header__menu {
    position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; inline-size: auto; max-width: none; margin: 0; padding: 10px;
    max-height: calc(100vh - 64px - 24px); max-height: calc(100dvh - 64px - 24px - env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
    border: 1px solid var(--color-border); border-radius: 26px;
    background: var(--color-surface); box-shadow: 0 24px 60px rgba(0, 0, 0, .28), 0 2px 0 rgba(255, 255, 255, .04) inset;
  }
  html .v2-header .v2-header__menu::-webkit-scrollbar { display: none; }
  html .v2-header .v2-header__menu:not([hidden]) { animation: udcMenuIn .2s cubic-bezier(.2, .8, .2, 1); }
  /* Avec la barre du bas : le panneau s'arrête au-dessus d'elle (≈ 84 px de barre + marge). */
  html body:has(.udc-app-nav) .v2-header .v2-header__menu {
    max-height: calc(100vh - 64px - 108px); max-height: calc(100dvh - 64px - 108px - env(safe-area-inset-bottom));
  }
  html body:has(.udc-app-nav) .v2-header .v2-header__menu .v2-header__account { padding-inline-end: 0; }

  .v2-header__menu-group {
    margin: 0 0 8px; padding: 6px; border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-surface-2, transparent);
  }
  .v2-header__menu-group:last-of-type { border: 1px solid var(--color-border); }
  .v2-header__menu-title { padding: 8px 10px 6px; font-size: .68rem; letter-spacing: .09em; }
  .v2-header__menu a { gap: 12px; min-height: 52px; padding: 6px 10px 6px 6px; border-radius: 15px; }
  .v2-header__menu a svg {
    inline-size: 36px; block-size: 36px; padding: 8px; box-sizing: border-box; border-radius: 12px;
    background: var(--color-brand-soft); color: var(--color-brand-ink); stroke-width: 1.9;
  }
  .v2-header__menu a:hover svg, .v2-header__menu a[aria-current="page"] svg { background: var(--color-brand-strong); color: var(--color-on-brand, #fff); }
  .v2-header__menu a[aria-current="page"] { background: var(--color-brand-soft); }

  /* Connexion et inscription côte à côte, collées en bas du panneau. */
  .v2-header__menu .v2-header__account {
    position: sticky; bottom: -10px; margin: 4px -10px -10px; padding: 10px; border-top: 1px solid var(--color-border);
    border-radius: 0 0 26px 26px; background: var(--color-surface);
  }
  .v2-header__menu .v2-header__account:has(.v2-header__cta) { flex-direction: row; gap: 8px; }
  .v2-header__menu .v2-header__account .v2-header__cta { flex: 1 1 0; justify-content: center; min-height: 50px; border-radius: 15px; }
  .v2-header__menu .v2-header__account .v2-header__cta svg { inline-size: 20px; block-size: 20px; padding: 0; background: transparent; color: currentColor; }
  .v2-header__menu .v2-header__account .v2-header__cta--primary svg { color: var(--color-on-brand, #fff); }

  /* Menu ouvert : la bulle de chat et le bouton de thème flottants s'effacent pour ne rien recouvrir. */
  body:has(.v2-header__toggle[aria-expanded="true"]) #chat-widget-toggle,
  body:has(.v2-header__toggle[aria-expanded="true"]) .udc-theme-toggle--floating { display: none !important; }
}
@media (min-width: 40rem) and (max-width: 79.999rem) {
  html .v2-header .v2-header__menu { left: auto; inline-size: min(26rem, calc(100% - 24px)); }
}
@keyframes udcMenuIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html .v2-header .v2-header__menu:not([hidden]) { animation: none; }
  .v2-header__toggle { transition: none; }
}


/* Navigation mobile commune : bouton à gauche et tiroir latéral, identiques sur toutes les pages hors administration. */
@media (max-width: 79.999rem) {
  .v2-header__bar { justify-content: flex-start; }
  .v2-header__toggle { order: 0; margin-inline-end: 2px; }
  .v2-header__brand { order: 1; margin-inline-end: auto; }
  .v2-header__account-shortcut,
  .v2-header__cta-mobile,
  .v2-header .udc-theme-toggle { order: 2; margin-inline-start: 0; }
  .v2-header:has(.v2-header__menu:not([hidden])) { z-index: 50; }
  .v2-header:has(.v2-header__menu:not([hidden]))::before {
    content: ""; position: fixed; z-index: 1; inset: var(--size-header, 64px) 0 0;
    background: rgba(10, 16, 30, .48); backdrop-filter: blur(2px);
  }
  html .v2-header .v2-header__menu {
    position: fixed; z-index: 2; top: var(--size-header, 64px); bottom: 0; left: 0; right: auto;
    width: min(88vw, 360px); max-width: 360px; max-height: none; height: auto; margin: 0;
    padding: 12px 14px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto;
    border: 1px solid var(--color-border); border-left: 0; border-radius: 0 22px 22px 0;
    background: var(--color-surface); box-shadow: 18px 0 48px rgba(0,0,0,.22);
    animation: udcMenuFromLeft .22s cubic-bezier(.2,.8,.2,1);
  }
  html body:has(.udc-app-nav) .v2-header .v2-header__menu {
    bottom: calc(68px + env(safe-area-inset-bottom));
    max-height: none;
  }
  html body:has(.udc-app-nav) .v2-header .v2-header__menu .v2-header__account {
    padding-inline-end: 0;
  }
}
@keyframes udcMenuFromLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  html .v2-header .v2-header__menu:not([hidden]) { animation: none; }
}

/* 18/11/2026 : en sombre, --color-brand (#FF5C8F) sous du texte blanc ne donnait que 2,9:1 (« Recommandé », « Choisir Pro »).
   Ces aplats prennent la teinte du bouton principal (--color-brand-strong, 6,6:1) ; en clair, rien ne change. */
html[data-theme="dark"] .rp-badge:not(.rp-badge--biz), html[data-theme="dark"] .rp-cta--featured, html[data-theme="dark"] .plan-duo__cta--pro { background: var(--color-brand-strong); }

/* 18/11/2026 (capture du propriétaire, sombre) : « UDCShare Free / Pro » invisibles — le titre héritait de la couleur
   claire des titres en sombre alors que la carte restait blanche. Le titre suit la carte ; en sombre, cartes foncées. */
.plan-duo__name { color: inherit; }
html[data-theme="dark"] .plan-duo__card { background: #1d1e21; color: #F1F1F3; }
html[data-theme="dark"] .plan-duo__text, html[data-theme="dark"] .plan-duo__cdf { color: #C9C9CF; }
html[data-theme="dark"] .plan-duo__price { color: #F1F1F3; }
html[data-theme="dark"] .plan-duo__cta--free { background: #45464B; }
