/* DESIGN MYDMC DU PANEL, clair et sombre (David, 05.11.2026 — Treize d'abord).
   Le design du panel de mydmc.ch v1.3.0 : verre dépoli, halos, cartes, noir / blanc / beige, barre de gauche repliable,
   bouton soleil / lune. Chargé seulement avec le réglage « panel.design » (lib/design-mydmc.php) ; toutes les règles
   commencent par html[data-design="mydmc"][data-theme] et passent devant les feuilles d'origine, qui ne changent pas.
   Les couleurs écrites en dur dans les feuilles d'origine sont traduites par design-mydmc-clair.css (fabriqué), chargé
   AVANT celle-ci : à force égale ([data-theme] dans chaque préfixe), ce qui est écrit ici passe devant. */

/* ── Jetons : mêmes valeurs que mydmc.ch ─────────────────────────────── */
html[data-design="mydmc"][data-theme] {
  --nuit: #0B0B0C; --encre: #F6F3EE; --doux: #C9C3B8; --pale: #C2BCB1;
  --beige: #E8DCC6; --beige-2: #D6C6A8; --sable: #B39B74; --sur-beige: #0B0B0C; --beige-survol: #F3EBDC;
  --trait-beige: #E8DCC6; --sur-trait: #0B0B0C; --sur-statut: #0B0B0C;
  --verre-m: rgba(255, 250, 240, .055); --verre-2: rgba(255, 250, 240, .10); --bord: rgba(255, 245, 230, .13); --bord-2: rgba(255, 245, 230, .26);
  --reflet: inset 0 1px 0 rgba(255, 250, 240, .08); --repli: #1A1917; --champ: rgba(0, 0, 0, .35); --option: #1A1917;
  --ligne-m: rgba(255, 245, 230, .08); --survol: rgba(255, 250, 240, .04); --menu-on: rgba(255, 250, 240, .12); --menu-on-tx: #FFFFFF;
  --ok: #CFE3C2; --attente: #EBD3A0; --alerte: #F2B8A8;
  --h1: #6B5A3E; --h1o: .4; --h2: #3E3A33; --h2o: .6; --h3: #8A7552; --h3o: .26;
  --f-mydmc: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  /* Variables du panel d'origine, branchées sur les jetons */
  --ink: var(--nuit); --ink-soft: var(--verre-m); --slate-deep: var(--repli); --slate-mid: #24221F;
  --line: var(--bord); --paper: var(--encre); --muted: var(--doux); --faint: var(--pale);
  /* Accent du SITE gardé (David, 05.11.2026 : « garde le rouge de Treize ») : texte lisible sur fond sombre = ACCENT du site,
     fond plein = ACCENT_FONCE (le rouge exact du logo) avec texte blanc. */
  --accent-texte-d: #e9bfa3; --accent-fond: #96603f; --sur-accent: #FFFFFF;
  --copper: var(--accent-texte-d); --copper-bright: var(--accent-texte-d); --copper-deep: var(--accent-fond); --accent-texte: var(--accent-texte-d);
  --warn: var(--attente); --danger: var(--alerte);
  --verre: var(--verre-m); --verre-fort: var(--verre-2); --verre-bord: var(--bord);
  --flou: blur(16px) saturate(130%);
  --radius: 12px; --arrondi-carte: 18px; --r-mydmc: 18px;
  --menu-l: 268px;
  color-scheme: dark;
}
html[data-design="mydmc"][data-theme="light"] {
  --nuit: #F4F0EA; --encre: #141311; --doux: #524B43; --pale: #524B43;   /* méthode B : fond pierre chaude, secondaires plus doux */
  --sable: #5F4D2F; --sur-beige: #141311; --beige-survol: #DFD0B4; --trait-beige: #5F4D2F; --sur-trait: #FFFFFF; --sur-statut: #FFFFFF;
  --verre-m: rgba(252, 250, 246, .80); --verre-2: rgba(20, 19, 17, .045); --bord: rgba(40, 34, 28, .11); --bord-2: rgba(40, 34, 28, .22);
  --reflet: 0 1px 2px rgba(28, 26, 24, .05), 0 10px 28px -14px rgba(28, 26, 24, .20); --repli: #FAF8F4; --champ: #FFFFFF; --option: #FFFFFF;
  --ligne-m: rgba(20, 19, 17, .08); --survol: rgba(20, 19, 17, .03); --menu-on: var(--ardoise); --menu-on-tx: var(--sur-ardoise);
  --ok: #315622; --attente: #5E3F0A; --alerte: #8B321F;
  --h1: #E2D6C4; --h1o: 1; --h2: #D9CFC2; --h2o: .8; --h3: color-mix(in srgb, #96603f 30%, #FFF); --h3o: .35;
  --ardoise: #1C1A18; --sur-ardoise: #FFFFFF; --titre: #0F0E0D;
  --slate-mid: #EFEAE1;
  --accent-texte-d: color-mix(in srgb, #96603f 78%, #000);   /* texte : le rouge du logo un peu foncé, 4,5:1 même sur une teinte rose */
  color-scheme: light;
}
/* MÉTHODE B (David, 05.11.2026, modèle de départ des panels clients) : le NOIR du logo tient la structure (ligne active
   du menu, onglet actif, pilules, boutons principaux) ; la COULEUR du logo (#96603f) est réservée aux chiffres
   clés, aux icônes et aux graphiques ; fond pierre chaude, cartes teintées pierre. En sombre : ivoire à la place de l'ardoise. */
html[data-design="mydmc"][data-theme="dark"] {
  --ardoise: #F6F3EE; --sur-ardoise: #0B0B0C; --titre: var(--encre);
  --menu-on: var(--ardoise); --menu-on-tx: var(--sur-ardoise);
  --h3: color-mix(in srgb, #96603f 60%, #000); --h3o: .35;
}
html[data-design="mydmc"][data-theme] { --accent-teinte: color-mix(in srgb, #96603f 8%, transparent); }

/* ── Police de mydmc.ch : Hanken Grotesk (SIL OFL 1.1, fonts/OFL-hanken-grotesk.txt), fichiers déjà dans le noyau ── */
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-600.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }

/* ── Fond, halos, police ─────────────────────────────────────────────── */
html[data-design="mydmc"][data-theme], html[data-design="mydmc"][data-theme] body { background: var(--nuit); }
html[data-design="mydmc"][data-theme] body { color: var(--encre); font-family: var(--f-mydmc); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[data-design="mydmc"][data-theme] body::before { display: none; }   /* plus de photo floutée : les halos la remplacent */
html[data-design="mydmc"][data-theme] :is(h1, h2, h3, .page-head h1) { font-family: var(--f-mydmc); font-weight: 600; letter-spacing: -.01em; }
html[data-design="mydmc"][data-theme] :is(input, select, textarea, button) { font-family: inherit; }
html[data-design="mydmc"][data-theme] .halos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
html[data-design="mydmc"][data-theme] .halos i { position: absolute; border-radius: 50%; filter: blur(110px); }
html[data-design="mydmc"][data-theme] .halos i:nth-child(1) { width: 520px; height: 520px; background: var(--h1); left: -200px; top: -180px; opacity: var(--h1o); }
html[data-design="mydmc"][data-theme] .halos i:nth-child(2) { width: 420px; height: 420px; background: var(--h2); right: -140px; top: 28%; opacity: var(--h2o); }
html[data-design="mydmc"][data-theme] .halos i:nth-child(3) { width: 380px; height: 380px; background: var(--h3); left: 38%; bottom: -240px; opacity: var(--h3o); }
html[data-design="mydmc"][data-theme] .layout, html[data-design="mydmc"][data-theme] .login-wrap { position: relative; z-index: 1; }
html[data-design="mydmc"][data-theme] :focus-visible { outline: 2px solid var(--accent-texte-d); outline-offset: 2px; }
html[data-design="mydmc"][data-theme] a { color: var(--accent-texte-d); }
html[data-design="mydmc"][data-theme] a:hover { color: var(--encre); }

/* ── Verre : cartes, listes, onglets, barres ─────────────────────────── */
html[data-design="mydmc"][data-theme] :is(.card, .liste-item, .kpi, .login-card) {
  background: var(--verre-m); border: 1px solid var(--bord); box-shadow: var(--reflet);
  -webkit-backdrop-filter: var(--flou); backdrop-filter: var(--flou);
}
html[data-design="mydmc"][data-theme] .card { border-radius: var(--r-mydmc); }
html[data-design="mydmc"][data-theme] .liste-item { border-radius: 14px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-design="mydmc"][data-theme] :is(.card, .liste-item, .kpi, .login-card, .menu-lateral) { background: var(--repli); }
}
html[data-design="mydmc"][data-theme] .card > h2 { font-size: 1.2rem; font-weight: 600; }
html[data-design="mydmc"][data-theme] .page-head h1 { font-size: clamp(1.5rem, 4vw, 1.8rem); font-weight: 600; letter-spacing: -.01em; }

/* Onglets en pilule : actif = encre pleine, comme sur mydmc.ch */
html[data-design="mydmc"][data-theme] .onglets { background: var(--verre-m); border: 1px solid var(--bord); border-radius: 24px; padding: 4px; gap: 4px; }
html[data-design="mydmc"][data-theme] .onglet { color: var(--doux); font-weight: 600; border-radius: 999px; min-height: 40px; }
html[data-design="mydmc"][data-theme] .onglet:hover { color: var(--encre); background: var(--survol); }
html[data-design="mydmc"][data-theme] .onglet.actif { background: var(--encre); color: var(--nuit); }

/* ── Boutons : une ligne, 44 px, pilule ──────────────────────────────── */
html[data-design="mydmc"][data-theme] .btn { border-radius: 999px; min-height: 44px; font-weight: 600; white-space: nowrap; }
html[data-design="mydmc"][data-theme] .btn-primary { background: var(--accent-fond); color: var(--sur-accent); border-color: var(--accent-fond); }
html[data-design="mydmc"][data-theme] .btn-primary:hover { background: color-mix(in srgb, var(--accent-fond) 86%, #000); color: var(--sur-accent); border-color: color-mix(in srgb, var(--accent-fond) 86%, #000); }
html[data-design="mydmc"][data-theme] .btn-ghost { background: var(--verre-2); border-color: var(--bord-2); color: var(--encre); }
html[data-design="mydmc"][data-theme] .btn-ghost:hover { border-color: var(--trait-beige); color: var(--encre); }
html[data-design="mydmc"][data-theme] .btn-danger { background: color-mix(in srgb, var(--alerte) 10%, transparent); border-color: color-mix(in srgb, var(--alerte) 45%, transparent); color: var(--alerte); }
html[data-design="mydmc"][data-theme] .btn-danger:hover { background: var(--alerte); border-color: var(--alerte); color: var(--sur-statut); }

/* ── Champs ──────────────────────────────────────────────────────────── */
html[data-design="mydmc"][data-theme] :is(.form-field, .login-card) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="range"]), select, textarea),
html[data-design="mydmc"][data-theme] .main :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], input[type="url"], input[type="search"], input[type="time"], select, textarea) {
  background: var(--champ); border: 1px solid var(--bord); color: var(--encre); border-radius: 12px;
}
html[data-design="mydmc"][data-theme] :is(input, select, textarea):focus { border-color: var(--trait-beige); outline: none; }
html[data-design="mydmc"][data-theme] select option { background: var(--option); color: var(--encre); }
html[data-design="mydmc"][data-theme] ::placeholder { color: var(--pale); opacity: 1; }
html[data-design="mydmc"][data-theme] :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--sable); }
html[data-design="mydmc"][data-theme] .form-field label, html[data-design="mydmc"][data-theme] .form-field > span:first-child { color: var(--doux); }

