/*
 * PlagiGuard — thème clair / sombre.
 * - Tokens sémantiques (--pg-*) utilisés par les nouveaux composants.
 * - Couche de compatibilité : en mode sombre, les utilitaires Tailwind « clairs »
 *   déjà présents dans les gabarits sont traduits vers la palette sombre.
 * Le thème est porté par <html class="dark"> (voir templates/_partials/theme_init.html.twig).
 * Fichier généré puis maintenu à la main : garder les sections dans cet ordre.
 */
:root {
  color-scheme: light;
  --pg-bg: 248 250 252;          /* fond de page */
  --pg-surface: 255 255 255;     /* cartes, panneaux */
  --pg-surface-2: 241 245 249;   /* zones secondaires, survols */
  --pg-surface-3: 226 232 240;
  --pg-border: 226 232 240;
  --pg-border-strong: 203 213 225;
  --pg-text: 15 23 42;
  --pg-text-2: 51 65 85;
  --pg-muted: 71 85 105;
  --pg-subtle: 100 116 139;
  --pg-primary: 5 150 105;       /* émeraude 600 */
  --pg-primary-hover: 4 120 87;
  --pg-primary-soft: 236 253 245;
  --pg-primary-text: 4 120 87;
  --pg-focus: 16 185 129;
  --pg-sidebar: 255 255 255;
  --pg-sidebar-active: 236 253 245;
  --pg-sidebar-active-text: 4 120 87;
  --pg-shadow: 15 23 42;
}
html.dark {
  color-scheme: dark;
  --pg-bg: 2 6 23;
  --pg-surface: 15 23 42;
  --pg-surface-2: 30 41 59;
  --pg-surface-3: 51 65 85;
  --pg-border: 30 41 59;
  --pg-border-strong: 51 65 85;
  --pg-text: 241 245 249;
  --pg-text-2: 226 232 240;
  --pg-muted: 203 213 225;
  --pg-subtle: 148 163 184;
  --pg-primary: 16 185 129;
  --pg-primary-hover: 52 211 153;
  --pg-primary-soft: 6 78 59;
  --pg-primary-text: 110 231 183;
  --pg-focus: 52 211 153;
  --pg-sidebar: 15 23 42;
  --pg-sidebar-active: 6 78 59;
  --pg-sidebar-active-text: 167 243 208;
  --pg-shadow: 0 0 0;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
html { background: rgb(var(--pg-bg)); }
body { background: rgb(var(--pg-bg)); color: rgb(var(--pg-text)); }
html.pg-theme-transition, html.pg-theme-transition * { transition: background-color .2s ease, border-color .2s ease, color .2s ease !important; }
:focus-visible { outline: 2px solid rgb(var(--pg-focus)); outline-offset: 2px; }
.pg-skip-link { position: absolute; left: -9999px; top: .5rem; z-index: 100; }
.pg-skip-link:focus { left: .5rem; background: rgb(var(--pg-surface)); color: rgb(var(--pg-text)); padding: .5rem 1rem; border-radius: .5rem; box-shadow: 0 4px 12px rgb(var(--pg-shadow) / .15); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Contraste AA en clair : le gris 400 sur fond blanc est trop pâle */
html:not(.dark) .text-slate-400 { color: rgb(100 116 139); }

/* ── Mode sombre : neutres ───────────────────────────────────────────── */

html.dark .bg-white { background-color: rgb(var(--pg-surface)); }
html.dark .bg-slate-50 { background-color: rgb(var(--pg-bg)); }
html.dark .bg-slate-100 { background-color: rgb(var(--pg-surface-2)); }
html.dark .bg-slate-200 { background-color: rgb(var(--pg-surface-3)); }
html.dark .bg-white\/90 { background-color: rgb(var(--pg-surface) / .9); }
html.dark .bg-white\/80 { background-color: rgb(var(--pg-surface) / .8); }
html.dark .bg-white\/70 { background-color: rgb(var(--pg-surface) / .7); }
html.dark .text-slate-900 { color: rgb(var(--pg-text)); }
html.dark .text-slate-800 { color: rgb(var(--pg-text)); }
html.dark .text-slate-700 { color: rgb(var(--pg-text-2)); }
html.dark .text-slate-600 { color: rgb(var(--pg-muted)); }
html.dark .text-slate-500 { color: rgb(var(--pg-subtle)); }
html.dark .text-slate-400 { color: rgb(var(--pg-subtle)); }
html.dark .text-black { color: rgb(var(--pg-text)); }
html.dark .border-slate-50 { border-color: rgb(var(--pg-border)); }
html.dark .border-slate-100 { border-color: rgb(var(--pg-border)); }
html.dark .border-slate-200 { border-color: rgb(var(--pg-border)); }
html.dark .border-slate-300 { border-color: rgb(var(--pg-border-strong)); }
html.dark .border-white { border-color: rgb(var(--pg-border)); }
html.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]) { border-color: rgb(var(--pg-border)); }
html.dark .divide-slate-200 > :not([hidden]) ~ :not([hidden]) { border-color: rgb(var(--pg-border)); }
html.dark .ring-slate-200 { --tw-ring-color: rgb(var(--pg-border)); }
html.dark .placeholder-slate-400::placeholder { color: rgb(var(--pg-subtle)); }
html.dark .border-slate-200\/60 { border-color: rgb(var(--pg-border)); }
html.dark .border-slate-200\/70 { border-color: rgb(var(--pg-border)); }
html.dark .border-slate-200\/80 { border-color: rgb(var(--pg-border)); }
html.dark .hover\:bg-slate-50:hover { background-color: rgb(var(--pg-surface-2)); }
html.dark .hover\:bg-slate-100:hover { background-color: rgb(var(--pg-surface-2)); }
html.dark .hover\:bg-slate-100\/80:hover { background-color: rgb(var(--pg-surface-2)); }
html.dark .hover\:bg-slate-200:hover { background-color: rgb(var(--pg-surface-3)); }
html.dark .hover\:text-slate-900:hover { color: rgb(var(--pg-text)); }
html.dark .hover\:text-slate-700:hover { color: rgb(var(--pg-text-2)); }
html.dark .hover\:text-slate-600:hover { color: rgb(var(--pg-muted)); }
html.dark .hover\:text-slate-500:hover { color: rgb(var(--pg-muted)); }
html.dark .hover\:border-slate-300:hover { border-color: rgb(var(--pg-border-strong)); }
html.dark .from-slate-50, html.dark .to-slate-100, html.dark .via-white { --tw-gradient-from: rgb(var(--pg-bg)) var(--tw-gradient-from-position); --tw-gradient-to: rgb(var(--pg-surface)) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
html.dark .shadow-sm, html.dark .shadow, html.dark .shadow-md, html.dark .shadow-lg, html.dark .shadow-xl { --tw-shadow-color: rgb(0 0 0 / .45); }
html.dark input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), html.dark select, html.dark textarea { background-color: rgb(var(--pg-surface-2)); color: rgb(var(--pg-text)); border-color: rgb(var(--pg-border-strong)); }
html.dark input::placeholder, html.dark textarea::placeholder { color: rgb(var(--pg-subtle)); }
html.dark table thead { background-color: rgb(var(--pg-surface-2)); }
html.dark hr { border-color: rgb(var(--pg-border)); }
html.dark ::selection { background: rgb(16 185 129 / .35); }

