/* ==========================================================================
   menu-v8.css — Nouveau drawer OneProspect (maquette menu_v8 validée 2026-06-09)
   TOUT est scopé sous #drawer-navigation : zéro collision avec le reste de l'app.
   Code couleur canonique (product/code_couleur.md) :
     ROSE #d946ef = annonces/Actualité · ORANGE #f59e0b = à revoir ·
     ROUGE #ef4444 = rues chaudes/DPE · VIOLET #7c3aed = boîtage/flyers SEUL.
   Bandeaux filtres : DVF cyan #06b6d4 · PRO vert #15803d · ADEME rouge #ef4444 ·
   VENTE fuchsia #d946ef (les .data-module existants sont recolorés ci-dessous).
   ========================================================================== */

#drawer-navigation {
  --op8-ink: #0f172a;
  --op8-ink-soft: #334155;
  --op8-ink-faint: #94a3b8;
  --op8-muted: #64748b;
  --op8-line: rgba(15, 23, 42, 0.10);
  --op8-line-soft: rgba(15, 23, 42, 0.06);
  --op8-slate-bg: #f1f5f9;
  --op8-rose: #d946ef;
  --op8-rose-d: #a21caf;
  --op8-rose-bg: #fdf4ff;
  --op8-orange: #f59e0b;
  --op8-orange-bg: #fff7ed;
  --op8-red: #ef4444;
  --op8-red-bg: #fef2f2;
  --op8-violet: #7c3aed;
  --op8-violet-bg: #f5f3ff;
  --op8-f-dvf: #06b6d4;
  --op8-f-pro: #15803d;
  --op8-f-ademe: #ef4444;
  --op8-f-vente: #d946ef;
  /* RUES CHAUDES : écarlate SOMBRE tirant vers le noir (retour Nicolas 2026-06-13).
     Avant = bordeaux #be123c, jugé trop proche du rouge vif. Maintenant #5b0e14
     pour DISTINGUER du rouge vif ADEME/DPE #ef4444. code_couleur.md §3bis MAJ après validation. */
  --op8-hotstreets: #5b0e14;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--op8-ink);
}

/* --- entête --- */
#drawer-navigation .op8-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 12px;
  border-bottom: 1px solid var(--op8-line);
}
#drawer-navigation .op8-brand { display: flex; align-items: center; gap: 9px; }
#drawer-navigation .op8-logo {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 13px;
}
#drawer-navigation .op8-brandline {
  font-size: 10px; font-weight: 600; color: var(--op8-ink-faint);
  text-transform: uppercase; letter-spacing: 0.08em;
}
#drawer-navigation .op8-title { font-size: 17px; font-weight: 700; color: var(--op8-ink); display: block; line-height: 1.1; }
#drawer-navigation .op8-x {
  width: 34px; height: 34px; border: none; background: transparent; border-radius: 8px;
  cursor: pointer; color: var(--op8-muted);
  display: flex; align-items: center; justify-content: center;
}
#drawer-navigation .op8-x:hover { background: var(--op8-slate-bg); color: var(--op8-ink); }

#drawer-navigation .op8-body { padding: 6px 0 20px; }
#drawer-navigation .op8-list { list-style: none; margin: 0; padding: 0; }

/* --- blocs --- */
#drawer-navigation .op8-block { margin-top: 14px; }
#drawer-navigation .op8-block:first-child { margin-top: 6px; }
#drawer-navigation .op8-block-head {
  display: flex; align-items: center; gap: 8px; padding: 4px 4px 8px;
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--op8-ink);
}
#drawer-navigation .op8-bico { width: 15px; height: 15px; color: var(--op8-ink); flex: 0 0 auto; }
#drawer-navigation .op8-rule { flex: 1; height: 1px; background: var(--op8-line-soft); }

/* --- tuiles --- */
#drawer-navigation .op8-tile {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  cursor: pointer; background: #fff; border: 1px solid var(--op8-line-soft);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
  font: inherit; color: var(--op8-ink); text-decoration: none;
  position: relative; /* [MENUFIX2 P1-VA] anchor pour .op8-tile-badge */
}
#drawer-navigation .op8-tile:hover {
  border-color: var(--op8-line);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}
