/* 22 · TÉLÉPHONE À PLAT (02/11/2026, Lucas : « pas une version qui imitait iOS », « comme Vinteo, avec une barre sur le côté,
   plus simple ») - chargée en DERNIER, seulement sous 768 px (<link media="(max-width:767px)">) : rien ne change sur
   ordinateur. Même allure que BDRD X, le site mobile : bandeau plein avec un filet, ☰ et un titre de taille normale, menu
   qui glisse depuis la gauche (js/menu-telephone.js) à la place de la barre d'onglets du bas, plus aucun reflet ni ombre de
   verre. Les jetons de css/13-mobile-glass.css sont neutralisés ici plutôt que réécrits : pour revenir à l'ancienne
   interface, retirer cette feuille et js/menu-telephone.js d'index.html.
   Tout est aussi dans @media (max-width:767px), comme css/13-mobile-glass.css : scripts/v5-retirer-ancien.mjs y reconnaît
   des règles du téléphone. */
@media (max-width:767px){

/* 1. Plus de verre : surfaces pleines, filet neutre, aucun reflet ni ombre. Ombre « transparente » et non « none » : ces
   jetons servent dans des listes d'ombres (« reflet, ombre »), où « none » est refusé. */
:root{
  --glass-fill:var(--surface);
  --glass-fill-2:var(--surface);
  --glass-border:rgba(0,0,0,.08);
  --glass-highlight:0 0 0 transparent;
  --glass-shadow:0 0 0 transparent;
  --glass-shadow-sm:0 0 0 transparent;
}
:root[data-theme="dark"]{ --glass-border:rgba(255,255,255,.10); }
:root[data-theme] button.primary,
:root[data-theme] a.primary{ background:var(--accent); border-color:transparent; box-shadow:none; text-shadow:none; }

/* 2. Bandeau : plein, un filet dessous, ☰ puis le titre de taille normale (qui ne rétrécit plus au défilement), le compte à droite */
:root[data-theme] header.top,
:root[data-theme] header.top.scrolled{ box-shadow:inset 0 -1px 0 var(--glass-border); }
:root[data-theme] header.top .brand,
:root[data-theme] header.top.scrolled .brand{ font-size:20px; font-weight:650; letter-spacing:-.01em; transform:none; margin-right:auto; }

/* 3. Plus de barre d'onglets en bas ni de sous-onglets dans Vinted : tout passe par le menu */
#tabbar-row,
#vt-segmented{ display:none; }

/* 4. Menu latéral */
.menu-tel-bouton{
  position:relative; display:inline-flex; align-items:center; justify-content:center; flex:none;
  width:40px; height:40px; margin:0 6px 0 -8px; border:0; border-radius:10px; background:none; color:var(--text-primary);
}
.menu-tel-bouton svg{ width:22px; height:22px; }
.menu-tel-voile{
  position:fixed; inset:0; z-index:300; background:rgba(0,0,0,.36);
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.menu-tel{
  position:fixed; z-index:301; top:0; bottom:0; left:0; width:min(300px, 84vw);
  display:flex; flex-direction:column; background:var(--surface); color:var(--text-primary);
  box-shadow:inset -1px 0 0 var(--glass-border);
  padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  transform:translateX(-102%); visibility:hidden;
  transition:transform .24s cubic-bezier(.3,1,.4,1), visibility 0s linear .24s;
}
html.menu-tel-ouvert{ overflow:hidden; }
html.menu-tel-ouvert .menu-tel-voile{ opacity:1; pointer-events:auto; }
html.menu-tel-ouvert .menu-tel{ transform:none; visibility:visible; transition:transform .24s cubic-bezier(.3,1,.4,1); }
.menu-tel-tete{ display:flex; align-items:center; justify-content:space-between; padding:12px 8px 6px 18px; }
.menu-tel-logo{ display:flex; align-items:center; gap:9px; font-size:18px; font-weight:700; letter-spacing:-.01em; }
.menu-tel-fermer{ display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border:0; border-radius:10px; background:none; color:var(--text-muted); }
.menu-tel-fermer svg{ width:20px; height:20px; }
.menu-tel-liste{ flex:1; overflow-y:auto; overscroll-behavior:contain; padding:2px 10px 12px; }
.menu-tel-groupe + .menu-tel-groupe{ margin-top:14px; }
.menu-tel-titre{ padding:0 10px 4px; font-size:12.5px; font-weight:600; color:var(--text-muted); }
.menu-tel-item{
  position:relative; display:flex; align-items:center; gap:12px; width:100%; min-height:44px; padding:0 10px;
  border:0; border-radius:10px; background:none; color:var(--text-primary); font:inherit; font-size:16px; text-align:left;
}
.menu-tel-item svg{ width:20px; height:20px; flex:none; color:var(--text-muted); }
.menu-tel-item[aria-current="page"]{ background:color-mix(in srgb, var(--accent) 12%, transparent); color:var(--accent); font-weight:600; }
.menu-tel-item[aria-current="page"] svg{ color:var(--accent); }
.menu-tel-pied{ padding:8px 10px; box-shadow:inset 0 1px 0 var(--glass-border); }
.menu-tel-point{ position:absolute; top:9px; left:28px; width:8px; height:8px; border-radius:50%; background:#FF453A; }
.menu-tel-bouton .menu-tel-point{ top:7px; left:auto; right:6px; }
.menu-tel-point.hidden{ display:none; }
@media (prefers-reduced-motion:reduce){ .menu-tel, .menu-tel-voile, html.menu-tel-ouvert .menu-tel{ transition:none; } }

/* 5. Graphique des 14 derniers jours dans Statistiques (js/journal.js, vtJGraphe ; même dessin que sur ordinateur) */
.j-graphe{ margin:2px 0 14px; }
.j-graphe-choix{ display:flex; width:fit-content; max-width:100%; gap:2px; margin-bottom:10px; overflow-x:auto; padding:2px; border-radius:999px; background:var(--seg-piste); }
.j-graphe-choix button{ flex:none; height:30px; padding:0 12px; border:0; border-radius:999px; background:none; font:inherit; font-size:13.5px; font-weight:500; color:var(--text-secondary); }
.j-graphe-choix button[aria-pressed="true"]{ background:var(--seg-pilule); color:var(--seg-pilule-texte); font-weight:600; }
.j-graphe-zone{ position:relative; display:grid; grid-template-columns:repeat(14, 1fr); gap:2px; height:130px; padding-top:20px; margin-bottom:22px; box-shadow:inset 0 -1px 0 var(--glass-border); }
.j-col{ position:relative; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; min-width:0; }
.j-barre{ width:min(72%, 18px); background:var(--accent); border-radius:4px 4px 0 0; }
.j-val{ margin-bottom:4px; font-size:12px; font-weight:600; color:var(--text-primary); white-space:nowrap; }
.j-jour{ position:absolute; bottom:-19px; font-size:11px; color:var(--text-muted); }
.j-col[data-auj] .j-jour{ color:var(--text-primary); font-weight:600; }
.j-graphe-vide{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:13px; color:var(--text-muted); }

/* 6. Le réglage « Intensité du verre » n'a plus d'objet */
.st-row:has(.glass-intensity-row){ display:none; }

/* 7. Choix à options (03/11, Lucas : « All | Pending | Completed », « Day | Week | Month | Year ») : piste claire, choix actif en
   pastille sombre et texte blanc (thème sombre : pastille claire et texte sombre), les autres en texte gris, sans bordure ni ombre.
   Le curseur de verre qui glissait (js/glass-mobile.js) n'est plus montré : la pastille est posée sur le bouton choisi.
   .segmented.glass dans la liste : même poids que la règle « !important » de css/13-mobile-glass.css qu'il faut battre. */
:root{ --seg-piste:rgba(0,0,0,.045); --seg-pilule:color-mix(in srgb, var(--text-primary) 88%, var(--surface)); --seg-pilule-texte:var(--surface); }
:root[data-theme="dark"]{ --seg-piste:rgba(255,255,255,.07); }
.seg-thumb{ display:none !important; }
/* filtres de Messages et de Production : une ligne qui défile (sur deux lignes, la piste en capsule faisait une grosse bulle) */
:root[data-theme] :is(.vt-filtres, .prod-barre){ flex-wrap:nowrap !important; overflow-x:auto; scrollbar-width:none; }
:root[data-theme] :is(.vt-filtres, .prod-barre)::-webkit-scrollbar{ display:none; }
:root[data-theme] :is(.vt-filtres, .prod-barre) > *{ flex:none; }
:root[data-theme] :is(.segmented.glass, .segmented, .liens-mode, .prod-barre, .vt-filtres){
  background:var(--seg-piste) !important; border:0 !important; box-shadow:none !important; border-radius:999px;
}
:root[data-theme] :is(.segmented.glass, .segmented, .liens-mode, .prod-barre, .vt-filtres) > :is(button, [role="tab"]){
  border:0; border-radius:999px !important; background:none !important; box-shadow:none !important; color:var(--text-secondary); font-weight:500;
}
:root[data-theme] :is(.segmented.glass, .segmented, .liens-mode, .prod-barre, .vt-filtres) > :is(button, [role="tab"]):is([aria-pressed="true"], [aria-selected="true"], [aria-checked="true"], .active, .actif, .on){
  background:var(--seg-pilule) !important; color:var(--seg-pilule-texte) !important; font-weight:600;
}
/* « !important » et #fiches-filtre : battre le blanc / noir imposés par css/15-style-claude.css et le compteur violet de css/18-systeme-bdrd.css */
:root[data-theme] :is(#fiches-filtre, .segmented.glass, .segmented, .liens-mode, .prod-barre, .vt-filtres) > :is([aria-pressed="true"], [aria-selected="true"], .active, .actif, .on) :is(.cpt, small, b){ color:inherit !important; opacity:.7 !important; }

}
