/* ════════════════════════════════════════════════════════════════════════════════════════════════════════════
   CLASSIC ENHANCED — le design Classique, MÊMES PLACES ET MÊMES MESURES, avec de la lumière, du relief et des
   mouvements discrets (Philippe, 2026-11-18 : « je ne touche pas à la structure… rajoute surtout du style… des
   animations qui ne seront pas dérangeantes… des touches visuelles élite »). Point unique : App\Support\Theme.

   RÈGLES DE CETTE FEUILLE (non négociables : le responsive du Classique a pris des semaines) :
   · AUCUNE mesure : ni marge, ni rembourrage, ni taille de texte, ni hauteur, ni largeur, ni bordure plus épaisse. Seulement
     couleurs, dégradés, ombres, arrondis déjà présents, et pseudo-éléments en position absolue (ils ne prennent aucune place).
   · Un mouvement est BREF (≤ 0,6 s), s'arrête seul, ne touche que `transform`, `opacity`, `box-shadow` ou un fond, et se
     tait sous `prefers-reduced-motion`. Jamais une boucle infinie.
   · ⚠️ UNE ANIMATION SE DÉCLARE `backwards`, JAMAIS `both` NI `forwards` (vécu le 2026-11-18) : maintenue après sa fin, elle
     garde l'élément dans sa propre couche — l'en-tête de l'Agenda passait SOUS le calendrier, et son menu « Agendas » avec.
   · Jamais de `transform` AU REPOS sur un élément qui contient un menu ou une fenêtre fixe (il deviendrait leur repère) :
     les élévations au survol sont réservées aux tuiles et aux boutons, jamais aux cartes.
   · Tout passe par les variables du CRM (--btn-header-bg, --card, --border, --bleu-*, --n-*) : les 22 palettes (claires
     et foncées) habillent Enhanced comme le Classique ; classique-sombre.css règle les reflets des palettes foncées.
   · Chaque règle commence par `html[data-design="enhanced"]` : ce poids passe devant mph-core.css sans !important.
   ════════════════════════════════════════════════════════════════════════════════════════════════════════════ */