#drawer-navigation .op8-bicon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background: var(--op8-slate-bg); color: var(--op8-ink-soft);
}
#drawer-navigation .op8-bicon svg { width: 19px; height: 19px; }
#drawer-navigation .op8-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#drawer-navigation .op8-t { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
#drawer-navigation .op8-s { font-size: 11px; color: var(--op8-ink-soft); margin-top: 2px; line-height: 1.25; }
#drawer-navigation .op8-chev { width: 16px; height: 16px; color: var(--op8-ink-faint); flex: 0 0 auto; }
#drawer-navigation .op8-c-rose .op8-bicon { background: var(--op8-rose-bg); color: var(--op8-rose); }
#drawer-navigation .op8-c-orange .op8-bicon { background: var(--op8-orange-bg); color: #c2740a; }
#drawer-navigation .op8-c-red .op8-bicon { background: var(--op8-red-bg); color: #dc2626; }
#drawer-navigation .op8-c-violet .op8-bicon { background: var(--op8-violet-bg); color: var(--op8-violet); }
/* FIX 2026-06-11 (M6) : tuile « Biens de sociétés » — vert PRO #15803d */
#drawer-navigation .op8-c-vert .op8-bicon { background: #dcfce7; color: #15803d; }
#drawer-navigation .op8-vert-t { color: #15803d; font-weight: 700; }
/* [MENU-AG 2026-06-11] MENU-A : classe émeraude « Signaux QR » (#059669, à ratifier).
   Préparée sur le patron des 4 existantes (rose/orange/red/violet), op8-bicon.
   Émeraude #059669 DISTINCT du vert PRO #15803d (PM). Aucune 7e couleur inventée. */
#drawer-navigation .op8-c-emeraude .op8-bicon { background: #ecfdf5; color: #059669; }
#drawer-navigation .op8-emeraude-t { color: #059669; font-weight: 700; }
#drawer-navigation .op8-rose-t { color: var(--op8-rose-d); font-weight: 700; }
#drawer-navigation .op8-violet-t { color: var(--op8-violet); }
#drawer-navigation .op8-ownertag { font-size: 10px; color: #94a3b8; font-weight: 600; }

/* [FLYER3 2026-06-12] (G) sous-menu « Mes flyers QR » INTÉGRÉ (retour Nicolas :
   l'accordéon nu « écrit vite fait » devient un rail de sous-tuiles de la même
   famille visuelle que les tuiles op8 — fond violet très pâle rattaché à la
   tuile parente, rangées avec icône, titre + sous-titre, chevron). */
#drawer-navigation .op8-sub {
  list-style: none; margin: -4px 0 8px; padding: 6px 8px 8px;
  background: var(--op8-violet-bg);
  border: 1px solid var(--op8-line-soft); border-top: none;
  border-radius: 0 0 12px 12px;
}
#drawer-navigation .op8-sub.hidden { display: none; }
#drawer-navigation .op8-sub li + li { margin-top: 6px; }
#drawer-navigation .op8-sub-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  cursor: pointer; background: #fff; border: 1px solid var(--op8-line-soft);
  border-radius: 10px; padding: 8px 10px;
  font: inherit; color: var(--op8-ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
#drawer-navigation .op8-sub-row:hover {
  border-color: var(--op8-line);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}
#drawer-navigation .op8-sub-ic {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--op8-violet-bg); color: var(--op8-violet);
}
#drawer-navigation .op8-sub-ic svg { width: 16px; height: 16px; }
/* [MENUFIX2 2026-06-13] .op8-sub-emeraude .op8-sub-ic supprimé (classe plus assignée au DOM) */
#drawer-navigation .op8-sub-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#drawer-navigation .op8-sub-t { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
#drawer-navigation .op8-sub-s { font-size: 10.5px; color: var(--op8-ink-soft); margin-top: 1px; line-height: 1.25; }
#drawer-navigation .op8-sub .op8-chev { width: 14px; height: 14px; }

/* --- widget Ma semaine --- */
#drawer-navigation .op8-week {
  margin: 2px 0 10px; border-radius: 14px; padding: 13px 13px 11px;
  background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12); cursor: pointer;
  border: none; display: block; width: 100%; text-align: left; font: inherit;
}
#drawer-navigation .op8-wt { display: flex; align-items: center; gap: 9px; }
#drawer-navigation .op8-wic {
  width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
