/* UDCShare v2 — tableau de bord : colonne de navigation (grand écran), cartes, jauges, listes de transferts. Jetons : tokens.css. */

.v2-dash-body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.v2-dash { display: block; padding-block: var(--space-5); }
.v2-dash__main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.v2-dash__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.v2-dash__head h1 { margin-bottom: var(--space-1); }
.v2-dash__head p { margin: 0; }
.v2-dash__head .v2-btn svg { width: 20px; height: 20px; }
.v2-dash__more { margin: var(--space-3) 0 0; }
.v2-dash__more a { display: inline-flex; align-items: center; min-height: var(--size-tap); }
.v2-dash .v2-card > :last-child { margin-bottom: 0; }

/* Colonne latérale (≥ 56rem) et menu complet en bas de l'accueil (mobile) */
.v2-dash-nav ul { list-style: none; margin: 0 0 var(--space-3); padding: 0; }
/* Titres de groupe façon console : petites capitales à chasse fixe (plus spécifique que .v2-dash-body h2). */
.v2-dash-nav .v2-dash-nav__group { 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); margin: var(--space-4) 0 var(--space-1); padding-inline: var(--space-3); }
.v2-dash-nav a { display: flex; align-items: center; gap: var(--space-3); min-height: 36px; padding-inline: var(--space-3); border-radius: var(--radius-sm); color: var(--color-text); font-size: var(--font-size-control); text-decoration: none; }
@media (pointer: coarse) { .v2-dash-nav a { min-height: var(--size-tap); } }
.v2-dash-nav a svg { width: var(--size-icon-lg); height: var(--size-icon-lg); color: var(--color-text-muted); }
.v2-dash-nav a:hover { background: var(--color-surface-2); }
.v2-dash-nav a[aria-current="page"] { background: var(--color-brand-soft); font-weight: var(--font-weight-medium); }
.v2-dash-nav a[aria-current="page"] svg { color: var(--color-brand); }
.v2-dash-nav a.is-locked { color: var(--color-text-muted); }
.v2-dash-nav a .v2-badge { margin-left: auto; }
.v2-dash-nav--side { display: none; }
.v2-dash-nav--page { border-top: 1px solid var(--color-border); padding-top: var(--space-3); }
@media (min-width: 56rem) {
  .v2-dash-body { padding-bottom: 0; }
  .v2-dash-body .v2-bottom-nav { display: none; }
  .v2-dash { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: var(--space-5); align-items: start; min-height: calc(100vh - 64px); }
  /* Colonne latérale : un vrai panneau, comme dans une application de bureau (références du propriétaire, 03/11/2026).
     Elle se cale sous l'en-tête, ne dépasse jamais l'écran, et son fond la détache du contenu. */
  .v2-dash-nav--side {
    display: block; position: sticky; top: calc(64px + var(--space-4));
    max-height: calc(100vh - 64px - var(--space-6)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-2) var(--space-3);
  }
  .v2-dash-nav--side::-webkit-scrollbar { width: 6px; }
  .v2-dash-nav--side::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
  .v2-dash-nav--side .v2-dash-nav__group:first-child { margin-top: var(--space-2); }
  .v2-dash-nav--page { display: none; }
}
@media (min-width: 80rem) { .v2-dash { grid-template-columns: 16.5rem minmax(0, 1fr); } }

/* Pied de page des pages connectées : barre sobre, pas le grand pied du site public */

/* Bandeau d'expiration : compact, persistant et lisible en clair/sombre. */
.udc-subscription-banner {
  display: flex; align-items: flex-start; gap: 12px; margin: 0 0 var(--space-4);
  padding: 12px 14px; border: 1px solid var(--color-warning, #b7791f);
  border-radius: var(--radius-md); background: var(--color-warning-soft, var(--color-surface-2));
  color: var(--color-text);
}
.udc-subscription-banner__icon { display: inline-flex; flex: 0 0 32px; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9px; background: var(--color-surface); color: var(--color-warning, #b7791f); }
.udc-subscription-banner__icon svg { width: 18px; height: 18px; }
.udc-subscription-banner__body { min-width: 0; }
.udc-subscription-banner h2 { margin: 0 0 4px; font-size: var(--font-size-base); line-height: 1.35; }
.udc-subscription-banner p { margin: 0 0 10px; color: var(--color-text-muted); font-size: var(--font-size-sm); line-height: 1.5; }
.udc-subscription-banner .v2-btn { min-height: 34px; }
@media (max-width: 40rem) {
  .udc-subscription-banner { gap: 9px; padding: 10px; }
  .udc-subscription-banner__icon { flex-basis: 28px; width: 28px; height: 28px; }
  .udc-subscription-banner h2 { font-size: 0.9375rem; }
  .udc-subscription-banner p { font-size: 0.8125rem; }
}

/* Premiers pas */
.v2-dash-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.v2-dash-steps__item { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: center; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.v2-dash-steps__item p { margin: 0; }
.v2-dash-steps__item .v2-btn { grid-column: 1 / -1; }
@media (min-width: 40rem) { .v2-dash-steps__item { grid-template-columns: auto 1fr auto; } .v2-dash-steps__item .v2-btn { grid-column: auto; } }
.v2-dash-steps__label { font-weight: var(--font-weight-bold); }
.v2-dash-steps__mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-surface-2); color: var(--color-text-muted); }
.is-done .v2-dash-steps__mark { background: var(--color-success-soft); color: var(--color-success); }
.is-unknown .v2-dash-steps__mark { background: var(--color-warning-soft); color: var(--color-warning); }

/* Jauges : la couleur suit le niveau (75 % avertissement, 90 % alerte, 100 % atteint) */
.v2-dash-meters { display: grid; gap: var(--space-4); margin-bottom: var(--space-3); }
.v2-dash-meters .v2-field__hint { margin: var(--space-1) 0 0; }
.v2-dash-meters .is-warning .v2-progress__bar { background: var(--color-warning); }
.v2-dash-meters .is-critical .v2-progress__bar, .v2-dash-meters .is-blocked .v2-progress__bar { background: var(--color-danger); }

/* Listes */
.v2-dash-list { list-style: none; margin: 0; padding: 0; }
.v2-dash-list li { display: flex; align-items: center; gap: var(--space-3); padding-block: var(--space-3); border-bottom: 1px solid var(--color-border); }
.v2-dash-list li:last-child { border-bottom: 0; }
.v2-dash-list__main { flex: 1; min-width: 0; }
.v2-dash-list__main p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-dash-list__title { font-weight: var(--font-weight-medium); }
.v2-dash-list__count { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--color-text-muted); font-size: var(--font-size-sm); }
.v2-dash-list__count svg { width: 16px; height: 16px; }

.v2-dash-status { display: inline-flex; align-items: center; padding: 2px var(--space-2); border-radius: var(--radius-pill); font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); white-space: nowrap; background: var(--color-surface-2); color: var(--color-text-muted); }
.v2-dash-status.is-active { background: var(--color-success-soft); color: var(--color-success); }
.v2-dash-status.is-viewed { background: var(--color-warning-soft); color: var(--color-warning); }
.v2-dash-status.is-deleted { background: var(--color-danger-soft); color: var(--color-danger); }
.v2-dash-status.is-paused { background: var(--color-warning-soft); color: var(--color-warning); }
.v2-dash-status.is-expired, .v2-dash-status.is-revoked { background: var(--color-danger-soft); color: var(--color-danger); }

.v2-dash-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: 0 0 var(--space-4); }
/* Téléphone étroit : une colonne. Deux, un libellé français long (« Reprise d'un envoi interrompu ») réduisait la
   valeur à une poignée de pixels et « Oui » se coupait en « Ou / i » (27/10/2026). */
@media (max-width: 26rem) { .v2-dash-facts { grid-template-columns: 1fr; } }
@media (min-width: 48rem) { .v2-dash-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .v2-dash-facts--inline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.v2-dash-facts dt { font-size: var(--font-size-xs); color: var(--color-text-muted); }
.v2-dash-facts dd { margin: 0; font-weight: var(--font-weight-bold); overflow-wrap: break-word; }

.v2-dash-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 40rem) { .v2-dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 80rem) { .v2-dash-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.v2-dash-tiles a { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-3); align-items: center; min-height: 72px; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text); text-decoration: none; }
.v2-dash-tiles a:hover { border-color: var(--color-border-strong); }
.v2-dash-tiles svg { grid-row: span 2; color: var(--color-brand-ink); }
.v2-dash-tiles .is-locked svg { color: var(--color-text-muted); }
.v2-dash-tiles__label { font-weight: var(--font-weight-bold); }
.v2-dash-tiles .v2-muted { font-size: var(--font-size-sm); }

/* Transferts et Dropzones */
.v2-dash-filters { display: grid; gap: var(--space-3); align-items: end; }
.v2-dash-filters .v2-field { margin: 0; }
@media (min-width: 48rem) { .v2-dash-filters { grid-template-columns: 2fr 1fr auto; } }
.v2-dash-transfers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.v2-dash-transfer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.v2-dash-transfer__title { font-size: var(--font-size-lg); margin-bottom: var(--space-1); overflow-wrap: anywhere; }
.v2-dash-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.v2-dash-actions form { margin: 0; }
.v2-dash-actions .v2-btn svg { width: 18px; height: 18px; }
.v2-dash-qr, .v2-dash-recipients { margin-top: var(--space-4); padding: var(--space-4); background: var(--color-surface-2); border-radius: var(--radius-md); }
.v2-dash-qr img { display: block; width: 200px; height: 200px; background: #FFFFFF; border-radius: var(--radius-sm); }
.v2-dash-recipients ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
/* Suivi des destinataires : chaque information occupe sa propre ligne.
   Évite les chevauchements sur les écrans étroits et avec les longues adresses. */
.v2-dash-recipients li { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 6px; min-width: 0; width: 100%; }
.v2-dash-recipients li > .v2-dash-list__main { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; align-items: start; gap: 7px; width: 100%; min-width: 0; }
.v2-dash-recipients li > .v2-dash-list__main > span:first-child { display: block; width: 100%; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: break-word; line-height: 1.5; }
.v2-dash-recipients li > .v2-dash-list__main > .v2-dash-status { display: inline-flex; justify-self: start; max-width: 100%; white-space: normal; line-height: 1.4; }
.v2-dash-recipients li > .v2-dash-recipients__detail { display: block; width: 100%; min-width: 0; max-width: 100%; margin: 0; padding: 0; white-space: normal; overflow-wrap: anywhere; word-break: normal; line-height: 1.55; }
.v2-dash-extend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-4); }
.v2-dash-extend .v2-input { width: auto; }
.v2-dash-files { margin: var(--space-3) 0; }
.v2-dash-files summary { min-height: var(--size-tap); display: flex; align-items: center; cursor: pointer; color: var(--color-link); }
.v2-dash-files ul { margin: 0; padding-left: var(--space-5); overflow-wrap: anywhere; }
.v2-dash-url { font-family: var(--font-family-mono); font-size: var(--font-size-sm); overflow-wrap: anywhere; margin-bottom: var(--space-2); }
.v2-dash-form { display: grid; gap: var(--space-3); }
.v2-dash-form .v2-field, .v2-dash-inline-form .v2-field { margin: 0; }
.v2-dash-inline-form { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.v2-dash-prefix { display: flex; align-items: stretch; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface); }
.v2-dash-prefix span { display: flex; align-items: center; padding-inline: var(--space-3); background: var(--color-surface-2); color: var(--color-text-muted); font-size: var(--font-size-sm); white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.v2-dash-prefix .v2-input { border: 0; border-radius: 0; min-width: 0; }
.v2-dash-pages { display: flex; align-items: center; justify-content: center; gap: var(--space-3); }
/* Colonnes à largeur bornée : un titre long (nowrap) ne doit jamais élargir la page sur mobile */
.v2-dash .v2-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .v2-dash .v2-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Liens dans le texte : zone de toucher de 48 px */
.v2-dash__main p > a, .v2-dash__main .v2-field__hint > a { display: inline-flex; align-items: center; min-height: var(--size-tap); }
.v2-dash__links { display: flex; flex-wrap: wrap; column-gap: var(--space-4); }
.v2-dash-prefix span { flex-shrink: 0; }
.v2-dash-prefix .v2-input { flex: 1 1 8rem; }
/* Souris (grand écran) : lignes de menu plus serrées pour que tout le menu tienne sans défilement */
@media (min-width: 56rem) and (pointer: fine) { .v2-dash-nav--side a { min-height: 40px; } }

/* Refonte ergonomique (20/10) : filtres en pastilles, carte de transfert courte, options repliées, menu complet replié. */
.v2-dash-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.v2-dash-chip { display: inline-flex; align-items: center; min-height: var(--size-tap); padding-inline: var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); color: var(--color-text); text-decoration: none; font-weight: var(--font-weight-medium); }
.v2-dash-chip[aria-current="page"] { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
.v2-dash-search { display: flex; gap: var(--space-2); }
.v2-dash-search .v2-input { flex: 1; min-width: 0; }
.v2-dash-transfer__meta { margin: 0 0 var(--space-3); }
.v2-dash-more { margin-top: var(--space-2); }
.v2-dash-more > summary { min-height: var(--size-tap); display: flex; align-items: center; cursor: pointer; color: var(--color-link); font-weight: var(--font-weight-medium); }
.v2-dash-more[open] > summary { margin-bottom: var(--space-3); }
.v2-dash-more .v2-dash-facts { margin-bottom: var(--space-3); }
.v2-dash-allmenu > summary { min-height: var(--size-tap); display: flex; align-items: center; cursor: pointer; font-weight: var(--font-weight-bold); }
.v2-dash-allmenu .v2-dash-nav--page { border-top: 0; }
/* Ancien menu replié : remplacé sur mobile par la liste « Mon espace » de l'Accueil et la barre du bas à quatre icônes ; absent sur grand écran (colonne latérale). */
.v2-dash-allmenu { display: none; }

/* Paramètres d'envoi : durées en pastilles à cocher (une durée hors formule reste visible, verrouillée, avec sa formule) */
.v2-dash-radios { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.v2-dash-radios legend { margin-bottom: var(--space-3); padding: 0; }
.v2-dash-radio { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--size-tap); padding: var(--space-2) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-pill, 999px); cursor: pointer; }
.v2-dash-radio:has(input:checked) { border-color: var(--color-brand); box-shadow: inset 0 0 0 1px var(--color-brand); }
.v2-dash-radio:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.v2-dash-radio input { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--color-brand); }
.v2-dash-radio.is-locked { color: var(--color-text-muted); cursor: not-allowed; }
.v2-dash-radio__lock { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--font-size-xs); }
.v2-dash-radio__lock svg { width: 0.875rem; height: 0.875rem; }
.v2-dash-status-line { min-height: 1.5em; margin: 0; }
.v2-dash-status-line.is-ok { color: var(--color-success); }
.v2-dash-status-line.is-error { color: var(--color-danger); }

/* Mon équipe : blocs montrés par public/v2/js/team.js (attribut hidden respecté même sur une carte) */
.v2-dash [hidden] { display: none !important; }
@media (min-width: 48rem) { #tm-invite-form { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; } #tm-create-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }

/* Portails clients (21/10/2026) */
.v2-portal { display: grid; gap: var(--space-3); }
.v2-portal__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.v2-portal__head .v2-card__title { margin: 0; overflow-wrap: anywhere; }
.v2-portal__badges { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0; }
.v2-portal__badges .v2-badge svg { width: 14px; height: 14px; margin-right: 4px; }
.v2-badge--muted { background: var(--color-surface-muted, var(--color-border)); color: var(--color-text-muted); }
.v2-portal__link { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.v2-portal__link .v2-input { flex: 1 1 220px; min-width: 0; }
.v2-portal__sub { margin: 0; font-size: var(--font-size-sm); }
.v2-portal__add { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-2); }
.v2-portal__add .v2-field { flex: 1 1 220px; margin: 0; }
.v2-portal__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.v2-portal .v2-dash-list svg { width: 16px; height: 16px; vertical-align: -3px; }
.v2-portal__plans li { flex-wrap: wrap; }
.v2-portal__plans .v2-dash-list__main { flex: 1 1 160px; }

/* Profil (21/10/2026) */
.v2-profile__id { display: flex; align-items: center; gap: var(--space-3); }
.v2-profile__id > div { min-width: 0; }
.v2-profile__avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--color-brand-soft); color: var(--color-text); font-size: var(--font-size-lg, 1.25rem); font-weight: var(--font-weight-bold); }
.v2-profile__email { margin: 0; overflow-wrap: anywhere; }
.v2-profile__block { padding-top: var(--space-4); margin-top: var(--space-4); border-top: 1px solid var(--color-border); }
/* public/js/payment-claims.js (partagé avec la v1) écrit des styles en ligne avec ces variables : alias vers les jetons v2. */
#payment-claims { --green: var(--color-success); --red: var(--color-danger); --muted: var(--color-text-muted); --border: var(--color-border); }
#payment-claims .btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-link); font: inherit; cursor: pointer; }
/* Paramètres du compte (dashboard-account.ejs) : historique des paiements et marque. */
.v2-dash-status.is-pay-validated { background: var(--color-success-soft); color: var(--color-success); }
.v2-dash-status.is-pay-pending { background: var(--color-warning-soft); color: var(--color-warning); }
.v2-dash-status.is-pay-rejected { background: var(--color-danger-soft); color: var(--color-danger); }
.v2-pay-list li { flex-wrap: wrap; }
.v2-pay-list .v2-dash-list__main { flex: 1 1 220px; }
.v2-pay-list .v2-dash-list__main p { white-space: normal; overflow-wrap: anywhere; }
.v2-pay-list__links { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); }
.v2-pay-list__links a { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; padding: 0 var(--space-2); }
.v2-pay-list__links svg { width: 16px; height: 16px; }
.v2-brand__grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.v2-brand__current { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.v2-brand__logo { height: 40px; max-width: 160px; object-fit: contain; border-radius: var(--radius-sm, 4px); background: var(--color-surface-2); }
.v2-brand__bg { height: 48px; width: 96px; object-fit: cover; border-radius: var(--radius-sm, 4px); }
.v2-brand__color { display: flex; align-items: center; gap: var(--space-2); max-width: 320px; }
.v2-brand__color input[type="color"] { flex: none; width: 48px; height: 44px; padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: none; cursor: pointer; }
/* Drives (dashboard-drives.ejs). */
.v2-drive__free { font-size: var(--font-size-lg, 1.25rem); font-weight: var(--font-weight-bold); margin: 0 0 var(--space-2); }
.v2-drive-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.v2-drive { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); display: grid; gap: var(--space-2); min-width: 0; }
.v2-drive p { margin: 0; }
.v2-drive__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-width: 0; }
.v2-drive__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-surface-2); }
.v2-drive__icon svg { width: 20px; height: 20px; }
/* Logo officiel Google Drive (partials/drive-logo.ejs) : deux <svg> imbriqués. Les règles « svg { width } » des boutons et des pastilles
   ne doivent toucher ni l'un ni l'autre, sinon le logo se déforme ; la taille se règle ici, sur le svg extérieur seulement. */