/* ── Mode sombre : teintes (badges, alertes, cartes colorées) ────────── */
html.dark .bg-red-50 { background-color: rgb(239 68 68 / .12); }
html.dark .bg-red-100 { background-color: rgb(239 68 68 / .18); }
html.dark .bg-red-200 { background-color: rgb(239 68 68 / .26); }
html.dark .hover\:bg-red-50:hover { background-color: rgb(239 68 68 / .18); }
html.dark .hover\:bg-red-100:hover { background-color: rgb(239 68 68 / .24); }
html.dark .hover\:bg-red-200:hover { background-color: rgb(239 68 68 / .30); }
html.dark .border-red-50, html.dark .border-red-100 { border-color: rgb(239 68 68 / .22); }
html.dark .border-red-200, html.dark .border-red-300 { border-color: rgb(239 68 68 / .38); }
html.dark .hover\:border-red-300:hover { border-color: rgb(239 68 68 / .55); }
html.dark .text-red-600 { color: rgb(248 113 113); }
html.dark .text-red-700, html.dark .text-red-800, html.dark .text-red-900 { color: rgb(252 165 165); }
html.dark .hover\:text-red-700:hover, html.dark .hover\:text-red-800:hover { color: rgb(252 165 165); }
html.dark .bg-green-50 { background-color: rgb(34 197 94 / .12); }
html.dark .bg-green-100 { background-color: rgb(34 197 94 / .18); }
html.dark .bg-green-200 { background-color: rgb(34 197 94 / .26); }
html.dark .hover\:bg-green-50:hover { background-color: rgb(34 197 94 / .18); }
html.dark .hover\:bg-green-100:hover { background-color: rgb(34 197 94 / .24); }
html.dark .hover\:bg-green-200:hover { background-color: rgb(34 197 94 / .30); }
html.dark .border-green-50, html.dark .border-green-100 { border-color: rgb(34 197 94 / .22); }
html.dark .border-green-200, html.dark .border-green-300 { border-color: rgb(34 197 94 / .38); }
html.dark .hover\:border-green-300:hover { border-color: rgb(34 197 94 / .55); }
html.dark .text-green-600 { color: rgb(74 222 128); }
html.dark .text-green-700, html.dark .text-green-800, html.dark .text-green-900 { color: rgb(134 239 172); }
html.dark .hover\:text-green-700:hover, html.dark .hover\:text-green-800:hover { color: rgb(134 239 172); }
html.dark .bg-emerald-50 { background-color: rgb(16 185 129 / .12); }
html.dark .bg-emerald-100 { background-color: rgb(16 185 129 / .18); }
html.dark .bg-emerald-200 { background-color: rgb(16 185 129 / .26); }
html.dark .hover\:bg-emerald-50:hover { background-color: rgb(16 185 129 / .18); }
html.dark .hover\:bg-emerald-100:hover { background-color: rgb(16 185 129 / .24); }
html.dark .hover\:bg-emerald-200:hover { background-color: rgb(16 185 129 / .30); }
html.dark .border-emerald-50, html.dark .border-emerald-100 { border-color: rgb(16 185 129 / .22); }
html.dark .border-emerald-200, html.dark .border-emerald-300 { border-color: rgb(16 185 129 / .38); }
html.dark .hover\:border-emerald-300:hover { border-color: rgb(16 185 129 / .55); }
html.dark .text-emerald-600 { color: rgb(52 211 153); }
html.dark .text-emerald-700, html.dark .text-emerald-800, html.dark .text-emerald-900 { color: rgb(110 231 183); }
html.dark .hover\:text-emerald-700:hover, html.dark .hover\:text-emerald-800:hover { color: rgb(110 231 183); }
html.dark .bg-brand-50 { background-color: rgb(16 185 129 / .12); }
html.dark .bg-brand-100 { background-color: rgb(16 185 129 / .18); }
html.dark .bg-brand-200 { background-color: rgb(16 185 129 / .26); }
html.dark .hover\:bg-brand-50:hover { background-color: rgb(16 185 129 / .18); }
html.dark .hover\:bg-brand-100:hover { background-color: rgb(16 185 129 / .24); }
html.dark .hover\:bg-brand-200:hover { background-color: rgb(16 185 129 / .30); }
html.dark .border-brand-50, html.dark .border-brand-100 { border-color: rgb(16 185 129 / .22); }
html.dark .border-brand-200, html.dark .border-brand-300 { border-color: rgb(16 185 129 / .38); }
html.dark .hover\:border-brand-300:hover { border-color: rgb(16 185 129 / .55); }
html.dark .text-brand-600 { color: rgb(52 211 153); }
html.dark .text-brand-700, html.dark .text-brand-800, html.dark .text-brand-900 { color: rgb(110 231 183); }
html.dark .hover\:text-brand-700:hover, html.dark .hover\:text-brand-800:hover { color: rgb(110 231 183); }
html.dark .bg-blue-50 { background-color: rgb(59 130 246 / .12); }
html.dark .bg-blue-100 { background-color: rgb(59 130 246 / .18); }
html.dark .bg-blue-200 { background-color: rgb(59 130 246 / .26); }
html.dark .hover\:bg-blue-50:hover { background-color: rgb(59 130 246 / .18); }
html.dark .hover\:bg-blue-100:hover { background-color: rgb(59 130 246 / .24); }
html.dark .hover\:bg-blue-200:hover { background-color: rgb(59 130 246 / .30); }
html.dark .border-blue-50, html.dark .border-blue-100 { border-color: rgb(59 130 246 / .22); }
html.dark .border-blue-200, html.dark .border-blue-300 { border-color: rgb(59 130 246 / .38); }
html.dark .hover\:border-blue-300:hover { border-color: rgb(59 130 246 / .55); }
html.dark .text-blue-600 { color: rgb(96 165 250); }
html.dark .text-blue-700, html.dark .text-blue-800, html.dark .text-blue-900 { color: rgb(147 197 253); }
html.dark .hover\:text-blue-700:hover, html.dark .hover\:text-blue-800:hover { color: rgb(147 197 253); }
html.dark .bg-indigo-50 { background-color: rgb(99 102 241 / .12); }
html.dark .bg-indigo-100 { background-color: rgb(99 102 241 / .18); }
html.dark .bg-indigo-200 { background-color: rgb(99 102 241 / .26); }
html.dark .hover\:bg-indigo-50:hover { background-color: rgb(99 102 241 / .18); }
html.dark .hover\:bg-indigo-100:hover { background-color: rgb(99 102 241 / .24); }
html.dark .hover\:bg-indigo-200:hover { background-color: rgb(99 102 241 / .30); }
html.dark .border-indigo-50, html.dark .border-indigo-100 { border-color: rgb(99 102 241 / .22); }
html.dark .border-indigo-200, html.dark .border-indigo-300 { border-color: rgb(99 102 241 / .38); }
html.dark .hover\:border-indigo-300:hover { border-color: rgb(99 102 241 / .55); }
html.dark .text-indigo-600 { color: rgb(129 140 248); }
html.dark .text-indigo-700, html.dark .text-indigo-800, html.dark .text-indigo-900 { color: rgb(165 180 252); }
html.dark .hover\:text-indigo-700:hover, html.dark .hover\:text-indigo-800:hover { color: rgb(165 180 252); }
html.dark .bg-yellow-50 { background-color: rgb(234 179 8 / .12); }
html.dark .bg-yellow-100 { background-color: rgb(234 179 8 / .18); }
html.dark .bg-yellow-200 { background-color: rgb(234 179 8 / .26); }
html.dark .hover\:bg-yellow-50:hover { background-color: rgb(234 179 8 / .18); }
html.dark .hover\:bg-yellow-100:hover { background-color: rgb(234 179 8 / .24); }
html.dark .hover\:bg-yellow-200:hover { background-color: rgb(234 179 8 / .30); }
html.dark .border-yellow-50, html.dark .border-yellow-100 { border-color: rgb(234 179 8 / .22); }
html.dark .border-yellow-200, html.dark .border-yellow-300 { border-color: rgb(234 179 8 / .38); }
html.dark .hover\:border-yellow-300:hover { border-color: rgb(234 179 8 / .55); }
html.dark .text-yellow-600 { color: rgb(250 204 21); }
html.dark .text-yellow-700, html.dark .text-yellow-800, html.dark .text-yellow-900 { color: rgb(253 224 71); }
html.dark .hover\:text-yellow-700:hover, html.dark .hover\:text-yellow-800:hover { color: rgb(253 224 71); }
html.dark .bg-amber-50 { background-color: rgb(245 158 11 / .12); }
html.dark .bg-amber-100 { background-color: rgb(245 158 11 / .18); }
html.dark .bg-amber-200 { background-color: rgb(245 158 11 / .26); }
html.dark .hover\:bg-amber-50:hover { background-color: rgb(245 158 11 / .18); }
html.dark .hover\:bg-amber-100:hover { background-color: rgb(245 158 11 / .24); }
html.dark .hover\:bg-amber-200:hover { background-color: rgb(245 158 11 / .30); }
html.dark .border-amber-50, html.dark .border-amber-100 { border-color: rgb(245 158 11 / .22); }
html.dark .border-amber-200, html.dark .border-amber-300 { border-color: rgb(245 158 11 / .38); }
html.dark .hover\:border-amber-300:hover { border-color: rgb(245 158 11 / .55); }
html.dark .text-amber-600 { color: rgb(251 191 36); }
html.dark .text-amber-700, html.dark .text-amber-800, html.dark .text-amber-900 { color: rgb(252 211 77); }
html.dark .hover\:text-amber-700:hover, html.dark .hover\:text-amber-800:hover { color: rgb(252 211 77); }
html.dark .bg-orange-50 { background-color: rgb(249 115 22 / .12); }
html.dark .bg-orange-100 { background-color: rgb(249 115 22 / .18); }
html.dark .bg-orange-200 { background-color: rgb(249 115 22 / .26); }
html.dark .hover\:bg-orange-50:hover { background-color: rgb(249 115 22 / .18); }
html.dark .hover\:bg-orange-100:hover { background-color: rgb(249 115 22 / .24); }
html.dark .hover\:bg-orange-200:hover { background-color: rgb(249 115 22 / .30); }
html.dark .border-orange-50, html.dark .border-orange-100 { border-color: rgb(249 115 22 / .22); }
html.dark .border-orange-200, html.dark .border-orange-300 { border-color: rgb(249 115 22 / .38); }
html.dark .hover\:border-orange-300:hover { border-color: rgb(249 115 22 / .55); }
html.dark .text-orange-600 { color: rgb(251 146 60); }
html.dark .text-orange-700, html.dark .text-orange-800, html.dark .text-orange-900 { color: rgb(253 186 116); }
html.dark .hover\:text-orange-700:hover, html.dark .hover\:text-orange-800:hover { color: rgb(253 186 116); }
html.dark .bg-purple-50 { background-color: rgb(168 85 247 / .12); }
html.dark .bg-purple-100 { background-color: rgb(168 85 247 / .18); }
html.dark .bg-purple-200 { background-color: rgb(168 85 247 / .26); }
html.dark .hover\:bg-purple-50:hover { background-color: rgb(168 85 247 / .18); }
html.dark .hover\:bg-purple-100:hover { background-color: rgb(168 85 247 / .24); }
html.dark .hover\:bg-purple-200:hover { background-color: rgb(168 85 247 / .30); }
html.dark .border-purple-50, html.dark .border-purple-100 { border-color: rgb(168 85 247 / .22); }
html.dark .border-purple-200, html.dark .border-purple-300 { border-color: rgb(168 85 247 / .38); }
html.dark .hover\:border-purple-300:hover { border-color: rgb(168 85 247 / .55); }
html.dark .text-purple-600 { color: rgb(192 132 252); }
html.dark .text-purple-700, html.dark .text-purple-800, html.dark .text-purple-900 { color: rgb(216 180 254); }
html.dark .hover\:text-purple-700:hover, html.dark .hover\:text-purple-800:hover { color: rgb(216 180 254); }
html.dark .bg-violet-50 { background-color: rgb(139 92 246 / .12); }
html.dark .bg-violet-100 { background-color: rgb(139 92 246 / .18); }
html.dark .bg-violet-200 { background-color: rgb(139 92 246 / .26); }
html.dark .hover\:bg-violet-50:hover { background-color: rgb(139 92 246 / .18); }
html.dark .hover\:bg-violet-100:hover { background-color: rgb(139 92 246 / .24); }
html.dark .hover\:bg-violet-200:hover { background-color: rgb(139 92 246 / .30); }
html.dark .border-violet-50, html.dark .border-violet-100 { border-color: rgb(139 92 246 / .22); }
html.dark .border-violet-200, html.dark .border-violet-300 { border-color: rgb(139 92 246 / .38); }
html.dark .hover\:border-violet-300:hover { border-color: rgb(139 92 246 / .55); }
html.dark .text-violet-600 { color: rgb(167 139 250); }
html.dark .text-violet-700, html.dark .text-violet-800, html.dark .text-violet-900 { color: rgb(196 181 253); }
html.dark .hover\:text-violet-700:hover, html.dark .hover\:text-violet-800:hover { color: rgb(196 181 253); }
html.dark .bg-teal-50 { background-color: rgb(20 184 166 / .12); }
html.dark .bg-teal-100 { background-color: rgb(20 184 166 / .18); }
html.dark .bg-teal-200 { background-color: rgb(20 184 166 / .26); }
html.dark .hover\:bg-teal-50:hover { background-color: rgb(20 184 166 / .18); }
html.dark .hover\:bg-teal-100:hover { background-color: rgb(20 184 166 / .24); }
html.dark .hover\:bg-teal-200:hover { background-color: rgb(20 184 166 / .30); }
html.dark .border-teal-50, html.dark .border-teal-100 { border-color: rgb(20 184 166 / .22); }
html.dark .border-teal-200, html.dark .border-teal-300 { border-color: rgb(20 184 166 / .38); }
html.dark .hover\:border-teal-300:hover { border-color: rgb(20 184 166 / .55); }
html.dark .text-teal-600 { color: rgb(45 212 191); }
html.dark .text-teal-700, html.dark .text-teal-800, html.dark .text-teal-900 { color: rgb(94 234 212); }
html.dark .hover\:text-teal-700:hover, html.dark .hover\:text-teal-800:hover { color: rgb(94 234 212); }
html.dark .bg-sky-50 { background-color: rgb(14 165 233 / .12); }
html.dark .bg-sky-100 { background-color: rgb(14 165 233 / .18); }
html.dark .bg-sky-200 { background-color: rgb(14 165 233 / .26); }
html.dark .hover\:bg-sky-50:hover { background-color: rgb(14 165 233 / .18); }
html.dark .hover\:bg-sky-100:hover { background-color: rgb(14 165 233 / .24); }
html.dark .hover\:bg-sky-200:hover { background-color: rgb(14 165 233 / .30); }
html.dark .border-sky-50, html.dark .border-sky-100 { border-color: rgb(14 165 233 / .22); }
html.dark .border-sky-200, html.dark .border-sky-300 { border-color: rgb(14 165 233 / .38); }
html.dark .hover\:border-sky-300:hover { border-color: rgb(14 165 233 / .55); }
html.dark .text-sky-600 { color: rgb(56 189 248); }
html.dark .text-sky-700, html.dark .text-sky-800, html.dark .text-sky-900 { color: rgb(125 211 252); }
html.dark .hover\:text-sky-700:hover, html.dark .hover\:text-sky-800:hover { color: rgb(125 211 252); }
html.dark .bg-rose-50 { background-color: rgb(244 63 94 / .12); }
html.dark .bg-rose-100 { background-color: rgb(244 63 94 / .18); }
html.dark .bg-rose-200 { background-color: rgb(244 63 94 / .26); }
html.dark .hover\:bg-rose-50:hover { background-color: rgb(244 63 94 / .18); }
html.dark .hover\:bg-rose-100:hover { background-color: rgb(244 63 94 / .24); }
html.dark .hover\:bg-rose-200:hover { background-color: rgb(244 63 94 / .30); }
html.dark .border-rose-50, html.dark .border-rose-100 { border-color: rgb(244 63 94 / .22); }
html.dark .border-rose-200, html.dark .border-rose-300 { border-color: rgb(244 63 94 / .38); }
html.dark .hover\:border-rose-300:hover { border-color: rgb(244 63 94 / .55); }
html.dark .text-rose-600 { color: rgb(251 113 133); }
html.dark .text-rose-700, html.dark .text-rose-800, html.dark .text-rose-900 { color: rgb(253 164 175); }
html.dark .hover\:text-rose-700:hover, html.dark .hover\:text-rose-800:hover { color: rgb(253 164 175); }