html[data-design="enhanced"] {
  --en-accent: var(--btn-header-bg, #1a4cb0);
  --en-accent-2: var(--btn-header-hover, #16409a);
  --en-lueur-1: rgba(37, 99, 235, .09);
  --en-lueur-2: rgba(14, 165, 233, .06);
  --en-teinte: rgba(37, 99, 235, .06);
  --en-teinte-2: rgba(37, 99, 235, .13);
  --en-halo: rgba(37, 99, 235, .35);
  --en-anneau: 0 0 0 4px rgba(37, 99, 235, .16);
  /* Le reflet du haut des cartes et des boutons (une ligne de lumière) — atténué par les palettes foncées. */
  --en-reflet: rgba(255, 255, 255, .9);
  --en-reflet-bouton: rgba(255, 255, 255, .28);
  --en-ombre-carte: 0 1px 2px rgba(15, 23, 42, .05), 0 14px 34px -20px rgba(15, 23, 42, .28);
  --en-ombre-carte-haut: 0 2px 6px rgba(15, 23, 42, .06), 0 24px 48px -22px rgba(15, 23, 42, .36);
  --en-ombre-menu: 0 2px 6px rgba(15, 23, 42, .08), 0 28px 60px -24px rgba(15, 23, 42, .45);
  --en-sortie: cubic-bezier(.2, .7, .2, 1);
  --en-ressort: cubic-bezier(.34, 1.4, .64, 1);
}
/* L'accent du CRM (ou de la palette) mélangé au transparent : la lumière prend la couleur de l'équipe. */
@supports (color: color-mix(in srgb, red 50%, transparent)) {
  html[data-design="enhanced"] {
    --en-lueur-1: color-mix(in srgb, var(--en-accent) 15%, transparent);
    --en-lueur-2: color-mix(in srgb, var(--bleu-clair, #38bdf8) 11%, transparent);
    --en-teinte: color-mix(in srgb, var(--en-accent) 7%, transparent);
    --en-teinte-2: color-mix(in srgb, var(--en-accent) 15%, transparent);
    --en-halo: color-mix(in srgb, var(--en-accent) 42%, transparent);
    --en-anneau: 0 0 0 4px color-mix(in srgb, var(--en-accent) 18%, transparent);
  }
}

/* ══ 1. L'AMBIANCE : deux halos très doux de la couleur de l'équipe, derrière les cartes ══════════════════════ */
/* L'aurore du haut de page est une couche du FOND : ⚠️ jamais un pseudo-élément avec `isolation` ou `position` sur `.main`
   (les fenêtres de la page passeraient sous la barre du bas, et les menus positionnés changeraient de repère). */
html[data-design="enhanced"] body {
  background:
    radial-gradient(520px 200px at 30% 0, var(--en-lueur-1), transparent 70%) no-repeat scroll,
    radial-gradient(420px 180px at 70% -10px, var(--en-lueur-2), transparent 70%) no-repeat scroll,
    radial-gradient(1100px 560px at 100% -6%, var(--en-lueur-1), transparent 62%),
    radial-gradient(900px 520px at -6% 104%, var(--en-lueur-2), transparent 62%),
    var(--bg);
}
@media (min-width: 901px) {
  html[data-design="enhanced"] body { background-attachment: scroll, scroll, fixed, fixed, fixed; }
}
html[data-design="enhanced"] ::selection { background: var(--en-teinte-2); color: inherit; }

/* ══ 2. LES CARTES : une ombre en deux temps (contact + profondeur) et une ligne de lumière en haut ═══════════ */
html[data-design="enhanced"] .card {
  box-shadow: inset 0 1px 0 var(--en-reflet), var(--en-ombre-carte);
  transition: box-shadow .3s var(--en-sortie), border-color .3s ease;
}
@media (hover: hover) and (min-width: 901px) {
  html[data-design="enhanced"] .page > .card:hover,
  html[data-design="enhanced"] .dash-grille > .dash-w:hover {
    box-shadow: inset 0 1px 0 var(--en-reflet), var(--en-ombre-carte-haut);
  }
}

/* ══ 3. LE TITRE DE LA PAGE : AUCUN trait dessous (Philippe, 2026-11-20 : « enlève le petit trait partout, j'en veux
   pas ») — il touchait les pastilles du sous-titre (lead, ticket). Ne pas le remettre. ══ */

/* ══ 4. LES BOUTONS : un dégradé, une ligne de lumière, une lueur ; au survol un éclat les traverse (la position de
   fond bouge : rien n'est ajouté dans le bouton, ses pastilles et son menu restent intacts) ══ */
html[data-design="enhanced"] .btn-primary {
  background:
    linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .26) 46%, transparent 60%) no-repeat,
    linear-gradient(180deg, var(--en-accent-2), var(--en-accent));
  background-size: 260% 100%, auto;
  background-position: 160% 0, 0 0;
  box-shadow: inset 0 1px 0 var(--en-reflet-bouton), 0 6px 16px -8px var(--en-halo);
  transition: background-position .65s var(--en-sortie), box-shadow .25s ease, transform .2s var(--en-sortie), filter .2s ease;
}
@supports (color: color-mix(in srgb, red 50%, white)) {
  html[data-design="enhanced"] .btn-primary {
    background:
      linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .26) 46%, transparent 60%) no-repeat,
      linear-gradient(180deg, color-mix(in srgb, var(--en-accent) 82%, #ffffff), var(--en-accent));
    background-size: 260% 100%, auto;
    background-position: 160% 0, 0 0;
  }
}
@media (hover: hover) {
  html[data-design="enhanced"] .btn-primary:hover {
    background-position: -60% 0, 0 0;
    box-shadow: inset 0 1px 0 var(--en-reflet-bouton), 0 10px 22px -8px var(--en-halo);
    transform: translateY(-1px);
  }
}
html[data-design="enhanced"] .btn-primary:active { transform: translateY(0); filter: brightness(.96); }

html[data-design="enhanced"] :is(.btn-white, .btn-light) {
  box-shadow: inset 0 1px 0 var(--en-reflet), 0 1px 2px rgba(15, 23, 42, .06);
  transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease, transform .2s var(--en-sortie), color .2s ease;
}
@media (hover: hover) {
  html[data-design="enhanced"] :is(.btn-white, .btn-light):hover {
    border-color: var(--bleu-trait, #bfdbfe);
    box-shadow: inset 0 1px 0 var(--en-reflet), 0 6px 14px -8px rgba(15, 23, 42, .28);
    transform: translateY(-1px);
  }
}
html[data-design="enhanced"] :is(.btn-white, .btn-light):active { transform: translateY(0); }

/* ══ 5. LES ONGLETS DU MODULE : l'onglet actif brille ; d'une page à l'autre, il GLISSE vers sa nouvelle place ══ */
html[data-design="enhanced"] .mph-onglets > :is(.btn-primary, [aria-current="page"]) {
  box-shadow: inset 0 1px 0 var(--en-reflet-bouton), 0 8px 18px -10px var(--en-halo);
}
html[data-design="enhanced"] .mph-onglets > .btn:not(.btn-primary) { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
@media (hover: hover) {
  html[data-design="enhanced"] .mph-onglets > .btn:not(.btn-primary):hover { background: var(--en-teinte) !important; }
}

/* ══ 6. LES CHAMPS : un anneau de la couleur de l'équipe au focus, un trait qui s'éveille au survol ══ */
html[data-design="enhanced"] :is(.form-input, .form-select, select.form-input, textarea.form-input) {
  transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease;
}
@media (hover: hover) {
  html[data-design="enhanced"] :is(.form-input, .form-select):hover:not(:focus):not(:disabled) { border-color: var(--bleu-trait, #bfdbfe); }
}
html[data-design="enhanced"] :is(.form-input, .form-select):focus {
  border-color: var(--en-accent); box-shadow: var(--en-anneau); outline: none;
}

/* ══ 7. LES TABLEAUX : l'en-tête légèrement nacré, la ligne survolée se teinte et un trait marque son début ══ */
html[data-design="enhanced"] .mini-table thead th {
  background-image: linear-gradient(180deg, transparent, var(--en-teinte));
}
html[data-design="enhanced"] .mini-table tbody tr > td { transition: background-color .18s ease, box-shadow .18s ease; }
@media (hover: hover) {
  html[data-design="enhanced"] .mini-table tbody tr:hover > td { background-color: var(--en-teinte); }
  html[data-design="enhanced"] .mini-table tbody tr:hover > td:first-child { box-shadow: inset 3px 0 0 var(--en-accent); }
}

/* ══ 8. LE MENU DE GAUCHE (couleur claire ; le marine a sa feuille) ══ */
html[data-design="enhanced"]:not([data-menu-marine]) .sidebar {
  background: linear-gradient(180deg, var(--n-carte, #ffffff) 0%, var(--n-carte, #ffffff) 55%, var(--en-teinte) 100%), var(--n-carte, #ffffff);
  box-shadow: 10px 0 34px -30px rgba(15, 23, 42, .45);
}
html[data-design="enhanced"] .sidebar .brand-logo img { transition: transform .5s var(--en-ressort), filter .3s ease; }
@media (hover: hover) {
  html[data-design="enhanced"] .sidebar .brand:hover .brand-logo img { transform: rotate(-8deg) scale(1.06); filter: drop-shadow(0 6px 10px var(--en-halo)); }
}
html[data-design="enhanced"] .sidebar .nav-icon { transition: transform .25s var(--en-sortie), color .2s ease; }
@media (hover: hover) {
  html[data-design="enhanced"] .sidebar:not(.mm-tuiles) .nav-item:hover .nav-icon { transform: translateX(2px) scale(1.08); }
}
/* La liste : l'entrée active en dégradé, son liseré qui luit. */
html[data-design="enhanced"]:not([data-menu-marine]) .sidebar:not(.mm-tuiles) .nav > .nav-item.active {
  background: linear-gradient(90deg, var(--en-teinte-2), var(--en-teinte) 70%, transparent);
}
html[data-design="enhanced"] .sidebar .nav-item.active::before { box-shadow: 0 0 10px var(--en-halo); }
/* Les tuiles : l'icône active pleine, en dégradé ; une tuile survolée s'élève un peu (aucun menu dedans). */
html[data-design="enhanced"]:not([data-menu-marine]) .sidebar.mm-tuiles .nav > .nav-item .nav-icon {
  transition: transform .25s var(--en-sortie), box-shadow .25s ease, background .25s ease, color .2s ease;
}
html[data-design="enhanced"]:not([data-menu-marine]) .sidebar.mm-tuiles .nav > .nav-item.active .nav-icon {
  background: linear-gradient(150deg, var(--en-accent-2), var(--en-accent)); color: #fff;
  box-shadow: 0 8px 16px -8px var(--en-halo), inset 0 1px 0 var(--en-reflet-bouton);
}
html[data-design="enhanced"]:not([data-menu-marine]) .sidebar.mm-tuiles .nav > .nav-item.active {
  box-shadow: inset 0 0 0 1.5px var(--en-teinte-2), 0 6px 18px -14px rgba(15, 23, 42, .4);
}
@media (hover: hover) {
  html[data-design="enhanced"] .sidebar.mm-tuiles .nav > .nav-item:hover .nav-icon { transform: translateY(-2px); box-shadow: 0 8px 14px -10px var(--en-halo); }
}
/* Les compteurs (tâches, courriels…) : un seul battement doux à l'arrivée, pour qu'on les voie. */
html[data-design="enhanced"] .sidebar :is(.nav-badge, .notification-bubble):not([style*="display:none"]):not([style*="display: none"]) {
  animation: en-battement .9s var(--en-ressort) .4s 1 backwards;
  box-shadow: 0 3px 8px -2px rgba(239, 68, 68, .45);
}
@keyframes en-battement { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }

/* Le pied du menu : la pastille d'équipe et le profil, en verre doux — sur le menu de l'ordinateur seulement. Au téléphone
   (`.mm-pied`), les quatre tuiles sont pareilles, sans ombre : deux pilules ombrées à côté de deux tuiles plates
   (Soutien, Admin) se voyaient comme une erreur (Philippe, 2026-11-21 : « un genre de shadow, j'aime pas ça »). */
html[data-design="enhanced"]:not([data-menu-marine]) .sidebar:not(.mm-pied) :is(.sidebar-presence-pill, .sidebar-profile-pill) {
  box-shadow: inset 0 1px 0 var(--en-reflet), 0 1px 2px rgba(15, 23, 42, .06);
  transition: background-color .2s ease, box-shadow .25s ease, border-color .2s ease;
}

/* ══ 9. LES TUILES DE CHIFFRES : un vernis (reflet en haut à droite) et un éclat qui les traverse une fois ══ */
html[data-design="enhanced"] .qd-kpi { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px -14px rgba(15, 23, 42, .5); }
html[data-design="enhanced"] .qd-kpi::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .24), transparent 55%);
}
html[data-design="enhanced"] .qd-kpi::after {
  /* Un FOND animé (jamais un élément qui se déplace : il agrandirait la zone de défilement de la tuile). */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .28) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0; opacity: 0;
  animation: en-eclat 1.1s var(--en-sortie) .35s 1 backwards;
}
html[data-design="enhanced"] .qd-kpis > .qd-kpi:nth-child(2)::after { animation-delay: .45s; }
html[data-design="enhanced"] .qd-kpis > .qd-kpi:nth-child(3)::after { animation-delay: .55s; }
html[data-design="enhanced"] .qd-kpis > .qd-kpi:nth-child(4)::after { animation-delay: .65s; }
html[data-design="enhanced"] .qd-kpis > .qd-kpi:nth-child(n+5)::after { animation-delay: .75s; }
@keyframes en-eclat { 0% { background-position: 130% 0; opacity: 0; } 15% { opacity: 1; } 100% { background-position: -30% 0; opacity: 0; } }
html[data-design="enhanced"] .qd-kpi-icon { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .18)); transition: transform .3s var(--en-ressort), opacity .3s ease; }
@media (hover: hover) {
  html[data-design="enhanced"] a.qd-kpi:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 16px 30px -14px rgba(15, 23, 42, .55); }
  html[data-design="enhanced"] a.qd-kpi:hover .qd-kpi-icon { transform: scale(1.12) rotate(-6deg); opacity: .75; }
}
html[data-design="enhanced"] .qd-kpi-value { font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 rgba(0, 0, 0, .08); }

/* ══ 10. LES WIDGETS DU DASHBOARD : leur icône d'en-tête en pastille lumineuse ══ */
html[data-design="enhanced"] .dash-w { transition: box-shadow .3s var(--en-sortie); }
html[data-design="enhanced"] .dash-kpi { transition: transform .25s var(--en-sortie), box-shadow .25s ease, background-color .2s ease; }
@media (hover: hover) {
  html[data-design="enhanced"] a.dash-kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(15, 23, 42, .45); }
}