/* ── Messages ────────────────────────────────────────────────────────── */
html[data-design="mydmc"][data-theme] .alert { border-radius: 14px; border: 1px solid var(--bord-2); color: var(--encre); background: linear-gradient(110deg, color-mix(in srgb, var(--beige) 14%, transparent), color-mix(in srgb, var(--beige) 4%, transparent)); }
html[data-design="mydmc"][data-theme] .alert-success { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: linear-gradient(110deg, color-mix(in srgb, var(--ok) 14%, transparent), transparent); }
html[data-design="mydmc"][data-theme] .alert-error { border-color: color-mix(in srgb, var(--alerte) 45%, transparent); background: linear-gradient(110deg, color-mix(in srgb, var(--alerte) 12%, transparent), transparent); }
html[data-design="mydmc"][data-theme] .alert-info { border-color: var(--bord-2); }

/* ── Tableaux ────────────────────────────────────────────────────────── */
html[data-design="mydmc"][data-theme] .table th { color: var(--pale); font-weight: 600; border-bottom-color: var(--ligne-m); }
html[data-design="mydmc"][data-theme] .table td { border-bottom-color: var(--ligne-m); }

/* ── Barre de gauche : carte en verre, comme mydmc.ch ────────────────── */
html[data-design="mydmc"][data-theme] .menu-lateral {
  background: var(--verre-m); border: 1px solid var(--bord); box-shadow: var(--reflet);
  -webkit-backdrop-filter: var(--flou); backdrop-filter: var(--flou);
  padding: 0 10px; scrollbar-width: thin;
}
html[data-design="mydmc"][data-theme] .menu-entete { border-bottom: 0; padding: 16px 4px 12px 10px; gap: 6px; align-items: flex-start; }
html[data-design="mydmc"][data-theme] .menu-marque { flex-direction: column; align-items: flex-start; gap: 4px; }
html[data-design="mydmc"][data-theme] .menu-marque img { width: auto; height: 46px; max-width: 128px; object-fit: contain; }
html[data-design="mydmc"][data-theme] .menu-marque strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* le nom est dans le logo ; gardé pour les lecteurs d'écran */
html[data-design="mydmc"][data-theme] .menu-marque span span { font-size: .75rem; color: var(--pale); text-transform: none; letter-spacing: 0; margin: 0; }
html[data-design="mydmc"][data-theme] .marque-btns { display: flex; gap: 6px; margin-left: auto; }
html[data-design="mydmc"][data-theme] .menu-liste { padding: 4px 0 10px; }
html[data-design="mydmc"][data-theme] .menu-ligne {
  min-height: 40px; margin: 1px 0; padding: 8px 10px; gap: 10px; border-radius: 10px;
  color: var(--doux); box-shadow: none; background: transparent;
}
html[data-design="mydmc"][data-theme] .menu-ligne:hover { background: var(--verre-m); color: var(--encre); }
html[data-design="mydmc"][data-theme] .menu-ligne.actif { background: var(--menu-on); color: var(--menu-on-tx); box-shadow: none; }
html[data-design="mydmc"][data-theme] .menu-ligne .menu-ligne-ico { color: inherit; }
html[data-design="mydmc"][data-theme] .menu-ligne.actif :is(.menu-ligne-ico, .menu-ligne-titre) { color: var(--menu-on-tx); }
html[data-design="mydmc"][data-theme] .menu-ligne-titre { font-size: .92rem; font-weight: 500; color: inherit; }
html[data-design="mydmc"][data-theme] .menu-ligne-aide { display: none; }   /* une ligne par écran, comme mydmc.ch ; l'aide reste au survol */
html[data-design="mydmc"][data-theme] .menu-ligne-sous { margin-left: 0 !important; padding: 8px 10px; }
html[data-design="mydmc"][data-theme] .menu-ligne-sous .menu-ligne-titre { font-size: .9rem; font-weight: 500; }
html[data-design="mydmc"][data-theme] .menu-domaine { margin: 4px 0 0; border-top: 0; padding-top: 0; }
html[data-design="mydmc"][data-theme] .menu-domaine-titre { padding: 12px 10px 4px; font-size: .74rem; font-weight: 600; color: var(--pale); letter-spacing: 0; text-transform: none; border-radius: 10px; min-height: 36px; }
html[data-design="mydmc"][data-theme] .menu-domaine-titre:hover { background: var(--survol); color: var(--encre); }
html[data-design="mydmc"][data-theme] .menu-domaine[open] .menu-domaine-titre { color: var(--encre); }
html[data-design="mydmc"][data-theme] .menu-domaine-plus { background: var(--verre-2); }
html[data-design="mydmc"][data-theme] .menu-domaine-plus::before, html[data-design="mydmc"][data-theme] .menu-domaine-plus::after { background: var(--doux); }
html[data-design="mydmc"][data-theme] .menu-contrat { margin: 10px 0 0; border: 1px solid var(--bord); background: var(--verre-m); }
html[data-design="mydmc"][data-theme] .menu-contrat:hover, html[data-design="mydmc"][data-theme] .menu-contrat.actif { background: var(--menu-on); border-color: var(--bord-2); }
html[data-design="mydmc"][data-theme] .menu-contrat-titre { color: var(--encre); }
html[data-design="mydmc"][data-theme] .menu-contrat-reste { color: var(--encre); background: var(--verre-2); }
html[data-design="mydmc"][data-theme] .menu-pied { border-top: 1px solid var(--bord); padding: 12px 0 16px; }
html[data-design="mydmc"][data-theme] .menu-pied-user { padding: 0 10px; }
html[data-design="mydmc"][data-theme] .menu-pied-user strong { font-weight: 600; font-size: .9rem; }
html[data-design="mydmc"][data-theme] .menu-pied-user span { color: var(--pale); font-size: .76rem; }
html[data-design="mydmc"][data-theme] :is(.menu-version, .menu-version-lien) { color: var(--pale); opacity: 1; font-size: .76rem; margin-left: 10px; margin-right: 10px; }
html[data-design="mydmc"][data-theme] .menu-pied .signature-mydmc { margin: 12px 10px 0; color: var(--pale); }
html[data-design="mydmc"][data-theme="light"] :is(.signature-mydmc img, .cm-logo, .cm-logo-m) { filter: brightness(0); }
html[data-design="mydmc"][data-theme] .pastille { background: var(--alerte); color: var(--sur-statut); }