#drawer-navigation .op8-wic svg { width: 18px; height: 18px; }
#drawer-navigation .op8-wname { font-size: 14px; font-weight: 700; display: block; color: #fff; }
#drawer-navigation .op8-wsub { font-size: 10.5px; color: #cbd5e1; margin-top: 1px; display: block; }
#drawer-navigation .op8-days { display: flex; gap: 5px; margin-top: 11px; }
#drawer-navigation .op8-day { flex: 1; text-align: center; background: rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 6px 0 7px; }
#drawer-navigation .op8-day .dd { font-size: 9px; color: #94a3b8; font-weight: 600; }
#drawer-navigation .op8-day .dn { font-size: 13px; font-weight: 800; margin-top: 2px; color: #fff; }
#drawer-navigation .op8-day.act { background: rgba(255, 255, 255, 0.22); }
#drawer-navigation .op8-day.act .dd { color: #e2e8f0; }
#drawer-navigation .op8-wlegend { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; font-size: 9px; color: #cbd5e1; }
#drawer-navigation .op8-wlegend i { display: inline-flex; align-items: center; gap: 4px; font-style: normal; }
#drawer-navigation .op8-wlegend i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
#drawer-navigation .op8-wcta { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; font-size: 12px; font-weight: 700; color: #fff; }
#drawer-navigation .op8-go { background: rgba(255, 255, 255, 0.16); border-radius: 8px; padding: 4px 10px; font-size: 11px; }

/* --- carte secteur (Mon compte) --- */
#drawer-navigation .op8-sector {
  margin: 0 0 8px; border: 1px solid var(--op8-line-soft); border-radius: 14px;
  padding: 12px 13px; background: #fff;
}
#drawer-navigation .op8-sector-head { font-size: 12.5px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
#drawer-navigation .op8-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#drawer-navigation .op8-chip {
  font-size: 11px; font-weight: 600; border-radius: 999px; padding: 4px 10px 4px 9px;
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--op8-line);
  background: #fff; color: var(--op8-ink-soft);
}
#drawer-navigation .op8-chip .cdot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
#drawer-navigation .op8-chip.add { background: var(--op8-slate-bg); cursor: pointer; font-weight: 700; }
#drawer-navigation .op8-chip.add:hover { background: #e2e8f0; }
#drawer-navigation .op8-chip.add svg { width: 12px; height: 12px; }
#drawer-navigation .op8-note { font-size: 10px; color: var(--op8-muted); margin-top: 9px; line-height: 1.35; }

/* --- sous-page « en construction » --- */
#drawer-navigation .op8-subpage {
  position: absolute; inset: 0; background: #fff; z-index: 30;
  display: flex; flex-direction: column; min-height: 0;
}
#drawer-navigation .op8-subpage[hidden] { display: none; }
#drawer-navigation .op8-sp-head {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 14px; border-bottom: 1px solid var(--op8-line);
}
#drawer-navigation .op8-back {
  width: 34px; height: 34px; border: 1px solid var(--op8-line); border-radius: 9px;
  background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--op8-ink-soft);
}
#drawer-navigation .op8-sp-title { font-size: 15px; font-weight: 700; }
#drawer-navigation .op8-sp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px; }
#drawer-navigation .op8-sp-body p { color: var(--op8-muted); font-size: 13px; line-height: 1.5; margin-top: 12px; }
#drawer-navigation .op8-concept {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px;
  padding: 14px; color: #9a3412; font-size: 13px; font-weight: 600;
}

/* ==========================================================================
   Bandeaux colorés v8 sur les modules de filtres EXISTANTS (markup intact).
   Fond pastel translucide + bordure (valeurs mesurées de la maquette).
   ========================================================================== */
#drawer-navigation .data-module--dvf   { background: rgba(6, 182, 212, 0.12);  border: 1px solid rgba(6, 182, 212, 0.28);  border-radius: 10px; }
#drawer-navigation .data-module--pro   { background: rgba(22, 163, 74, 0.10);  border: 1px solid rgba(22, 163, 74, 0.26);  border-radius: 10px; }
#drawer-navigation .data-module--ademe { background: rgba(239, 68, 68, 0.10);  border: 1px solid rgba(239, 68, 68, 0.26);  border-radius: 10px; }
#drawer-navigation .data-module--sale  { background: rgba(217, 70, 239, 0.10); border: 1px solid rgba(217, 70, 239, 0.26); border-radius: 10px; }
#drawer-navigation .data-module--sale .switch-label { color: var(--op8-f-vente); }
/* MODIF 2026-06-10 (corrigé) : bandeau RUES CHAUDES = pattern commun + BORDEAUX
   #BE123C mesuré sur la heatmap (PAS le rouge ADEME #ef4444). cf. code_couleur.md §3bis */