/* L'icône d'en-tête de chaque widget : une pastille en dégradé de sa couleur, avec un reflet ; elle salue au survol. */
html[data-design="enhanced"] .dash-ico {
  background: linear-gradient(150deg, color-mix(in srgb, var(--c, #64748b) 22%, var(--n-carte, #fff)), color-mix(in srgb, var(--c, #64748b) 9%, var(--n-carte, #fff)));
  box-shadow: inset 0 1px 0 var(--en-reflet), 0 4px 10px -6px color-mix(in srgb, var(--c, #64748b) 70%, transparent);
  transition: transform .35s var(--en-ressort);
}
@media (hover: hover) {
  html[data-design="enhanced"] .dash-w:hover .dash-ico { transform: rotate(-8deg) scale(1.08); }
}

/* Un état vide (« Rien à faire », « Aucun… ») : un fond nacré et doux plutôt qu'un vide gris. */
html[data-design="enhanced"] .empty-state {
  background: radial-gradient(120% 120% at 50% 0%, var(--en-teinte), transparent 70%);
  border-radius: 14px;
}

/* Le haut du menu : le logo dans un halo de la couleur de l'équipe, le nom en dégradé. */
html[data-design="enhanced"]:not([data-menu-marine]) .sidebar .brand-logo { box-shadow: 0 8px 18px -10px var(--en-halo); border-radius: 12px; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  html[data-design="enhanced"]:not([data-menu-marine]) .sidebar .brand h1 {
    background: linear-gradient(100deg, var(--n-texte, #172033) 0, var(--n-texte, #172033) 34px, var(--en-accent) 96px);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  }
}

/* Une carte survolée : un reflet très doux suit le haut de la carte (ordinateur, cartes de premier niveau). */
@media (hover: hover) and (min-width: 901px) {
  html[data-design="enhanced"] .page > .card { background-image: linear-gradient(180deg, var(--en-teinte) 0, transparent 90px); background-size: 100% 0; background-repeat: no-repeat; transition: box-shadow .3s var(--en-sortie), background-size .35s var(--en-sortie); }
  html[data-design="enhanced"] .page > .card:hover { background-size: 100% 90px; }
}

/* ══ 11. LES PASTILLES D'ÉTAT : un liseré intérieur, plus net ══ */
html[data-design="enhanced"] .status { box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05); }

/* ══ 12. LES MENUS QUI S'OUVRENT : ils éclosent (fondu + léger zoom), en verre ══ */
html[data-design="enhanced"] :is(.dropdown-menu, .pb-menu, .nd-menu) { box-shadow: var(--en-ombre-menu); }
html[data-design="enhanced"] .dropdown.is-open > .dropdown-menu,
html[data-design="enhanced"] .dropdown:not(.dropdown-au-clic):hover > .dropdown-menu,
html[data-design="enhanced"] .pb-menu.open,
html[data-design="enhanced"] details.nd[open] > .nd-menu {
  animation: en-eclore .18s var(--en-sortie) backwards;
}
@keyframes en-eclore { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
html[data-design="enhanced"] .dropdown-item { transition: background-color .15s ease, color .15s ease, padding-left .2s var(--en-sortie); }

/* ══ 13. LES FENÊTRES : le fond se voile en flou, la carte arrive avec un petit élan ══ */
html[data-design="enhanced"] .prep-modal { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html[data-design="enhanced"] .prep-modal-card {
  box-shadow: inset 0 1px 0 var(--en-reflet), 0 30px 70px -20px rgba(15, 23, 42, .5);
  animation: en-fenetre .26s var(--en-ressort) backwards;
}
@keyframes en-fenetre { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* ══ 14. LE MESSAGE « ENREGISTRÉ » : il glisse en place ══ */
html[data-design="enhanced"] #mph-toast { animation: en-toast .35s var(--en-ressort) backwards; box-shadow: 0 16px 34px -14px rgba(15, 23, 42, .55); }
@keyframes en-toast { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

/* ══ 15. LES AVATARS : un anneau de lumière ══ */
html[data-design="enhanced"] .sidebar :is(.avatar, .sig-avatar) { box-shadow: 0 0 0 2px var(--n-carte, #fff), 0 0 0 3.5px var(--en-teinte-2); }

/* ══ 16. L'ARRIVÉE SUR UNE PAGE : les blocs montent en fondu, en cascade (0,32 s), puis plus rien ══ */
html[data-design="enhanced"] .page > :is(.page-header, .dash-hello, .card, .mph-onglets, .mph-barre-filtres, .qd-kpis, .dash-grille) {
  animation: en-arrivee .32s var(--en-sortie) backwards;
}
html[data-design="enhanced"] .page > :nth-child(2) { animation-delay: .03s; }
html[data-design="enhanced"] .page > :nth-child(3) { animation-delay: .06s; }
html[data-design="enhanced"] .page > :nth-child(4) { animation-delay: .09s; }
html[data-design="enhanced"] .page > :nth-child(n+5) { animation-delay: .12s; }
@keyframes en-arrivee { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ══ 17. LE TÉLÉPHONE : la barre du haut porte un fin trait de lumière ; l'onglet actif du bas, une pastille ══ */
@media (max-width: 900px) {
  html[data-design="enhanced"] .mobile-topbar {
    box-shadow: 0 1px 0 var(--border), 0 8px 20px -18px rgba(15, 23, 42, .45);
  }
  html[data-design="enhanced"] .nav-bas { box-shadow: 0 -10px 24px -20px rgba(15, 23, 42, .4); }
  html[data-design="enhanced"] .nav-bas-item .nav-bas-ico { position: relative; isolation: isolate; }
  html[data-design="enhanced"] .nav-bas-item .nav-bas-ico::before {
    content: ""; position: absolute; inset: -5px -13px; border-radius: 999px; z-index: -1;
    background: var(--en-teinte-2); opacity: 0; transform: scale(.55);
    transition: opacity .2s ease, transform .3s var(--en-ressort);
  }
  html[data-design="enhanced"] .nav-bas-item.is-actif .nav-bas-ico::before { opacity: 1; transform: none; }
}

/* ══ 18. D'UNE PAGE À L'AUTRE : l'onglet actif et l'entrée active du menu glissent (transitions de vue entre pages —
   Chrome 126+, Safari 18.2+ ; ailleurs la page change simplement). Le reste change sans fondu. ══ */
@view-transition { navigation: auto; }
html[data-design="enhanced"]::view-transition-old(root),
html[data-design="enhanced"]::view-transition-new(root) { animation: none; }
html[data-design="enhanced"]::view-transition-group(*) { animation-duration: .3s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
html[data-design="enhanced"] .mph-onglets > :is(.btn-primary, [aria-current="page"]) { view-transition-name: en-onglet-actif; }
@media (min-width: 901px) {
  html[data-design="enhanced"] .sidebar .nav > .nav-item.active { view-transition-name: en-menu-actif; }
}
@media (max-width: 900px) {
  html[data-design="enhanced"] .nav-bas-item.is-actif:not(.nav-bas-plus) .nav-bas-ico { view-transition-name: en-bas-actif; }
}

/* ══ 19. LES BARRES DE DÉFILEMENT : fines, à la couleur de l'équipe (ordinateur) ══ */
@media (min-width: 901px) {
  html[data-design="enhanced"] { scrollbar-color: var(--en-teinte-2) transparent; }
}

/* ══ 20. LE FOCUS AU CLAVIER : un anneau doux et net partout ══ */
html[data-design="enhanced"] :is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--en-accent); outline-offset: 2px; }

/* ══ MOINS DE MOUVEMENT DEMANDÉ : tout reste, sauf les déplacements ══ */
@media (prefers-reduced-motion: reduce) {
  html[data-design="enhanced"] *, html[data-design="enhanced"] *::before, html[data-design="enhanced"] *::after {
    animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important;
  }
  @view-transition { navigation: none; }
}
