/* ============================================================
   SHIPPCOST — Refonte visuelle 2026 (calque de surcharge)
   Chargé APRÈS style.css. Ne modifie pas la structure HTML.
   Palette : navy profond + accent ambre unique, cartes claires.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --brand: #0B1F3A;
    --brand-2: #0F2849;
    --brand-3: #1A3E6E;
    --accent: #F07800;
    --accent-2: #FF9520;
    --accent-ink: #ffffff;
    --ink: #0C1B2E;
    --muted: #4A5168;
    --line: #DDE2E8;
    /* remap des anciens tokens (résout le conflit vert/navy) */
    --primary-color: #0B1F3A;
    --secondary-color: #0F2849;
    --accent-color: #F07800;
    --brand2: #0F2849;
    --panel: #0F2849;
    --text: #0C1B2E;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -.01em;
}

/* ---------- Header / nav ---------- */
.logisti-header {
    background: linear-gradient(90deg, #081527, #0B1F3A 62%, #1A3E6E);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.logisti-logo .logo-box {
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 10px;
    box-shadow: none;
    font-weight: 800;
}

.logisti-logo a { font-weight: 800; }

.nav-links li a { font-weight: 600; font-size: .92rem; }

.header-topbar { background: rgba(6, 16, 34, .55); }

/* ---------- Hero ---------- */
.hero {
    background-image:
        linear-gradient(180deg, rgba(8, 21, 39, .92), rgba(11, 31, 58, .80) 44%, rgba(222, 217, 202, 1) 100%),
        url('img/banniere.png');
    padding: 58px 0 42px;
}

.hero h1 {
    font-weight: 800;
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    letter-spacing: -.02em;
    line-height: 1.12;
    max-width: 640px;
    margin: 10px 0 10px;
}

.hero p {
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 58ch;
    color: rgba(226, 236, 250, .92);
}

.kicker { color: var(--accent); letter-spacing: .14em; }

.hero .badge {
    background: rgba(240, 120, 0, .16);
    border: 1px solid rgba(255, 149, 32, .40);
    color: #FFC98A;
}

/* Barre de recherche : blanche, premium */
.search-bar {
    background: #fff;
    border: 1px solid #fff;
    border-radius: 14px;
    padding: 8px;
    gap: .35rem;
    max-width: 640px;
    box-shadow: 0 16px 36px rgba(6, 18, 40, .30);
    backdrop-filter: none;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--ink);
    padding: .85rem 1rem;
    font-size: 1rem;
    min-width: 200px;
}

.search-bar input::placeholder { color: #8aa0ba; }
.search-bar input:focus { border: none; box-shadow: none; }

.search-bar #homeCompanySelect {
    color: var(--ink) !important;
    border-left: 1px solid var(--line);
    font-weight: 600;
}

.search-bar .btn.accent { padding: .82rem 1.4rem; border-radius: 10px; }

.search-meta {
    color: rgba(226, 236, 250, .85);
    font-weight: 500;
    font-size: .86rem;
}

/* Tracking retiré du hero : masquer l'ancienne barre de recherche */
.hero .search-bar,
.hero .search-meta,
#homeTrackResult { display: none !important; }

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 4px;
}

.hero-cta .btn { padding: .85rem 1.5rem; }

/* ---------- Boutons ---------- */
.btn {
    border-radius: 10px;
    font-weight: 700;
    padding: .78rem 1.15rem;
    transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}

.btn.accent {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 6px 16px rgba(240, 120, 0, .30);
}

.btn.accent:hover {
    background: var(--accent-2);
    transform: translateY(-1px);
    filter: none;
}

.btn.secondary {
    background: #fff;
    border: 1px solid #d5e0ec;
    color: var(--brand);
}