#drawer-navigation .data-module--hotspots { background: rgba(91, 14, 20, 0.10); border: 1px solid rgba(91, 14, 20, 0.26); border-radius: 10px; }
/* [FILTRES 2026-06-13] label RUES CHAUDES en encre #0f172a (comme DVF/PRO/ADEME) : plus de couleur qui détonne. */
/* switch ON bordeaux (calqué sur #ademe-ui mais teinte rues chaudes mesurée) */
#drawer-navigation #hotspots-ui .switch-toggle input[type="checkbox"]:checked + label::before {
  left: 36px;
  content: "ON";
  color: #fff;
  background-color: var(--op8-hotstreets);
  box-shadow:
    -2px -2px 4px rgba(255, 255, 255, 0.22),
    2px 2px 8px rgba(91, 14, 20, 0.55);
}

/* volets de critères : fond clair lisible sur bandeau pastel */
#drawer-navigation .data-module__body { background: rgba(255, 255, 255, 0.78); border-radius: 0 0 10px 10px; }

/* v8 : sélections internes prennent la couleur du module (accent-color, markup intact) */
#drawer-navigation .data-module--dvf   input[type="checkbox"] { accent-color: var(--op8-f-dvf); }
#drawer-navigation .data-module--pro   input[type="checkbox"] { accent-color: var(--op8-f-pro); }
#drawer-navigation .data-module--ademe input[type="checkbox"] { accent-color: var(--op8-f-ademe); }
#drawer-navigation .data-module--sale  input[type="checkbox"]:not([data-sale-state]) { accent-color: var(--op8-f-vente); }


/* ==========================================================================
   [MENUPOLISH 2026-06-12] Retouche du Train 3 — verdict Nicolas in vivo (soir)
   1) OR SCINTILLANT : la référence ADORÉE est le bloc « Nouveautés du jour »
      de la Veille (actualite.ui.js .actu-gold-section) — même teinte
      (#fef3c7 -> #fde68a, bordure #d4a017), même BALAYAGE lumineux (sweep 45°,
      4s linéaire infini). Remplace l'or profond mat #7a5c0a (rejeté).
   2) Tuiles missions : MÊMES FAMILLES canoniques (le repère, code_couleur.md),
      en PASTEL DÉGRADÉ (le plein = criard). La couleur PLEINE vit dans la
      pastille d'icône ; titres ENCRE (contraste plein soleil, §6.5 : jamais
      une couleur approximative d'une autre famille).
   3) Plus aucune tuile toute blanche : neutres = grisé doux, même construction
      dégradée (touches identiques dans tout le menu).
   4) Chevrons : CÔTÉ = navigation · BAS = accordéon (pivote ouvert) · RIEN =
      action directe.
   ========================================================================== */

/* --- (2) tuiles missions : pastel dégradé, famille canonique conservée --- */
#drawer-navigation .op8-c-rose,
#drawer-navigation .op8-c-orange,
#drawer-navigation .op8-c-red,
#drawer-navigation .op8-c-violet,
#drawer-navigation .op8-c-vert {
  color: var(--op8-ink);
  border: 1px solid;
}
#drawer-navigation .op8-c-orange { background: linear-gradient(135deg, rgba(245, 158, 11, .07), rgba(245, 158, 11, .26)); border-color: rgba(245, 158, 11, .38); }
#drawer-navigation .op8-c-red    { background: linear-gradient(135deg, rgba(239, 68, 68, .06),  rgba(239, 68, 68, .22));  border-color: rgba(239, 68, 68, .34); }
#drawer-navigation .op8-c-rose   { background: linear-gradient(135deg, rgba(217, 70, 239, .06), rgba(217, 70, 239, .20)); border-color: rgba(217, 70, 239, .32); }
#drawer-navigation .op8-c-violet { background: linear-gradient(135deg, rgba(124, 58, 237, .06), rgba(124, 58, 237, .18)); border-color: rgba(124, 58, 237, .30); }
#drawer-navigation .op8-c-vert   { background: linear-gradient(135deg, rgba(21, 128, 61, .06),  rgba(21, 128, 61, .18));  border-color: rgba(21, 128, 61, .30); }