html .v2-drive-logo { flex: none; vertical-align: middle; }
html .v2-drive-logo > svg { width: 100%; height: 100%; }
html .v2-drive__icon .v2-drive-logo { width: 26px; height: 22.6px; }
html .v2-btn .v2-drive-logo { width: 20px; height: 17.4px; }
html .v2-topbar__m .v2-drive-logo { width: 22px; height: 19.1px; }
html .v2-portal__sub .v2-drive-logo { width: 20px; height: 17.4px; }
.v2-drive__who { flex: 1 1 calc(100% - 56px); min-width: 0; }
.v2-drive__who p { overflow-wrap: anywhere; }
.v2-dash-status.is-drive-active { background: var(--color-success-soft); color: var(--color-success); }
.v2-dash-status.is-drive-full { background: var(--color-warning-soft); color: var(--color-warning); }
.v2-dash-status.is-drive-error { background: var(--color-danger-soft); color: var(--color-danger); }
.v2-dash-status.is-drive-over_limit { background: var(--color-surface-2); color: var(--color-text-muted, #64748b); }
.v2-drive.is-over-limit { opacity: .7; filter: grayscale(.4); border-style: dashed; }
.v2-drive.is-over-limit .v2-drive__icon { opacity: .5; }
.v2-card .v2-progress + .v2-alert { margin-top: var(--space-3); }
.v2-drive .v2-dash-status-line:empty { display: none; }
.v2-trash-list li { flex-wrap: wrap; }
.v2-trash-list .v2-dash-list__main { flex: 1 1 240px; }
.v2-trash-list .v2-dash-list__main p { white-space: normal; overflow-wrap: anywhere; }
/* Envois programmés (dashboard-planification.ejs). drop-zone-planifier.js bascule style.display de la zone entre block et none. */
.v2-plan-drop { display: block; text-align: center; padding: var(--space-4) var(--space-3); border: 2px dashed var(--color-border-strong); border-radius: var(--radius-lg); background: var(--color-surface-2); cursor: pointer; }
.v2-plan-drop > span { display: block; }
.v2-plan-drop:hover, .v2-plan-drop.dragover { border-color: var(--color-brand-strong); background: var(--color-brand-soft); }
.v2-plan-drop:focus-visible { outline: 2px solid var(--color-focus, var(--color-brand-strong)); outline-offset: 2px; }
.v2-plan-drop__icon { width: 32px; height: 32px; color: var(--color-brand-ink); margin: 0 auto var(--space-2); display: block; }
.v2-plan-drop__title { font-weight: var(--font-weight-bold); }
.v2-plan-files { margin: var(--space-3) 0; overflow-wrap: anywhere; }
.v2-plan-form { margin-top: var(--space-3); }
.v2-plan-list li { flex-wrap: wrap; }
.v2-plan-list .v2-dash-list__main { flex: 1 1 240px; }
.v2-plan-list .v2-dash-list__main p { white-space: normal; overflow-wrap: anywhere; }
.v2-plan-edit { flex: 1 1 100%; }
.v2-plan-edit summary { display: inline-flex; list-style: none; }
.v2-plan-edit summary::-webkit-details-marker { display: none; }
.v2-plan-edit[open] form { margin-top: var(--space-3); display: grid; gap: var(--space-3); }
/* Statistiques (dashboard-analytics.ejs) : histogrammes d'une seule série, survol par bulle CSS, tableau jour par jour. */
.v2-stats-facts { margin-bottom: var(--space-2); }
.v2-stats-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .v2-stats-facts { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.v2-stats-facts dd { font-size: var(--font-size-lg, 1.25rem); }
.v2-stats-charts { display: grid; gap: var(--space-5); }
.v2-bars { margin: 0; }
.v2-bars__title { font-weight: var(--font-weight-bold); margin-bottom: var(--space-2); }
.v2-bars__plot { position: relative; padding-top: var(--space-4); }
.v2-bars__max { position: absolute; top: 0; left: 0; font-size: var(--font-size-xs); color: var(--color-text-muted); }
.v2-bars__cols { display: flex; align-items: flex-end; gap: 2px; height: 120px; border-bottom: 1px solid var(--color-border); border-top: 1px dashed var(--color-border); }
.v2-bars__col { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.v2-bars__bar { display: block; width: 100%; background: var(--color-brand-strong); border-radius: 4px 4px 0 0; }
.v2-bars__col:hover .v2-bars__bar { opacity: .8; }
.v2-bars__col:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm, 4px); background: var(--color-inverse-surface, #222); color: var(--color-inverse-text, #fff); font-size: var(--font-size-xs); pointer-events: none; }
.v2-bars__col:first-child:hover::after { left: 0; transform: none; }
.v2-bars__col:last-child:hover::after { left: auto; right: 0; transform: none; }
.v2-bars__axis { display: flex; justify-content: space-between; font-size: var(--font-size-xs); color: var(--color-text-muted); margin-top: var(--space-1); }
.v2-stats-table summary { display: inline-flex; align-items: center; min-height: var(--size-tap); cursor: pointer; color: var(--color-link, var(--color-brand-strong)); font-weight: var(--font-weight-medium); }
.v2-stats-table .v2-table-wrap { overflow-x: auto; margin-top: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.v2-stats-table .v2-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm); }
/* Tableau générique du tableau de bord (comparaison de formules sur « Utilisation », etc.) : mêmes règles que pages.css,
   que les pages connectées ne chargent pas ; sans elles le tableau s'affichait sans bordure, centré et sans largeur. */
.v2-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.v2-table-wrap:focus-visible { outline: 3px solid var(--color-focus, var(--color-brand-strong)); outline-offset: 2px; }
.v2-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm); }
.v2-table th, .v2-table td { padding: var(--space-2) var(--space-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.v2-table thead th { background: var(--color-surface-2); font-weight: var(--font-weight-bold); white-space: nowrap; }
.v2-table tbody th { font-weight: var(--font-weight-medium); min-width: 9rem; }
.v2-table td { min-width: 6.5rem; }
.v2-table tr:last-child th, .v2-table tr:last-child td { border-bottom: 0; }
.v2-stats-table th, .v2-stats-table td { padding: var(--space-2) var(--space-3); text-align: left; border-bottom: 1px solid var(--color-border); }
.v2-stats-table thead th { background: var(--color-surface-2); }
.v2-stats-top li { flex-wrap: wrap; }
.v2-stats-top .v2-dash-list__main { flex: 1 1 220px; }
.v2-stats-top .v2-dash-list__main p { white-space: normal; overflow-wrap: anywhere; }
/* Fichiers et Clés API (dashboard-files.ejs, dashboard-developer.ejs). */
.v2-files-list li { flex-wrap: wrap; }
.v2-files-list .v2-dash-list__main { flex: 1 1 240px; }
.v2-files-list .v2-dash-list__main p { white-space: normal; overflow-wrap: anywhere; }
.v2-key-secret code { display: block; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-2); overflow-wrap: anywhere; font-size: var(--font-size-sm); }
/* Admin → Utilisateurs (admin-users.ejs, admin-user.ejs). */
.v2-break { overflow-wrap: anywhere; }
.v2-admin-facts { display: grid; gap: var(--space-2); margin: 0; }
.v2-admin-facts > div { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; border-bottom: 1px solid var(--color-border); padding-bottom: var(--space-2); }
.v2-admin-facts dt { color: var(--color-text-muted); }
.v2-admin-facts dd { margin: 0; font-weight: var(--font-weight-medium); overflow-wrap: anywhere; text-align: right; }
.v2-admin-stack > .v2-card + .v2-card, .v2-admin-stack > .v2-card + form, .v2-admin-stack > form + .v2-card, .v2-admin-stack > form + form { margin-top: var(--space-4); }

/* ── Aspect de l'ancien tableau de bord, repris dans la version unique ─────────────────────────────────────────────
   Police Inter, cartes arrondies à 16 px, boutons compacts en gras avec léger soulèvement au survol. Les couleurs
   restent celles des jetons (design/tokens.json) : clair/sombre inchangés, contrastes déjà vérifiés. */
.v2-dash-body { font-family: 'Inter', var(--font-family); }
.v2-dash-body .v2-card { border-radius: 16px; padding: 24px; transition: transform var(--motion-base), border-color var(--motion-base), box-shadow var(--motion-base); }
.v2-dash-body .v2-card:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-md); }
.v2-dash-body .v2-btn { border-radius: 10px; font-weight: 700; font-size: var(--font-size-sm); gap: 7px; min-height: 44px; transition: transform var(--motion-fast), box-shadow var(--motion-fast), filter var(--motion-fast); }
.v2-dash-body .v2-btn:hover { transform: translateY(-1px); }
.v2-dash-body .v2-btn--primary:hover { box-shadow: 0 6px 20px rgba(255, 51, 102, .25); }
.v2-dash-body .v2-alert { border-radius: 12px; }
@media (max-width: 40rem) { .v2-dash-body .v2-card { padding: 16px 14px; border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) { .v2-dash-body .v2-card, .v2-dash-body .v2-btn { transition: none; } .v2-dash-body .v2-btn:hover { transform: none; } }

/* Admin → comptes : photo Google ou initiale, liste en grille sur grand écran, en-tête de fiche. */
.v2-avatar { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--color-brand-soft); color: var(--color-text); font-weight: var(--font-weight-bold); }
.v2-avatar--lg { width: 64px; height: 64px; font-size: 1.5rem; }
.v2-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v2-admin-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.v2-admin-head h1 { margin: 0; }
.v2-admin-head p { margin: 0; }
.v2-admin-users .v2-dash-list__main p { white-space: normal; overflow-wrap: anywhere; }
.v2-admin-users li:hover { background: var(--color-surface-2); }
@media (min-width: 64rem) {
  .v2-admin-users { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); }
}

/* Lien direct « Sécurité » du menu (/dashboard?tab=settings#cp-securite) : le titre ne passe pas sous l’en-tête collant. */
.v2-dash__main .v2-card__title[id] { scroll-margin-top: 88px; }
/* Liste de réglages façon appli (icône, libellé, chevron), ex. « Sécurité et connexion ». */
.v2-settings-list { list-style: none; margin: 0; padding: 0; }
.v2-settings-list li + li { border-top: 1px solid var(--color-border); }
.v2-settings-list a { display: flex; align-items: center; gap: var(--space-3); min-height: 52px; color: var(--color-text); text-decoration: none; font-weight: var(--font-weight-medium); }
.v2-settings-list a > svg:first-child { flex: none; width: 22px; height: 22px; color: var(--color-text-muted); }
.v2-settings-list a > span { flex: 1; }
.v2-settings-list__chev { flex: none; width: 18px; height: 18px; color: var(--color-text-muted); transform: rotate(180deg); }
.v2-settings-list a:hover > span { color: var(--color-link); }
/* Ligne dépliable (ex. « Se déconnecter de tous les appareils ») : même allure qu'un lien de la liste. */
.v2-settings-list__more > summary { display: flex; align-items: center; gap: var(--space-3); min-height: 52px; cursor: pointer; list-style: none; font-weight: var(--font-weight-medium); color: var(--color-text); }
.v2-settings-list__more > summary::-webkit-details-marker { display: none; }
.v2-settings-list__more > summary > svg:first-child { flex: none; width: 22px; height: 22px; color: var(--color-text-muted); }
.v2-settings-list__more > summary > span { flex: 1; }
.v2-settings-list__more[open] > summary .v2-settings-list__chev { transform: rotate(270deg); }
.v2-settings-list__panel { padding: 0 0 var(--space-3); }

/* Écrans « Accueil » et « Mes transferts » façon appli (27/10/2026) : vignettes de fichier, grand bouton d'envoi,
   filtres en une ligne défilante, recherche avec bouton-icône, copie avec retour visible sur le bouton. */
.v2-file-kind { position: relative; flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--color-surface-2); color: var(--color-text-muted); }
.v2-file-kind svg { width: 22px; height: 22px; }
.v2-file-kind__ext { margin-top: -2px; font-size: 10px; line-height: 1.2; font-weight: var(--font-weight-bold); letter-spacing: .02em; }
.v2-file-kind:has(.v2-file-kind__ext) svg { width: 18px; height: 18px; }
.v2-file-kind__count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: var(--radius-pill); background: var(--color-text); color: var(--color-bg); font-size: 11px; font-weight: var(--font-weight-bold); line-height: 20px; text-align: center; }
.v2-file-kind.is-pdf { background: var(--color-danger-soft); color: var(--color-danger); }
.v2-file-kind.is-image, .v2-file-kind.is-video { background: var(--color-brand-soft); color: var(--color-brand-ink); }
.v2-file-kind.is-doc { background: var(--color-success-soft); color: var(--color-success); }
.v2-file-kind.is-archive, .v2-file-kind.is-audio { background: var(--color-warning-soft); color: var(--color-warning); }

.v2-dash-transfer__top { align-items: center; justify-content: flex-start; }
.v2-dash-transfer__body { flex: 1; min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.v2-dash-transfer__title { font-size: var(--font-size-base); line-height: 1.35; margin: 0; }
.v2-dash-transfer__meta { margin-top: var(--space-2); font-size: var(--font-size-sm); }
.v2-dash-transfer:target { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.v2-dash-actions--main { flex-wrap: nowrap; }
.v2-dash-actions--main .v2-btn { flex: 1; justify-content: center; }
.v2-dash-actions--main .v2-btn[hidden] { display: none; }

/* Actions Copier / Partager / Supprimer : libellés plus compacts sur téléphone, sans réduire le desktop. */
@media (max-width: 40rem) {
  .v2-dash-transfer__quick-actions { gap: 6px; }
  .v2-dash-transfer__quick-actions .v2-btn {
    min-width: 0;
    min-height: 36px;
    padding: 7px 6px;
    gap: 4px;
    font-size: 0.75rem;
    line-height: 1.15;
    white-space: nowrap;
  }
  .v2-dash-transfer__quick-actions .v2-btn svg {
    width: 15px;
    height: 15px;
    flex: none;
  }
}

.v2-btn.is-copied { background: var(--color-success-soft); border-color: var(--color-success); color: var(--color-success); }

/* Sur téléphone les filtres passent à la ligne au lieu de se cacher hors de l'écran (ordre du propriétaire, 03/11/2026). */
.v2-dash-chips { flex-wrap: wrap; margin-inline: 0; padding: 2px 0; }
.v2-dash-chip { flex: none; padding-inline: var(--space-3); min-height: 38px; font-size: var(--font-size-sm); }
.v2-dash-search { position: relative; }
.v2-dash-search .v2-input { padding-right: 52px; border-radius: var(--radius-pill); }
.v2-dash-search__go { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.v2-dash-search__go svg { width: 20px; height: 20px; }
.v2-dash-new svg { width: 20px; height: 20px; }

.v2-dash-hello { flex-wrap: nowrap; align-items: center; justify-content: flex-start; }
.v2-dash-hello__avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--color-brand-soft); color: var(--color-brand-ink); font-size: 1.35rem; font-weight: var(--font-weight-bold); }
.v2-dash-send { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); border-radius: 24px; background: var(--color-brand-strong); color: var(--color-on-brand); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .15s ease; }
.v2-dash-send:active { transform: scale(.98); }
.v2-dash-send:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.v2-dash-send__plus { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--color-on-brand); color: var(--color-brand-ink); }
.v2-dash-send__plus svg { width: 28px; height: 28px; stroke-width: 2.4; }
.v2-dash-send__text { display: grid; gap: 2px; }
.v2-dash-send__title { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); }
.v2-dash-send__hint { opacity: .9; font-size: var(--font-size-sm); }
.v2-dash-recent { position: relative; }
.v2-dash-recent__link { color: inherit; text-decoration: none; }
.v2-dash-recent__link::after { content: ""; position: absolute; inset: 0; }
.v2-dash-recent:active { background: var(--color-surface-2); }
@media (prefers-reduced-motion: reduce) { .v2-dash-send { transition: none; } .v2-dash-send:active { transform: none; } }
.v2-dash-recent .v2-dash-list__main .v2-muted { font-size: var(--font-size-sm); }

/* Dropzones en « mode réception » (façon appli Smash) : une carte par Dropzone, lien et partage en premier,
   fichiers reçus en grande ligne, réglages repliés dans « Gérer ». */