/* Boutons ronds : soleil / lune, repli du menu */
html[data-design="mydmc"][data-theme] .theme-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; padding: 0;
  border: 1px solid var(--bord-2); background: var(--verre-2); color: var(--encre); cursor: pointer; flex: none;
}
html[data-design="mydmc"][data-theme] .theme-btn:hover { border-color: var(--trait-beige); }
html[data-design="mydmc"][data-theme] .theme-btn .ico-soleil { display: none; }
html[data-design="mydmc"][data-theme="dark"] .theme-btn .ico-soleil { display: block; }
html[data-design="mydmc"][data-theme="dark"] .theme-btn .ico-lune { display: none; }
html[data-design="mydmc"][data-theme] .theme-btn-fixe { position: fixed; top: 16px; right: 16px; z-index: 5; }

/* ── Ordinateur : barre de gauche posée dans la page, repliable ──────── */
/* Le repli est celui du noyau (body.menu-replie, bouton « bouton-replier » d'app.js) : seul le dessin change. */
@media (min-width: 900px) {
  html[data-design="mydmc"][data-theme] body.menu-replie { --menu-l: 84px; }
  html[data-design="mydmc"][data-theme] .menu-lateral { top: 18px; bottom: calc(var(--cm-h, 0px) + 26px); left: 18px; width: var(--menu-l); border-radius: var(--r-mydmc); }
  html[data-design="mydmc"][data-theme] .main { margin-left: calc(var(--menu-l) + 36px); padding: 22px 28px 90px 0; }
  html[data-design="mydmc"][data-theme] .cm-bande { left: 18px; bottom: 18px; width: var(--menu-l); border: 1px solid var(--bord); border-radius: 14px;
    background: var(--verre-m); -webkit-backdrop-filter: var(--flou); backdrop-filter: var(--flou); box-shadow: var(--reflet); }
  html[data-design="mydmc"][data-theme] body.menu-replie .menu-lateral { padding: 0 8px; overflow-x: hidden; }
  html[data-design="mydmc"][data-theme] body.menu-replie .menu-entete { flex-direction: column; align-items: center; padding: 14px 0 10px; }
  html[data-design="mydmc"][data-theme] body.menu-replie .marque-btns { flex-direction: column; }   /* soleil / lune et repli, l'un sous l'autre */
  html[data-design="mydmc"][data-theme] body.menu-replie .menu-marque { display: none; }
  /* Barre repliée (David, 19.11.2026 15:25) : la marque du site reste en tête, AU-DESSUS des boutons. Logo du site
     (44 px de haut au plus, 56 de large) ou, logo trop large ou absent, l'icône du site (44 × 44) : choix fait par
     design-mydmc.js (.marque-repliee). Place gardée dès le premier dessin (aucun saut quand l'image arrive). */
  html[data-design="mydmc"][data-theme] body.menu-replie .marque-repliee:not([hidden]) { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; margin: 0 0 4px; flex: none; }
  html[data-design="mydmc"][data-theme] body.menu-replie .marque-repliee img { display: block; width: auto; height: auto; max-width: 56px; max-height: 44px; object-fit: contain; }
  html[data-design="mydmc"][data-theme] body.menu-replie .marque-repliee[data-genre="icone"] img { width: 44px; height: 44px; border-radius: 10px; }
  html[data-design="mydmc"][data-theme] body.menu-replie .marque-repliee img:not([src]) { visibility: hidden; }
  html[data-design="mydmc"][data-theme] body.menu-replie .marque-btns { margin: 0; }
  html[data-design="mydmc"][data-theme] body.menu-replie .bouton-replier { transform: none; }
  html[data-design="mydmc"][data-theme] body.menu-replie .menu-ligne { justify-content: center; padding: 10px 0; margin: 1px 0 !important; }
  html[data-design="mydmc"][data-theme] body.menu-replie .menu-ligne .ico { width: 22px; height: 22px; }
  html[data-design="mydmc"][data-theme] body.menu-replie .menu-domaine { margin: 4px 0 0; }
  html[data-design="mydmc"][data-theme] body.menu-replie .menu-domaine-titre { justify-content: center; padding: 10px 0; }
  html[data-design="mydmc"][data-theme] body.menu-replie .menu-contrat { justify-content: center; padding: 10px 4px; }
  /* Plus d'emoji : le chronomètre du Contrat replié devient l'horloge au trait (Phosphor Light). */
  html[data-design="mydmc"][data-theme] body.menu-replie .menu-contrat::before {
    content: ""; width: 22px; height: 22px; background: currentColor; color: var(--encre);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* La marque de la barre repliée n'existe qu'à l'ordinateur, barre repliée : partout ailleurs, rien ne change. */
html[data-design="mydmc"][data-theme] .marque-repliee { display: none; }

/* ── Téléphone : barre du haut, menu qui glisse, barre du bas, en verre ─ */
@media (max-width: 899px) {
  html[data-design="mydmc"][data-theme] :is(.barre-haut, .barre-bas) { background: color-mix(in srgb, var(--nuit) 82%, transparent); border-color: var(--bord); -webkit-backdrop-filter: var(--flou); backdrop-filter: var(--flou); }
  html[data-design="mydmc"][data-theme] .barre-haut .theme-btn { margin-left: auto; width: 44px; height: 44px; }
  html[data-design="mydmc"][data-theme] .barre-haut-titre { font-weight: 600; }
  html[data-design="mydmc"][data-theme] .menu-lateral { background: var(--nuit); border-radius: 0 var(--r-mydmc) var(--r-mydmc) 0; border-left: 0; }
  html[data-design="mydmc"][data-theme] .menu-btn { display: none; }
  html[data-design="mydmc"][data-theme] .barre-bas-item { color: var(--doux); }
  html[data-design="mydmc"][data-theme] .barre-bas-item.actif { color: var(--encre); }
  html[data-design="mydmc"][data-theme] .barre-bas-item.actif .barre-bas-ico { background: var(--menu-on); border-radius: 999px; }
}

/* ── Pages d'accès : carte en verre au centre ────────────────────────── */
html[data-design="mydmc"][data-theme] .login-wrap { padding: 24px 16px; }
html[data-design="mydmc"][data-theme] .login-card { width: min(440px, 100%); max-width: 440px; border-radius: var(--r-mydmc); padding: 28px; }
html[data-design="mydmc"][data-theme] .login-card > img { width: auto; height: 64px; max-width: 200px; object-fit: contain; margin-bottom: 16px; }
html[data-design="mydmc"][data-theme] .login-card h1 { font-size: 1.5rem; font-weight: 600; }
html[data-design="mydmc"][data-theme] .login-card .sub { color: var(--doux); }
html[data-design="mydmc"][data-theme] .login-card .btn { width: 100%; }
html[data-design="mydmc"][data-theme] .version-acces { margin: 18px 0 0; font-size: .76rem; color: var(--pale); text-align: center; }
html[data-design="mydmc"][data-theme] .signature-centree { color: var(--pale); }
html[data-design="mydmc"][data-theme="light"] .login-wrap .signature-mydmc img { filter: brightness(0); }

/* Œil des mots de passe : bouton rond discret, contraste suffisant dans les deux modes */
html[data-design="mydmc"][data-theme] .bouton-oeil { color: var(--doux); }
html[data-design="mydmc"][data-theme] .bouton-oeil:hover { color: var(--encre); }

@media print {
  html[data-design="mydmc"][data-theme] .halos, html[data-design="mydmc"][data-theme] .theme-btn { display: none !important; }
}

/* Petits textes en retrait (« 20 au plus… ») : moins transparents, lisibles à 4,5:1 sur le verre clair comme sur le sombre. */
html[data-design="mydmc"][data-theme] .immo-petit { opacity: .92; }
/* Téléphone : le bouton soleil / lune des pages d'accès ne passe jamais sur la carte. */
@media (max-width: 600px) { html[data-design="mydmc"][data-theme] .login-wrap { padding-top: 76px; place-items: start center; } }

/* Logo d'origine (blanc) caché jusqu'à son remplacement par la version qui va sur ce fond (design-mydmc.js). */
html[data-design="mydmc"][data-theme] :is(.menu-marque img, .login-card > img):not([data-design-logo]) { visibility: hidden; }

/* ── Méthode B : structure en ardoise, couleur du logo pour ce qui compte ───────────────────────────────────────────── */
/* Hiérarchie : titres plus foncés que le texte courant */
html[data-design="mydmc"][data-theme] :is(.page-head h1, .card > h2, .card h2, .tdb-titre, .ar-titre, .ar-nom, .main h2, .main h3) { color: var(--titre); }
html[data-design="mydmc"][data-theme="light"] :is(.tdb-case, .ar-tuile) { background: var(--verre-m); }
/* Menu : icônes à la couleur du logo, ligne active en ardoise pleine (icône comprise) */
html[data-design="mydmc"][data-theme] .menu-ligne .menu-ligne-ico { color: var(--accent-texte-d); }
html[data-design="mydmc"][data-theme] .menu-ligne.actif { font-weight: 600; }
html[data-design="mydmc"][data-theme] .menu-ligne.actif .menu-ligne-ico { color: var(--menu-on-tx); }
/* Téléphone : onglet actif de la barre du bas = ligne active du menu */
html[data-design="mydmc"][data-theme] .barre-bas-item.actif { color: var(--encre); }
html[data-design="mydmc"][data-theme] .barre-bas-item.actif .barre-bas-ico { background: var(--menu-on); color: var(--menu-on-tx); }
html[data-design="mydmc"][data-theme] .barre-bas-item .barre-bas-ico { color: inherit; }
/* Chiffres clés, icônes, graphiques : couleur du logo */
html[data-design="mydmc"][data-theme] :is(.tdb-chiffre, .kpi-grand) { color: var(--accent-texte-d); }
html[data-design="mydmc"][data-theme] .ar-icone { color: var(--accent-texte-d); background: var(--accent-teinte); border-color: color-mix(in srgb, var(--accent-fond) 26%, transparent); }
html[data-design="mydmc"][data-theme] .ar-tuile:hover { border-color: color-mix(in srgb, var(--accent-fond) 40%, transparent); background: var(--verre-m); }
html[data-design="mydmc"][data-theme] .tdb-plus { background: var(--accent-teinte); color: var(--accent-texte-d); }
html[data-design="mydmc"][data-theme] .tdb-graph .plein { fill: var(--accent-fond); }
html[data-design="mydmc"][data-theme] .tdb-barre-plein { background: var(--accent-fond); }
html[data-design="mydmc"][data-theme] :is(.tdb-point, .tdb-barre-plein).app-mobile { background: var(--accent-fond) !important; }
html[data-design="mydmc"][data-theme] :is(.tdb-point, .tdb-barre-plein).app-tablette { background: #A89E92 !important; }
html[data-design="mydmc"][data-theme] :is(.tdb-point, .tdb-barre-plein).app-ordinateur { background: var(--ardoise) !important; }
/* « Provenance des visites » : tons du logo (rouge, ardoise, pierre) au lieu des couleurs par source */
html[data-design="mydmc"][data-theme="light"] {
  --src-moteurs: var(--accent-fond); --src-maps: color-mix(in srgb, #96603f 50%, #000); --src-reseaux: color-mix(in srgb, #96603f 42%, #FFF);
  --src-direct: var(--ardoise); --src-autres: #A89E92; --src-ia: #D3CBBF;
}
html[data-design="mydmc"][data-theme="dark"] {
  --src-moteurs: var(--accent-fond); --src-maps: #F8ADB1; --src-reseaux: color-mix(in srgb, #96603f 65%, #FFF);
  --src-direct: var(--ardoise); --src-autres: #A89E92; --src-ia: #6F675D;
}
/* Onglet actif, pilules, boutons principaux : ardoise pleine (ivoire en sombre) */
html[data-design="mydmc"][data-theme] :is(.onglet.actif, .periode-pilule.actif, .rj-filtres a.actif, .rj-bascule a.actif, .immo-bl-puce[aria-pressed="true"], .btn-primary) {
  background: var(--ardoise); border-color: var(--ardoise); color: var(--sur-ardoise);
}
html[data-design="mydmc"][data-theme] .btn-primary:hover { background: color-mix(in srgb, var(--ardoise) 86%, #888); border-color: color-mix(in srgb, var(--ardoise) 86%, #888); color: var(--sur-ardoise); }
html[data-design="mydmc"][data-theme] :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--accent-fond); }

/* Légende du calendrier (12.11.2026) : la règle « .pastille » ci-dessus (rouge des nouvelles demandes) peignait aussi les
   pastilles d'état de la légende en rouge. Chacune reprend sa couleur : servi (gris), sur le site (vert), prêt (ambre). */
html[data-design="mydmc"][data-theme] .cal-legende .pastille { background: var(--c); color: inherit; }
html[data-design="mydmc"][data-theme] .pastille-ancien, html[data-design="mydmc"][data-theme] .type-ancien { --c: color-mix(in srgb, var(--encre) 32%, transparent); }
html[data-design="mydmc"][data-theme] .pastille-en_ligne, html[data-design="mydmc"][data-theme] .type-en_ligne { --c: var(--ok); }
html[data-design="mydmc"][data-theme] .pastille-programme, html[data-design="mydmc"][data-theme] .type-programme { --c: var(--attente); }

/* ══ ICÔNES DU MENU AUSSI BARRE DÉPLIÉE + PASTILLES VISIBLES DANS LES DEUX ÉTATS (David, 19.11.2026 23:46) ══════════
   Ordinateur (≥ 900 px) seulement ; le menu du téléphone ne change pas. Barre dépliée : le petit point du modèle v1.5
   laisse la place à l'icône au trait de la barre repliée (même jeu, même tracé : app.js), devant le nom, groupes et Contrat
   compris. Pastilles : à droite du nom (dépliée), sur le coin haut droit de l'icône (repliée, posée par design-mydmc.js :
   data-pastille). Un groupe fermé montre la somme de ses écrans. Trois :not(#…) : passe devant le v1.5 et le verre. */
@media (min-width: 900px) {
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] body:not(.menu-replie) .menu-lateral .menu-ligne::before { content: none; display: none; }
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] body:not(.menu-replie) .menu-lateral .menu-ligne > .menu-ligne-ico,
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] body:not(.menu-replie) .menu-lateral :is(.menu-domaine-titre, .menu-contrat) > .menu-ico-replie {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; margin: 0; padding: 0;
    background: transparent; border-radius: 0; color: inherit; opacity: .8; transition: opacity .15s ease;
  }
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] body:not(.menu-replie) .menu-lateral :is(.menu-ligne, .menu-domaine-titre, .menu-contrat) > .menu-ligne-ico svg { width: 20px; height: 20px; display: block; }
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] body:not(.menu-replie) .menu-lateral :is(.menu-ligne:hover, .menu-ligne.actif, .menu-domaine-titre:hover, .menu-domaine[open] > .menu-domaine-titre, .menu-contrat:hover, .menu-contrat.actif) > .menu-ligne-ico { opacity: 1; }
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] body:not(.menu-replie) .menu-lateral .menu-ligne { gap: 12px; }
  /* Groupes : une ligne comme les autres (icône, nom, pastille, +), plus un petit intertitre */
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] body:not(.menu-replie) .menu-lateral .menu-domaine-titre {
    display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 10px; font-size: .92rem; font-weight: 500; color: var(--v-texte-2, var(--doux));
  }
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] body:not(.menu-replie) .menu-lateral .menu-domaine-titre > span:not(.menu-ligne-ico):not(.menu-domaine-plus):not(.pastille) { flex: 1; min-width: 0; }
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] body:not(.menu-replie) .menu-lateral .menu-domaine-titre:hover,
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] body:not(.menu-replie) .menu-lateral .menu-domaine[open] > .menu-domaine-titre { color: var(--v-texte, var(--encre)); }
  /* Écrans d'un groupe ouvert : un cran en retrait, pour voir à quel groupe ils appartiennent */
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] body:not(.menu-replie) .menu-lateral .menu-domaine > .menu-ligne { margin-left: 14px !important; }
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] body:not(.menu-replie) .menu-lateral .menu-contrat { gap: 12px; }

  /* Pastille (dépliée) : à droite du nom, pleine, lisible en clair comme en sombre */
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] .menu-lateral .pastille:not(.menu-page-etat) {
    display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto;
    border: 0; border-radius: 999px; background: var(--alerte); color: var(--sur-statut); font-size: 11.5px; font-weight: 600; line-height: 1;
    font-variant-numeric: tabular-nums; letter-spacing: 0; box-shadow: none;
  }
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] .menu-lateral .menu-ligne-titre { display: flex; align-items: center; gap: 8px; }
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] .menu-lateral .menu-domaine[open] > .menu-domaine-titre > .pastille-groupe,
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] body.menu-replie .menu-lateral .pastille-groupe { display: none; }

  /* Pastille (repliée) : sur le coin haut droit de l'icône, cerclée de la couleur de la barre */
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] body.menu-replie .menu-lateral .menu-ligne-ico { position: relative; overflow: visible; }
  html:not(#_i):not(#_j):not(#_k)[data-design][data-theme] body.menu-replie .menu-lateral .menu-ligne-ico[data-pastille]::after {
    content: attr(data-pastille); position: absolute; top: -7px; right: -10px; 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(--alerte); color: var(--sur-statut);
    font: 600 10.5px/1 inherit; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--v-repli, var(--nuit)); pointer-events: none;
  }
}
/* ══ fin icônes du menu (19.11.2026 23:46) ══ */