/* titres ENCRE — les classes colorées historiques s'alignent (uniformité) */
#drawer-navigation .op8-c-rose .op8-t,   #drawer-navigation .op8-c-orange .op8-t,
#drawer-navigation .op8-c-red .op8-t,    #drawer-navigation .op8-c-violet .op8-t,
#drawer-navigation .op8-c-vert .op8-t,
#drawer-navigation .op8-rose-t, #drawer-navigation .op8-violet-t, #drawer-navigation .op8-vert-t {
  color: var(--op8-ink); font-weight: 700; text-shadow: none;
}
#drawer-navigation .op8-c-rose .op8-s,   #drawer-navigation .op8-c-orange .op8-s,
#drawer-navigation .op8-c-red .op8-s,    #drawer-navigation .op8-c-violet .op8-s,
#drawer-navigation .op8-c-vert .op8-s { color: var(--op8-ink-soft); text-shadow: none; opacity: 1; }

/* la couleur CANONIQUE PLEINE vit dans la pastille d'icône (repère famille) */
#drawer-navigation .op8-c-orange .op8-bicon { background: var(--op8-orange); color: #fff; }
#drawer-navigation .op8-c-red .op8-bicon    { background: var(--op8-red);    color: #fff; }
#drawer-navigation .op8-c-rose .op8-bicon   { background: var(--op8-rose);   color: #fff; }
#drawer-navigation .op8-c-violet .op8-bicon { background: var(--op8-violet); color: #fff; }
#drawer-navigation .op8-c-vert .op8-bicon   { background: #15803d;           color: #fff; }

/* chevron au ton sombre de la famille */
#drawer-navigation .op8-c-orange .op8-chev { color: #c2740a; }
#drawer-navigation .op8-c-red .op8-chev    { color: #dc2626; }
#drawer-navigation .op8-c-rose .op8-chev   { color: var(--op8-rose-d); }
#drawer-navigation .op8-c-violet .op8-chev { color: var(--op8-violet); }
#drawer-navigation .op8-c-vert .op8-chev   { color: #15803d; }

#drawer-navigation .op8-c-rose:hover,
#drawer-navigation .op8-c-orange:hover,
#drawer-navigation .op8-c-red:hover,
#drawer-navigation .op8-c-violet:hover,
#drawer-navigation .op8-c-vert:hover {
  filter: none;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .10);
}

/* --- (2) sous-tuiles « Mes flyers QR » / « Signaux » : mêmes familles pastel --- */
#drawer-navigation .op8-sub { background: rgba(124, 58, 237, .07); }
#drawer-navigation .op8-sub-row {
  background: linear-gradient(135deg, rgba(124, 58, 237, .05), rgba(124, 58, 237, .16));
  border: 1px solid rgba(124, 58, 237, .28);
  color: var(--op8-ink);
}
#drawer-navigation .op8-sub-row .op8-sub-t { color: var(--op8-ink); text-shadow: none; }
#drawer-navigation .op8-sub-row .op8-sub-s { color: var(--op8-ink-soft); text-shadow: none; opacity: 1; }
#drawer-navigation .op8-sub-ic { background: var(--op8-violet); color: #fff; }
#drawer-navigation .op8-sub-row .op8-chev { color: var(--op8-violet); }
#drawer-navigation .op8-sub-row:hover { border-color: rgba(124, 58, 237, .45); filter: none; }
/* [MENUFIX2 2026-06-13] P2 : Signaux reçus = famille VIOLET #7c3aed (décision Nicolas 13-06).
   Les signaux sont les retours des QR/flyers → même famille violette que la tuile parente.
   Émeraude redevient libre (réassignée par Nicolas 13-06 — cf. code_couleur.md). */
#drawer-navigation .op8-sub-violet { background: linear-gradient(135deg, rgba(124, 58, 237, .08), rgba(124, 58, 237, .22)); border-color: rgba(124, 58, 237, .42); }
#drawer-navigation .op8-sub-violet .op8-sub-ic { background: #7c3aed; color: #fff; }
#drawer-navigation .op8-sub-violet .op8-chev { color: #7c3aed; }
#drawer-navigation .op8-sub-violet .op8-sub-t { color: #5b21b6; font-weight: 700; }
/* Compatibilité : .op8-sub-emeraude conservé mais vide (classe plus assignée au DOM) */
/* rail + sous-tuiles NEUTRES (sous-menu Statistiques) */
#drawer-navigation .op8-sub--slate { background: rgba(15, 23, 42, .04); }
#drawer-navigation .op8-sub-slate { background: linear-gradient(135deg, rgba(15, 23, 42, .02), rgba(15, 23, 42, .08)); border-color: rgba(15, 23, 42, .16); }
#drawer-navigation .op8-sub-slate .op8-sub-ic { background: #475569; color: #fff; }
#drawer-navigation .op8-sub-slate .op8-chev { color: var(--op8-ink-faint); }