.v2-dzr [hidden] { display: none !important; }
.v2-dzr__list, .v2-dzr__chips { list-style: none; padding: 0; }
.v2-dzr__list { display: grid; gap: var(--space-3); margin: 0 0 var(--space-5); }
.v2-dzr__card { display: grid; gap: var(--space-3); padding: var(--space-4); }
.v2-dzr__card.is-closed { opacity: .85; }
.v2-dzr__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); }
.v2-dzr__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-brand-soft); color: var(--color-brand-ink); }
.v2-dzr__icon svg { width: 22px; height: 22px; }
.v2-dzr__name { min-width: 0; }
.v2-dzr__name h2 { margin: 0; font-size: var(--font-size-base); line-height: 1.3; overflow-wrap: anywhere; }
.v2-dzr__url { margin: 2px 0 0; font-size: var(--font-size-xs); color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-dzr__desc { margin: 0; padding: var(--space-2) var(--space-3); border-left: 3px solid var(--color-border-strong); color: var(--color-text-muted); font-size: var(--font-size-sm); }
.v2-dzr__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.v2-dzr__chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px var(--space-2); border-radius: var(--radius-pill); background: var(--color-surface-2); font-size: var(--font-size-xs); color: var(--color-text); }
.v2-dzr__chips svg { width: 14px; height: 14px; color: var(--color-text-muted); }
.v2-dzr__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: var(--space-2); }
.v2-dzr__actions .v2-btn { justify-content: center; min-height: var(--size-tap); white-space: nowrap; }
.v2-dzr__card .v2-dash-qr { margin-top: 0; }
.v2-dzr__inbox { display: flex; align-items: center; gap: var(--space-3); min-height: 52px; padding: 0 var(--space-3); border-radius: var(--radius-md); background: var(--color-surface-2); color: var(--color-text); text-decoration: none; font-weight: var(--font-weight-medium); }
.v2-dzr__inbox > svg { width: 20px; height: 20px; color: var(--color-brand-ink); }
.v2-dzr__inbox > span:first-of-type { flex: 1; }
.v2-dzr__inbox:hover > span:first-of-type { color: var(--color-link); }
.v2-dzr__badge { min-width: 24px; padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--color-brand-strong); color: var(--color-on-brand); font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); text-align: center; line-height: 24px; }
.v2-dzr__manage, .v2-dzr__settings { margin-top: 0; }
.v2-dzr__manage > summary, .v2-dzr__settings > summary { display: flex; align-items: center; gap: var(--space-3); min-height: 52px; padding: var(--space-2) var(--space-3); list-style: none; }
.v2-dzr__manage > summary::-webkit-details-marker, .v2-dzr__settings > summary::-webkit-details-marker { display: none; }
.v2-dzr__manage > summary > svg, .v2-dzr__settings > summary > svg { flex: none; width: 20px; height: 20px; color: var(--color-text-muted); }
.v2-dzr__manage > .v2-fold__body, .v2-dzr__settings > .v2-fold__body { padding: 0 var(--space-3) var(--space-2); }
.v2-dzr__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-3); border-bottom: 1px solid var(--color-border); font-size: var(--font-size-sm); }
.v2-dzr__row:last-child { border-bottom: 0; }
.v2-dzr__row > span { flex: 1 1 10rem; min-width: 0; }
.v2-dzr__row > .v2-btn { flex: none; }
.v2-dzr__row--stack { flex-direction: column; align-items: stretch; }
.v2-dzr__row--stack label { font-weight: var(--font-weight-medium); }
.v2-dzr__row--stack .v2-field__hint { margin: 0; }
.v2-dzr__settings .v2-fold__body > .v2-field, .v2-dzr__settings .v2-fold__body > .v2-check { margin: 0; padding-block: var(--space-3); border-bottom: 1px solid var(--color-border); }
.v2-dzr__settings .v2-fold__body > :last-child { border-bottom: 0; }
.v2-dzr__settings .v2-check { justify-content: space-between; flex-direction: row-reverse; font-weight: var(--font-weight-medium); }
.v2-dzr__settings .v2-options__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.v2-dzr__settings .v2-options__text strong { font-size: var(--font-size-sm); }
.v2-dzr__settings .v2-options__text .v2-muted { font-size: var(--font-size-xs); }
.v2-dzr__form { display: grid; gap: var(--space-3); }
.v2-dzr__form > .v2-field, .v2-dzr__form > p { margin: 0; }
.v2-dzr__empty { display: grid; place-items: center; padding: var(--space-4) 0 var(--space-2); }
.v2-dzr__empty .v2-orb__rings { display: grid; place-items: center; width: 148px; height: 148px; border-radius: 50%; background: color-mix(in srgb, var(--color-brand) 12%, transparent); box-shadow: 0 0 0 12px color-mix(in srgb, var(--color-brand) 7%, transparent); }
.v2-dzr__empty .v2-orb__btn { display: grid; place-items: center; width: 100px; height: 100px; border-radius: 50%; background: var(--color-surface); color: var(--color-brand-ink); box-shadow: var(--shadow-md); }
.v2-dzr__empty .v2-orb__btn svg { width: 40px; height: 40px; }
.v2-dzr__empty-title { margin: 0 0 var(--space-4); text-align: center; font-weight: var(--font-weight-bold); font-size: var(--font-size-lg); }

/* Page Utilisation façon écran d'appli (27/10/2026) : une carte par période, « n % utilisé », remise à zéro, rythme */
.v2-usage-pace { margin: 0 0 var(--space-4); font-size: var(--font-size-lg, 1.125rem); line-height: 1.45; color: var(--color-text); }
.v2-usage-group { margin: var(--space-4) 0 var(--space-2); font-size: var(--font-size-md, 1rem); font-weight: var(--font-weight-medium); color: var(--color-text); }
.v2-usage-card { display: grid; gap: var(--space-4); border-radius: var(--radius-lg, 20px); }
.v2-usage-row__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-2); }
.v2-usage-row__label { font-size: var(--font-size-lg, 1.125rem); color: var(--color-text); }
.v2-usage-row__pct { color: var(--color-text-muted); white-space: nowrap; }
.v2-usage-row .v2-progress__track { height: 12px; border: 0; background: var(--color-brand-soft); }
.v2-usage-row.is-warning .v2-progress__track { background: var(--color-warning-soft); }
.v2-usage-row.is-warning .v2-progress__bar { background: var(--color-warning); }
.v2-usage-row.is-critical .v2-progress__bar, .v2-usage-row.is-blocked .v2-progress__bar { background: var(--color-danger); }
.v2-usage-row__detail, .v2-usage-row__reset { margin: var(--space-2) 0 0; font-size: var(--font-size-sm); color: var(--color-text-muted); }
.v2-usage-row__reset { margin-top: 0; }

/* Téléphone : le comparatif de formules (page Utilisation) devient une pile de lignes, comme les tableaux de contenu,
   au lieu d'un tableau à faire défiler dont les valeurs sont coupées (vérifié à 390 px le 27/10/2026). */
@media (max-width: 640px) {
  .v2-usage-compare { display: block; overflow: visible; background: none; border: 0; }
  .v2-usage-compare .v2-table { display: block; font-size: var(--font-size-md, 1rem); }
  .v2-usage-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .v2-usage-compare tbody, .v2-usage-compare tr { display: block; }
  .v2-usage-compare tr { margin-bottom: var(--space-3); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
  .v2-usage-compare td { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); min-width: 0; overflow-wrap: anywhere; }
  .v2-usage-compare td::before { content: attr(data-label); color: var(--color-text-muted); }
  .v2-usage-compare tbody th { display: block; min-width: 0; background: var(--color-surface-2); font-weight: var(--font-weight-bold); }
  .v2-usage-compare tr > :last-child { border-bottom: 0; }
}

