/*
 * UDCShare — barre unique + tiroir unique du téléphone (ordre du propriétaire, 10/11/2026), modèle : appli Claude.
 * Téléphone (< 56rem) ET écran tactile en mode « site pour ordinateur » (Chrome Android, 56rem à 75rem) : bouton de menu à gauche,
 * logo au centre, actions à droite — la même barre et le même tiroir sur toutes les pages, publiques et privées, invité ou connecté.
 * Ordinateur à la souris : rien ne change (menu bureau, colonne latérale). La condition est reprise dans app-drawer.js (COMPACT).
 * Chargé après chrome.css : les sélecteurs reprennent son préfixe `html body:has(header.v2-header) header.v2-header` pour passer devant.
 */
.udc-appbar__menu, .udc-appbar__end, .udc-drawer { display: none; }

@media (max-width: 55.999rem), (hover: none) and (pointer: coarse) and (max-width: 75rem) {
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__bar {
    display: flex; align-items: center; gap: 8px; min-height: 56px;
    padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right));
  }

  /* Anciennes variantes masquées : ☰/✕ public, panneau privé, menu déroulant public, boutons doublons, bascule de thème (dans le tiroir). */
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__toggle,
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-touch-desktop-menu-toggle,
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__menu,
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__nav,
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__actions,
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__cta-mobile,
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__account-shortcut,
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-theme-toggle,
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-topbar__new,
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-topbar__upgrade,
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-topbar__m--phone,
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-topbar__help { display: none !important; }
  /* Colonne latérale de l'espace : remplacée par le tiroir unique. */
  html body.v2-dash-body .v2-dash-nav--side { display: none !important; }

  /* Administration : la console garde son contenu, mais plus sa barre du haut, son menu mobile ni sa barre du bas (remplacés par la barre et le tiroir uniques). */
  body:has(.udc-appbar--admin) .admin-bottomnav,
  body:has(.udc-appbar--admin) .hamburger-btn,
  body:has(.udc-appbar--admin) .mobile-menu,
  body:has(.udc-appbar--admin) .topbar-logo,
  body:has(.udc-appbar--admin) .sidebar,
  body:has(.udc-appbar--admin) .admin-theme { display: none !important; }

  /* Bouton de menu (gauche), logo (centre), actions (droite). */
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__menu {
    display: inline-flex !important; visibility: visible !important; opacity: 1 !important;
    order: 1 !important; flex: 0 0 44px !important; width: 44px; min-width: 44px; height: 44px; margin: 0 !important; padding: 0;
    align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: #EEF3FF !important;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__menu svg {
    display: block !important; visibility: visible !important; width: 24px; height: 24px; flex: 0 0 24px; color: currentColor;
  }
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__brand { order: 2 !important; margin-inline: auto !important; min-width: 0; flex-shrink: 1; }
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__end,
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-topbar__actions {
    order: 3 !important; display: flex !important; align-items: center; gap: 6px; flex: 0 1 auto !important; margin: 0 !important; min-width: 0;
  }
  .udc-appbar__menu:active, .udc-appbar__icon:active { background: rgba(255, 255, 255, .12); }
  .udc-appbar__menu:focus-visible, .udc-appbar__icon:focus-visible, .udc-appbar__avatar:focus-visible { outline: 3px solid #8BB5FF; outline-offset: 2px; }

  .udc-appbar__icon {
    position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: transparent; color: #EEF3FF; cursor: pointer; text-decoration: none;
  }
  .udc-appbar__icon svg { width: 22px; height: 22px; }
  .udc-appbar__avatar { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; }
  .udc-appbar__login {
    display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; color: #EEF3FF; font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap;
  }
  .udc-appbar__signup {
    display: inline-flex; align-items: center; min-height: 40px; padding-inline: 14px; border-radius: 999px; background: #4B8DF8; color: #fff;
    font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; flex-shrink: 0;
  }
  /* Invité : garder une seule action visible dans la barre. Connexion reste dans le tiroir,
     ce qui garantit la place du CTA d'inscription même sur les écrans étroits. */
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__login { display: none !important; }
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__end { flex: 0 0 auto !important; min-width: max-content; }
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__signup {
    min-height: 44px; padding-inline: 14px; flex: 0 0 auto; line-height: 1.1;
  }
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__brand {
    flex: 1 1 auto; display: flex; justify-content: center; min-width: 0;
  }
  /* Très petits téléphones (≤ 23.4em ≈ iPhone SE / Android compacts) : les deux boutons ne doivent jamais pousser
     « S'inscrire » hors de l'écran — on resserre d'abord le texte avant de réduire le logo. */
  @media (max-width: 23.4em) {
    html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__bar { gap: 4px; }
    .udc-appbar__login { padding-inline: 6px; font-size: .82rem; }
    .udc-appbar__signup { padding-inline: 10px; font-size: .82rem; min-height: 36px; }
  }
  /* Même taille et même rythme pour les icônes de l'espace privé (cloche, discussion). */
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-topbar__m { width: 44px; height: 44px; }
  .udc-appbar .v2-topbar__badge {
    position: absolute; top: 2px; inset-inline-end: 0; 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: #D92D20; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; border: 2px solid #162141;
  }
  .udc-appbar .v2-topbar__badge[hidden] { display: none; }

  /* ── Barre de recherche du tiroir ── */
  .udc-drawer__search-wrap { padding: 6px 12px 2px; }
  .udc-drawer__search-form {
    display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 40px; border-radius: 12px;
    background: var(--d-surface); border: 1px solid var(--d-border);
    transition: border-color .15s ease;
  }
  .udc-drawer__search-form:focus-within { border-color: var(--d-brand); }
  .udc-drawer__search-label { flex-shrink: 0; color: var(--d-muted); display: flex; align-items: center; cursor: text; }
  .udc-drawer__search-input {
    flex: 1; border: 0; background: transparent; color: var(--d-text); font: inherit; font-size: .875rem;
    outline: none; min-width: 0;
  }
  .udc-drawer__search-input::placeholder { color: var(--d-muted); }
  .udc-drawer__search-clear {
    flex-shrink: 0; width: 24px; height: 24px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.12); color: var(--d-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 0;
  }
  .udc-drawer__search-clear[hidden] { display: none; }

  /* ── Tiroir unique ── */
  .udc-drawer { position: fixed; inset: 0; z-index: 1200; display: block; }
  .udc-drawer[hidden] { display: none; }
  .udc-drawer__scrim { position: absolute; inset: 0; width: 100%; border: 0; background: var(--color-overlay, rgba(0, 0, 0, .6)); opacity: 0; transition: opacity .2s ease; cursor: default; }
  .udc-drawer__panel {
    /* Le tiroir suit le thème global (clair, sombre ou système), sans palette bleu nuit forcée. */
    --d-bg: var(--color-surface, #FFFFFF);
    --d-surface: var(--color-surface-2, #F7EFEA);
    --d-border: var(--color-border, #E3D5CE);
    --d-text: var(--color-text, #231A17);
    --d-muted: var(--color-text-muted, #66544E);
    --d-brand: var(--color-brand, #E91E63);
    position: absolute; inset-block: 0; inset-inline-start: 0; width: min(88vw, 340px); display: flex; flex-direction: column;
    background: var(--d-bg); color: var(--d-text); border-inline-end: 1px solid var(--d-border); border-radius: 0 20px 20px 0;
    padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateX(-100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); overflow: hidden;
  }
  [dir="rtl"] .udc-drawer__panel { transform: translateX(100%); border-radius: 20px 0 0 20px; }
  .udc-drawer.is-open .udc-drawer__scrim { opacity: 1; }
  .udc-drawer.is-open .udc-drawer__panel { transform: none; }
  html.udc-drawer-lock, html.udc-drawer-lock body { overflow: hidden; }

  .udc-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px 16px; }
  .udc-drawer__brand { display: inline-flex; align-items: center; color: #FF2D73; text-decoration: none; }
  .udc-drawer__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--d-text); cursor: pointer; }
  .udc-drawer__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 12px; }
  .udc-drawer__list { list-style: none; margin: 0 0 4px; padding: 0; }
  .udc-drawer__list a {
    display: flex; align-items: center; gap: 12px; min-height: 46px; padding-inline: 12px; border-radius: 12px;
    color: var(--d-text); text-decoration: none; font-weight: 500;
  }
  .udc-drawer__list a svg { flex: none; width: 18px; height: 18px; color: var(--d-muted); }
  .udc-drawer__list a:active { background: var(--d-surface); }
  .udc-drawer__list a[aria-current="page"] { background: color-mix(in srgb, var(--d-brand) 16%, var(--d-surface)); color: var(--d-text); font-weight: 700; }
  .udc-drawer__list a[aria-current="page"] svg { color: var(--d-brand); }
  .udc-drawer__list a:focus-visible, .udc-drawer__group > summary:focus-visible { outline: 3px solid #8BB5FF; outline-offset: -2px; }
  .udc-drawer__badge { margin-inline-start: auto; font-style: normal; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--d-surface); color: var(--d-muted); }
  .udc-drawer__title { margin: 14px 0 2px; padding-inline: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--d-muted); }
  .udc-drawer__group { margin-top: 6px; }
  .udc-drawer__group > summary {
    display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding-inline: 12px; list-style: none; cursor: pointer;
    font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--d-muted);
  }
  .udc-drawer__group > summary::-webkit-details-marker { display: none; }
  .udc-drawer__group > summary svg { transition: transform .2s ease; }
  .udc-drawer__group[open] > summary svg { transform: rotate(180deg); }

  /* ── Carte profil style Claude (haut du tiroir, utilisateur connecté) ── */
  .udc-drawer__profile-block { padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 8px; }
  .udc-drawer__profile-card {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
    background: var(--d-surface); border: 1px solid var(--d-border); text-decoration: none; color: var(--d-text);
    min-height: 60px;
  }
  .udc-drawer__profile-card:active { filter: brightness(1.1); }
  .udc-drawer__profile-avatar {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
    background: var(--d-brand); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; color: #fff;
  }
  .udc-drawer__profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .udc-drawer__profile-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .udc-drawer__profile-email { font-size: .82rem; font-weight: 500; color: var(--d-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .udc-drawer__profile-badge {
    display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px;
    background: rgba(255,255,255,.12); color: var(--d-muted); font-size: .7rem; font-weight: 700;
    width: fit-content; text-transform: uppercase; letter-spacing: .04em;
  }
  .udc-drawer__profile-chevron { flex-shrink: 0; color: var(--d-muted); }

  /* Carte upgrade style Claude */
  .udc-drawer__upgrade-card {
    padding: 14px 16px; border-radius: 14px; background: var(--d-surface); border: 1px solid var(--d-border);
    display: flex; flex-direction: column; gap: 6px;
  }
  .udc-drawer__upgrade-title { font-weight: 700; font-size: .9rem; color: var(--d-text); margin: 0; }
  .udc-drawer__upgrade-text { font-size: .8rem; color: var(--d-muted); margin: 0; line-height: 1.4; }
  .udc-drawer__upgrade-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding-inline: 16px;
    border-radius: 999px; background: var(--d-brand); color: var(--color-on-brand, #fff); font-weight: 700; font-size: .85rem; text-decoration: none;
    width: 100%; margin-top: 2px; box-sizing: border-box;
  }
  .udc-drawer__upgrade-btn:active { opacity: .85; }

  /* ── Items de liste plus grands (style Claude) ── */
  .udc-drawer__list a {
    display: flex; align-items: center; gap: 10px; min-height: 44px; padding-inline: 12px; border-radius: 11px;
    color: var(--d-text); text-decoration: none; font-weight: 500; font-size: .84rem;
  }
  .udc-drawer__list a svg { flex: none; width: 20px; height: 20px; color: var(--d-muted); }
  .udc-drawer__list a:active { background: var(--d-surface); }
  .udc-drawer__list a[aria-current="page"] { background: color-mix(in srgb, var(--d-brand) 16%, var(--d-surface)); color: var(--d-text); font-weight: 700; }
  .udc-drawer__list a[aria-current="page"] svg { color: var(--d-brand); }
  /* Icône dans cercle style Claude */
  .udc-drawer__list a .v2-icon-wrap,
  .udc-drawer__list a > svg:first-child {
    flex-shrink: 0; width: 29px; height: 29px; border-radius: 8px;
    background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center;
  }


  /* Icônes de navigation en couleur : palette cohérente, lisible en clair comme en sombre. */
  .udc-drawer__list a svg.udc-menu-icon { color: var(--udc-icon-color, #64748B); background: var(--udc-icon-bg, rgba(100,116,139,.10)); padding: 6px; box-sizing: border-box; }
  .udc-drawer__list a[aria-current="page"] svg.udc-menu-icon { color: var(--udc-icon-color, #64748B); background: var(--udc-icon-bg, rgba(100,116,139,.14)); }
  .udc-drawer__list a svg.udc-menu-icon--home,
  .udc-drawer__list a svg.udc-menu-icon--send,
  .udc-drawer__list a svg.udc-menu-icon--upload,
  .udc-drawer__list a svg.udc-menu-icon--download { --udc-icon-color:#2563EB; --udc-icon-bg:rgba(37,99,235,.12); }
  .udc-drawer__list a svg.udc-menu-icon--inbox,
  .udc-drawer__list a svg.udc-menu-icon--mail,
  .udc-drawer__list a svg.udc-menu-icon--bell,
  .udc-drawer__list a svg.udc-menu-icon--chat,
  .udc-drawer__list a svg.udc-menu-icon--message-circle { --udc-icon-color:#D97706; --udc-icon-bg:rgba(217,119,6,.13); }
  .udc-drawer__list a svg.udc-menu-icon--file,
  .udc-drawer__list a svg.udc-menu-icon--files,
  .udc-drawer__list a svg.udc-menu-icon--folder,
  .udc-drawer__list a svg.udc-menu-icon--folder_plus,
  .udc-drawer__list a svg.udc-menu-icon--copy { --udc-icon-color:#0D9488; --udc-icon-bg:rgba(13,148,136,.13); }
  .udc-drawer__list a svg.udc-menu-icon--user,
  .udc-drawer__list a svg.udc-menu-icon--users,
  .udc-drawer__list a svg.udc-menu-icon--graduation_cap { --udc-icon-color:#7C3AED; --udc-icon-bg:rgba(124,58,237,.13); }
  .udc-drawer__list a svg.udc-menu-icon--shield,
  .udc-drawer__list a svg.udc-menu-icon--shield-check,
  .udc-drawer__list a svg.udc-menu-icon--lock,
  .udc-drawer__list a svg.udc-menu-icon--fingerprint { --udc-icon-color:#059669; --udc-icon-bg:rgba(5,150,105,.13); }
  .udc-drawer__list a svg.udc-menu-icon--settings,
  .udc-drawer__list a svg.udc-menu-icon--sliders,
  .udc-drawer__list a svg.udc-menu-icon--key { --udc-icon-color:#6366F1; --udc-icon-bg:rgba(99,102,241,.13); }
  .udc-drawer__list a svg.udc-menu-icon--calendar,
  .udc-drawer__list a svg.udc-menu-icon--clock,
  .udc-drawer__list a svg.udc-menu-icon--gauge,
  .udc-drawer__list a svg.udc-menu-icon--chart,
  .udc-drawer__list a svg.udc-menu-icon--poll { --udc-icon-color:#0891B2; --udc-icon-bg:rgba(8,145,178,.13); }
  .udc-drawer__list a svg.udc-menu-icon--tag,
  .udc-drawer__list a svg.udc-menu-icon--wallet,
  .udc-drawer__list a svg.udc-menu-icon--payments { --udc-icon-color:#CA8A04; --udc-icon-bg:rgba(202,138,4,.14); }
  .udc-drawer__list a svg.udc-menu-icon--trash,
  .udc-drawer__list a svg.udc-menu-icon--alert,
  .udc-drawer__list a svg.udc-menu-icon--logout { --udc-icon-color:#E11D48; --udc-icon-bg:rgba(225,29,72,.12); }
  .udc-drawer__list a svg.udc-menu-icon--globe,
  .udc-drawer__list a svg.udc-menu-icon--link,
  .udc-drawer__list a svg.udc-menu-icon--share { --udc-icon-color:#0D9488; --udc-icon-bg:rgba(13,148,136,.13); }

  /* Sections groupées en cartes */
  .udc-drawer__group { margin-top: 4px; }
  .udc-drawer__group > summary {
    display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding-inline: 14px; list-style: none; cursor: pointer;
    font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--d-muted);
  }
  .udc-drawer__group > summary svg { transition: transform .2s ease; }
  .udc-drawer__group[open] > summary svg { transform: rotate(180deg); }

  /* Pied simplifié */
  .udc-drawer__foot { padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--d-border); display: flex; flex-direction: column; gap: 10px; }
  .udc-drawer__theme { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--d-surface); }
  .udc-drawer__theme button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--d-muted); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
  .udc-drawer__theme button[aria-pressed="true"] { background: var(--d-brand); color: var(--color-on-brand, #fff); }
  .udc-drawer__logout {
    display: flex; align-items: center; gap: 10px; min-height: 48px; padding-inline: 14px; border-radius: 13px;
    border: 1px solid rgba(255,100,120,.35); color: #FF8FA8; text-decoration: none; font-weight: 600; font-size: .9rem;
    width: 100%; box-sizing: border-box;
  }
  .udc-drawer__logout svg { width: 18px; height: 18px; flex-shrink: 0; }
  .udc-drawer__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .udc-drawer__cta a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding-inline: 14px; border-radius: 12px;
    border: 1px solid var(--d-border); color: var(--d-text); text-decoration: none; font-weight: 600; font-size: .9rem;
  }
  .udc-drawer__cta a.udc-drawer__cta-primary { background: var(--d-brand); border-color: var(--d-brand); color: var(--color-on-brand, #fff); }
  .udc-drawer__cta svg { width: 18px; height: 18px; }

  /* La barre du bas des visiteurs ne se superpose pas au tiroir ouvert, la bulle de chat non plus. */
  html.udc-drawer-lock .udc-app-nav, html.udc-drawer-lock #chat-widget-toggle { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .udc-drawer__scrim, .udc-drawer__panel, .udc-drawer__group > summary svg { transition: none; }
}

/* Tiroir du téléphone : icônes en pastilles de couleur (une teinte par groupe), comme le menu latéral de l'ordinateur (11/11/2026). */
@media (max-width: 55.999rem), (hover: none) and (pointer: coarse) and (max-width: 75rem) {
  .udc-drawer [data-nav-group="envois"]      { --nav-hue: #38BDF8; }
  .udc-drawer [data-nav-group="cloud"]       { --nav-hue: #FBBF24; }
  .udc-drawer [data-nav-group="pilotage"]    { --nav-hue: #34D399; }
  .udc-drawer [data-nav-group="pro"]         { --nav-hue: #A78BFA; }
  .udc-drawer [data-nav-group="developpeur"] { --nav-hue: #FB923C; }
  .udc-drawer [data-nav-group="compte"]      { --nav-hue: #F472B6; }
  .udc-drawer [data-nav-group="site"]        { --nav-hue: #94A3B8; }
  .udc-drawer__group .udc-drawer__list a svg:not(.v2-drive-logo) {
    width: 28px; height: 28px; padding: 6px; box-sizing: border-box; border-radius: 8px;
    color: var(--nav-hue, var(--d-muted)); background: color-mix(in srgb, var(--nav-hue, var(--d-muted)) 20%, transparent);
  }
  .udc-drawer__group .udc-drawer__list a svg.v2-drive-logo { width: 28px; height: 24px; padding: 0 2px; flex: none; }
}


/* Tiroir mobile : profil, promotion et pied moins encombrants (navigation d'abord). */
@media (max-width: 55.999rem), (hover: none) and (pointer: coarse) and (max-width: 75rem) {
  .udc-drawer__head { padding: 6px 10px 2px 14px; min-height: 44px; }
  .udc-drawer__brand .v2-header__brand-mark { transform: scale(.88); transform-origin: left center; }
  .udc-drawer__profile-block { padding: 5px 10px 2px; gap: 5px; }
  .udc-drawer__profile-card { min-height: 48px; padding: 8px 10px; gap: 8px; border-radius: 11px; }
  .udc-drawer__profile-avatar { width: 34px; height: 34px; }
  .udc-drawer__profile-avatar img { width: 34px; height: 34px; }
  .udc-drawer__profile-email { font-size: .78rem; }
  .udc-drawer__profile-badge { font-size: .64rem; padding: 0 6px; }
  /* Conserver l'accès à l'offre sans le bloc marketing haut qui repousse les rubriques. */
  .udc-drawer__upgrade-card { padding: 7px 9px; gap: 0; border-radius: 10px; }
  .udc-drawer__upgrade-title, .udc-drawer__upgrade-text { display: none; }
  .udc-drawer__upgrade-btn { min-height: 34px; margin: 0; font-size: .8rem; }
  .udc-drawer__search-wrap { padding: 4px 10px 1px; }
  .udc-drawer__search-form { height: 36px; border-radius: 10px; }
  .udc-drawer__scroll { padding: 2px 8px 8px; }
  .udc-drawer__title { margin: 8px 0 1px; padding-inline: 10px; font-size: .65rem; }
  .udc-drawer__group { margin-top: 2px; }
  .udc-drawer__group > summary { min-height: 32px; padding-inline: 10px; }
  .udc-drawer__list a { min-height: 40px; padding-inline: 10px; gap: 8px; font-size: .82rem; }
  .udc-drawer__foot { padding: 6px 10px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
  .udc-drawer__theme { gap: 3px; padding: 3px; border-radius: 9px; }
  .udc-drawer__theme button { min-height: 30px; font-size: .76rem; border-radius: 7px; }
  .udc-drawer__logout { min-height: 40px; padding-inline: 11px; border-radius: 10px; font-size: .82rem; }
  .udc-drawer__cta { gap: 6px; }
  .udc-drawer__cta a { min-height: 40px; padding-inline: 8px; gap: 5px; font-size: .82rem; border-radius: 10px; }
}


/* CTA invité : taille plus discrète dans la barre et libellé du tiroir sur une seule ligne. */
@media (max-width: 55.999rem), (hover: none) and (pointer: coarse) and (max-width: 75rem) {
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__signup {
    min-height: 36px; padding-inline: 10px; font-size: .8rem; line-height: 1; border-radius: 10px;
  }
  .udc-drawer__cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .udc-drawer__cta a { min-width: 0; padding-inline: 5px; gap: 4px; font-size: .76rem; white-space: nowrap; }
  .udc-drawer__cta a span { white-space: nowrap; }
  .udc-drawer__cta svg { width: 16px; height: 16px; flex: 0 0 16px; }
}
@media (max-width: 23.4em) {
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__signup { min-height: 34px; padding-inline: 8px; font-size: .76rem; }
  .udc-drawer__cta a { font-size: .7rem; gap: 3px; }
}

/* Barre mobile : rapprocher légèrement le bouton hamburger du bord gauche. */
@media (max-width: 55.999rem), (hover: none) and (pointer: coarse) and (max-width: 75rem) {
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__menu { transform: translateX(-4px); }
}