/* --- (3) tuiles neutres : grisé doux — plus aucun item tout blanc --- */
#drawer-navigation .op8-c-slate {
  background: linear-gradient(135deg, #f8fafc, #e9eef4);
  border: 1px solid rgba(15, 23, 42, .12);
}
#drawer-navigation .op8-c-slate .op8-bicon { background: #475569; color: #fff; }

/* --- (4) chevrons : BAS = accordéon, pivote à l'ouverture --- */
#drawer-navigation .op8-tile .op8-chev,
#drawer-navigation .op8-sub-row .op8-chev { transition: transform .25s ease; }
#drawer-navigation .op8-tile[aria-expanded="true"] .op8-chev { transform: rotate(180deg); }

/* --- (1) entrée Planning : OR SCINTILLANT (réf. « Nouveautés du jour ») --- */
#drawer-navigation .op8-week {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #d4a017;
  box-shadow: 0 4px 14px rgba(212, 160, 23, .30);
  color: #78350f;
}
#drawer-navigation .op8-week::before {
  content: ""; position: absolute; inset: -50%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%);
  animation: op8GoldSweep 4s linear infinite;
  pointer-events: none; z-index: 1;
}
@keyframes op8GoldSweep {
  0%   { transform: translateX(-100%) translateY(-100%); }
  100% { transform: translateX(100%) translateY(100%); }
}
@media (prefers-reduced-motion: reduce) {
  #drawer-navigation .op8-week::before { animation: none; }
}
#drawer-navigation .op8-week > * { position: relative; z-index: 2; }
#drawer-navigation .op8-week .op8-wic { background: #b8860b; }
#drawer-navigation .op8-week .op8-wname { color: #78350f; }
#drawer-navigation .op8-wsub { color: rgba(120, 53, 15, .78); }
#drawer-navigation .op8-day { background: rgba(255, 255, 255, .50); }
#drawer-navigation .op8-day .dd { color: #92400e; }
#drawer-navigation .op8-day .dn { color: #78350f; }
#drawer-navigation .op8-day.act { background: #fff; }
#drawer-navigation .op8-day.act .dd { color: #b45309; }
#drawer-navigation .op8-wlegend { color: #78350f; }
#drawer-navigation .op8-wcta { color: #78350f; }
#drawer-navigation .op8-go { background: #b8860b; color: #fff; }

/* [MENUFIX2 2026-06-13] P1-VA — badge tuile cohérent avec qr-badge--count existant.
   Positionné en haut-droite à l'intérieur du .op8-tile (position:relative ci-dessus). */
#drawer-navigation .op8-tile-badge {
  position: absolute;
  top: 6px; right: 36px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: #ef4444; color: #fff;
  border-radius: 9px;
  font-size: 10px; font-weight: 700;
  line-height: 18px; text-align: center;
  pointer-events: none;
  z-index: 2;
}
#drawer-navigation .op8-tile-badge.hidden { display: none; }

/* [BADGEQR 2026-06-14] badge du sous-onglet « Signaux reçus » : reçoit le compteur
   des signaux NON LUS quand l'accordéon « Mes flyers QR » est ouvert. Famille violette
   (#7c3aed) cohérente avec les 3 sous-modules ; flex-child entre le texte et le chevron. */
#drawer-navigation #eqr-sub-badge.op8-sub-badge {
  flex: 0 0 auto;
  min-width: 18px; height: 18px;
  padding: 0 6px;
  background: #7c3aed; color: #fff;
  border: 0; border-radius: 9px;
  font: 700 11px/18px inherit;
  text-align: center;
}
#drawer-navigation #eqr-sub-badge.op8-sub-badge.hidden { display: none; }

/* [QUICKWIN-2026-06-18-badges] badges menu = couleur de mission (audit) : À revoir orange, Veille rose (plus le rouge réservé DPE/urgence) */
#drawer-navigation #op8-badge-revoir { background: var(--op8-orange); }
#drawer-navigation #op8-badge-veille { background: var(--op8-f-vente); }