/* Indicateur de stockage style Gmail (28/10/2026) */
.v2-storage-bar { margin: 0 0 var(--space-4); }
.v2-storage-bar__info { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-2); }
.v2-storage-bar__label { font-size: var(--font-size-sm, .875rem); color: var(--color-text-muted); }
.v2-storage-bar__value { font-size: var(--font-size-sm, .875rem); font-weight: var(--font-weight-bold, 600); color: var(--color-text); white-space: nowrap; }
.v2-storage-bar__track { height: 8px; background: var(--color-brand-soft, rgba(255,122,156,.12)); border-radius: 999px; overflow: hidden; }
.v2-storage-bar__fill { height: 100%; background: var(--color-brand, var(--u-brand-text, #ff7a9c)); border-radius: 999px; min-width: 8px; transition: width .4s ease; }
.v2-storage-bar__note { margin: var(--space-1) 0 0; font-size: var(--font-size-xs, .75rem); color: var(--color-text-muted); }
.v2-storage-bar__warn { margin: var(--space-1) 0 0; font-size: var(--font-size-xs, .75rem); color: var(--color-warning, #f59e0b); }
.v2-storage-bar.is-warning .v2-storage-bar__fill { background: var(--color-warning, #f59e0b); }
.v2-storage-bar.is-critical .v2-storage-bar__fill { background: var(--color-danger, #ef4444); }
.v2-storage-bar.is-critical .v2-storage-bar__warn { color: var(--color-danger, #ef4444); }

/* ── Titres dashboard : taille réduite pour éviter les h1 géants sur mobile ── */
.v2-dash-body h1 { font-size: var(--font-size-xl); }
.v2-dash-body h2 { font-size: var(--font-size-lg); }
@media (min-width: 768px) {
  .v2-dash-body h1 { font-size: var(--font-size-2xl); }
  .v2-dash-body h2 { font-size: var(--font-size-xl); }
}

/* ── Footer dans le dashboard : compact, sans newsletter ── */
.v2-dash-body .v2-footer__newsletter { display: none; }
.v2-dash-body .v2-footer {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
}
.v2-dash-body .v2-footer__grid { gap: var(--space-4); }

/* ═══════════════════════════════════════════════════════════════════
   FORMULE : une seule couleur de marque partout (cohérence type console).
   Avant le 03/11/2026, chaque formule recolorait tout le tableau de bord (bleu, ambre, violet) :
   boutons, liens, titres, menu et en-tête changeaient de couleur, et certains textes devenaient peu
   lisibles en sombre. La formule ne se voit plus que sur son badge.
   ═══════════════════════════════════════════════════════════════════ */
[data-plan="essentials"] { --plan-badge-bg: #1A56DB; --plan-badge-color: #fff; }
[data-plan="pro"]        { --plan-badge-bg: #B45309; --plan-badge-color: #fff; }
[data-plan="business"]   { --plan-badge-bg: #6D28D9; --plan-badge-color: #fff; }
[data-plan="essentials"] .v2-badge--plan,
[data-plan="pro"] .v2-badge--plan,
[data-plan="business"] .v2-badge--plan {
  background: var(--plan-badge-bg);
  color: var(--plan-badge-color);
  font-weight: var(--font-weight-medium);
  border: none;
}
/* Lien actif du menu latéral : repère de marque discret. */
.v2-dash-nav a[aria-current="page"] { background: var(--color-brand-soft); color: var(--color-text); box-shadow: inset 2px 0 0 var(--color-brand); }

/* ── Header hello : layout enrichi ── */
.v2-dash-hello__info { flex: 1; min-width: 0; }
.v2-dash-hello__plan { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-1); }
.v2-badge--plan { font-size: var(--font-size-sm); padding: 3px var(--space-3); border-radius: var(--radius-pill); }
.v2-badge--trial { background: var(--color-success-soft); color: var(--color-success); font-size: var(--font-size-xs); }
.v2-badge--warn { background: var(--color-warning-soft); color: var(--color-warning); font-size: var(--font-size-xs); }
.v2-dash-hello__badge { font-size: var(--font-size-xs); color: var(--color-text-muted); font-style: italic; }
.v2-dash-hello__summary { font-size: var(--font-size-sm); margin-top: 2px; }

/* ── Tiles verrouillées sur l'accueil : masquées (pas de cadenas visible) ── */
.v2-dash-tiles li.is-locked { display: none; }

/* Centre de sécurité (03/11/2026) : double authentification. */
.v2-sec__head { display: flex; align-items: center; gap: var(--space-3); }
.v2-sec__head > div { flex: 1; min-width: 0; }
.v2-sec__head .v2-card__title { margin: 0 0 var(--space-1); }
.v2-sec__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--color-brand-soft); color: var(--color-brand); }
.v2-sec__ico svg { width: 18px; height: 18px; }
.v2-sec__badge { flex: none; }
.v2-sec__badge.is-on { background: var(--color-success-soft, rgba(22,163,74,.14)); color: var(--color-success); }
.v2-sec__badge.is-off { background: var(--color-warning-soft, rgba(217,119,6,.14)); color: var(--color-warning); }
.v2-sec__items { list-style: none; margin: var(--space-3) 0; padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.v2-sec__items li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-bottom: 1px solid var(--color-border); }
.v2-sec__items li:last-child { border-bottom: 0; }
.v2-sec__item-ico { flex: none; display: inline-flex; color: var(--color-text-muted); }
.v2-sec__item-ico svg { width: 20px; height: 20px; }
.v2-sec__item-main { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: var(--font-size-sm); }
.v2-sec__item-main .v2-muted { font-size: var(--font-size-xs); }
.v2-sec__steps, .v2-sec__tips { margin: var(--space-3) 0; padding-left: 1.25rem; display: grid; gap: var(--space-2); font-size: var(--font-size-sm); }
.v2-sec__scan { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-start; margin: var(--space-3) 0; }
.v2-sec__scan img { flex: none; width: 200px; height: 200px; border-radius: var(--radius-md); background: #fff; padding: 6px; border: 1px solid var(--color-border); }
.v2-sec__scan > div { flex: 1 1 220px; min-width: 0; }
.v2-sec__scan p { margin: 0 0 var(--space-2); }
.v2-sec__secret { display: inline-block; font-family: var(--font-family-mono); font-size: var(--font-size-sm); letter-spacing: .04em; word-break: break-all; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--color-surface-2, var(--color-bg)); border: 1px solid var(--color-border); }
.v2-input--code { font-family: var(--font-family-mono); font-size: var(--font-size-lg); letter-spacing: .2em; max-width: 14rem; }
.v2-sec__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.v2-sec__codes { columns: 2; column-gap: var(--space-4); margin: var(--space-3) 0; padding-left: 1.5rem; font-family: var(--font-family-mono); font-size: var(--font-size-sm); }
.v2-sec__codes li { padding: 2px 0; }
.v2-dash-status-line.is-success { color: var(--color-success); }
.v2-sec__title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-1); }
.v2-sec__title .v2-card__title { margin: 0; }

/* Champs sans classe hérités des anciens écrans (Dossiers, etc.) : même apparence que .v2-input, en clair comme en sombre. */
.v2-dash__main select:not([class]), .v2-dash__main textarea:not([class]),
.v2-dash__main input:not([class]):is([type="text"], [type="search"], [type="email"], [type="number"], [type="url"], [type="date"], [type="password"]) {
  min-height: var(--size-control); padding: var(--space-2) var(--space-3); font: inherit; font-size: var(--font-size-base);
  color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
  max-width: 100%;
}

/* Pied de page dans l'espace connecté (03/11/2026, capture du propriétaire) : les titres reprenaient la taille des titres
   du tableau de bord (.v2-dash-body h2) ; sur téléphone, la barre du bas et « Menu » couvrent la navigation : pied compact. */
.v2-dash-body .v2-footer h2 { font-size: var(--font-size-xs); }

/* Liseuses, lot 1 : « Continuer la lecture » (public/v2/js/continue-reading.js). */
.v2-reading__list li { gap: var(--space-2); }
.v2-reading__track { height: 4px; margin-top: var(--space-2); border-radius: var(--radius-pill); background: var(--color-surface-2); overflow: hidden; }
.v2-reading__bar { height: 100%; background: var(--color-brand-strong); border-radius: inherit; }
.v2-reading__remove { flex: none; inline-size: 32px; block-size: 32px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--color-text-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.v2-reading__remove:hover { background: var(--color-surface-2); color: var(--color-text); }
.v2-reading__remove:focus-visible { outline: 2px solid var(--color-focus, var(--color-brand-strong)); outline-offset: 2px; }
.v2-reading__note { margin: var(--space-3) 0 0; font-size: var(--font-size-sm); }
@media (pointer: coarse) { .v2-reading__remove { inline-size: 44px; block-size: 44px; } }

/* Tiroirs par date (Mes transferts) */
.v2-dash-group { margin-block: var(--space-3); }
.v2-dash-group > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--size-tap); padding: 0 var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-2); font-weight: var(--font-weight-bold); font-size: var(--font-size-sm); cursor: pointer; list-style: none; }
.v2-dash-group > summary::-webkit-details-marker { display: none; }
.v2-dash-group > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-left: auto; margin-right: 4px; }
.v2-dash-group[open] > summary::after { transform: rotate(-135deg); }
.v2-dash-group__count { min-width: 1.5rem; padding: 0 var(--space-2); border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-border); text-align: center; font-weight: var(--font-weight-medium); }
.v2-dash-group > .v2-dash-transfers { margin-top: var(--space-3); }
@media (prefers-reduced-motion: reduce) { .v2-dash-group > summary::after { transition: none; } }
/* Boutons plus fins dans les cartes de transfert sur téléphone */
@media (max-width: 640px) { .v2-dash-transfer .v2-btn { min-height: 2.5rem; padding-block: .4rem; font-size: var(--font-size-sm); } }

/* Portails : choix du logo et du fond (galerie, photo, lien) */
.v2-imgpick__row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-bottom: var(--space-2); }
.v2-imgpick__preview { max-width: 120px; max-height: 64px; object-fit: contain; border-radius: var(--radius-sm, 6px); border: 1px solid var(--u-border, rgba(127,127,127,.3)); }
.v2-imgpick .v2-btn svg { width: 16px; height: 16px; vertical-align: -3px; }
.v2-dash-recipients__detail { margin: 2px 0 0; font-size: var(--text-xs, .78rem); }
.v2-imgpick__gallery { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-2) 0; }
.v2-imgpick__sample { width: 64px; height: 32px; border-radius: var(--radius-sm, 6px); border: 1px solid var(--u-border, rgba(127,127,127,.3)); background-size: cover; background-position: center; cursor: pointer; padding: 0; }
.v2-imgpick__sample:hover, .v2-imgpick__sample:focus-visible { outline: 2px solid var(--u-brand, #ff3366); outline-offset: 2px; }

/* Onglets d'une rubrique (vrais liens : chaque onglet garde son adresse) */
/* Sur téléphone les onglets passent à la ligne : aucun onglet caché hors de l'écran. */
.v2-dash-tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); border-bottom: 1px solid var(--color-border); }
@media (min-width: 40rem) { .v2-dash-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }
.v2-dash-tabs::-webkit-scrollbar { display: none; }
.v2-dash-tab { display: inline-flex; align-items: center; min-height: var(--size-tap); padding: 0 var(--space-3); white-space: nowrap; color: var(--color-text-muted); font-size: var(--font-size-control); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.v2-dash-tab:hover { color: var(--color-text); }
.v2-dash-tab[aria-current="page"] { color: var(--color-text); font-weight: var(--font-weight-medium); border-bottom-color: var(--color-brand); }
.v2-dash-tab.is-locked { color: var(--color-text-muted); }
.v2-dash-tab .v2-badge { margin-left: var(--space-1); }

/* Plus de pied de page en mode connecté (03/11/2026) : les liens obligatoires sont rangés en bas du menu. */
.v2-dash-nav__legal { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.v2-dash-nav__legal a { color: var(--color-text-muted); font-size: var(--font-size-xs); text-decoration: none; padding: 2px 0; }
.v2-dash-nav__legal a:hover, .v2-dash-nav__legal a:focus-visible { color: var(--color-text); text-decoration: underline; }

/* ──────────────────────────────────────────────────────────────────────────
   Densité sur téléphone (ordre du propriétaire, 03/11/2026 : « il y a des choses
   vraiment très grosses »). Textes de taille moyenne régulière, boutons fins,
   comme sur ses images de référence. Le toucher reste à 44 px minimum.
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 47.99rem) {
  /* body.v2-dash-body : assez spécifique pour passer devant les règles de pages.css chargées après. */
  body.v2-dash-body h1, body.v2-dash-body .v2-price-head h1 { font-size: 1.25rem; line-height: 1.3; }
  body.v2-dash-body h2, body.v2-dash-body .v2-card > h2 { font-size: 1.0625rem; line-height: 1.35; }
  body.v2-dash-body h3 { font-size: 0.9375rem; }
  .v2-dash-body .v2-card { padding: 14px 12px; }
  .v2-dash-body .v2-card > p, .v2-dash-body .v2-card li { font-size: var(--font-size-sm); }

  /* Le grand bouton d'envoi : une barre, pas un panneau. */
  .v2-dash-send { gap: var(--space-3); padding: 12px 14px; border-radius: 16px; }
  .v2-dash-send__plus { width: 40px; height: 40px; }
  .v2-dash-send__plus svg { width: 20px; height: 20px; }
  .v2-dash-send__title { font-size: 1rem; }
  .v2-dash-send__hint { font-size: var(--font-size-xs); }

  .v2-dash-hello__avatar { width: 40px; height: 40px; font-size: 1rem; }

  /* Boutons : hauteur de touche gardée, mais plus fins et sans texte géant. */
  .v2-dash-body .v2-btn { min-height: 44px; padding-block: .45rem; font-size: var(--font-size-sm); }
  .v2-dash-body .v2-btn--block { width: 100%; }
}


/* ═══════════════════════════════════════════════════════════════════
   THÈME BLEU DU TABLEAU DE BORD (06/11/2026)
   Surcharge locale des tokens uniquement dans .v2-dash-body :
   les autres pages (accueil public, tarifs…) ne sont pas affectées.
   Référence : dashboard INPP Académie (captures du propriétaire).
   ═══════════════════════════════════════════════════════════════════ */

/* ── Palette bleue (clair) ── */
.v2-dash-body {
  --color-bg:           #F0F4FA;
  --color-surface:      #FFFFFF;
  --color-surface-2:    #E8EEF8;
  --color-border:       #CBD5E6;
  --color-border-strong:#8A9ABF;
  --color-text:         #1A2340;
  --color-text-muted:   #4A5880;
  --color-brand:        #1A56DB;
  --color-brand-strong: #1343B0;
  --color-brand-soft:   #DBEAFE;
  --color-on-brand:     #FFFFFF;
  --color-link:         #1343B0;
  --color-focus:        #1A56DB;
}

/* ── Palette bleue (sombre) ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .v2-dash-body {
    --color-bg:           #0E1525;
    --color-surface:      #162040;
    --color-surface-2:    #1E2D55;
    --color-border:       #2E4070;
    --color-border-strong:#4A6090;
    --color-text:         #E8EEF8;
    --color-text-muted:   #8AABDB;
    --color-brand:        #4A8FFF;
    --color-brand-strong: #2D6FE0;
    --color-brand-soft:   #1E2D55;
    --color-on-brand:     #FFFFFF;
    --color-link:         #7AB4FF;
    --color-focus:        #7AB4FF;
  }
}
[data-theme="dark"] .v2-dash-body {
  --color-bg:           #0E1525;
  --color-surface:      #162040;
  --color-surface-2:    #1E2D55;
  --color-border:       #2E4070;
  --color-border-strong:#4A6090;
  --color-text:         #E8EEF8;
  --color-text-muted:   #8AABDB;
  --color-brand:        #4A8FFF;
  --color-brand-strong: #2D6FE0;
  --color-brand-soft:   #1E2D55;
  --color-on-brand:     #FFFFFF;
  --color-link:         #7AB4FF;
  --color-focus:        #7AB4FF;
}

/* ── Menu latéral : compact, dense, tout visible ── */
.v2-dash-body .v2-dash-nav--side {
  background: var(--color-brand-strong);
  border-color: var(--color-brand-strong);
  padding: var(--space-2) var(--space-1) var(--space-2);
}

.v2-dash-body .v2-dash-nav a {
  color: rgba(255,255,255,.75);
  font-size: var(--font-size-sm);
  min-height: 34px;
  padding-inline: var(--space-2);
  border-radius: 6px;
  gap: var(--space-2);
}
.v2-dash-body .v2-dash-nav a svg {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,.55);
}
.v2-dash-body .v2-dash-nav a:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.v2-dash-body .v2-dash-nav a:hover svg { color: #fff; }

.v2-dash-body .v2-dash-nav a[aria-current="page"] {
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: var(--font-weight-bold);
  box-shadow: inset 3px 0 0 rgba(255,255,255,.8);
}
.v2-dash-body .v2-dash-nav a[aria-current="page"] svg { color: #fff; }

.v2-dash-body .v2-dash-nav__group {
  color: rgba(255,255,255,.45);
  font-size: 0.68rem;
  padding-inline: var(--space-2);
  margin-top: var(--space-3);
}

.v2-dash-body .v2-dash-nav__legal { border-top-color: rgba(255,255,255,.15); }
.v2-dash-body .v2-dash-nav__legal a { color: rgba(255,255,255,.45); }
.v2-dash-body .v2-dash-nav__legal a:hover { color: rgba(255,255,255,.8); }

/* ── En-tête hello : compact, sans avatar géant ── */
.v2-dash-hello.v2-dash__head {
  gap: var(--space-3);
  align-items: center;
  flex-wrap: nowrap;
}
.v2-dash-body .v2-avatar--lg {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  background: var(--color-brand-soft);
  color: var(--color-brand-ink);
}
.v2-dash-body .v2-dash-hello h1 {
  font-size: var(--font-size-lg);
  margin: 0;
}
.v2-dash-body .v2-dash-hello__plan { margin-top: 2px; }

/* ── Grand bouton Envoyer : bleu ── */
.v2-dash-body .v2-dash-send {
  background: var(--color-brand);
  border-radius: 14px;
  padding: var(--space-3) var(--space-4);
}
.v2-dash-body .v2-dash-send:hover { opacity: .92; }
.v2-dash-body .v2-dash-send__plus {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.18);
  color: #fff;
}
.v2-dash-body .v2-dash-send__plus svg { width: 22px; height: 22px; }
.v2-dash-body .v2-dash-send__title { font-size: var(--font-size-base); }

/* ── Cards : plus plates, moins de radius ── */
.v2-dash-body .v2-card {
  border-radius: 10px;
  padding: 18px 20px;
  border-color: var(--color-border);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow var(--motion-base), border-color var(--motion-base);
}
.v2-dash-body .v2-card:hover {
  box-shadow: 0 4px 14px rgba(26,86,219,.12);
  border-color: var(--color-brand);
  transform: none;
}
@media (max-width: 40rem) {
  .v2-dash-body .v2-card { padding: 14px 12px; border-radius: 8px; }
}

/* ── Boutons : coins moins ronds, bleu ── */
.v2-dash-body .v2-btn {
  border-radius: 8px;
  font-size: var(--font-size-sm);
  min-height: 36px;
}
.v2-dash-body .v2-btn--primary {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}
.v2-dash-body .v2-btn--primary:hover {
  box-shadow: 0 4px 14px rgba(26,86,219,.3);
  transform: translateY(-1px);
}

/* ── Jauges : bleu ── */
.v2-dash-body .v2-progress__bar { background: var(--color-brand); }
.v2-dash-body .v2-dash-meters .is-warning .v2-progress__bar { background: var(--color-warning); }
.v2-dash-body .v2-dash-meters .is-critical .v2-progress__bar,
.v2-dash-body .v2-dash-meters .is-blocked .v2-progress__bar { background: var(--color-danger); }

/* ── Badges de formule : cohérents avec le bleu ── */
.v2-dash-body [data-plan="essentials"] .v2-badge--plan { background: #1A56DB; color: #fff; }
.v2-dash-body [data-plan="pro"]        .v2-badge--plan { background: #7C3AED; color: #fff; }
.v2-dash-body [data-plan="business"]   .v2-badge--plan { background: #0F766E; color: #fff; }

/* ── Statuts transferts ── */
.v2-dash-body .v2-dash-status.is-active  { background: #DBEAFE; color: #1343B0; }

/* ── Storage bar ── */
.v2-dash-body .v2-storage-bar__fill { background: var(--color-brand); }
.v2-dash-body .v2-storage-bar__track { background: var(--color-brand-soft); }

/* ── Densité desktop : grille 2 colonnes côte à côte ── */
@media (min-width: 56rem) {
  .v2-dash { grid-template-columns: 14rem minmax(0, 1fr); gap: var(--space-4); }
}
@media (min-width: 80rem) {
  .v2-dash { grid-template-columns: 15rem minmax(0, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════
   MENU LATÉRAL — GROUPES DÉPLIABLES (06/11/2026)
   Inspiré du dashboard INPP Académie : groupes avec chevron,
   sous-items indentés, groupe actif ouvert par défaut.
   ═══════════════════════════════════════════════════════════════════ */

/* Wrapper <details> de chaque groupe */
.v2-dash-nav__group-wrap {
  margin-bottom: 2px;
}

/* Summary = titre du groupe cliquable */
.v2-dash-nav__group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 6px var(--space-2) 4px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-radius: 6px;
}
.v2-dash-nav__group-label::-webkit-details-marker { display: none; }
.v2-dash-nav__group-label span {
  font-family: var(--font-family-mono);
  font-size: 0.65rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--font-tracking-label);
  color: rgba(255,255,255,.45);
}
.v2-dash-nav__group-label:hover span { color: rgba(255,255,255,.7); }

/* Chevron */
.v2-dash-nav__chevron {
  width: 12px;
  height: 12px;
  color: rgba(255,255,255,.35);
  flex-shrink: 0;
  transition: transform var(--motion-fast);
}
.v2-dash-nav__group-wrap[open] > .v2-dash-nav__group-label .v2-dash-nav__chevron {
  transform: rotate(180deg);
}

/* Liste des items sous le groupe */
.v2-dash-nav__list {
  list-style: none;
  margin: 0 0 var(--space-2);
  padding: 0;
  border-left: 2px solid rgba(255,255,255,.12);
  margin-left: var(--space-3);
  padding-left: var(--space-2);
}

/* Items du groupe — plus denses */
.v2-dash-nav .v2-dash-nav__list a {
  min-height: 32px;
  padding-inline: var(--space-2);
  font-size: 0.8125rem;
  border-radius: 5px;
  gap: var(--space-2);
}
.v2-dash-nav .v2-dash-nav__list a svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Item actif : surbrillance blanche */
.v2-dash-nav .v2-dash-nav__list a[aria-current="page"] {
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: var(--font-weight-bold);
  box-shadow: inset 2px 0 0 rgba(255,255,255,.8);
}

/* Groupe actif : border-left plus visible */
.v2-dash-nav__group-wrap[open] > .v2-dash-nav__list {
  border-left-color: rgba(255,255,255,.25);
}

/* Animation ouverture douce */
@media (prefers-reduced-motion: no-preference) {
  .v2-dash-nav__list {
    animation: navOpen .15s ease;
  }
  @keyframes navOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
  }
}

/* Annuler l'ancien style .v2-dash-nav__group (h2 flat) sur la sidebar */
.v2-dash-nav--side .v2-dash-nav__group { display: none; }
.v2-dash-nav--side ul { margin: 0; }

/* Page mobile : garder l'ancien style flat (pas de <details>) */
.v2-dash-nav--page .v2-dash-nav__group-wrap { display: contents; }
.v2-dash-nav--page .v2-dash-nav__group-label { display: none; }
.v2-dash-nav--page .v2-dash-nav__list {
  border-left: none;
  margin-left: 0;
  padding-left: 0;
}
.v2-dash-nav--page .v2-dash-nav__list a {
  min-height: var(--size-tap);
  font-size: var(--font-size-control);
  padding-inline: var(--space-3);
  gap: var(--space-3);
}
.v2-dash-nav--page .v2-dash-nav__list a svg {
  width: var(--size-icon-lg);
  height: var(--size-icon-lg);
}


/* Desktop : le panneau latéral commence au bord gauche, sans marge du conteneur centré. */
@media (min-width: 56rem) {
  .v2-container.v2-dash {
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
  }
  .v2-dash-nav--side {
    border-left: 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }
}


/* Capture photo : viseur caméra natif, distinct du sélecteur de fichiers. */
.v2-camera-dialog {
  width: min(92vw, 680px);
  max-width: 680px;
  max-height: 92dvh;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  background: var(--color-surface);
  box-shadow: 0 20px 70px rgba(0,0,0,.35);
}
.v2-camera-dialog::backdrop { background: rgba(8, 15, 32, .78); }
.v2-camera-dialog__panel { display: grid; gap: 14px; padding: 18px; }
.v2-camera-dialog__panel h2 { margin: 0; font-size: 1.1rem; }
.v2-camera-dialog__video {
  display: block;
  width: 100%;
  max-height: min(62dvh, 520px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #101827;
}
.v2-camera-dialog__status { margin: 0; color: var(--color-text-muted); font-size: .875rem; }
.v2-camera-dialog__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
@media (max-width: 40rem) {
  .v2-camera-dialog { width: calc(100vw - 20px); max-height: 96dvh; }
  .v2-camera-dialog__panel { padding: 12px; }
  .v2-camera-dialog__video { max-height: 66dvh; }
  .v2-camera-dialog__actions > button { flex: 1 1 auto; }
}


/* Tableau de bord : deux colonnes utiles, l’aide contextuelle s’ouvre dans un tiroir superposé. */
@media (min-width:56rem) {
 .v2-dash-body{min-height:100vh}
 .v2-dash{width:100%;max-width:none;margin:0;padding:0;gap:0;grid-template-columns:14.25rem minmax(0,1fr);align-items:stretch;min-height:calc(100vh - var(--size-header,56px))}
 .v2-dash-nav--side{position:sticky;top:var(--size-header,56px);height:calc(100vh - var(--size-header,56px));max-height:none;overflow-y:auto;border:0;border-right:1px solid var(--color-border);border-radius:0;padding:var(--space-3) var(--space-2) var(--space-4);margin:0;background:var(--color-surface)}
 .v2-dash__main{padding:var(--space-4) clamp(1rem,2vw,2rem);min-width:0;max-width:min(100%,86rem);width:100%;justify-self:center}
}
.v2-dash-help__eyebrow{display:block;color:var(--color-brand);font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);letter-spacing:.08em;margin-bottom:var(--space-2)}
.v2-dash-help__heading h2{font-size:var(--font-size-lg);line-height:1.3;margin:0 0 var(--space-2)}
.v2-dash-help__heading p{color:var(--color-text-muted);font-size:var(--font-size-sm);margin:0}
.v2-dash-help ol{list-style:none;counter-reset:help;display:grid;gap:var(--space-3);padding:0;margin:var(--space-4) 0}
.v2-dash-help li{counter-increment:help;display:grid;grid-template-columns:1.5rem minmax(0,1fr);gap:var(--space-2);align-items:start;color:var(--color-text);font-size:var(--font-size-sm);line-height:1.5}
.v2-dash-help li:before{content:counter(help);display:grid;place-items:center;width:1.4rem;height:1.4rem;border-radius:50%;background:var(--color-brand-soft);color:var(--color-brand-ink);font-weight:var(--font-weight-bold);font-size:var(--font-size-xs)}
.v2-dash-help__link{display:inline-flex;align-items:center;gap:var(--space-2);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);text-decoration:none}
.v2-dash-help-drawer{position:fixed;inset:0;z-index:120;pointer-events:none}
.v2-dash-help-drawer[open]{pointer-events:auto}
.v2-dash-help-drawer__trigger{position:fixed;z-index:3;right:18px;top:calc(var(--size-header,56px) + 14px);display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 15px;border:1px solid var(--color-border);border-radius:var(--radius-pill);background:var(--color-surface);color:var(--color-text);font:inherit;font-size:var(--font-size-sm);font-weight:var(--font-weight-bold);box-shadow:0 3px 14px rgba(0,0,0,.12);cursor:pointer;list-style:none;pointer-events:auto}
.v2-dash-help-drawer__trigger::-webkit-details-marker{display:none}
.v2-dash-help-drawer__trigger:before{content:"?";display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--color-brand-soft);color:var(--color-brand-ink);font-weight:800}
.v2-dash-help-drawer__close-label{display:none}
.v2-dash-help-drawer[open] .v2-dash-help-drawer__trigger{top:14px;right:18px;background:var(--color-surface-2)}
.v2-dash-help-drawer[open] .v2-dash-help-drawer__open-label{display:none}
.v2-dash-help-drawer[open] .v2-dash-help-drawer__close-label{display:inline}
.v2-dash-help-drawer[open] .v2-dash-help-drawer__trigger:before{content:"×";display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;min-width:24px;box-sizing:border-box;padding:0;border-radius:50%;font-family:Arial,sans-serif;font-size:18px;font-weight:400;line-height:1;text-align:center;vertical-align:middle;transform:translate(0.5px,-0.5px)}
.v2-dash-help-drawer__backdrop{position:fixed;inset:0;z-index:1;width:100%;height:100%;padding:0;border:0;background:rgba(8,15,32,.52);opacity:0;pointer-events:none;transition:opacity .2s ease}
.v2-dash-help-drawer[open] .v2-dash-help-drawer__backdrop{opacity:1;pointer-events:auto}
.v2-dash-help-drawer__panel{position:fixed;z-index:2;top:0;right:0;bottom:0;width:min(440px,94vw);max-height:100dvh;overflow-y:auto;padding:76px 24px 28px;background:var(--color-surface);color:var(--color-text);border-left:1px solid var(--color-border);box-shadow:-16px 0 48px rgba(0,0,0,.2);transform:translateX(105%);transition:transform .24s ease}
.v2-dash-help-drawer[open] .v2-dash-help-drawer__panel{transform:translateX(0)}
.v2-dash-help-drawer__panel .v2-dash-help__heading{padding-bottom:var(--space-3);border-bottom:1px solid var(--color-border)}
.v2-dash-help-drawer__panel .v2-dash-help__heading p{color:var(--color-text-muted)}
.v2-dash-help-drawer__panel .v2-dash-help__link{margin-top:var(--space-2)}
@media(max-width:55.999rem){
 .v2-dash{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-3)}
 .v2-dash-nav--side{display:none}
 .v2-dash-help-drawer__trigger{right:12px;top:auto;bottom:calc(76px + env(safe-area-inset-bottom,0px));min-height:46px}
 .v2-dash-help-drawer[open] .v2-dash-help-drawer__trigger{top:12px;bottom:auto;right:12px}
 .v2-dash-help-drawer__panel{width:100%;padding:76px 18px calc(24px + env(safe-area-inset-bottom,0px))}
}
@media(prefers-reduced-motion:reduce){.v2-dash-help-drawer__panel,.v2-dash-help-drawer__backdrop{transition:none}}
@media(min-width:56rem) and (max-width:75rem){.v2-dash{grid-template-columns:13rem minmax(0,1fr)}}


/* Profil connecté dans la barre supérieure privée. */
.v2-header--contextual .v2-header__bar{width:100%;max-width:none;margin:0;display:flex;align-items:center;gap:var(--space-3);padding-inline:clamp(.75rem,1.5vw,1.25rem)}
.v2-header--contextual .v2-header__brand{margin-right:auto;flex:0 0 auto}
.v2-header__profile-menu{position:relative;margin-left:auto;flex:0 0 auto}
.v2-header__profile-menu>summary{display:flex;align-items:center;gap:var(--space-2);list-style:none;cursor:pointer;padding:4px 8px;border:1px solid var(--color-border);border-radius:var(--radius-pill);color:var(--color-text);font-size:var(--font-size-sm)}
.v2-header__profile-menu>summary::-webkit-details-marker{display:none}
.v2-header__profile-menu .v2-avatar{width:34px;height:34px}
.v2-header__profile-name{max-width:10rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2-header__profile-popover{position:absolute;z-index:80;right:0;top:calc(100% + 8px);min-width:12rem;padding:6px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow-md)}
.v2-header__profile-popover a{display:flex;align-items:center;gap:var(--space-2);padding:10px 12px;border-radius:var(--radius-sm);color:var(--color-text);text-decoration:none;font-size:var(--font-size-sm)}
.v2-header__profile-popover a:hover{background:var(--color-surface-2)}
.v2-header__profile-popover svg{width:18px;height:18px;color:var(--color-text-muted)}
@media(max-width:40rem){.v2-header__profile-name{display:none}.v2-header__profile-menu>summary{padding:3px}.v2-header--contextual .v2-header__bar{gap:var(--space-2)}}


/* Capture d'une zone d'écran : le sélecteur natif choisit la fenêtre, le cadre permet de recadrer. */
.v2-screen-capture-dialog { width:min(94vw,900px); }
.v2-screen-crop__stage { position:relative; display:block; max-width:100%; margin-inline:auto; overflow:hidden; border-radius:8px; background:#101827; touch-action:none; }
.v2-screen-crop__stage[hidden] { display:none !important; }
.v2-screen-capture-dialog .v2-camera-dialog__video { display:block; width:100%; height:100%; max-height:none; aspect-ratio:auto; object-fit:fill; border-radius:0; }
.v2-screen-crop__overlay { position:absolute; inset:0; cursor:crosshair; touch-action:none; }
.v2-screen-crop__selection { position:absolute; border:2px solid #fff; background:rgba(30,58,138,.22); box-shadow:0 0 0 9999px rgba(0,0,0,.38); pointer-events:none; }
.v2-screen-capture__status { min-height:1.5em; margin:0; color:var(--color-text-muted); font-size:.875rem; }
.v2-imgpick__preview { max-width:min(240px,100%); max-height:140px; width:auto; height:auto; object-fit:contain; background:var(--color-surface-2); padding:4px; }
@media(max-width:40rem){.v2-screen-capture-dialog{width:calc(100vw - 16px)}.v2-screen-crop__stage{max-width:100%}}


/* Barre supérieure privée : logo aligné sur la colonne centrale, thème puis avatar au bord droit. */
@media(min-width:56rem){
 .v2-header--contextual .v2-header__bar{padding-left:calc(14.25rem + clamp(1rem,2vw,2rem));padding-right:clamp(1rem,1.5vw,1.5rem)}
 .v2-header__profile-menu{margin-left:0}
}
@media(min-width:56rem) and (max-width:75rem){
 .v2-header--contextual .v2-header__bar{padding-left:calc(13rem + clamp(1rem,2vw,2rem))}
}
.v2-dash-send-card{width:100%;max-width:68rem;margin-inline:auto}
.v2-dash-send-card .v2-dash-form,.v2-dash-send-card .home-send,.v2-dash-send-card .home-send__form{width:100%;max-width:100%}

/* Fenêtre d'explication avant la vraie autorisation du navigateur. */
.udc-notify-dialog{width:min(92vw,480px);max-width:480px;padding:0;border:1px solid var(--color-border);border-radius:18px;background:var(--color-surface);color:var(--color-text);box-shadow:0 24px 80px rgba(0,0,0,.32)}
.udc-notify-dialog::backdrop{background:rgba(8,15,32,.68);backdrop-filter:blur(3px)}
.udc-notify-dialog__body{display:grid;gap:12px;padding:22px}
.udc-notify-dialog__body h2{margin:0;font-size:1.25rem}
.udc-notify-dialog__body p{margin:0;color:var(--color-text-muted);line-height:1.55}
.udc-notify-dialog__benefits{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.udc-notify-dialog__benefits li{display:flex;gap:9px;align-items:flex-start;font-size:.9rem}
.udc-notify-dialog__benefits li:before{content:'✓';color:var(--color-success);font-weight:800}
.udc-notify-dialog__actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:4px}
.udc-notify-dialog__status{min-height:1.3em;font-size:.85rem}
.udc-notify-dialog__status:empty{display:none}
.udc-portal-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-4)}
@media(min-width:64rem){.udc-portal-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
.udc-portal-grid>.v2-portal{min-width:0;margin:0}
.v2-imgpick__preview{cursor:zoom-in}
.udc-img-preview-dialog{width:min(94vw,1100px);max-width:1100px;max-height:94dvh;padding:14px;border:1px solid var(--color-border);border-radius:14px;background:var(--color-surface);color:var(--color-text)}
.udc-img-preview-dialog::backdrop{background:rgba(0,0,0,.8)}
.udc-img-preview-dialog__head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.udc-img-preview-dialog__head p{margin:0;color:var(--color-text-muted);font-size:.85rem}
.udc-img-preview-dialog img{display:block;max-width:100%;max-height:78dvh;width:auto;height:auto;object-fit:contain;margin:auto}
@media(max-width:40rem){.udc-notify-dialog__body{padding:16px}.udc-img-preview-dialog{padding:8px}}

.udc-portal-edit{margin-block:var(--space-3);padding:var(--space-3);border:1px solid var(--color-border);border-radius:var(--radius-md)}.udc-portal-edit>summary{display:inline-flex;cursor:pointer;list-style:none}.udc-portal-edit>summary::-webkit-details-marker{display:none}.udc-portal-edit[open]>summary{margin-bottom:var(--space-3)}.udc-portal-grid .v2-portal{height:100%}


/* Correctif espace client : l'aide contextuelle reste dans sa troisième colonne. */
@media (min-width: 56rem) and (max-width: 74.999rem) {
  .v2-dash { grid-template-columns: 13rem minmax(0, 1fr) 15rem; }
  .v2-dash-help { grid-column: 3; grid-row: 1; }
}
@media (min-width: 75rem) {
  .v2-dash { grid-template-columns: 16.5rem minmax(0, 1fr) 17rem; }
  .v2-dash-help { grid-column: 3; grid-row: 1; }
}

/* Navigation verticale à survol — espace client (inspiration Hover Tabs).
   Le survol révèle le sous-menu du groupe sans changer de page.
   Le clic reste disponible et le clavier bénéficie de :focus-within.
   Sur mobile, le comportement existant au toucher est conservé. */
@media (min-width: 56rem) and (hover: hover) and (pointer: fine) {
  .v2-dash-nav--side .v2-dash-nav__group-wrap:not([open]):hover > .v2-dash-nav__list,
  .v2-dash-nav--side .v2-dash-nav__group-wrap:not([open]):focus-within > .v2-dash-nav__list {
    display: block;
    animation: v2DashHoverTabIn .16s ease-out;
  }

  .v2-dash-nav--side .v2-dash-nav__group-wrap:hover > .v2-dash-nav__group-label,
  .v2-dash-nav--side .v2-dash-nav__group-wrap:focus-within > .v2-dash-nav__group-label {
    background: var(--color-surface-2);
  }

  .v2-dash-nav--side .v2-dash-nav__group-wrap:hover > .v2-dash-nav__group-label span,
  .v2-dash-nav--side .v2-dash-nav__group-wrap:focus-within > .v2-dash-nav__group-label span {
    color: var(--color-text);
  }
}

@keyframes v2DashHoverTabIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .v2-dash-nav--side .v2-dash-nav__group-wrap > .v2-dash-nav__list {
    animation: none !important;
  }
}


/* Hover Tabs — aperçu de chaque vraie page dans la zone centrale du dashboard.
   Les styles udc-hover-preview s'appliquent uniquement au document chargé dans l'iframe. */
.v2-dash__main--hover-preview { min-height: 70vh; }
.v2-dash-hover-frame {
  display: block;
  width: 100%;
  min-height: 70vh;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-bg, var(--color-surface));
  opacity: 1;
  transition: opacity .12s ease;
}
.v2-dash-hover-frame.is-loading { opacity: .72; }
.v2-dash-hover-frame.is-fallback { border: 1px solid var(--color-border); }
.v2-dash-hover-status {
  margin: 0;
  padding: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* Dans la page embarquée, on retire uniquement les éléments déjà présents dans le dashboard parent. */
body.udc-hover-preview {
  min-height: 0 !important;
  padding-bottom: 0 !important;
  overflow-x: hidden !important;
}
body.udc-hover-preview .v2-header,
body.udc-hover-preview #udc-brand-loader,
body.udc-hover-preview .v2-skip-link,
body.udc-hover-preview .v2-dash-nav,
body.udc-hover-preview .v2-dash-help,
body.udc-hover-preview #chat-widget-toggle,
body.udc-hover-preview #chat-widget-panel,
body.udc-hover-preview .v2-bottom-nav {
  display: none !important;
}
body.udc-hover-preview .v2-container.v2-dash {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.udc-hover-preview .v2-dash__main {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
@media (prefers-reduced-motion: reduce) {
  .v2-dash-hover-frame { transition: none; }
}


/* Correctif responsive Hover Tabs : la barre de navigation tactile n'existe jamais sur desktop. */
@media (min-width: 56rem) {
  html body.v2-dash-body .v2-bottom-nav,
  html body.udc-hover-preview .v2-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* L'iframe reste invisible pendant le chargement : ni ancienne page ni chrome de barre basse. */
.v2-dash-hover-frame {
  border: 0 !important;
  outline: 0 !important;
  overflow: hidden !important;
  background: transparent;
}
.v2-dash-hover-frame.is-loading {
  visibility: hidden !important;
  opacity: 0 !important;
}
body.udc-hover-preview .v2-bottom-nav {
  display: none !important;
  visibility: hidden !important;
}


/* Hover Tabs instantanés : pages préchargées hors écran puis affichées sans iframe imbriqué scrollable. */
.v2-dash-hover-staging {
  position: fixed !important;
  left: -100000px !important;
  top: 0 !important;
  width: var(--udc-hover-preload-width, 1200px) !important;
  height: 1px !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.v2-dash-hover-staging .v2-dash-hover-frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  min-height: 1px;
  height: 1px;
  border: 0;
}
.v2-dash__main--hover-preview {
  position: relative;
  min-width: 0;
  overflow: visible !important;
}
.v2-dash__main--hover-preview > :not(.v2-dash-hover-staging):not(.v2-dash-hover-frame):not(.v2-dash-hover-loader):not(.v2-dash-hover-content) {
  display: none !important;
}
.v2-dash__main > .v2-dash-hover-frame.is-active {
  display: block !important;
  min-height: 70vh;
  border: 0 !important;
  overflow: hidden !important;
}
html.udc-hover-preview-document,
html.udc-hover-preview-document body,
html body.udc-hover-preview {
  overflow: hidden !important;
  overflow-x: hidden !important;
}
body.udc-hover-preview .v2-container.v2-dash {
  overflow: visible !important;
}
body.udc-hover-preview .v2-dash__main {
  overflow: visible !important;
}


/* ── Correctif Hover Tabs (07/11/2026) ─────────────────────────────────────────
   1) La page d'aperçu vit dans un iframe plus étroit que 900 px : les règles « téléphone » s'y appliquaient
      (barre du bas .udc-app-nav fixée en bas d'un iframe très haut, feuille Menu, en-tête mobile, bulles).
      On les masque dans le document d'aperçu, sans condition de largeur, et on annule l'espace réservé à la barre.
   2) Sur ordinateur (≥ 56 rem), aucune barre du bas ni feuille « Menu » : la colonne latérale suffit. */
body.udc-hover-preview .udc-app-nav,
body.udc-hover-preview .v2-appbar,
body.udc-hover-preview .v2-footer,
body.udc-hover-preview .v2-cookie,
body.udc-hover-preview .cookie-consent-banner,
body.udc-hover-preview .v2-tour,
body.udc-hover-preview .udc-theme-toggle--floating,
body.udc-hover-preview .v2-dash-mobile-head {
  display: none !important;
}
html body.udc-hover-preview,
html body.udc-hover-preview:has(.udc-app-nav) {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  background: transparent !important;
}
@media (min-width: 56rem) {
  html body.v2-dash-body .udc-app-nav,
  html body.v2-dash-body:has(.udc-app-nav) { padding-bottom: 0 !important; }
  html body.v2-dash-body .udc-app-nav { display: none !important; }
  html body.v2-dash-body #chat-widget-toggle { bottom: var(--space-5, 1.25rem) !important; }
}

/* Indicateur de chargement circulaire : affiché dans la zone centrale tant que la section survolée n'est pas prête. */
.v2-dash-hover-loader {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}
.v2-dash__main--hover-loading > .v2-dash-hover-loader { display: flex !important; }
.v2-dash-hover-loader__ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid var(--color-border, rgba(127, 127, 127, .3));
  border-top-color: var(--color-brand, #ff3366);
  animation: v2-dash-hover-spin .8s linear infinite;
}
@keyframes v2-dash-hover-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .v2-dash-hover-loader__ring { animation-duration: 2.4s; }
}

/* Aperçu sans iframe : le contenu copié prend la place de la zone centrale. */
.v2-dash-hover-content[hidden] { display: none !important; }
.v2-dash__main--hover-preview > .v2-dash-hover-content:not([hidden]) { display: block !important; min-width: 0; }
.v2-dash__main--hover-loading > .v2-dash-hover-content { display: none !important; }

/* Sur ordinateur, les sous-rubriques sont dans la colonne latérale (Dossiers, Fichiers, Mes Drives, Corbeille) :
   les onglets répétés dans la page sont masqués. Ils restent sur mobile, où il n'y a pas de colonne. */
@media (min-width: 56rem) {
  body.v2-dash-body .v2-dash-tabs { display: none !important; }
}


/* ── Barre supérieure du tableau de bord façon Render (07/11/2026) ──
   Logo au bord gauche (au-dessus de la colonne latérale), actions à droite : Envoyer, Passer à Pro, aide, avatar.
   Le thème se choisit dans le menu de l'avatar : le bouton de thème isolé disparaît de cette barre. */
.v2-header--contextual .v2-header__bar { padding-left: clamp(.75rem, 1.5vw, 1.25rem) !important; padding-right: clamp(.75rem, 1.5vw, 1.25rem) !important; }
.v2-header--contextual .udc-theme-toggle { display: none !important; }
.v2-topbar__actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.v2-topbar__help { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--color-text-muted); }
.v2-topbar__help:hover { background: var(--color-surface-2); color: var(--color-text); }
.v2-topbar__help svg { width: 20px; height: 20px; }
.v2-account { position: relative; }
.v2-account__btn { display: inline-flex; padding: 2px; border: 2px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; }
.v2-account__btn:hover, .v2-account__btn[aria-expanded="true"] { border-color: var(--color-brand); }
.v2-account__btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.v2-account__btn .v2-avatar { width: 34px; height: 34px; }
.v2-account__menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 90; min-width: 15rem; max-width: 20rem; padding: 6px;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.v2-account__menu[hidden], .v2-account__menu [hidden] { display: none !important; }
.v2-account__who { display: flex; align-items: center; gap: var(--space-2); padding: 10px 12px 12px; border-bottom: 1px solid var(--color-border); margin-bottom: 4px; }
.v2-account__who .v2-avatar { width: 36px; height: 36px; flex: 0 0 auto; }
.v2-account__id { display: flex; flex-direction: column; min-width: 0; font-size: var(--font-size-sm); }
.v2-account__id strong, .v2-account__id span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-account__id span { color: var(--color-text-muted); }
.v2-account__menu a, .v2-account__menu button[role^="menuitem"] {
  display: flex; align-items: center; gap: var(--space-2); width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--color-text); text-decoration: none; font: inherit; font-size: var(--font-size-sm); text-align: left; cursor: pointer;
}
.v2-account__menu a:hover, .v2-account__menu button[role^="menuitem"]:hover, .v2-account__menu button[role^="menuitem"]:focus-visible, .v2-account__menu a:focus-visible { background: var(--color-surface-2); outline: none; }
.v2-account__menu svg { width: 18px; height: 18px; color: var(--color-text-muted); flex: 0 0 auto; }
.v2-account__menu hr { border: 0; border-top: 1px solid var(--color-border); margin: 4px 0; }
.v2-account__more { margin-left: auto; color: var(--color-text-muted); }
.v2-account__tick { margin-left: auto; visibility: hidden; color: var(--color-brand); font-weight: var(--font-weight-bold); }
.v2-account__menu .is-current { background: var(--color-brand-soft); }
.v2-account__menu .is-current .v2-account__tick { visibility: visible; }
@media (max-width: 40rem) { .v2-topbar__upgrade, .v2-topbar__new { display: none; } }


/* Navigation verticale des sous-rubriques : panneau latéral sur ordinateur, liste empilée sur téléphone. */
@media (min-width: 56rem) {
  .v2-dash__main:has(> .v2-dash-tabs--section) {
    display: grid;
    grid-template-columns: minmax(11rem, 13rem) minmax(0, 1fr);
    column-gap: clamp(1rem, 2vw, 1.75rem);
    align-items: start;
  }
  .v2-dash__main:has(> .v2-dash-tabs--section) > .v2-dash__head,
  .v2-dash__main:has(> .v2-dash-tabs--section) > .v2-alert {
    grid-column: 1 / -1;
  }
  .v2-dash__main:has(> .v2-dash-tabs--section) > :not(.v2-dash__head):not(.v2-dash-tabs--section):not(.v2-alert) {
    grid-column: 2;
    min-width: 0;
  }
  .v2-dash__main > .v2-dash-tabs--section {
    grid-column: 1;
    grid-row: auto;
    position: sticky;
    top: calc(var(--size-header, 56px) + var(--space-3));
    display: flex;
    flex-direction: column;
    align-self: start;
    gap: 3px;
    max-height: calc(100vh - var(--size-header, 56px) - var(--space-5));
    overflow-y: auto;
    padding: var(--space-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
  }
  .v2-dash-tabs--section .v2-dash-tab {
    justify-content: flex-start;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: .55rem .75rem;
    white-space: normal;
    overflow-wrap: anywhere;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: var(--radius-sm);
  }
  .v2-dash-tabs--section .v2-dash-tab[aria-current="page"] {
    color: var(--color-brand-ink);
    background: var(--color-brand-soft);
    border-left-color: var(--color-brand);
  }
}
@media (max-width: 55.999rem) {
  .v2-dash__main:has(> .v2-dash-tabs--section) {
    display: flex;
    flex-direction: column;
  }
  .v2-dash__main > .v2-dash-tabs--section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    min-width: 0;
    overflow: visible;
    flex-wrap: nowrap;
    border-bottom: 0;
    padding: var(--space-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
  }
  .v2-dash-tabs--section .v2-dash-tab {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    min-width: 0;
    margin: 0;
    padding: .6rem var(--space-3);
    text-align: left;
    line-height: 1.35;
    white-space: normal;
    border: 0;
    border-radius: var(--radius-sm);
  }
  .v2-dash-tabs--section .v2-dash-tab[aria-current="page"] {
    color: var(--color-brand-ink);
    background: var(--color-brand-soft);
    font-weight: var(--font-weight-bold, 600);
  }
}

/* Tablettes et petits ordinateurs : préserver une largeur utile au contenu en repliant l’aide contextuelle. */
@media (min-width: 56rem) and (max-width: 75rem) {
  .v2-dash { grid-template-columns: 12rem minmax(0, 1fr) 13rem; }
  .v2-dash-help { display: block; grid-column: 3; grid-row: 1; padding: var(--space-3) var(--space-2); }
  .v2-dash-help__heading h2 { font-size: var(--font-size-base); }
  .v2-dash__main:has(> .v2-dash-tabs--section) {
    grid-template-columns: minmax(9rem, 10.5rem) minmax(0, 1fr);
    column-gap: 1rem;
  }
}


/* Corbeille — présentation inspirée de l’Explorateur Windows 10. */
.v2-trash-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin: 0 0 16px; }
.v2-trash-search { display:flex; align-items:center; gap:9px; flex:1 1 280px; max-width:560px; min-height:44px; padding:0 12px; border:1px solid var(--color-border); border-radius:var(--radius-md); background:var(--color-surface); }
.v2-trash-search:focus-within { border-color:var(--color-brand); box-shadow:0 0 0 3px var(--color-brand-soft); }
.v2-trash-search svg { width:19px; height:19px; flex:0 0 auto; color:var(--color-text-muted); }
.v2-trash-search input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:var(--color-text); font:inherit; }
.v2-trash-drawer { margin:0 0 10px; overflow:hidden; border:1px solid var(--color-border); border-radius:var(--radius-md); background:var(--color-surface); }
.v2-trash-drawer[hidden] { display:none !important; }
.v2-trash-drawer__summary { display:flex; align-items:center; gap:12px; min-height:52px; padding:10px 14px; cursor:pointer; list-style:none; background:var(--color-surface-2); }
.v2-trash-drawer__summary::-webkit-details-marker { display:none; }
.v2-trash-drawer__summary::before { content:""; width:8px; height:8px; flex:0 0 auto; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(-45deg); transition:transform .15s ease; }
.v2-trash-drawer[open] > .v2-trash-drawer__summary::before { transform:rotate(45deg); }
.v2-trash-drawer__title { font-weight:600; text-transform:capitalize; }
.v2-trash-drawer__count { margin-left:auto; color:var(--color-text-muted); font-size:var(--font-size-sm); }
.v2-trash-drawer > .v2-trash-list { margin:0; padding:0 14px; }
.v2-trash-drawer > .v2-trash-list li { padding:13px 0; border-bottom:1px solid var(--color-border); }
.v2-trash-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:12px 14px; border-top:1px solid var(--color-border); }
.v2-trash-pagination__controls { display:flex; gap:8px; }
.v2-trash-pagination .v2-btn { min-height:36px; padding:6px 12px; }
.v2-trash-no-results { padding:18px 4px; }
@media(max-width:40rem) {
 .v2-trash-tools { align-items:stretch; }
 .v2-trash-search { flex-basis:100%; max-width:none; }
 .v2-trash-drawer__summary { min-height:48px; padding:9px 11px; }
 .v2-trash-drawer > .v2-trash-list { padding:0 10px; }
 .v2-trash-pagination { align-items:flex-start; flex-direction:column; }
 .v2-trash-pagination__controls { width:100%; }
 .v2-trash-pagination__controls .v2-btn { flex:1; }
}


/* ── Corrections responsive mobile (08/11/2026) ──────────────────────────────
   Problèmes constatés sur petits écrans (< 56rem) :
   1. Gap/padding trop grands créant un vide excessif dans le layout
   2. Menu latéral gauche : police trop petite vs la section principale
   3. Aide contextuelle mobile mal dimensionnée (trop grande)
   4. Grille 2 colonnes : gap trop grand sur mobile
   5. Contenu débordant à droite (pas de width constraint)
   ──────────────────────────────────────────────────────────────────────────── */

/* 1. Layout mobile : réduire le gap et le padding, contraindre la largeur */
@media (max-width: 55.999rem) {
  .v2-dash {
    gap: var(--space-2) !important;
    padding: var(--space-2) !important;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .v2-dash__main {
    gap: var(--space-3) !important;
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
  }
  /* Réduire les écarts entre sections */
  .v2-dash__main > * { min-width: 0; }
  .v2-card { padding: var(--space-3); }

  /* 2. Menu nav gauche : taille de police alignée avec le contenu principal */
  .v2-dash-nav a {
    font-size: var(--font-size-base) !important;
  }
  .v2-dash-nav .v2-dash-nav__group-label span {
    font-size: var(--font-size-sm) !important;
  }

  /* 3. Aide contextuelle mobile : compact, sans hauteur fixe */
  .v2-dash-help {
    order: 10; /* après tout le contenu */
    padding: var(--space-3) !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    border-radius: var(--radius-md);
  }

  /* 4. Grille : réduire le gap sur mobile */
  .v2-dash .v2-grid--2 {
    gap: var(--space-3) !important;
  }

  /* 5. Sections : éliminer les marges latérales excessives */
  .v2-dash__main .v2-card,
  .v2-dash__main section,
  .v2-dash__main .v2-dash-send,
  .v2-dash__main .v2-alert,
  .v2-dash__main .v2-dash-steps {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Section tabs mobile : pas trop d'espace */
  .v2-dash-tabs--section {
    margin-bottom: 0 !important;
  }
}

/* ── Tablette intermédiaire 40–56rem : réduire un peu les espaces ── */
@media (min-width: 40rem) and (max-width: 55.999rem) {
  .v2-dash {
    padding: var(--space-3) !important;
    gap: var(--space-3) !important;
  }
}

/* ── Menu nav gauche desktop : harmoniser la taille de police ──────── */
@media (min-width: 56rem) {
  .v2-dash-nav--side .v2-dash-nav__list a {
    font-size: var(--font-size-base) !important;
  }
  .v2-dash-nav--side .v2-dash-nav__group-label span {
    font-size: var(--font-size-xs) !important;
  }
}

/* ── Lien Accueil en tête du menu latéral (08/11/2026) ──────────────────────
   Le groupe 'accueil' est affiché comme un lien direct, sans titre de section
   ni flèche dépliable. Séparé visuellement des groupes en dessous. */
.v2-dash-nav__list--top {
  list-style: none;
  margin: 0 0 var(--space-2);
  padding: 0;
}
.v2-dash-nav__list--top a {
  font-weight: var(--font-weight-medium);
}

/* ── Style « application » sur mobile : Portails clients, Équipe et listes de rubrique (08/11/2026) ──
   Maquette du propriétaire : docs/maquettes/croquis-mobile-dashboard-2026-11-08.jpg (références :
   reference-accueil-sombre.jpg / reference-accueil-clair.jpg). CSS seul, téléphone uniquement (< 56rem) :
   aucune URL, aucun champ ni aucune règle d'accès ne change. Couleurs et ombres viennent des jetons du thème
   (clair et sombre) ; aucune valeur de forfait n'est écrite ici. */
@media (max-width: 55.999rem) {
  /* Cartes arrondies et aérées, comme les tuiles de l'application */
  html body.v2-dash-body .v2-dash__main > .v2-card,
  html body.v2-dash-body .v2-dash__main > section.v2-card {
    border-radius: 20px;
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
  }
  /* Liste des sous-rubriques (Portails clients, Mon équipe, UDC Pay, API…) : lignes en pastilles avec flèche */
  html body.v2-dash-body .v2-dash__main > .v2-dash-tabs--section {
    gap: var(--space-2);
    padding: var(--space-2);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
  }
  html body.v2-dash-body .v2-dash-tabs--section .v2-dash-tab {
    position: relative;
    min-height: 48px;
    padding-inline: var(--space-4) calc(var(--space-4) + 18px);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
    font-weight: var(--font-weight-medium);
  }
  html body.v2-dash-body .v2-dash-tabs--section .v2-dash-tab::after {
    content: "";
    position: absolute;
    inset-inline-end: var(--space-4);
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--color-text-muted);
    border-right: 2px solid var(--color-text-muted);
    transform: translateY(-50%) rotate(45deg);
  }
  html body.v2-dash-body .v2-dash-tabs--section .v2-dash-tab[aria-current="page"] {
    border-color: var(--color-brand);
    background: var(--color-brand-soft);
    color: var(--color-brand-ink);
  }
  /* Titre de page : grand et net, comme « Bonjour, Dan » */
  html body.v2-dash-body .v2-dash__head h1 {
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -.01em;
  }
}

/* En-tête « application » (croquis du 08/11/2026) : Notifications et Discussion sur tous les écrans, chacune avec son compteur
   (le bouton bleu flottant du chat est retiré) ; Mes drives seulement sur téléphone (sur ordinateur, la colonne latérale suffit). */
.v2-topbar__m {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--color-border); border-radius: 50%; background: var(--color-surface);
  color: var(--color-text); cursor: pointer; text-decoration: none;
}
.v2-topbar__m:hover { background: var(--color-surface-2); }
.v2-topbar__m:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.v2-topbar__m svg { width: 20px; height: 20px; }
.v2-topbar__m--phone { display: none; }
/* Compteur : pastille rouge en haut à droite de l'icône ; cachée tant qu'il n'y a rien de non lu. */
.v2-topbar__badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--color-danger, #d92d20); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
  border: 2px solid var(--color-surface, #fff);
}
.v2-topbar__badge[hidden] { display: none; }
@media (max-width: 55.999rem) {
  .v2-topbar__m--phone { display: inline-flex; }
  .v2-topbar__help { display: none; }
}

/* Bas de la page Compte (mobile) */
.v2-account-more { display: none; }
@media (max-width: 55.999rem) {
  .v2-account-more { display: block; padding: var(--space-2); border-radius: 20px; }
  .v2-account-more__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
  .v2-account-more a, .v2-account-more summary {
    display: flex; align-items: center; min-height: 48px; padding: 0 var(--space-4); border: 1px solid var(--color-border);
    border-radius: 14px; background: var(--color-surface); color: var(--color-text); font-weight: var(--font-weight-medium);
    text-decoration: none; cursor: pointer; list-style: none;
  }
  .v2-account-more details[open] summary { margin-bottom: var(--space-2); }
  .v2-account-more details a { margin-bottom: var(--space-2); font-weight: var(--font-weight-regular, 400); }
  .v2-account-more__logout { color: var(--color-danger, #b42318) !important; justify-content: center; }
}

/* ── Contenu des rubriques en style « application » (08/11/2026, téléphone < 56rem) ──────────────
   S'applique à toutes les pages de l'espace (Envoyer, Transferts, Fichiers, Corbeille, Portails, Équipe, Compte…) :
   cartes arrondies, lignes de liste en tuiles, champs et boutons larges, tableaux défilants. CSS seul. */
@media (max-width: 55.999rem) {
  html body.v2-dash-body .v2-dash__main .v2-card { border-radius: 20px; box-shadow: var(--shadow-sm); }
  html body.v2-dash-body .v2-dash__main .v2-card__title,
  html body.v2-dash-body .v2-dash__main h2 { font-size: 1.125rem; letter-spacing: -.005em; }
  /* Listes : une tuile par ligne */
  html body.v2-dash-body .v2-dash__main .v2-dash-list { display: grid; gap: var(--space-2); }
  html body.v2-dash-body .v2-dash__main .v2-dash-list > li {
    padding: var(--space-3); border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-surface);
  }
  html body.v2-dash-body .v2-dash__main .v2-dash-list > li:last-child { border-bottom: 1px solid var(--color-border); }
  /* Champs et boutons : zone tactile confortable */
  html body.v2-dash-body .v2-dash__main .v2-input,
  html body.v2-dash-body .v2-dash__main .v2-select,
  html body.v2-dash-body .v2-dash__main .v2-textarea { min-height: 48px; border-radius: 14px; font-size: 1rem; }
  html body.v2-dash-body .v2-dash__main .v2-btn { min-height: 48px; border-radius: 999px; }
  html body.v2-dash-body .v2-dash__main .v2-btn--sm { min-height: 40px; }
  /* Tableaux : défilement horizontal dans leur carte, jamais la page */
  html body.v2-dash-body .v2-dash__main .v2-card:has(table) { overflow-x: auto; }
  /* Dernier contenu : dégagé de la barre flottante et du bouton Menu */
  html body.v2-dash-body .v2-dash__main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 55.999rem) {
  .v2-account-more__info { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 0; padding: 0 var(--space-4); border: 1px dashed var(--color-border); border-radius: 14px; color: var(--color-text-muted); }
}

/* ── Bouton « Retour » et liste « Mon espace » (téléphone, 08/11/2026) ───────────────────────────────
   Sur une page ouverte depuis l'Accueil, la barre du bas ou une rubrique, la liste des sous-rubriques (Accueil, Envoyer,
   Recevoir…) reste visible sous forme de navigation verticale sur téléphone et de panneau latéral sur ordinateur.
   Le bouton « Retour » (partials/dash-back.ejs) reste un raccourci vers la racine de la rubrique. « Mon espace » (.v2-dash-tabs--others) ne sert que sur l'Accueil :
   c'est l'entrée vers Fichiers, Portails/équipe/API et Compte depuis que la barre du bas n'a plus de bouton Menu. */
.v2-dash-back { display: none; }
@media (max-width: 55.999rem) {
  .v2-dash-back {
    display: inline-flex; align-items: center; align-self: flex-start; gap: var(--space-1);
    min-height: 44px; margin: 0 0 var(--space-3); padding: 0 var(--space-4) 0 var(--space-2);
    border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface);
    box-shadow: var(--shadow-sm); color: var(--color-text); font-weight: var(--font-weight-medium); text-decoration: none;
  }
  .v2-dash-back:hover { background: var(--color-surface-2); }
  .v2-dash-back:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
  .v2-dash-back svg { width: 20px; height: 20px; flex: none; }
  html body.v2-dash-body .v2-dash__main > .v2-dash-tabs--others { margin-top: var(--space-3); }
}

/* Une tuile de liste ne dépasse jamais sa carte (« Envois récents » : l'état « Actif » était coupé à droite).
   Cause : la colonne de la grille (display: grid) ne pouvait pas rétrécir sous la largeur du texte sur une ligne, donc la tuile
   sortait de la carte. La colonne peut maintenant rétrécir (minmax(0, 1fr)) et l'état passe à la ligne au lieu d'être rogné. */
@media (max-width: 55.999rem) {
  html body.v2-dash-body .v2-dash__main .v2-card { min-width: 0; }
  html body.v2-dash-body .v2-dash__main .v2-dash-list { grid-template-columns: minmax(0, 1fr); }
  html body.v2-dash-body .v2-dash__main .v2-dash-list > li { min-width: 0; flex-wrap: wrap; }
  html body.v2-dash-body .v2-dash__main .v2-dash-list > li > .v2-dash-list__main { flex: 1 1 9rem; }
}


/* Contrôles repliables du dashboard : une action doit avoir une apparence de bouton,
   cohérente au toucher sur mobile comme à la souris sur desktop. */
.v2-dash-body .v2-disclosure-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--size-tap);
  max-width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  color: var(--color-text);
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  list-style: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.v2-dash-body .v2-disclosure-trigger::-webkit-details-marker { display: none; }
.v2-dash-body .v2-disclosure-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.v2-dash-body details[open] > .v2-disclosure-trigger::after { transform: rotate(225deg); }
.v2-dash-body .v2-disclosure-trigger:hover { background: var(--color-brand-soft); border-color: var(--color-border-strong); }
.v2-dash-body .v2-disclosure-trigger:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.v2-dash-body details[open] > .v2-disclosure-trigger { margin-bottom: var(--space-3); }
@media (prefers-reduced-motion: reduce) {
  .v2-dash-body .v2-disclosure-trigger { transition: none; }
  .v2-dash-body .v2-disclosure-trigger::after { transition: none; }
}


/* ── Chrome Android en « version ordinateur » : adapter la grille au tactile ──
   Chrome peut annoncer une largeur de bureau (~980 px) même sur un téléphone.
   Le breakpoint desktop classique affichait alors navigation + contenu étroit + aide
   dans trois colonnes. Cette règle ne touche que les écrans tactiles dans cette plage :
   les vrais ordinateurs gardent leur disposition et le mobile normal (<56rem) reste intact. */
@media (hover: none) and (pointer: coarse) and (min-width: 56rem) and (max-width: 75rem) {
  /* Annuler les min-height: 100vh hérités du bloc @media (min-width:56rem) */
  html body.v2-dash-body {
    min-height: 0 !important;
    overflow-x: hidden;
  }
  html body.v2-dash-body .v2-dash {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: min-content;
    align-items: start;
    gap: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0 !important;
    height: auto !important;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  /* Une seule colonne utile : ni menu fixe à gauche, ni panneau d'aide à droite. */
  html body.v2-dash-body .v2-dash-nav--side {
    display: none !important;
  }
  /* Carte d'aide : compacte, collée au contenu, sans vide blanc
     — écrase le height: calc(100vh - 56px) du bloc min-width:56rem */
  html body.v2-dash-body .v2-dash-help {
    display: block !important;
    position: static !important;   /* annule position:sticky héritée */
    height: auto !important;       /* annule height: calc(100vh - 56px) */
    max-height: none !important;
    overflow-y: visible !important;
    grid-column: 1;
    grid-row: 2;
    width: min(100% - 2rem, 58rem);
    max-width: 58rem;
    min-width: 0;
    margin: var(--space-3) auto var(--space-4);
    padding: var(--space-3);
    box-sizing: border-box;
    align-self: start;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
  }
  html body.v2-dash-body .v2-dash-help__heading h2 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: var(--space-1);
  }
  html body.v2-dash-body .v2-dash-help__heading p {
    font-size: var(--font-size-xs);
    margin: 0;
  }
  html body.v2-dash-body .v2-dash-help ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-1) var(--space-3);
    margin: var(--space-2) 0;
  }
  html body.v2-dash-body .v2-dash-help li {
    font-size: var(--font-size-xs);
    gap: var(--space-1);
  }
  html body.v2-dash-body .v2-dash-help li:before {
    width: 1.2rem;
    height: 1.2rem;
    font-size: 0.6rem;
  }
  html body.v2-dash-body .v2-dash-help__link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    font-size: var(--font-size-xs);
  }
  html body.v2-dash-body .v2-dash__main {
    grid-column: 1;
    width: min(100%, 58rem);
    max-width: 58rem;
    min-width: 0;
    margin-inline: auto;
    padding: clamp(1rem, 3vw, 1.75rem);
    box-sizing: border-box;
    overflow: visible;
  }
  /* Les sous-rubriques redeviennent une navigation tactile pleine largeur. */
  html body.v2-dash-body .v2-dash__main:has(> .v2-dash-tabs--section) {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }
  html body.v2-dash-body .v2-dash__main > .v2-dash-tabs--section {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-height: none;
    min-width: 0;
    overflow: visible;
    padding: var(--space-2);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-surface);
  }
  html body.v2-dash-body .v2-dash-tabs--section .v2-dash-tab {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    justify-content: flex-start;
    white-space: normal;
    overflow-wrap: anywhere;
    border-radius: 12px;
  }
  html body.v2-dash-body .v2-dash__main > * {
    min-width: 0;
    max-width: 100%;
  }
  html body.v2-dash-body .v2-dash__main .v2-grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }
  html body.v2-dash-body .v2-dash__main .v2-card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  html body.v2-dash-body .v2-dash-nav--page {
    display: block;
    width: min(100% - 2rem, 58rem);
    margin: 0 auto;
    box-sizing: border-box;
  }
}