/* ── Composants (nouveaux gabarits) ──────────────────────────────────── */
.pg-card { background: rgb(var(--pg-surface)); border: 1px solid rgb(var(--pg-border)); border-radius: 1rem; box-shadow: 0 1px 2px rgb(var(--pg-shadow) / .05); }
.pg-muted { color: rgb(var(--pg-subtle)); }
.pg-sidebar { background: rgb(var(--pg-sidebar)); border-right: 1px solid rgb(var(--pg-border)); color: rgb(var(--pg-text-2)); }
.pg-nav-link { display: flex; align-items: center; gap: .75rem; padding: .625rem .875rem; border-radius: .625rem; font-size: .875rem; font-weight: 500; color: rgb(var(--pg-muted)); transition: background-color .15s, color .15s; }
.pg-nav-link:hover { background: rgb(var(--pg-surface-2)); color: rgb(var(--pg-text)); }
.pg-nav-link[aria-current="page"] { background: rgb(var(--pg-sidebar-active)); color: rgb(var(--pg-sidebar-active-text)); font-weight: 600; }
.pg-nav-link svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.pg-nav-section { padding: 1rem .875rem .375rem; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--pg-subtle)); }
.pg-theme-switch { display: inline-flex; padding: .1875rem; border-radius: 9999px; background: rgb(var(--pg-surface-2)); border: 1px solid rgb(var(--pg-border)); }
.pg-theme-switch button { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 1.75rem; border-radius: 9999px; color: rgb(var(--pg-subtle)); }
.pg-theme-switch button[aria-pressed="true"] { background: rgb(var(--pg-surface)); color: rgb(var(--pg-primary-text)); box-shadow: 0 1px 3px rgb(var(--pg-shadow) / .12); }
.pg-theme-switch svg { width: 1rem; height: 1rem; }
.pg-guide-highlight { outline: 3px solid #f59e0b !important; outline-offset: 4px; border-radius: .5rem; box-shadow: 0 0 0 8px rgb(245 158 11 / .22) !important; }
.pg-guide-badge { position: absolute; z-index: 80; display: flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 9999px; background: #f59e0b; color: #1c1917; font: 700 .875rem/1 Inter, system-ui, sans-serif; box-shadow: 0 2px 6px rgb(0 0 0 / .3); pointer-events: none; }

/* ── Mode sombre : états sélectionnés (cartes radio, puces) ─────────── */
html.dark .peer:checked ~ .peer-checked\:bg-red-50, html.dark .has-\[\:checked\]\:bg-red-50:has(:checked) { background-color: rgb(239 68 68 / .18); }
html.dark .peer:checked ~ .peer-checked\:bg-red-100, html.dark .has-\[\:checked\]\:bg-red-100:has(:checked) { background-color: rgb(239 68 68 / .24); }
html.dark .peer:checked ~ .peer-checked\:bg-green-50, html.dark .has-\[\:checked\]\:bg-green-50:has(:checked) { background-color: rgb(34 197 94 / .18); }
html.dark .peer:checked ~ .peer-checked\:bg-green-100, html.dark .has-\[\:checked\]\:bg-green-100:has(:checked) { background-color: rgb(34 197 94 / .24); }
html.dark .peer:checked ~ .peer-checked\:bg-emerald-50, html.dark .has-\[\:checked\]\:bg-emerald-50:has(:checked) { background-color: rgb(16 185 129 / .18); }
html.dark .peer:checked ~ .peer-checked\:bg-emerald-100, html.dark .has-\[\:checked\]\:bg-emerald-100:has(:checked) { background-color: rgb(16 185 129 / .24); }
html.dark .peer:checked ~ .peer-checked\:bg-brand-50, html.dark .has-\[\:checked\]\:bg-brand-50:has(:checked) { background-color: rgb(16 185 129 / .18); }
html.dark .peer:checked ~ .peer-checked\:bg-brand-100, html.dark .has-\[\:checked\]\:bg-brand-100:has(:checked) { background-color: rgb(16 185 129 / .24); }
html.dark .peer:checked ~ .peer-checked\:bg-blue-50, html.dark .has-\[\:checked\]\:bg-blue-50:has(:checked) { background-color: rgb(59 130 246 / .18); }
html.dark .peer:checked ~ .peer-checked\:bg-blue-100, html.dark .has-\[\:checked\]\:bg-blue-100:has(:checked) { background-color: rgb(59 130 246 / .24); }
html.dark .peer:checked ~ .peer-checked\:bg-indigo-50, html.dark .has-\[\:checked\]\:bg-indigo-50:has(:checked) { background-color: rgb(99 102 241 / .18); }
html.dark .peer:checked ~ .peer-checked\:bg-indigo-100, html.dark .has-\[\:checked\]\:bg-indigo-100:has(:checked) { background-color: rgb(99 102 241 / .24); }
html.dark .peer:checked ~ .peer-checked\:bg-yellow-50, html.dark .has-\[\:checked\]\:bg-yellow-50:has(:checked) { background-color: rgb(234 179 8 / .18); }
html.dark .peer:checked ~ .peer-checked\:bg-yellow-100, html.dark .has-\[\:checked\]\:bg-yellow-100:has(:checked) { background-color: rgb(234 179 8 / .24); }
html.dark .peer:checked ~ .peer-checked\:bg-amber-50, html.dark .has-\[\:checked\]\:bg-amber-50:has(:checked) { background-color: rgb(245 158 11 / .18); }
html.dark .peer:checked ~ .peer-checked\:bg-amber-100, html.dark .has-\[\:checked\]\:bg-amber-100:has(:checked) { background-color: rgb(245 158 11 / .24); }
html.dark .peer:checked ~ .peer-checked\:bg-orange-50, html.dark .has-\[\:checked\]\:bg-orange-50:has(:checked) { background-color: rgb(249 115 22 / .18); }
html.dark .peer:checked ~ .peer-checked\:bg-orange-100, html.dark .has-\[\:checked\]\:bg-orange-100:has(:checked) { background-color: rgb(249 115 22 / .24); }
html.dark .peer:checked ~ .peer-checked\:bg-purple-50, html.dark .has-\[\:checked\]\:bg-purple-50:has(:checked) { background-color: rgb(168 85 247 / .18); }
html.dark .peer:checked ~ .peer-checked\:bg-purple-100, html.dark .has-\[\:checked\]\:bg-purple-100:has(:checked) { background-color: rgb(168 85 247 / .24); }
html.dark .peer:checked ~ .peer-checked\:bg-violet-50, html.dark .has-\[\:checked\]\:bg-violet-50:has(:checked) { background-color: rgb(139 92 246 / .18); }
html.dark .peer:checked ~ .peer-checked\:bg-violet-100, html.dark .has-\[\:checked\]\:bg-violet-100:has(:checked) { background-color: rgb(139 92 246 / .24); }
html.dark .peer:checked ~ .peer-checked\:bg-teal-50, html.dark .has-\[\:checked\]\:bg-teal-50:has(:checked) { background-color: rgb(20 184 166 / .18); }
html.dark .peer:checked ~ .peer-checked\:bg-teal-100, html.dark .has-\[\:checked\]\:bg-teal-100:has(:checked) { background-color: rgb(20 184 166 / .24); }
html.dark .peer:checked ~ .peer-checked\:bg-sky-50, html.dark .has-\[\:checked\]\:bg-sky-50:has(:checked) { background-color: rgb(14 165 233 / .18); }
html.dark .peer:checked ~ .peer-checked\:bg-sky-100, html.dark .has-\[\:checked\]\:bg-sky-100:has(:checked) { background-color: rgb(14 165 233 / .24); }
html.dark .peer:checked ~ .peer-checked\:bg-rose-50, html.dark .has-\[\:checked\]\:bg-rose-50:has(:checked) { background-color: rgb(244 63 94 / .18); }
html.dark .peer:checked ~ .peer-checked\:bg-rose-100, html.dark .has-\[\:checked\]\:bg-rose-100:has(:checked) { background-color: rgb(244 63 94 / .24); }