.btn.secondary:hover { background: #f2f6fb; border-color: #b9cbe0; }

/* ---------- Cartes claires ---------- */
.card {
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(9, 30, 63, .06);
    transition: transform .15s, box-shadow .15s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(9, 30, 63, .10);
}

.card .head {
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.02rem;
    padding: 16px 16px 6px;
    border: none;
}

.card.icon { border-top: 1px solid var(--line); }

.card .head .badge {
    background: #eef3fa;
    border: 1px solid #dfe8f3;
    color: var(--brand);
    font-weight: 600;
}

.iconbox {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e9f0fb;
    color: var(--brand);
    border: none;
    font-size: 1.15rem;
    font-weight: 700;
}

.card.icon:nth-child(2) .iconbox { background: #fbeedd; color: #c07d16; }
.card.icon:nth-child(3) .iconbox { background: #dff5f2; color: #0e9a8f; }

.card .body { padding: 6px 16px 18px; }
.card .body .muted { color: var(--muted); line-height: 1.55; }

/* ---------- Divers ---------- */
.notice {
    background: #f4f8fd;
    border: 1px solid #e0e9f4;
    border-radius: 12px;
}

.notice b { color: var(--brand); }

hr.sep { border-top: 1px solid var(--line); }

/* ---------- Pages Connexion / Inscription ---------- */
body:has(.container2) { background: #DED9CA; }

.container2 {
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(9, 30, 63, .12);
    padding: 38px 34px;
    max-width: 420px;
    margin: 32px auto;
}

.container2 h1 {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -.01em;
}

.container2 .subtitle { color: var(--muted); }

.container2 label { color: var(--ink); font-weight: 600; font-size: .9rem; }

.container2 input[type="email"],
.container2 input[type="password"],
.container2 input[type="text"],
.container2 input[type="tel"] {
    border: 1px solid #d9e2ee;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.container2 input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14, 47, 92, .12);
    outline: none;
}

.container2 .btn.btn-primary {
    background: var(--brand);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    padding: 13px;
    box-shadow: 0 8px 20px rgba(14, 47, 92, .22);
}

.container2 .btn.btn-primary:hover {
    background: #0a2547;
    box-shadow: 0 10px 24px rgba(14, 47, 92, .28);
    transform: translateY(-1px);
}

.container2 .links a { color: var(--brand); font-weight: 600; }

/* ============================================================
   Ajustements 29/07/2026
   - largeur : le contenu remplit la page (plus de grandes marges)
   - bouton « Faire un don » mis en avant
   - avertissement « estimation indicative » visible sur le site
   ============================================================ */

/* Largeur : on passe de 1120px à 1600px pour occuper l'écran */
.container {
    width: min(1600px, calc(100% - 40px));
}

/* Bouton « Faire un don » : pastille orange bien visible */
.topbar-don {
    background: var(--accent);
    color: #fff !important;
    padding: 5px 14px;
    border-radius: 999px;
    font-weight: 700;
    margin-left: 0;
    box-shadow: 0 3px 10px rgba(240, 120, 0, .35);
    animation: donPulse 2.6s ease-in-out infinite;
}

.topbar-don i { color: #fff !important; }

.topbar-don:hover {
    background: var(--accent-2);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(240, 120, 0, .45);
}

@keyframes donPulse {
    0%, 100% { box-shadow: 0 3px 10px rgba(240, 120, 0, .35); }
    50%      { box-shadow: 0 3px 16px rgba(240, 120, 0, .60); }
}

@media (prefers-reduced-motion: reduce) {
    .topbar-don { animation: none; }
}

/* Encart de soutien au projet (accueil) */
.support-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(100deg, #FFF4E6, #FFE8CC);
    border: 1px solid #FFD8A8;
    border-left: 5px solid var(--accent);
    border-radius: 14px;
    padding: 18px 22px;
    color: #7A3608;
}

.support-cta .support-cta-btn {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 20px;
    white-space: nowrap;
    text-decoration: none;
}

.support-cta .support-cta-btn:hover { background: var(--accent-2); }

/* Avertissement : estimation indicative */
.estimation-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-left: 5px solid #B8860B;
    border-radius: 10px;
    padding: 14px 18px;
    color: #6B4B00;
    font-size: 14.5px;
    line-height: 1.5;
    margin: 16px 0;
}

.estimation-disclaimer i { color: #B8860B; font-size: 18px; margin-top: 1px; }

/* Rappel discret en pied de page */
.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, .15);
    margin-top: 22px;
    padding-top: 16px;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

/* Séparateur « ou » au-dessus du bouton Google */
.google-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: var(--muted);
    font-size: 13px;
}

.google-sep::before,
.google-sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ── Bouton « Télécharger l'app » (PWA) ───────────────────────────────────────
   Rendu discret à côté du bouton de don, qui doit rester le plus visible.
   L'attribut [hidden] doit l'emporter : le bouton n'apparaît que lorsque
   l'installation est réellement possible (voir public/assets/pwa.js). */
.topbar-install {
    background: transparent;
    border: 1px solid rgba(234, 242, 255, .45);
    color: #EAF2FF;
    padding: 4px 12px;
    margin-left: 10px;
    border-radius: 999px;
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .2s, border-color .2s;
}

.topbar-install:hover {
    background: rgba(234, 242, 255, .12);
    border-color: rgba(234, 242, 255, .8);
}

.topbar-install[hidden] { display: none !important; }

@media (max-width: 520px) {
    .topbar-install { padding: 4px 9px; font-size: .76rem; }
    .topbar-install span { display: none; }
}

/* ── Encart « Installer l'application » (page d'accueil) ──────────────────────
   Même gabarit que .support-cta, en teinte navy pour ne pas concurrencer
   visuellement le bouton de don, qui reste l'appel à l'action prioritaire. */
.app-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #0B1F3A 0%, #1A3E6E 100%);
    color: #EAF2FF;
    border-radius: 14px;
    padding: 18px 22px;
}

.app-cta-texte {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15.5px;
    line-height: 1.5;
}

.app-cta-icone {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
}

.app-cta-btn {
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 12px 26px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(240, 120, 0, .35);
    transition: background .2s, transform .2s, box-shadow .2s;
}

.app-cta-btn:hover {
    background: var(--accent-2);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(240, 120, 0, .45);
}

.app-cta-btn[hidden] { display: none !important; }

@media (max-width: 620px) {
    .app-cta { flex-direction: column; align-items: stretch; text-align: left; }
    .app-cta-btn { justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   ACCUEIL — version douce et aérée (moins chargée)
   Objectif : plus de respiration, des surfaces claires et cohérentes,
   des ombres discrètes. Ce bloc est en fin de fichier : il prime.
   ═══════════════════════════════════════════════════════════════════ */

/* Hero : dégradé plus léger, moins écrasant, davantage d'air */
.hero {
    background-image:
        linear-gradient(180deg, rgba(11, 31, 58, .82), rgba(26, 62, 110, .55) 52%, rgba(244, 241, 232, 1) 100%),
        url('img/banniere.png');
    padding: 76px 0 66px;
}
.hero .kicker { font-size: .8rem; opacity: .92; margin-bottom: 4px; }
.hero h1 { font-weight: 700; letter-spacing: -.015em; max-width: 620px; }
.hero p { color: rgba(233, 240, 250, .85); font-size: 1.05rem; max-width: 52ch; }
.hero-cta { margin-top: 22px; }

/* Sections : respiration verticale homogène */
main > section.section { padding: 34px 0 0 !important; }
main > section.section:last-of-type { padding-bottom: 40px !important; }

/* Bannières promotionnelles : toutes claires, douces, cohérentes */
.support-cta {
    background: #fbf7f1;
    border: 1px solid #f0e4d4;
    border-left: 4px solid var(--accent);
    box-shadow: 0 3px 14px rgba(9, 30, 63, .04);
    color: #6b4a2a;
    border-radius: 16px;
    padding: 20px 24px;
}
.app-cta {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: 0 3px 14px rgba(9, 30, 63, .04);
    border-radius: 16px;
    padding: 20px 24px;
}
.app-cta-texte span span { opacity: .68 !important; }

/* Cartes : ombres douces, coins ronds, plus d'air */
.card {
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(9, 30, 63, .045);
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(9, 30, 63, .08);
}
.card .head { padding: 18px 18px 6px; font-weight: 700; }
.card .body { padding: 6px 18px 18px; }
.card .muted { color: #6b7a8d; line-height: 1.55; }
.grid.cols-3 { gap: 22px; }

/* Séparateur discret + note finale légère */
.sep { border: none; border-top: 1px solid var(--line); opacity: .55; margin: 36px 0; }
.notice {
    background: #fbfaf6;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #5f6b78;
    line-height: 1.6;
}

@media (max-width: 720px) {
    .hero { padding: 56px 0 48px; }
    main > section.section { padding-top: 26px !important; }
}

/* ── Incitation « créer un compte » (accueil) ───────────────────────────────── */
.account-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 3px 14px rgba(9, 30, 63, .04);
}
.account-cta-text { font-size: 15px; line-height: 1.5; color: #5f6b78; }
.account-cta-text strong:first-child { display: block; color: var(--ink); font-size: 1.06rem; margin-bottom: 3px; }
.account-cta-text strong { color: var(--accent-2); }
.account-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
    .account-cta { flex-direction: column; align-items: stretch; }
    .account-cta-actions { }
    .account-cta-actions .btn { flex: 1; text-align: center; justify-content: center; }
}

/* ── Boutons Connexion / Inscription bien visibles (barre du haut) ───────────── */
.topbar-login,
.topbar-signup {
    border-radius: 999px;
    padding: 5px 14px;
    font-weight: 700;
    font-size: .86rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .2s, border-color .2s, transform .15s;
}
.topbar-login {
    border: 1px solid rgba(234, 242, 255, .55);
    color: #EAF2FF !important;
}
.topbar-login:hover { background: rgba(234, 242, 255, .14); transform: translateY(-1px); }

.topbar-signup {
    background: var(--accent);
    color: #fff !important;
    border: 1px solid var(--accent);
    box-shadow: 0 3px 10px rgba(240, 120, 0, .35);
}
.topbar-signup:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
.topbar-signup i, .topbar-login i { font-size: .85em; }

@media (max-width: 520px) {
    .topbar-login span, .topbar-signup span { }
    .topbar-login, .topbar-signup { padding: 5px 11px; font-size: .8rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   DARK MODE
   Activé par [data-theme="dark"] sur <html> (choix explicite mémorisé),
   ou par la préférence système si aucun choix n'a été fait.
   Bloc en fin de fichier : il prime sur les surfaces claires en dur.
   ═══════════════════════════════════════════════════════════════════ */
:root[data-theme="dark"] {
    --ink: #ededed;
    --muted: #a3a3a3;
    --line: #2c2c2c;
    --bg: #0d0d0d;
    --surface: #1b1b1b;
    --primary-color: #262626;
    --text: #ededed;
}

:root[data-theme="dark"] body { background: #0d0d0d !important; color: var(--ink); }

/* Surfaces claires → sombres */
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .card .head,
:root[data-theme="dark"] .card .body,
:root[data-theme="dark"] .account-cta,
:root[data-theme="dark"] .support-cta,
:root[data-theme="dark"] .app-cta,
:root[data-theme="dark"] .notice,
:root[data-theme="dark"] .search-bar,
:root[data-theme="dark"] a[href*="shippingfiles"] {
    background: #1b1b1b !important;
    border-color: #2c2c2c !important;
    color: var(--ink) !important;
}
:root[data-theme="dark"] .card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.45) !important; }

/* Textes */
:root[data-theme="dark"] .card .head,
:root[data-theme="dark"] .account-cta-text strong:first-child,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3 { color: var(--ink) !important; }
:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .account-cta-text,
:root[data-theme="dark"] .card .muted,
:root[data-theme="dark"] .notice { color: #a3a3a3 !important; }

/* Boutons secondaires clairs → sombres */
:root[data-theme="dark"] .btn.secondary {
    background: #242424 !important;
    border-color: #3a3a3a !important;
    color: #d6d6d6 !important;
}
:root[data-theme="dark"] .btn.secondary:hover { background: #2b2b2b !important; }

/* Icônes de carte (fonds pastel) → atténuées */
:root[data-theme="dark"] .iconbox { filter: brightness(.9) saturate(.9); }

/* Séparateur */
:root[data-theme="dark"] .sep { border-top-color: #2c2c2c !important; }

/* Champs de formulaire */
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
    background: #161616 !important;
    border-color: #333333 !important;
    color: var(--ink) !important;
}
:root[data-theme="dark"] input::placeholder { color: #6f6f6f !important; }

/* Bouton bascule thème */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(234, 242, 255, .35);
    color: #EAF2FF;
    width: 34px; height: 34px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .95rem;
    transition: background .2s, transform .15s;
    margin-left: 6px;
}
.theme-toggle:hover { background: rgba(234, 242, 255, .14); transform: translateY(-1px); }

/* Sélecteur de langue (barre du haut) */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: .82rem; font-weight: 700; }
.lang-switch a { color: rgba(234, 242, 255, .6); text-decoration: none; padding: 2px 4px; border-radius: 5px; }
.lang-switch a.active { color: #fff; background: rgba(234, 242, 255, .16); }
.lang-switch a:hover { color: #fff; }
.lang-switch span { color: rgba(234, 242, 255, .35); }

/* ═══════════════════════════════════════════════════════════════════
   DARK MODE — COUVERTURE COMPLÈTE DU SITE
   Cible les surfaces claires par CLASSE, par ÉLÉMENT et par STYLE EN
   LIGNE (attribut style*="…"), pour atteindre toutes les pages internes
   (calcul, tarifs, connexion, profil, admin…) sans refonte du HTML.
   ═══════════════════════════════════════════════════════════════════ */
:root[data-theme="dark"] {
    --brand: #1b1b1b;
    --brand-2: #202020;
    --panel: #1b1b1b;
    --dark-color: #ededed;
    --secondary-color: #c8c8c8;
}

/* Fonds de page définis en dur sur certaines pages */
:root[data-theme="dark"] body,
:root[data-theme="dark"] body:has(.container2) { background: #0d0d0d !important; color: #ededed; }

/* ── Surfaces claires → sombres ─────────────────────────────────────── */
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .panel__head,
:root[data-theme="dark"] .panel__body,
:root[data-theme="dark"] .panel__sub,
:root[data-theme="dark"] .panel__placeholder,
:root[data-theme="dark"] .modal,
:root[data-theme="dark"] .modal-content,
:root[data-theme="dark"] .purchase-modal-content,
:root[data-theme="dark"] .purchase-modal-body,
:root[data-theme="dark"] .calculator-form,
:root[data-theme="dark"] .calculator-section,
:root[data-theme="dark"] .calculation-form-container,
:root[data-theme="dark"] .contact-form,
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .pricing-card,
:root[data-theme="dark"] .partner-card,
:root[data-theme="dark"] .placeholderCard,
:root[data-theme="dark"] .directory-section,
:root[data-theme="dark"] .expedition-section,
:root[data-theme="dark"] .advertising-section,
:root[data-theme="dark"] .packs-container,
:root[data-theme="dark"] .pack-option,
:root[data-theme="dark"] .container2,
:root[data-theme="dark"] .page-header,
:root[data-theme="dark"] .form-group,
:root[data-theme="dark"] .toast,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .admin-section,
:root[data-theme="dark"] .admin-card,
:root[data-theme="dark"] .data-table,
:root[data-theme="dark"] .data-table-container,
:root[data-theme="dark"] .dropdown-item,
:root[data-theme="dark"] .user-dropdown,
:root[data-theme="dark"] [style*="background:#fff"],
:root[data-theme="dark"] [style*="background: #fff"],
:root[data-theme="dark"] [style*="background:white"],
:root[data-theme="dark"] [style*="background: white"],
:root[data-theme="dark"] [style*="background-color:#fff"],
:root[data-theme="dark"] [style*="background-color: #fff"],
:root[data-theme="dark"] [style*="background-color:white"],
:root[data-theme="dark"] [style*="background-color: white"],
:root[data-theme="dark"] [style*="background:#f8f9fa"],
:root[data-theme="dark"] [style*="background-color:#f8f9fa"] {
    background: #1b1b1b !important;
    border-color: #2c2c2c !important;
    color: #ededed;
}

/* Sur-fonds très clairs (gris de section) → un cran plus foncé */
:root[data-theme="dark"] [style*="#f8f9fa"],
:root[data-theme="dark"] [style*="#f4f8fd"],
:root[data-theme="dark"] .page-header { background: #161616 !important; }

/* ── Champs de formulaire ───────────────────────────────────────────── */
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
    background: #161616 !important;
    color: #ededed !important;
    border-color: #333333 !important;
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder { color: #777 !important; }

/* ── Tableaux ───────────────────────────────────────────────────────── */
:root[data-theme="dark"] table,
:root[data-theme="dark"] .data-table th,
:root[data-theme="dark"] .data-table td {
    background: #1b1b1b !important;
    color: #ededed !important;
    border-color: #2c2c2c !important;
}
:root[data-theme="dark"] .data-table thead th,
:root[data-theme="dark"] .data-table tr:nth-child(even) td { background: #202020 !important; }

/* ── Textes sombres en dur → clairs ─────────────────────────────────── */
:root[data-theme="dark"] [style*="color:#333"],
:root[data-theme="dark"] [style*="color: #333"],
:root[data-theme="dark"] [style*="color:#444"],
:root[data-theme="dark"] [style*="color:#212529"],
:root[data-theme="dark"] [style*="color: #212529"],
:root[data-theme="dark"] [style*="color:#0a3d91"],
:root[data-theme="dark"] [style*="color:#555"],
:root[data-theme="dark"] [style*="color: #555"] { color: #e0e0e0 !important; }

/* Titres et libellés génériques dans les zones de contenu */
:root[data-theme="dark"] main h1,
:root[data-theme="dark"] main h2,
:root[data-theme="dark"] main h3,
:root[data-theme="dark"] main h4,
:root[data-theme="dark"] main label,
:root[data-theme="dark"] .modal-title,
:root[data-theme="dark"] .pricing-card-title { color: #ededed !important; }

/* Le hero garde son visuel sombre d'origine (déjà lisible) */
:root[data-theme="dark"] .hero h1,
:root[data-theme="dark"] .hero p { color: #f2f2f2 !important; }

/* Compléments dark : modale d'achat, message d'info, pied de page, sections */
:root[data-theme="dark"] .purchase-modal-header,
:root[data-theme="dark"] .purchase-modal-footer,
:root[data-theme="dark"] .order-summary,
:root[data-theme="dark"] .summary-row,
:root[data-theme="dark"] .divider,
:root[data-theme="dark"] footer,
:root[data-theme="dark"] .footer-content,
:root[data-theme="dark"] .footer-disclaimer,
:root[data-theme="dark"] .copyright {
    background: #141414 !important;
    border-color: #2c2c2c !important;
    color: #dcdcdc !important;
}
:root[data-theme="dark"] .info-message-purchase {
    background: #10222e !important;
    border-color: #1c3a4a !important;
    color: #bfe3f5 !important;
}
/* Toute section dont le fond calculé est clair : neutralisée en sombre.
   (les sections de contenu clair des pages internes) */
:root[data-theme="dark"] main > section { background: transparent !important; }
:root[data-theme="dark"] section[style*="background"] { background: #0d0d0d !important; }

/* Liens gris sombre → clairs dans le contenu */
:root[data-theme="dark"] main a:not(.btn):not(.topbar-link):not(.support-cta-btn):not(.app-cta-btn) { color: #7fb0e6; }
:root[data-theme="dark"] .footer-links a { color: #b8b8b8 !important; }
:root[data-theme="dark"] .footer-links a:hover { color: #fff !important; }
