/* ---------------------------------------------------------------- Thèmes : clair (défaut) / sombre ---------------------------------------------------------------- */
:root {
  --ac-surface: #fff; --ac-titre: #00345b; --ac-ok-fond: #E3F5E8; --ac-ok-txt: #1E6B35; --ac-err-fond: #FDE7EC;
  --ac-ambre-fond: #FFF3CD; --ac-ambre-txt: #7A5B00; --ac-passe-ligne: #C9CDD1; --ac-passe-txt: #9AA0A6; --ac-piste: #E3E5E8;
  --color-footer-border: #A29F95; --bodrer-collapsible: #A29F95;      /* bordures et séparateurs : le gris clair d'origine (#E0DED8) disparaissait sur fond blanc */
  --ac-accent-texte: var(--color-crimson-red);      /* rouge de la charte quand il sert à écrire (en sombre : plus clair pour rester lisible) */
}
html[data-theme=dark] {
  color-scheme: dark;
  --ac-surface: #1E2530; --ac-titre: #A9CBEA; --ac-ok-fond: #17301F; --ac-ok-txt: #6FD08C; --ac-err-fond: #3A1A24;
  --ac-ambre-fond: #3A3014; --ac-ambre-txt: #F2D36B; --ac-passe-ligne: #4A5362; --ac-passe-txt: #7C8696; --ac-piste: #343C4A;
  /* fonds */
  --color-background: #12161C; --header-Background: #1A2029; --header-Background-Mobile: #1A2029; --header-Background-Stepper: #1A2029;
  --color-footer-background: #1A2029; --color-collapsible: #1A2029; --color-bg-page-navigation: #1A2029; --color-tracking-stat-bg: #1A2029;
  --color-secondary: #1E2530; --color-tertiary: #1E2530; --color-trainInfosDesktop: #1E2530; --color-trainInfosMobile: #1E2530; --color-light-warm-grey-white: #1E2530;
  --color-language-menu-button-background: #1E2530; --color-feedback-icon-bg: #1E2530; --color-feedback-icon-bg-header: #1E2530;
  /* textes */
  --color-charcoal-Gray: #E4E7EB; --color-footer-element: #E4E7EB; --color-navigation-label: #E4E7EB; --color-menu-item-text-mobile: #E4E7EB; --color-language-menu-button-text: #E4E7EB;
  --color-trainInfoslabel: #E4E7EB; --color-trainInfoslabelDelayed: #E4E7EB; --color-trainInfoslabelRemoved: #E4E7EB; --color-stop-message: #E4E7EB; --color-stop-duration: #E4E7EB;
  --color-item-navigation-mobile-inactive: #E4E7EB; --color-thermo-mobile-text: #E4E7EB; --color-trainInfosFallback: #E4E7EB; --color-trainInfosFallbackMobile: #E4E7EB;
  --color-feedback-icon-inactive: #E4E7EB; --color-feedback-icon-inactive-header: #E4E7EB; --color-Dark-Carbon: #E4E7EB; --arrival-color: #E4E7EB; --txt-arrival-color-removed: #E4E7EB;
  --color-Grey-Scale-500: #9AA3B0; --color-tracking-text: #A9CBEA; --color-modal-co2-text: #E4E7EB; --color-text-Co2-Mobile: #E4E7EB;
  --color-nav-item-color: #6FB9DD; --btn-navItem: #6FB9DD; --color-trainInfosDesktopColor: #6FB9DD; --color-mobile-nav-color: #6FB9DD; --color-movies-description: #6FB9DD;
  /* bordures, pistes, pastilles */
  --color-footer-border: #4A5568; --bodrer-collapsible: #4A5568; --color-trainInfosProgress: #3A4351; --color-Warm-grey: #4A5362;
  --color-back-button: #3A2530; --hover-bg-navigation-label: #3A2530; --color-trainInfosMobileSeparator: #6FB9DD;
  /* accents : rouge plus clair pour rester lisible sur fond sombre ; bleu foncé des boutons éclairci pour garder le texte blanc lisible */
  --color-crimson-red: #CC3A62; --color-train-position: #CC3A62; --color-trainInfosComplete: #CC3A62; --color-activity-arrow-button: #CC3A62; --bg-slide-arrow: #CC3A62; --ac-accent-texte: #F0668B;
  --active-bg-navigation-label: #B8305A; --gareNameHover-color: #F0668B; --color-hover-navigation-label: #F0668B; --color-menu-burger: #F0668B; --btn-color-fill: #CC3A62;
  --color-inoui-dark-blue: #1B4F7A; --color-inoui-dark-blue-mobile: #1B4F7A; --bg-premium: #1B4F7A; --bg-button-business-premier: #1B4F7A;
}
html[data-theme=dark] body { background: var(--color-background); color: var(--color-charcoal-Gray); }

/* Fonds / textes écrits en dur dans le CSS officiel */
html[data-theme=dark] .Layout, html[data-theme=dark] .JourneySideMenu { background-color: var(--color-background); }
html[data-theme=dark] .header-desktop-icon, html[data-theme=dark] .inoui-bot-widget-window-box, html[data-theme=dark] .swiper-slide { background-color: var(--ac-surface); }
:where(html[data-theme=dark]) button, :where(html[data-theme=dark]) [role="button"], :where(html[data-theme=dark]) [role="menuitem"] { color: inherit; }
html[data-theme=dark] .menu-wrapper { background: var(--color-background); }