/* ── Navigation complète en tiroir : Chrome Android « site pour ordinateur » uniquement ── */
@media (hover: none) and (pointer: coarse) and (min-width: 56rem) and (max-width: 75rem) {
  .v2-touch-desktop-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 44px;
    min-height: 44px;
    margin-left: 8px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    flex: 0 0 auto;
  }
  .v2-touch-desktop-menu-toggle:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
  }
  .v2-touch-desktop-menu-toggle[aria-expanded="true"] {
    border-color: var(--color-brand);
    background: var(--color-brand-soft);
  }
  .v2-touch-desktop-menu-toggle[hidden] { display: none !important; }

  html body.v2-dash-body.udc-touch-desktop-nav-open {
    overflow: hidden;
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side {
    display: block !important;
    position: fixed !important;
    z-index: 1200;
    top: var(--size-header, 56px);
    bottom: 0;
    left: 0;
    width: min( min(86vw, 340px), 360px );
    max-width: calc(100vw - 48px);
    height: auto;
    max-height: none;
    margin: 0;
    padding: var(--space-3) var(--space-3) max(var(--space-5), env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--color-border);
    border-left: 0;
    border-radius: 0 18px 18px 0;
    background: var(--color-surface);
    box-shadow: 0 0 0 100vmax rgba(8, 15, 32, .52), 12px 0 34px rgba(0, 0, 0, .18);
    animation: udcTouchNavIn .18s ease-out;
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side a {
    min-height: 46px;
    font-size: var(--font-size-base);
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__group-label {
    min-height: 42px;
  }
}
@keyframes udcTouchNavIn {
  from { opacity: .7; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .v2-dash-nav--side { animation: none !important; }
}


/* Contraste renforcé du tiroir tactile : les libellés restent lisibles en thème clair.
   Certains styles globaux de navigation atténuaient les summaries et les liens dans ce panneau. */
@media (hover: none) and (pointer: coarse) and (min-width: 56rem) and (max-width: 75rem) {
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side {
    color: var(--color-text) !important;
    background-color: var(--color-surface) !important;
    opacity: 1 !important;
    visibility: visible !important;
    isolation: isolate;
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side *,
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side *::before,
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side *::after {
    opacity: 1;
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side a,
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side a:visited {
    display: flex;
    align-items: center;
    color: var(--color-text) !important;
    background-color: transparent;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    text-shadow: none;
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side a svg {
    color: var(--color-text-muted) !important;
    flex: 0 0 var(--size-icon-lg);
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__group-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text) !important;
    background: var(--color-surface-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__group-label::-webkit-details-marker {
    display: none;
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__group-label span {
    color: var(--color-text) !important;
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__group-label svg {
    color: var(--color-text-muted) !important;
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__group-wrap {
    display: block;
    margin-block: var(--space-2);
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__legal {
    display: grid;
    gap: var(--space-1);
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__legal a {
    min-height: 42px;
    color: var(--color-text-muted) !important;
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side a[aria-current="page"] {
    color: var(--color-text) !important;
    background: var(--color-brand-soft) !important;
  }
}

/* ── Correctif global : textes lisibles sur téléphone (08/11/2026) ──────────
   Évite qu'un élément flex/grid trop comprimé transforme les phrases en
   colonnes de lettres. Les onglets horizontaux et les rubriques défilantes
   conservent leur comportement ; les mots ordinaires restent entiers. */
@media (max-width: 55.999rem), (hover: none) and (pointer: coarse) and (min-width: 56rem) and (max-width: 75rem) {
  html body.v2-dash-body .v2-dash__main,
  html body.v2-dash-body .v2-dash__main :where(.v2-card, section, article, ul, ol, li, p, h1, h2, h3, h4, label, .v2-muted, .v2-field, .v2-field__hint, .v2-dash-list__main) {
    min-width: 0;
    box-sizing: border-box;
  }

  html body.v2-dash-body .v2-dash__main :where(p, h1, h2, h3, h4, li, label, .v2-muted, .v2-field__hint, .v2-dash-list__main, .v2-card__title, .v2-dash-help, .v2-dash-help li) {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal;
  }

  /* Les rangées de contenu doivent pouvoir passer sur plusieurs lignes au lieu
     de comprimer leur zone de texte entre des boutons ou des badges. */
  html body.v2-dash-body .v2-dash__main :where(.v2-dash__head, .v2-dash-list > li, .v2-dash-transfer__top, .v2-dash-transfer__body, .v2-dash-actions, .v2-dash-extend, .v2-admin-facts > div, .v2-dash-steps__item, .v2-portal__head, .v2-portal__actions, .v2-sec__head, .v2-sec__scan) {
    flex-wrap: wrap;
    min-width: 0;
  }

  html body.v2-dash-body .v2-dash__main :where(.v2-dash-list__main, .v2-dash-transfer__body > div, .v2-dash__head > div, .v2-portal__head > *) {
    flex: 1 1 12rem;
    min-width: 0;
    max-width: 100%;
  }

  /* Conserver les lignes de navigation et les pastilles compactes. */
  html body.v2-dash-body .v2-dash__main :where(.v2-dash-tabs, .v2-dash-chips, .udc-tabs, .udc-team__view-switch, .udc-team__filters) {
    min-width: 0;
  }
}

/* Aide et navigation latérale : empêcher les colonnes de lettres sur les petits écrans.
   Les mots longs (adresses, identifiants et liens) peuvent se couper si nécessaire. */
@media (max-width: 55.999rem), (hover: none) and (pointer: coarse) and (min-width: 56rem) and (max-width: 75rem) {
  html body.v2-dash-body .v2-dash-help,
  html body.v2-dash-body .v2-dash-nav--side,
  html body.v2-dash-body .v2-dash-help :where(*),
  html body.v2-dash-body .v2-dash-nav--side :where(*) {
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  html body.v2-dash-body .v2-dash-help :where(p, h2, h3, li, a, span),
  html body.v2-dash-body .v2-dash-nav--side :where(a, span, summary) {
    white-space: normal !important;
    text-orientation: mixed;
  }
}


/* ── Téléphone : un seul bouton de menu, toute la navigation dans le tiroir (ordre du propriétaire, 09/11/2026) ──
   Chaque rubrique ne parle que d'elle-même : plus d'onglets Accueil / Envoyer / Recevoir / Dropzones…, plus de bouton Retour,
   plus de barre du bas. Le bouton en haut à gauche (partials/header.ejs) ouvre le tiroir (partials/dash-nav.ejs) rendu par
   public/v2/js/dashboard-touch-desktop-nav.js. Les boutons d'action (Envoyer des fichiers, Nouvelle dropzone…) et les filtres restent. */
.v2-dash-nav__close { display: none; }
@media (max-width: 55.999rem) {
  /* Navigation répétée dans les pages : masquée. */
  html body.v2-dash-body .v2-dash-tabs--section,
  html body.v2-dash-body .v2-dash-tabs--others,
  html body.v2-dash-body .v2-dash-back { display: none !important; }

  /* Bouton rond en haut à gauche, icône seule (comme le bouton de dossiers des Notes). */
  .v2-touch-desktop-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    inline-size: 44px; block-size: 44px; min-width: 44px; padding: 0; margin: 0 4px 0 0; flex: 0 0 auto;
    border: 1px solid var(--color-border); border-radius: 50%;
    background: var(--color-surface); color: var(--color-text); cursor: pointer;
  }
  .v2-touch-desktop-menu-toggle span { display: none; }
  .v2-touch-desktop-menu-toggle svg { width: 22px; height: 22px; }
  .v2-touch-desktop-menu-toggle:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
  .v2-touch-desktop-menu-toggle[aria-expanded="true"] { border-color: var(--color-brand); background: var(--color-brand-soft); }
  .v2-touch-desktop-menu-toggle[hidden] { display: none !important; }

  /* Tiroir : carte arrondie qui glisse depuis la gauche, au-dessus de tout, sur fond assombri. */
  html body.v2-dash-body.udc-touch-desktop-nav-open { overflow: hidden; }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side {
    display: block !important; position: fixed !important; z-index: 1200;
    top: max(8px, env(safe-area-inset-top)); bottom: max(8px, env(safe-area-inset-bottom)); left: 8px;
    inline-size: min(88vw, 22rem); max-width: calc(100vw - 32px); height: auto; max-height: none; margin: 0;
    padding: var(--space-3) var(--space-3) var(--space-5);
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    border: 1px solid var(--color-border) !important; border-radius: 26px;
    color: var(--color-text) !important; background: var(--color-surface) !important; opacity: 1 !important; isolation: isolate;
    box-shadow: 0 0 0 100vmax rgba(8, 15, 32, .52), 12px 0 34px rgba(0, 0, 0, .18);
    animation: udcTouchNavIn .18s ease-out;
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__close {
    display: flex; align-items: center; gap: var(--space-2); inline-size: 100%; min-height: 48px; margin: 0 0 var(--space-2); padding: 0 var(--space-2);
    border: 0; background: transparent; color: var(--color-text-muted); font: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); text-align: left; cursor: pointer;
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__close:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

  /* Lisibilité en thème clair comme en thème sombre : les anciens styles du menu latéral sont blancs sur fond de marque. */
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side a,
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side a:visited {
    display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding-inline: var(--space-3);
    border-radius: 14px; color: var(--color-text) !important; background: transparent;
    font-size: var(--font-size-base); font-weight: var(--font-weight-medium); text-decoration: none; box-shadow: none;
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side a svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--color-text-muted) !important; }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side a[aria-current="page"] {
    color: var(--color-text) !important; background: var(--color-brand-soft) !important; font-weight: var(--font-weight-bold);
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side a[aria-current="page"] svg { color: var(--color-brand) !important; }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__group-wrap { display: block; margin-block: var(--space-1); }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__group-label {
    display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 var(--space-3);
    color: var(--color-text-muted) !important; font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); cursor: pointer; list-style: none;
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__group-label::-webkit-details-marker { display: none; }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__group-label span,
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__group-label svg { color: var(--color-text-muted) !important; }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__legal {
    display: grid; gap: var(--space-1); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--color-border);
  }
  html body.v2-dash-body.udc-touch-desktop-nav-open .v2-dash-nav--side .v2-dash-nav__legal a { min-height: 42px; color: var(--color-text-muted) !important; font-size: var(--font-size-sm); }
}


/* Invitation facultative à laisser un avis après un premier transfert. */
.v2-review-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block: 16px;
  border-inline-start: 3px solid var(--color-brand);
}
.v2-review-invite h2 { margin: 0 0 6px; font-size: 1rem; }
.v2-review-invite p { margin: 0; }
.v2-review-invite > a { flex: 0 0 auto; }
@media (max-width: 640px) {
  .v2-review-invite { align-items: stretch; flex-direction: column; gap: 12px; }
  .v2-review-invite > a { width: 100%; box-sizing: border-box; justify-content: center; }
}


/* Statistiques client : cartes compactes, contraste via les jetons du thème clair/sombre. */
.v2-stats-page { min-width: 0; }
.v2-stats-eyebrow { margin: 0 0 var(--space-1); color: var(--color-brand-ink); font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); letter-spacing: .06em; text-transform: uppercase; }
.v2-stats-period { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.v2-stats-period label { color: var(--color-text-muted); font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); }
.v2-stats-period .v2-input { width: auto; min-width: 12rem; max-width: 100%; }
.v2-stats-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.v2-stats-metric { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; padding: var(--space-3); }
.v2-stats-metric > span { color: var(--color-text-muted); font-size: var(--font-size-sm); line-height: 1.35; }
.v2-stats-metric > strong { color: var(--color-text); font-size: clamp(1.25rem, 4vw, 1.75rem); line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.v2-stats-metric > small { color: var(--color-text-muted); font-size: var(--font-size-xs); line-height: 1.4; }
.v2-stats-note { margin: 0; color: var(--color-text-muted); font-size: var(--font-size-sm); line-height: 1.55; }
.v2-stats-type-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); list-style: none; margin: 0; padding: 0; }
.v2-stats-type-row { display: flex; justify-content: space-between; gap: var(--space-2); color: var(--color-text); font-size: var(--font-size-sm); }
.v2-stats-type-row span { color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.v2-stats-type-track { height: 7px; margin-top: 6px; overflow: hidden; border-radius: var(--radius-pill); background: var(--color-surface-2); }
.v2-stats-type-track span { display: block; height: 100%; border-radius: inherit; background: var(--color-brand-strong); }
@media (min-width: 48rem) {
  .v2-stats-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2-stats-metric { padding: var(--space-4); }
}
@media (min-width: 80rem) { .v2-stats-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 26rem) {
  .v2-stats-period { align-items: stretch; }
  .v2-stats-period label { flex-basis: 100%; }
  .v2-stats-period .v2-input { flex: 1 1 100%; width: 100%; }
  .v2-stats-type-list { grid-template-columns: 1fr; }
}

.v2-stats-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.v2-stats-actions .v2-btn { min-height: var(--size-tap); }


/* Centre de suivi et de sécurité des liens partagés. */
.v2-security-select { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--size-tap); color: var(--color-text); font-size: var(--font-size-sm); }
.v2-security-select input { width: 20px; height: 20px; accent-color: var(--color-brand); }
.v2-security-center__notice { margin-block: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text); background: var(--color-surface-2); }
.v2-dash-status.is-revoked { color: var(--color-danger); }
.v2-security-center__safety { display: flex; align-items: flex-start; gap: var(--space-3); }
/* 18/11/2026 : sur téléphone, le titre était coincé en colonne de 85 px à côté du texte (mots empilés) → l'un sous l'autre. */
@media (max-width: 640px) { .v2-security-center__safety { flex-direction: column; gap: var(--space-2); } .v2-security-center__safety h2 { display: flex; align-items: center; gap: 8px; } }
.v2-security-center__safety svg { flex: 0 0 auto; color: var(--color-success); }
@media (max-width: 640px) {
  .v2-security-select { flex: 0 0 100%; }
  .v2-security-center__actions, .v2-security-center__actions .v2-btn { width: 100%; }
}


.v2-security-recipients { margin-top: var(--space-3); border-top: 1px solid var(--color-border); padding-top: var(--space-2); color: var(--color-text); }
.v2-security-recipients summary { cursor: pointer; min-height: var(--size-tap); display: flex; align-items: center; font-weight: 600; }
.v2-security-recipients__list { display: grid; gap: var(--space-2); padding-left: 1.25rem; }
.v2-security-recipients__list li { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); color: var(--color-text); font-size: var(--font-size-sm); }
.v2-security-recipients__list li strong { flex: 0 0 100%; overflow-wrap: anywhere; }
.v2-security-recipients__list li span { color: var(--color-text-muted); }

.v2-security-confirm { display: flex; align-items: flex-start; gap: var(--space-2); margin-block: var(--space-3); color: var(--color-text); font-size: var(--font-size-sm); }
.v2-security-confirm input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-danger); }
/* Filtres du centre de sécurité : navigation persistante, lisible et réellement identifiable au clavier. */
.v2-security-center__filters {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}
.v2-security-center__filters-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.v2-security-center__filters-heading h2 {
  margin: 0 0 3px;
  font-size: var(--font-size-lg);
  line-height: 1.3;
}
.v2-security-center__filters-heading p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}
.v2-security-center__results {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}
.v2-security-center__results strong {
  color: var(--color-text);
  font-size: var(--font-size-lg);
  font-variant-numeric: tabular-nums;
}
.v2-security-center__filter-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  min-width: 0;
}
.v2-security-center__filter {
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.v2-security-center__filter:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
}
.v2-security-center__filter:active { transform: translateY(1px); }
.v2-security-center__filter:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  z-index: 1;
}
.v2-security-center__filter.is-selected {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  box-shadow: inset 0 0 0 1px var(--color-brand);
}
.v2-security-center__filter-label {
  font-size: var(--font-size-control);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
}
.v2-security-center__filter-hint {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  line-height: 1.35;
}
.v2-security-center__filter.is-selected .v2-security-center__filter-label {
  color: var(--color-text);
}
.v2-security-center__filter-check {
  position: absolute;
  top: 8px;
  right: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 760px) {
  .v2-security-center__filter-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .v2-security-center__filter { min-height: 64px; padding: 9px; }
  .v2-security-center__filter-hint { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-security-center__filter { transition: none; }
}

.v2-security-center__controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-block: var(--space-3); }
.v2-security-center__controls .v2-btn { min-height: var(--size-tap); }
.v2-security-center__activity { margin-top: var(--space-4); }
.v2-security-center__activity ul { display: grid; gap: var(--space-2); padding-left: 1.25rem; }
.v2-security-center__activity li { color: var(--color-text); font-size: var(--font-size-sm); overflow-wrap: anywhere; }
.v2-security-recipients textarea { min-height: 5rem; resize: vertical; }
@media (max-width: 640px) {
  .v2-security-center__controls { align-items: stretch; flex-direction: column; }
  .v2-security-center__controls .v2-btn { width: 100%; }
}


/* Correctif de contraste et de focus tactile des filtres du centre de sécurité. */
.v2-security-center__filter:focus {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  z-index: 2;
}
.v2-security-center__filter.is-selected,
.v2-security-center__filter[aria-current="page"] {
  border: 2px solid var(--color-brand);
  background: var(--color-brand-soft);
  box-shadow: inset 0 0 0 1px var(--color-brand);
}
.v2-security-center__filter.is-selected .v2-security-center__filter-label,
.v2-security-center__filter[aria-current="page"] .v2-security-center__filter-label {
  color: var(--color-text);
  font-weight: 700;
}
.v2-security-center__filter.is-selected .v2-security-center__filter-hint,
.v2-security-center__filter[aria-current="page"] .v2-security-center__filter-hint {
  color: var(--color-text);
}
.v2-security-center__filter:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}
@media (hover: none) {
  .v2-security-center__filter:active {
    border-color: var(--color-brand);
    background: var(--color-brand-soft);
  }
}

/* Guides contextuels : rédaction structurée, ressources reliées et lecture confortable. */
.v2-dash-help-drawer__panel .v2-dash-help__content{display:grid;gap:var(--space-3);margin-top:var(--space-3)}
.v2-dash-help__content section{padding:var(--space-3);border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface-2)}
.v2-dash-help__content h3{margin:0 0 var(--space-2);color:var(--color-text);font-size:var(--font-size-sm);line-height:1.4}
.v2-dash-help__content p{margin:0;color:var(--color-text);font-size:var(--font-size-sm);line-height:1.6}
.v2-dash-help__content ol{display:grid;gap:var(--space-2);margin:0;padding-left:1.35rem;list-style:decimal}
.v2-dash-help__content ol li{display:list-item;color:var(--color-text);font-size:var(--font-size-sm);line-height:1.6}
.v2-dash-help__content ol li:before{content:none}
.v2-dash-help__content .v2-dash-help__caution{border-color:var(--color-warning,var(--color-border));background:var(--color-surface)}
.v2-dash-help__resources{display:grid;gap:var(--space-2);margin-top:var(--space-4);padding-top:var(--space-3);border-top:1px solid var(--color-border)}
.v2-dash-help__resources .v2-dash-help__link{min-height:40px}
body.v2-help-is-open{overflow:hidden}
.udc-team-guide{color:var(--color-text)}
.udc-team-guide__hero,.udc-team-guide__chapter,.udc-team-guide__footer{color:var(--color-text)}
@media(prefers-reduced-motion:reduce){.v2-dash-help-drawer__panel,.v2-dash-help-drawer__backdrop{transition:none}}

/* Alignement optique du bouton de fermeture, identique sur chaque tiroir contextuel. */
.v2-dash-help-drawer[open] .v2-dash-help-drawer__trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.v2-dash-help-drawer[open] .v2-dash-help-drawer__trigger:before{margin:0;align-self:center}
.v2-dash-help-drawer__trigger:focus-visible{outline:3px solid var(--color-brand);outline-offset:3px}


/* Profil : formulaire @pseudo compact et carte moins haute sur téléphone. */
.v2-profile__id { align-items: flex-start; gap: 12px; }
.v2-profile__id > div { flex: 1; min-width: 0; }
.v2-profile__handle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0; }
.v2-profile__handle .v2-btn { min-height: 34px; padding-inline: 10px; }
#pf-handle-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 10px; margin: 8px 0 10px; }
#pf-handle-form > label, #pf-handle-hint { grid-column: 1 / -1; }
#pf-handle-form > label { margin: 0; }
#pf-handle-form > .v2-input { grid-column: 1; min-width: 0; }
#pf-handle-form > p:last-child { grid-column: 2; grid-row: 2; margin: 0; }
#pf-handle-form > p:last-child .v2-btn { min-height: 40px; white-space: nowrap; }
#pf-handle-hint { margin: 0; font-size: var(--font-size-xs); line-height: 1.35; }
#pf-handle-msg:empty { display: none; }
.v2-profile__id > div > p.v2-muted:not(.v2-profile__email) { line-height: 1.4; }
.v2-profile .v2-portal__badges { gap: 6px; margin-top: 8px; }
@media (max-width: 40rem) {
  .v2-profile__id { gap: 10px; }
  .v2-profile__id > .v2-avatar { width: 44px; height: 44px; }
  .v2-profile__id > div > p.v2-muted:not(.v2-profile__email) { font-size: var(--font-size-xs); margin: 6px 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .v2-profile__handle { gap: 6px; }
  .v2-profile__handle .v2-btn { min-height: 32px; font-size: var(--font-size-xs); }
  #pf-handle-form { gap: 5px 8px; }
}

/* Profil : conserver les quatre indicateurs d'activité en grille, même sur téléphone. */
.v2-profile [aria-labelledby="pf-activite"] .v2-dash-facts,
section[aria-labelledby="pf-activite"] .v2-dash-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 48rem) {
  section[aria-labelledby="pf-activite"] .v2-dash-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Profil : détails du compte en grille compacte sur téléphone, trois colonnes sur écran large. */
section[aria-labelledby="pf-details"] .v2-dash-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 48rem) {
  section[aria-labelledby="pf-details"] .v2-dash-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Téléphone : bouton « Envoyer des fichiers » et contenu moins gros (11/11/2026) ──
   Les règles `.v2-dash-body .v2-dash-send*` plus haut (44 px, grand padding) l'emportaient sur le bloc mobile :
   ce bloc final, plus spécifique, les reprend sur téléphone. Ordinateur inchangé. */
@media (max-width: 55.999rem) {
  html:has(body.v2-dash-body) { font-size: 15px; }
  body.v2-dash-body .v2-dash-send {
    gap: var(--space-3);
    padding: 8px 12px;
    border-radius: 12px;
    min-height: 0;
  }
  body.v2-dash-body .v2-dash-send__plus { width: 32px; height: 32px; }
  body.v2-dash-body .v2-dash-send__plus svg { width: 16px; height: 16px; }
  body.v2-dash-body .v2-dash-send__title { font-size: .9375rem; line-height: 1.25; }
  body.v2-dash-body .v2-dash-send__hint { font-size: .75rem; line-height: 1.25; }
  body.v2-dash-body .v2-card { padding: 12px; }
  body.v2-dash-body .v2-dash-hello__avatar { width: 40px; height: 40px; font-size: 1rem; }
  body.v2-dash-body h1 { font-size: 1.25rem; line-height: 1.3; }
}

/* ── Menu latéral de l'espace : même présentation que le tiroir du téléphone (11/11/2026) ──
   Barre de recherche, icônes en pastilles de couleur (une teinte par groupe), vrai logo Google Drive. */
.v2-dash-nav [data-nav-group="accueil"]   { --nav-hue: #4F8DFF; }
.v2-dash-nav [data-nav-group="envois"]    { --nav-hue: #38BDF8; }
.v2-dash-nav [data-nav-group="cloud"]     { --nav-hue: #FBBF24; }
.v2-dash-nav [data-nav-group="pilotage"]  { --nav-hue: #34D399; }
.v2-dash-nav [data-nav-group="pro"]       { --nav-hue: #A78BFA; }
.v2-dash-nav [data-nav-group="developpeur"] { --nav-hue: #FB923C; }
.v2-dash-nav [data-nav-group="compte"]    { --nav-hue: #F472B6; }
.v2-dash-nav [data-nav-group="corbeille"] { --nav-hue: #F87171; }
.v2-dash-nav [data-nav-group="site"]      { --nav-hue: #94A3B8; }

.v2-dash-nav .v2-dash-nav__list a svg:not(.v2-drive-logo) {
  width: 26px; height: 26px; padding: 5px; box-sizing: border-box; border-radius: 8px;
  color: var(--nav-hue, currentColor);
  background: color-mix(in srgb, var(--nav-hue, currentColor) 20%, transparent);
}
.v2-dash-nav .v2-dash-nav__list a svg.v2-drive-logo { width: 26px; height: 22.6px; padding: 0 2px; background: none; flex: none; }
.v2-dash-nav .v2-dash-nav__list a { min-height: 38px; }
.v2-dash-nav .v2-dash-nav__list a[aria-current="page"] svg:not(.v2-drive-logo) { background: color-mix(in srgb, var(--nav-hue, currentColor) 32%, transparent); }

.v2-dash-nav__search {
  display: flex; align-items: center; gap: 8px; margin: 0 var(--space-2) var(--space-3); padding: 0 10px; min-height: 42px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 12px;
  background: color-mix(in srgb, currentColor 8%, transparent); color: inherit;
}
.v2-dash-nav__search:focus-within { outline: 2px solid var(--color-focus, #8BB5FF); outline-offset: 1px; }
.v2-dash-nav__search-icon { flex: none; opacity: .7; }
.v2-dash-nav__search-input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: .875rem; outline: none; padding: 8px 0;
  -webkit-appearance: none; appearance: none;
}
.v2-dash-nav__search-input::placeholder { color: inherit; opacity: .6; }
.v2-dash-nav__search-input::-webkit-search-cancel-button { display: none; }
.v2-dash-nav__search-clear { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.v2-dash-nav__search-clear[hidden], .v2-dash-nav__empty[hidden] { display: none; }
.v2-dash-nav__empty { margin: 0 var(--space-3) var(--space-3); font-size: .8125rem; opacity: .7; }

/* Bouton « Aide contextuelle » : en bas à droite (à côté de la bulle de chat), il ne recouvre plus la barre du haut ni la bande d'actualité. */
@media (min-width: 56rem) {
  .v2-dash-help-drawer__trigger { top: auto; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: 88px; }
  .v2-dash-help-drawer[open] .v2-dash-help-drawer__trigger { top: 14px; bottom: auto; right: 18px; }
}

/* Statistiques — mise en page analytique adaptative, lisible sur téléphone et desktop. */
.v2-stats-metric { border: 1px solid var(--color-border); background: var(--color-surface); }
.v2-stats-metric > strong { letter-spacing: -.025em; }
.v2-stats-charts { grid-template-columns: minmax(0, 1fr); }
.v2-bars {
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 14px);
  background: var(--color-surface-2);
}
.v2-bars__header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); }
.v2-bars__title { min-width: 0; margin: 0; font-size: var(--font-size-sm); }
.v2-bars__total { flex: none; color: var(--color-text); font-size: var(--font-size-lg); font-variant-numeric: tabular-nums; }
.v2-line-chart { position: relative; padding-top: var(--space-4); }
.v2-line-chart__svg { display: block; width: 100%; height: clamp(145px, 22vw, 196px); overflow: visible; }
.v2-line-chart__grid { stroke: var(--color-border); stroke-width: 1; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.v2-line-chart__area { fill: color-mix(in srgb, var(--color-brand-strong) 15%, transparent); }
.v2-line-chart__line { fill: none; stroke: var(--color-brand-strong); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.v2-line-chart__dot { fill: var(--color-brand-strong); stroke: var(--color-surface-2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.v2-share-slug-preview { display: block; overflow-wrap: anywhere; color: var(--color-brand-ink); font-weight: var(--font-weight-medium); }
.v2-share-slug-preview[hidden] { display: none; }
@media (min-width: 48rem) {
  .v2-stats-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2-stats-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .v2-bars { padding: var(--space-4); }
}
@media (min-width: 80rem) {
  .v2-stats-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 26rem) {
  .v2-bars { padding: var(--space-2); }
  .v2-bars__total { font-size: var(--font-size-base); }
}


/* Planification — même studio visuel que « Envoyer », avec sélection locale ou Google Drive. */
.v2-plan-create-card {
  --sm-bg: var(--color-surface);
  --sm-surface: var(--color-surface);
  --sm-surface-2: var(--color-surface-2);
  border-radius: 18px;
  padding: var(--space-3);
}
@media (min-width: 48rem) {
  .v2-plan-create-card { max-width: 48rem; margin-inline: auto; padding: var(--space-5); }
}
.v2-plan-create-card .v2-card__title { font-size: var(--font-size-lg); font-weight: 800; letter-spacing: -.02em; }
.v2-plan-orb {
  display: block; text-align: center; padding: var(--space-4) var(--space-3);
  border: 0; border-radius: var(--radius-lg); background: radial-gradient(120% 90% at 50% 0%, var(--color-brand-soft), transparent 72%);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.v2-plan-orb__tip {
  display: inline-block; margin-bottom: var(--space-4); padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text); font-size: var(--font-size-sm); font-weight: 700;
}
.v2-plan-orb__rings {
  display: grid; place-items: center; width: 152px; height: 152px; margin: 0 auto; border-radius: 50%;
  background: color-mix(in srgb, var(--color-brand) 12%, transparent);
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--color-brand) 6%, transparent);
  transition: transform .18s ease;
}
.v2-plan-orb__btn {
  display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%;
  background: var(--color-surface); color: var(--color-brand-ink); box-shadow: var(--shadow-sm);
}
.v2-plan-orb__btn svg { width: 38px; height: 38px; }
.v2-plan-orb:hover .v2-plan-orb__rings, .v2-plan-orb.dragover .v2-plan-orb__rings { transform: scale(1.04); }
.v2-plan-orb:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.v2-plan-drop__title { display: block; margin-top: var(--space-3); }
.v2-plan-source-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-3); }
.v2-plan-source-actions .v2-btn { min-height: 44px; }
.v2-plan-source-actions .v2-drive-badge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.v2-plan-date-control { position: relative; }
.v2-plan-date-control input { width: 100%; min-height: 48px; padding-inline-end: 44px; }
.v2-plan-date-icon { position: absolute; inset-inline-end: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--color-text-muted); }
.v2-plan-create-card .v2-input, .v2-plan-create-card .v2-textarea { border-radius: 10px; }
.v2-plan-create-card .v2-btn { border-radius: 10px; font-weight: 700; }
.v2-plan-create-card .v2-plan-files { margin-top: var(--space-3); }
.v2-plan-create-card .v2-plan-list > li { border-radius: 12px; }
@media (max-width: 47.99rem) {
  .v2-plan-create-card .v2-input, .v2-plan-create-card .v2-textarea { font-size: 16px; }
  .v2-plan-source-actions .v2-btn { flex: 1 1 100%; justify-content: center; }
}

/* Mots de passe des fichiers (04/11/2026, views/v2/dashboard-file-passwords.ejs). */
.v2-fpv__items li { align-items: flex-start; }
.v2-fpv__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-2); margin-top: var(--space-2); }
.v2-fpv__panel > summary { list-style: none; cursor: pointer; }
.v2-fpv__panel > summary::-webkit-details-marker { display: none; }
.v2-fpv__panel[open] { flex-basis: 100%; }
.v2-fpv__panel form { margin-top: var(--space-2); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); max-width: 26rem; }
.v2-fpv__panel .v2-field { margin-bottom: var(--space-2); }
.v2-fpv__files ul { margin: var(--space-1) 0 0; padding-left: 1.25rem; font-size: var(--font-size-xs); }
.v2-fpv__files summary { cursor: pointer; font-size: var(--font-size-xs); }
.v2-fpv__verify { margin-top: var(--space-3); }
