/* ═══════════════════════════════════════════════
   Aurora Engines — Dark Mode Overrides
   Activated via: html.dark
   ═══════════════════════════════════════════════ */

/* ── Base ── */
html.dark { background: #0a0a0a; }
html.dark body { background: #0a0a0a; color: #f5f5f7; }

/* ── common.css: skeleton ── */
html.dark .sk { background: linear-gradient(90deg, #2c2c2e 25%, #3a3a3c 50%, #2c2c2e 75%); background-size: 200% 100%; }

/* ── Header (all pages) ── */
html.dark .header { background: rgba(18,18,18,0.88); border-bottom-color: rgba(255,255,255,0.08); }
html.dark .header-logo { filter: brightness(0) invert(1) !important; opacity: 0.9 !important; }
html.dark .header-sep { background: rgba(255,255,255,0.1); }
html.dark .header-title { color: #f5f5f7; }
html.dark .header-link { color: #4a9eff; }
html.dark .header-current { color: #f5f5f7; }

/* ── Burger menu (common.css) ── */
html.dark .burger-btn { color: #f5f5f7; }
html.dark .burger-btn:hover { background: #2c2c2e; }
html.dark .burger-menu { background: #1c1c1e; border-bottom-color: rgba(255,255,255,0.08); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
html.dark .burger-menu a { color: #f5f5f7; border-bottom-color: rgba(255,255,255,0.06); }
html.dark .burger-menu a:hover { background: #2c2c2e; }
html.dark .burger-menu a.burger-current { color: #636366; }

/* ── LOADER ── */
html.dark .aurora-loader { background: #0a0a0a; }
html.dark .aurora-loader img { filter: invert(1); }
html.dark .aurora-spinner { border-color: #3a3a3c; border-top-color: #f5f5f7; }

/* ── EQUIPES ── */
html.dark .stat { background: #1c1c1e; }
html.dark .stat-number { color: #f5f5f7; }
html.dark .stat-label { color: #8e8e93; }
html.dark .search-input { background: #2c2c2e; border-color: rgba(255,255,255,0.15); color: #f5f5f7; }
html.dark .search-input::placeholder { color: #636366; }
html.dark .search-input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,0.05); }
html.dark .filter { background: #2c2c2e; color: #8e8e93; border-color: transparent; }
html.dark .filter:hover { background: #3a3a3c; color: #f5f5f7; }
html.dark .filter.active { background: #f5f5f7; color: #1d1d1f; border-color: transparent; }
html.dark .filter .count { background: rgba(255,255,255,0.1); color: #8e8e93; }
html.dark .filter.active .count { background: #1d1d1f; color: #fff; }
html.dark .role-tabs-bar { border-bottom-color: rgba(255,255,255,0.08); }
html.dark .role-tab { color: rgba(255,255,255,0.25); }
html.dark .role-tab:hover { color: #f5f5f7; }
html.dark .role-tab.active { color: #f5f5f7; border-bottom-color: #f5f5f7; }
html.dark .role-tab.active .role-tab-count { background: #f5f5f7; color: #1d1d1f; }
html.dark .role-tab-count { background: rgba(255,255,255,0.1); color: #8e8e93; }
html.dark .role-tab[data-role="monteur"] { color: rgba(220,38,38,0.4); }
html.dark .role-tab[data-role="monteur"]:hover,
html.dark .role-tab[data-role="monteur"].active { color: #f87171; border-bottom-color: #f87171; }
html.dark .role-tab[data-role="monteur"].active .role-tab-count { background: #f87171; color: #1d1d1f; }
html.dark .role-tab[data-role="designer"] { color: rgba(167,139,250,0.4); }
html.dark .role-tab[data-role="designer"]:hover,
html.dark .role-tab[data-role="designer"].active { color: #a78bfa; border-bottom-color: #a78bfa; }
html.dark .role-tab[data-role="designer"].active .role-tab-count { background: #a78bfa; color: #1d1d1f; }
html.dark .role-tab[data-role="ugc"] { color: rgba(74,222,128,0.4); }
html.dark .role-tab[data-role="ugc"]:hover,
html.dark .role-tab[data-role="ugc"].active { color: #4ade80; border-bottom-color: #4ade80; }
html.dark .role-tab[data-role="ugc"].active .role-tab-count { background: #4ade80; color: #1d1d1f; }
html.dark .secondary-tab { color: #3a3a3c; }
html.dark .secondary-tab:hover { color: #636366; }
html.dark .secondary-tab.active { color: #636366; }
html.dark .secondary-tab-sep { color: #3a3a3c; }
html.dark .card { background: #1c1c1e; }
html.dark .card-name { color: #f5f5f7; }
html.dark .card-meta { color: #8e8e93; }
html.dark .card-avatar { background: #2c2c2e; color: #636366; }
html.dark .card-date { color: #636366; }
html.dark .card-details-inner { border-top-color: rgba(255,255,255,0.08); color: #8e8e93; }
html.dark .card-notes { background: #2c2c2e; border-color: rgba(255,255,255,0.06); color: #f5f5f7; }
html.dark .card-notes::placeholder { color: #636366; }
html.dark .card-notes:hover { border-color: rgba(255,255,255,0.12); }
html.dark .card-notes:focus { border-color: rgba(255,255,255,0.25); }
html.dark .card-portfolio { color: #4a9eff; }
html.dark .btn-expand,
html.dark .btn-edit { background: #2c2c2e; border-color: rgba(255,255,255,0.08); color: #8e8e93; }
html.dark .btn-expand:hover,
html.dark .btn-edit:hover { background: #3a3a3c; border-color: rgba(255,255,255,0.15); color: #f5f5f7; }
html.dark .btn-wa { background: #1a2e1e; border-color: rgba(37,211,102,0.25); }
html.dark .btn-wa:hover { background: #1f3823; border-color: rgba(37,211,102,0.45); }
html.dark .btn-relance { background: #1a1f2e; border-color: rgba(0,102,204,0.25); color: #4da3ff; }
html.dark .btn-relance:hover { background: #1f2638; border-color: rgba(0,102,204,0.45); }
html.dark .btn-contact-dispo { background: #2c2c2e; border-color: rgba(255,255,255,0.15); color: #f5f5f7; }
html.dark .btn-contact-dispo:hover { background: #3a3a3c; }
html.dark .edit-overlay { background: rgba(0,0,0,0.6); }
html.dark .edit-modal { background: #1c1c1e; box-shadow: 0 24px 64px rgba(0,0,0,0.5); }
html.dark .edit-modal-name { color: #f5f5f7; }
html.dark .edit-modal-sub { color: #8e8e93; }
html.dark .edit-section-title { color: #636366; }
html.dark .cat-option { color: #f5f5f7; }
html.dark .cat-option:hover { background: #2c2c2e; }
html.dark .cat-option.selected { background: #2c2c2e; border-color: rgba(255,255,255,0.1); }
html.dark #editToggleActifBtn { border-color: rgba(255,255,255,0.1) !important; background: #2c2c2e !important; color: #f5f5f7 !important; }
html.dark #editBanBtn { border-color: rgba(252,165,165,0.4) !important; background: #2c2c2e !important; color: #f87171 !important; }
html.dark .btn-contact-dispo { background: #2c2c2e !important; color: #f5f5f7 !important; border-color: rgba(255,255,255,0.2) !important; }
html.dark .btn-contact-dispo:hover { background: #3a3a3c !important; }
html.dark .edit-modal-footer { border-top-color: rgba(255,255,255,0.08); }
html.dark .btn-modal-delete { color: #636366; border-color: rgba(255,255,255,0.08); }
html.dark .btn-modal-delete:hover { color: #dc2626; border-color: rgba(252,165,165,0.4); background: #1a0a0a; }
html.dark .btn-modal-close { background: #2c2c2e; color: #8e8e93; }
html.dark .btn-modal-close:hover { background: #3a3a3c; }
html.dark .popup-overlay { background: rgba(0,0,0,0.6); }
html.dark .popup { background: #1c1c1e; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
html.dark .popup-title { color: #f5f5f7; }
html.dark .popup-desc { color: #8e8e93; }
html.dark .popup-desc strong { color: #f5f5f7; }
html.dark .popup-cancel { background: #2c2c2e; color: #f5f5f7; }
html.dark .popup-cancel:hover { background: #3a3a3c; }
html.dark .badge-popover { background: #1c1c1e; border-color: rgba(255,255,255,0.1); box-shadow: 0 4px 24px rgba(0,0,0,0.5); }
html.dark .badge-popover-item { color: #f5f5f7; }
html.dark .badge-popover-item:hover { background: #2c2c2e; }
html.dark .badge-popover-item.active { background: #2c2c2e; font-weight: 600; }
/* Badges niveau */
html.dark .badge-nouveau       { background: #0c2340; color: #60a5fa; }
html.dark .badge-intermediaire { background: #2c1a04; color: #fbbf24; }
html.dark .badge-expert        { background: #0c2318; color: #4ade80; }
html.dark .badge-confirme      { background: #0d2318; color: #4ade80; }
html.dark .badge-banni         { background: #2a0a0a; color: #f87171; }

/* Role tags sur les cartes */
html.dark .role-tag-monteur  { background: rgba(220,38,38,0.18);  color: #f87171; }
html.dark .role-tag-designer { background: rgba(167,139,250,0.18); color: #c4b5fd; }
html.dark .role-tag-ugc      { background: rgba(74,222,128,0.18);  color: #4ade80; }
html.dark .role-tags-sep     { background: rgba(255,255,255,0.1); }

/* Compteurs onglets rôles (inactifs) */
html.dark .role-tab[data-role="monteur"]  .role-tab-count { background: rgba(220,38,38,0.18);  color: #f87171; }
html.dark .role-tab[data-role="designer"] .role-tab-count { background: rgba(167,139,250,0.18); color: #c4b5fd; }
html.dark .role-tab[data-role="ugc"]      .role-tab-count { background: rgba(74,222,128,0.18);  color: #4ade80; }

/* Popup suppression — icône */
html.dark .popup-icon { background: #2a0a0a; }

/* WA prompt — bouton primaire */
html.dark .wa-prompt-btn.primary { background: #f5f5f7; color: #1d1d1f; border-color: transparent; }
html.dark .wa-prompt-btn.primary:hover { background: #e5e5ea; }

/* Contact bar — bouton send désactivé */
html.dark .contact-bar-send:disabled { background: #3a3a3c; color: #636366; }

html.dark .badge-interviewer { background: #1e2a4a; color: #7aa3f5; border-color: transparent; }
html.dark .badge-interviewer:hover { background: #253460; border-color: rgba(122,163,245,0.3); }
html.dark .contact-bar { background: rgba(18,18,18,0.96); border-top-color: rgba(255,255,255,0.08); }
html.dark .contact-bar-cancel { background: #2c2c2e; color: #8e8e93; }
html.dark .contact-bar-cancel:hover { background: #3a3a3c; color: #f5f5f7; }
html.dark .contact-bar-msg { background: #2c2c2e; color: #f5f5f7; border-color: transparent; }
html.dark .contact-bar-msg:focus { border-color: rgba(255,255,255,0.2); background: #1c1c1e; }
html.dark .contact-bar-hint { color: #636366; }
html.dark .card.contact-card:not(.no-phone):hover { background: #2c2c2e; }
html.dark .card.contact-card.selected { background: #0d2318; border-color: #25d366; }
html.dark .card-sel-ring { background: #2c2c2e; border-color: #3a3a3c; }
html.dark .sending-overlay { background: rgba(0,0,0,0.75); }
html.dark .sending-modal { background: #1c1c1e; box-shadow: 0 24px 64px rgba(0,0,0,0.5); }
html.dark .sending-step-label { color: #636366; }
html.dark .sending-name { color: #f5f5f7; }
html.dark .sending-phone { color: #8e8e93; }
html.dark .sending-msg-edit { background: #2c2c2e; color: #f5f5f7; border-color: transparent; }
html.dark .sending-msg-edit:focus { border-color: rgba(255,255,255,0.2); background: #1c1c1e; }
html.dark .sending-skip-btn { background: #2c2c2e; color: #8e8e93; }
html.dark .sending-skip-btn:hover { background: #3a3a3c; color: #f5f5f7; }
html.dark .wa-prompt-overlay { background: rgba(0,0,0,0.5); }
html.dark .wa-prompt { background: #1c1c1e; box-shadow: 0 24px 64px rgba(0,0,0,0.5); }
html.dark .wa-prompt-title { color: #f5f5f7; }
html.dark .wa-prompt-sub { color: #8e8e93; }
html.dark .wa-prompt-btn { background: #2c2c2e; border-color: rgba(255,255,255,0.1); color: #f5f5f7; }
html.dark .wa-prompt-btn:hover { background: #3a3a3c; }
html.dark .wa-prompt-hint { color: #636366; }

/* ── OUTILS — Liens publics ── */
html.dark .pl-card { background: #1c1c1e; border-color: rgba(255,255,255,0.08); }
html.dark .pl-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.4); }
html.dark .pl-card-name { color: #f5f5f7; }
html.dark .pl-card-url  { color: #636366; }
html.dark .pl-open-btn  { background: #2c2c2e; color: #8e8e93; }
html.dark .pl-open-btn:hover { background: #3a3a3c; color: #f5f5f7; }
html.dark .pl-copy { background: #2c2c2e; color: #f5f5f7; }
html.dark .pl-copy:hover { background: #3a3a3c; }
html.dark .pl-copy.copied { background: #0c2318; color: #4ade80; }

/* ── ADMISSIONS ── */
html.dark .tab { color: #636366; }
html.dark .tab:hover { color: #f5f5f7; }
html.dark .tab.active { color: #f5f5f7; border-bottom-color: #f5f5f7; }
html.dark .tab .count { background: rgba(255,255,255,0.08); color: #636366; }
html.dark .tab.active .count { background: #f5f5f7; color: #1d1d1f; }
html.dark .modal-overlay { background: rgba(0,0,0,0.6); }
html.dark .modal { background: #1c1c1e; box-shadow: 0 24px 64px rgba(0,0,0,0.5); }
html.dark .modal-title { color: #f5f5f7; }
html.dark .modal-sub { color: #8e8e93; }
html.dark .modal-name { color: #f5f5f7; }
html.dark .modal-option { background: #2c2c2e; border-color: transparent; }
html.dark .modal-option:hover { background: #3a3a3c; border-color: rgba(255,255,255,0.1); }
html.dark .modal-option.selected { background: #1a2c4a; border-color: #4a9eff; }
html.dark .modal-option-label { color: #f5f5f7; }
html.dark .modal-option-desc { color: #8e8e93; }
html.dark .modal-footer { border-top-color: rgba(255,255,255,0.08); }
html.dark .btn-modal-cancel { background: #2c2c2e; color: #8e8e93; border-color: transparent; }
html.dark .btn-modal-cancel:hover { background: #3a3a3c; color: #f5f5f7; }
html.dark .btn-approve { background: #f5f5f7; color: #1d1d1f; }
html.dark .btn-approve:hover { background: #fff; }
html.dark .btn-reject { background: #2c2c2e; color: #8e8e93; border-color: rgba(255,255,255,0.08); }
html.dark .btn-reject:hover { background: #2a0a0a; color: #f87171; border-color: rgba(248,113,113,0.3); }

/* ── CLIENTS ── */
html.dark .link-btn { background: #2c2c2e; color: #f5f5f7; }
html.dark .link-btn:hover { background: #3a3a3c; }

/* Onglets underline (clients + admissions) */
html.dark .tabs { background: transparent; border-bottom-color: rgba(255,255,255,0.08); }
html.dark .tab { color: #636366; }
html.dark .tab:hover { color: #f5f5f7; }
html.dark .tab.active { color: #f5f5f7; border-bottom-color: #f5f5f7; background: transparent; box-shadow: none; }
html.dark .count { background: rgba(255,255,255,0.08); color: #8e8e93; }
html.dark .tab.active .count { background: #f5f5f7; color: #1d1d1f; }

/* Badges format */
html.dark .badge-ugc       { background: rgba(74,222,128,0.15);  color: #4ade80; }
html.dark .badge-ia        { background: rgba(167,139,250,0.15); color: #c4b5fd; }
html.dark .badge-statiques { background: rgba(96,165,250,0.15);  color: #60a5fa; }
html.dark .badge-funnel    { background: rgba(251,146,60,0.15);  color: #fb923c; }
html.dark .badge-default   { background: rgba(255,255,255,0.08); color: #8e8e93; }

/* Boutons statut */
html.dark .btn-en-cours { background: rgba(251,146,60,0.15); color: #fb923c; }
html.dark .btn-en-cours:hover { background: rgba(251,146,60,0.25); }
html.dark .btn-livre { background: rgba(74,222,128,0.15); color: #4ade80; }
html.dark .btn-livre:hover { background: rgba(74,222,128,0.25); }
html.dark .btn-retour { background: rgba(255,255,255,0.08); color: #8e8e93; }
html.dark .btn-retour:hover { background: rgba(255,255,255,0.14); color: #f5f5f7; }

/* Icône suppression */
html.dark .btn-delete-icon { color: #636366; }
html.dark .btn-delete-icon:hover { background: rgba(248,113,113,0.15); color: #f87171; }

/* Card états */
html.dark .card:hover { background: #2c2c2e; }
html.dark .card.confirm-delete { background: #1a0a0a !important; }
html.dark .delete-confirm-text { color: #f87171; }

/* Skeleton */
html.dark .skeleton-card { background: #1c1c1e; }
html.dark .skeleton-card::after { background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%); }

html.dark .card-top { background: transparent; }
html.dark .card-client { color: #f5f5f7 !important; }
html.dark .card-volume { color: #8e8e93; }
html.dark .meta-sep { color: #3a3a3c !important; }
html.dark body.page-clients .card-details { background: #2c2c2e; border-top-color: rgba(255,255,255,0.06); }
html.dark .detail-block { border-bottom-color: rgba(255,255,255,0.06); }
html.dark .detail-label { color: #636366; }
html.dark .detail-value { color: #f5f5f7; }
html.dark .detail-value a { color: #4a9eff; }
html.dark .format-chip { background: #3a3a3c; color: #ababab; }
html.dark .card-delete-bar { background: #1c1c1e; border-top-color: rgba(255,255,255,0.06); }
html.dark .btn-cancel-del { background: #2c2c2e; color: #8e8e93; border-color: rgba(255,255,255,0.08); }
html.dark .btn-cancel-del:hover { background: #3a3a3c; }
html.dark .confirm-overlay { background: rgba(0,0,0,0.6); }
html.dark .confirm-box { background: #1c1c1e; }
html.dark .filters-bar { background: rgba(18,18,18,0.88); border-bottom-color: rgba(255,255,255,0.08); }

/* ── FACTURES ── */
html.dark .page-title { color: #f5f5f7; }
html.dark .page-sub   { color: #8e8e93; }

html.dark .btn-manage-projects { background: #2c2c2e; color: #8e8e93; }
html.dark .btn-manage-projects:hover,
html.dark .btn-manage-projects.open { background: #3a3a3c; color: #f5f5f7; }

html.dark .projects-panel { background: #1c1c1e; border-color: rgba(255,255,255,0.08); }
html.dark .add-row input { background: #2c2c2e; border-color: rgba(255,255,255,0.1); color: #f5f5f7; }
html.dark .add-row input::placeholder { color: #636366; }
html.dark .add-row input:focus { border-color: rgba(255,255,255,0.25); box-shadow: none; }
html.dark .project-row { background: #2c2c2e; border-color: rgba(255,255,255,0.08); }
html.dark .project-name { color: #f5f5f7; }
html.dark .project-badge { background: #0c2318; color: #4ade80; }
html.dark .project-badge.archived { background: #2c2c2e; color: #636366; }
html.dark .btn-archive   { background: #2c2c2e; color: #8e8e93; border-color: rgba(255,255,255,0.1); }
html.dark .btn-archive:hover { background: #3a3a3c; color: #f5f5f7; }
html.dark .btn-reactivate { background: #0c2318; color: #4ade80; }
html.dark .btn-reactivate:hover { background: #0d2a1e; }
html.dark .btn-delete    { background: #2c2c2e; color: #636366; border-color: rgba(255,255,255,0.08); }
html.dark .btn-delete:hover { color: #f87171; border-color: rgba(248,113,113,0.3); background: #2a0a0a; }

/* Onglets segmentés (pill) — factures uniquement */
html.dark body.page-factures .tabs { background: #2c2c2e; }
html.dark body.page-factures .tab { color: #8e8e93; }
html.dark body.page-factures .tab.active { background: #3a3a3c; color: #f5f5f7; box-shadow: 0 1px 4px rgba(0,0,0,0.4); border-bottom: none; }
html.dark .tab-count { background: rgba(255,255,255,0.08); color: #636366; }
html.dark .tab.active .tab-count { background: rgba(255,255,255,0.14); color: #f5f5f7; }

html.dark .dup-banner { background: #2c1a04; border-color: rgba(251,191,36,0.3); color: #fbbf24; }
html.dark .dup-banner-btn.dismiss { color: #636366; border-color: rgba(255,255,255,0.1); }
html.dark .dup-banner-btn.dismiss:hover { background: #3a3a3c; }

html.dark .inv-filter { background: #2c2c2e; color: #8e8e93; border-color: transparent; }
html.dark .inv-filter:hover { background: #3a3a3c; color: #f5f5f7; }
html.dark .inv-filter.active { background: #3a3a3c; color: #f5f5f7; border-color: rgba(255,255,255,0.2); }
html.dark .inv-filter.validated-filter.active { color: #60a5fa; background: #0c2340; border-color: rgba(96,165,250,0.3); }
html.dark .inv-filter-sep { background: rgba(255,255,255,0.08); }

html.dark .invoice-row { background: #1c1c1e; border-color: transparent; }
html.dark .invoice-row:hover { background: #2c2c2e; }
html.dark .invoice-row.duplicate { outline-color: rgba(251,191,36,0.4); }
html.dark .invoice-name    { color: #f5f5f7; }
html.dark .invoice-meta    { color: #8e8e93; }
html.dark .invoice-comment { color: #636366; }
html.dark .invoice-amount  { color: #f5f5f7; }

html.dark .inv-toggle { background: #2c2c2e; border-color: rgba(255,255,255,0.1); color: #636366; }
html.dark .inv-toggle:hover { border-color: rgba(255,255,255,0.2); color: #8e8e93; }
html.dark .inv-toggle.checked { background: #0c2340; border-color: rgba(96,165,250,0.3); color: #60a5fa; }
html.dark .inv-toggle.paid.checked { background: #0c2318; border-color: rgba(74,222,128,0.3); color: #4ade80; }

html.dark .btn-pdf { background: #2c2c2e; border-color: rgba(255,255,255,0.1); color: #8e8e93; }
html.dark .btn-pdf:hover { background: #3a3a3c; color: #f5f5f7; border-color: rgba(255,255,255,0.2); }
html.dark .btn-inv-delete { background: #2c2c2e; border-color: rgba(255,255,255,0.08); color: #636366; }
html.dark .btn-inv-delete:hover { color: #f87171; border-color: rgba(248,113,113,0.3); background: #2a0a0a; }

html.dark .del-overlay .del-popup,
html.dark .del-popup { background: #1c1c1e; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
html.dark .del-popup-icon { background: #2a0a0a; }
html.dark .del-popup-title { color: #f5f5f7; }
html.dark .del-popup-desc  { color: #8e8e93; }
html.dark .del-popup-desc strong { color: #f5f5f7; }
html.dark .del-popup-cancel { background: #2c2c2e; color: #f5f5f7; }
html.dark .del-popup-cancel:hover { background: #3a3a3c; }

html.dark .archive-group-title { background: #2c2c2e; color: #f5f5f7; }
html.dark .archive-group-meta  { color: #8e8e93; }
html.dark .archive-row  { background: #1c1c1e; border-top-color: rgba(255,255,255,0.06); }
html.dark .archive-name { color: #f5f5f7; }
html.dark .archive-meta { color: #8e8e93; }
html.dark .btn-unpay { border-color: rgba(255,255,255,0.08); color: #636366; }
html.dark .btn-unpay:hover { color: #fbbf24; border-color: rgba(251,191,36,0.3); }
html.dark .btn-drive-folder { background: #2c2c2e; border-color: rgba(255,255,255,0.08); }
html.dark .btn-drive-folder:hover { background: #3a3a3c; }

html.dark .pdf-overlay .pdf-modal,
html.dark .pdf-modal { background: #1c1c1e; box-shadow: 0 24px 64px rgba(0,0,0,0.5); }
html.dark .pdf-modal-header { border-bottom-color: rgba(255,255,255,0.08); }
html.dark .pdf-modal-name    { color: #f5f5f7; }
html.dark .pdf-modal-project { color: #8e8e93; }
html.dark .pdf-close { background: #2c2c2e; color: #8e8e93; }
html.dark .pdf-close:hover { background: #3a3a3c; color: #f5f5f7; }

html.dark .invoice-label { color: #8e8e93; }
html.dark .invoice-date  { color: #636366; }
html.dark .section-title { color: #636366; }
html.dark .total-bar { background: #1c1c1e; border-top-color: rgba(255,255,255,0.08); }
html.dark .total-label { color: #8e8e93; }
html.dark .total-amount { color: #f5f5f7; }

/* ── ANNUAIRE ── */
html.dark .btn-add { background: #f5f5f7; color: #1d1d1f; }
html.dark .btn-add:hover { opacity: 0.85; }

html.dark .entry-row { background: #1c1c1e; border-color: transparent; }
html.dark .entry-row:hover { border-color: rgba(255,255,255,0.08); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
html.dark .entry-footer { border-top-color: rgba(255,255,255,0.06); }
html.dark .entry-name { color: #f5f5f7; }
html.dark .entry-name-input { color: #f5f5f7; background: #2c2c2e; }
html.dark .entry-contact-item { color: #636366; }
html.dark .entry-contact-item a { color: #4a9eff; }
html.dark .entry-notes { color: #636366; }
html.dark .entry-notes-empty { color: #3a3a3c; }
html.dark .entry-notes-input { color: #f5f5f7; background: #2c2c2e; }
html.dark .last-contact { color: #3a3a3c; }
html.dark .gestionnaire-chip { color: #8e8e93; }
html.dark .gestionnaire-chip:hover { background: #2c2c2e; }
html.dark .gestionnaire-chip svg { color: #636366; }
html.dark .gestionnaire-empty { color: #3a3a3c; }
html.dark .gestionnaire-empty:hover { background: #2c2c2e; color: #636366; }
html.dark .gest-popover { background: #1c1c1e; border-color: rgba(255,255,255,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
html.dark .gest-pop-opt { color: #f5f5f7; }
html.dark .gest-pop-opt:hover { background: #2c2c2e; }
html.dark .gest-pop-opt.current { color: #636366; }
html.dark .gest-pop-avatar { background: #3a3a3c; color: #8e8e93; }

html.dark .contact-chip { background: #2c2c2e; color: #636366; }
html.dark .contact-chip.has-contacts { background: #0c2340; color: #60a5fa; }

html.dark .stage-prospect   { background: rgba(59,91,219,0.15);  color: #818cf8; }
html.dark .stage-discussion { background: rgba(194,65,12,0.15);  color: #fb923c; }
html.dark .stage-travaille  { background: rgba(22,163,74,0.15);  color: #4ade80; }
html.dark .stage-inactif    { background: rgba(255,255,255,0.06); color: #636366; }

html.dark .btn-contact { background: #2c2c2e; color: #f5f5f7; }
html.dark .btn-contact:hover { background: #3a3a3c; }
html.dark .btn-icon { background: none; border-color: rgba(255,255,255,0.1); color: #636366; }
html.dark .btn-icon:hover { background: #2c2c2e; border-color: rgba(255,255,255,0.2); color: #f5f5f7; }
html.dark .btn-icon.danger:hover { background: rgba(220,38,38,0.12); border-color: rgba(248,113,113,0.3); color: #f87171; }

/* Modal annuaire */
html.dark .form-label { color: #636366; }
html.dark .form-input, html.dark .form-select, html.dark .form-textarea {
    background: #2c2c2e; border-color: rgba(255,255,255,0.1); color: #f5f5f7;
}
html.dark .form-select.placeholder { color: #636366; }
html.dark .form-input::placeholder, html.dark .form-textarea::placeholder { color: #636366; }
html.dark .form-input:focus, html.dark .form-select:focus, html.dark .form-textarea:focus { border-color: rgba(255,255,255,0.25); }
html.dark .phone-code { background-color: #2c2c2e; color: #f5f5f7; }
html.dark .phone-code:focus { background-color: #3a3a3c; border-color: rgba(255,255,255,0.25); }
html.dark .phone-custom-wrap { background: #2c2c2e; }
html.dark .phone-custom-wrap span { color: #f5f5f7; }
html.dark .phone-custom-wrap input { color: #f5f5f7; }
html.dark .phone-custom-wrap input::placeholder { color: #636366; }
html.dark .phone-custom-wrap:focus-within { background: #3a3a3c; border-color: rgba(255,255,255,0.25); }
html.dark .stage-opt { background: #2c2c2e; border-color: transparent; color: #8e8e93; }
html.dark .stage-opt:hover { background: #3a3a3c; border-color: rgba(255,255,255,0.1); color: #f5f5f7; }
html.dark .stage-opt.selected { background: #1c1c1e; border-color: #f5f5f7; color: #f5f5f7; }
html.dark .btn-cancel { background: #2c2c2e; border-color: transparent; color: #8e8e93; }
html.dark .btn-cancel:hover { background: #3a3a3c; color: #f5f5f7; }
html.dark .btn-save { background: #f5f5f7; color: #1d1d1f; }
html.dark .btn-save:hover { opacity: 0.85; }
html.dark .btn-save:disabled { background: #3a3a3c; color: #636366; }

/* iOS guide modal */
html.dark .ios-guide-box { background: #1c1c1e; }
html.dark .ios-guide-handle { background: #3a3a3c; }
html.dark .ios-guide-title { color: #f5f5f7; }
html.dark .ios-guide-sub { color: #636366; }
html.dark .ios-guide-step p { color: #f5f5f7; }
html.dark .ios-guide-num { background: #f5f5f7; color: #1c1c1e; }
html.dark .ios-guide-close { background: #f5f5f7; color: #1c1c1e; }

/* Import contacts modal */
html.dark .import-modal { background: #1c1c1e; }
html.dark .import-head  { border-bottom-color: rgba(255,255,255,0.07); }
html.dark .import-head h2 { color: #f5f5f7; }
html.dark .import-head p  { color: #636366; }
html.dark .import-item:hover { background: #2c2c2e; }
html.dark .import-name { color: #f5f5f7; }
html.dark .import-sub  { color: #636366; }
html.dark .import-avatar { background: #3a3a3c; color: #8e8e93; }
html.dark .import-check { background: #2c2c2e; border-color: rgba(255,255,255,0.15); }
html.dark .import-item.checked .import-check { background: #f5f5f7; border-color: #f5f5f7; }
html.dark .import-item.checked .import-check::after { border-color: #1c1c1e; }
html.dark .import-dup-tag { background: #2c2c2e; color: #636366; }
html.dark .import-foot { border-top-color: rgba(255,255,255,0.07); }
html.dark .import-cancel { background: #1c1c1e; border-color: rgba(255,255,255,0.1); color: #8e8e93; }
html.dark .import-cancel:hover { border-color: rgba(255,255,255,0.2); color: #f5f5f7; }
html.dark .import-confirm { background: #f5f5f7; color: #1c1c1e; }

/* Stage popover */
html.dark .stage-popover { background: #1c1c1e; border-color: rgba(255,255,255,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
html.dark .stage-pop-opt { color: #f5f5f7; }
html.dark .stage-pop-opt:hover { background: #2c2c2e; }
html.dark .stage-pop-opt.current { color: #636366; }
html.dark .stage-pop-opt.current:hover { background: none; }

/* Confirm delete annuaire */
html.dark .delete-overlay { background: rgba(0,0,0,0.6); }
html.dark .delete-box { background: #1c1c1e; box-shadow: 0 16px 50px rgba(0,0,0,0.5); }
html.dark .delete-title { color: #f5f5f7; }
html.dark .delete-sub { color: #8e8e93; }
html.dark .btn-del-cancel { background: #2c2c2e; border-color: transparent; color: #8e8e93; }
html.dark .btn-del-cancel:hover { background: #3a3a3c; color: #f5f5f7; }
html.dark .btn-del-confirm { background: #7f1d1d; color: #fca5a5; }
html.dark .btn-del-confirm:hover { background: #991b1b; }

/* ── OUTILS ── */
html.dark .hero h1 { color: #f5f5f7; }
html.dark .hero p { color: #8e8e93; }
html.dark .tool { background: #1c1c1e; }
html.dark .tool.active:hover { background: #2c2c2e; transform: scale(1.02); }
html.dark .tool-name { color: #f5f5f7; }
html.dark .tool-desc { color: #8e8e93; }
html.dark .tag-available { background: #0d2318; color: #4ade80; }
html.dark .tag-soon { background: #2c2c2e; color: #636366; }
html.dark .pl-sep { border-top-color: rgba(255,255,255,0.08); }
html.dark .pl-title { color: #f5f5f7; }
html.dark .pl-sub { color: #8e8e93; }
html.dark .pl-card { background: #1c1c1e; }
html.dark .pl-card-name { color: #f5f5f7; }
html.dark .pl-card-url { color: #636366; }
html.dark .pl-card-icon { background: #2c2c2e; color: #8e8e93; }
html.dark .pl-btn { background: #2c2c2e; border-color: rgba(255,255,255,0.08); color: #8e8e93; }
html.dark .pl-btn:hover { background: #3a3a3c; border-color: rgba(255,255,255,0.15); color: #f5f5f7; }

/* ── PROFIL ── */
html.dark .profile-card { background: #1c1c1e; box-shadow: 0 1px 8px rgba(0,0,0,0.4); }
html.dark .profile-name { color: #f5f5f7; }
html.dark .profile-email { color: #8e8e93; }
html.dark .profile-since { background: #2c2c2e; color: #8e8e93; }
html.dark .avatar-hint { color: #636366; }
html.dark .settings-group { background: #1c1c1e; box-shadow: 0 1px 8px rgba(0,0,0,0.4); }
html.dark .settings-label { color: #636366; }
html.dark .settings-row { border-top-color: rgba(255,255,255,0.06); }
html.dark .settings-row:hover { background: rgba(255,255,255,0.04); }
html.dark .settings-row-icon.gray { background: #2c2c2e; }
html.dark .settings-row-icon.gray svg { color: #ababab; }
html.dark .settings-row-title { color: #f5f5f7; }
html.dark .settings-row-sub { color: #636366; }
html.dark .settings-row-chevron { color: #636366; }
html.dark .pwd-expand { border-top-color: rgba(255,255,255,0.06); }
html.dark .pwd-expand input { background: #2c2c2e; border-color: transparent; color: #f5f5f7; }
html.dark .pwd-expand input:focus { background: #1c1c1e; border-color: rgba(255,255,255,0.2); box-shadow: 0 0 0 4px rgba(255,255,255,0.04); }
html.dark .pwd-expand input::placeholder { color: #636366; }
html.dark .toggle-track { background: #3a3a3c; }

html.dark .view-opt { border-top-color: rgba(255,255,255,0.06); }
html.dark .view-opt:hover { background: rgba(255,255,255,0.04); }
html.dark .view-opt-icon { background: #2c2c2e; }
html.dark .view-opt-icon svg { color: #ababab; }
html.dark .view-opt-title { color: #f5f5f7; }
html.dark .view-opt-sub { color: #636366; }
html.dark .view-opt.active .view-opt-icon { background: #0d1f3c; }
html.dark .view-opt.active .view-opt-icon svg { color: #60a5fa; }
html.dark .view-opt-check { color: #60a5fa; }

/* ══════════════════════════════════════════════════════════════
   CORRECTEUR-ST
   ══════════════════════════════════════════════════════════════ */

/* Body / page background */
html.dark .page { color: #f5f5f7; }

/* Back link */
html.dark .back-link { color: #4a9eff; }

/* Page header */
html.dark .tool-icon { background: #2c2c2e; }
html.dark .page-header h1 { color: #f5f5f7; }
html.dark .page-header p { color: #8e8e93; }

/* Labels */
html.dark .input-group label { color: #f5f5f7; }

/* Textareas */
html.dark .input-group textarea {
    background: #1c1c1e;
    color: #f5f5f7;
    border-color: rgba(255,255,255,0.08);
}
html.dark .input-group textarea::placeholder { color: #636366; }
html.dark .input-group textarea:focus {
    background: #2c2c2e;
    border-color: #4a9eff;
}

/* File drop zone */
html.dark .file-drop {
    background: #1c1c1e;
    border-color: rgba(255,255,255,0.15);
}
html.dark .file-drop:hover,
html.dark .file-drop.drag-over {
    background: #0d2340;
    border-color: #4a9eff;
}
html.dark .file-drop-icon { background: #2c2c2e; }
html.dark .file-drop:hover .file-drop-icon,
html.dark .file-drop.drag-over .file-drop-icon { background: #1a3358; }
html.dark .file-drop-title { color: #f5f5f7; }
html.dark .file-drop-hint { color: #636366; }

/* File loaded state */
html.dark .file-loaded {
    background: #1c1c1e;
    border-color: rgba(255,255,255,0.08);
}
html.dark .file-loaded-header {
    background: #2c2c2e;
    border-bottom-color: rgba(255,255,255,0.08);
}
html.dark .file-loaded-icon { background: #3a3a3c; }
html.dark .file-loaded-name { color: #f5f5f7; }
html.dark .file-loaded-size { color: #636366; }
html.dark .btn-remove-file { color: #636366; }
html.dark .file-preview { color: #8e8e93; }

/* Correct button */
html.dark .btn-correct { background: #f5f5f7; color: #1d1d1f; }
html.dark .btn-correct:hover { background: #e5e5ea; }
html.dark .btn-correct:disabled { background: #3a3a3c; color: #636366; }

/* Loading */
html.dark .spinner {
    border-color: #2c2c2e;
    border-top-color: #f5f5f7;
}
html.dark .loading-text { color: #8e8e93; }
html.dark .token-count { color: #636366; }

/* Output */
html.dark .output-label { color: #f5f5f7; }

/* Copy button */
html.dark .btn-copy { background: #1a2c4a; color: #4a9eff; }
html.dark .btn-copy:hover { background: #1e3460; }
html.dark .btn-copy.copied { color: #4ade80; background: #0c2318; }

/* Output text box */
html.dark .output-txt {
    background: #1c1c1e;
    color: #f5f5f7;
}

/* Corrections table */
html.dark .table-wrap { border-color: rgba(255,255,255,0.08); }
html.dark .corrections-table th {
    background: #2c2c2e;
    color: #8e8e93;
    border-bottom-color: rgba(255,255,255,0.08);
}
html.dark .corrections-table td {
    color: #f5f5f7;
    border-bottom-color: rgba(255,255,255,0.06);
}
html.dark .corrections-table tr:hover td { background: #2c2c2e; }
html.dark .no-corrections { color: #636366; }

/* Badges */
html.dark .badge-transcription { background: #3d1a00; color: #fb923c; }
html.dark .badge-live          { background: #2c2c2e; color: #8e8e93; }
html.dark .badge-formatage     { background: #0c2340; color: #60a5fa; }
html.dark .badge-omission      { background: #2c1a04; color: #fbbf24; }

/* Error banner */
html.dark .error-banner {
    background: #2a0a0a;
    border-color: rgba(248,113,113,0.3);
    color: #f87171;
}

/* Language toggle */
html.dark .lang-toggle { background: #2c2c2e; }
html.dark .lang-btn { color: #636366; }
html.dark .lang-btn.active {
    background: #3a3a3c;
    color: #f5f5f7;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ══════════════════════════════════════════════════════════════
   COMPRESSOR
   ══════════════════════════════════════════════════════════════ */

/* FFmpeg status */
html.dark .ffmpeg-status { background: #1c1c1e; color: #8e8e93; }
html.dark .ffmpeg-status.ready  { background: #0c2318; color: #4ade80; }
html.dark .ffmpeg-status.failed { background: #2a0a0a; color: #f87171; }
html.dark .dot { background: #636366; }

/* Mode tabs */
html.dark .mode-tabs { background: #1c1c1e; }
html.dark .mode-tab { color: #8e8e93; }
html.dark .mode-tab.active {
    background: #2c2c2e;
    color: #f5f5f7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Settings card */
html.dark .settings-card { background: #1c1c1e; }
html.dark .settings-label { color: #636366; }

/* Speed display */
html.dark .speed-display { color: #f5f5f7; }

/* Range input */
html.dark input[type=range] { background: #3a3a3c; }
html.dark input[type=range]::-webkit-slider-thumb { background: #f5f5f7; }

/* Speed presets */
html.dark .speed-preset { background: #2c2c2e; color: #f5f5f7; }
html.dark .speed-preset:hover { background: #3a3a3c; }
html.dark .speed-preset.active { background: #f5f5f7; color: #1d1d1f; }

/* Pitch toggle */
html.dark .pitch-toggle { background: #2c2c2e; }
html.dark .pitch-toggle:hover { background: #3a3a3c; }
html.dark .pitch-title { color: #f5f5f7; }
html.dark .pitch-desc  { color: #8e8e93; }

/* Platform tabs */
html.dark .platform-tab { background: #2c2c2e; color: #8e8e93; }
html.dark .platform-tab:hover { background: #3a3a3c; color: #f5f5f7; }
html.dark .platform-tab.active { background: #f5f5f7; color: #1d1d1f; }

/* Preset cards */
html.dark .preset-card { background: #2c2c2e; border-color: transparent; }
html.dark .preset-card:hover { background: #3a3a3c; }
html.dark .preset-card.active { border-color: #f5f5f7; }
html.dark .preset-name { color: #f5f5f7; }
html.dark .preset-meta { color: #8e8e93; }

/* Drop zone */
html.dark .drop-zone {
    border-color: rgba(255,255,255,0.15);
}
html.dark .drop-zone:hover,
html.dark .drop-zone.drag-over {
    border-color: #4a9eff;
    background: rgba(74,158,255,0.05);
}
html.dark .drop-icon { color: #3a3a3c; }
html.dark .drop-zone:hover .drop-icon,
html.dark .drop-zone.drag-over .drop-icon { color: #4a9eff; }
html.dark .drop-title { color: #f5f5f7; }
html.dark .drop-subtitle { color: #8e8e93; }
html.dark .drop-format { background: #2c2c2e; color: #636366; }

/* Queue section */
html.dark .queue-section { background: #1c1c1e; }
html.dark .queue-title { color: #f5f5f7; }
html.dark .queue-clear { color: #636366; }
html.dark .queue-clear:hover { background: #2c2c2e; color: #f87171; }

/* Queue items */
html.dark .queue-item { background: #2c2c2e; }
html.dark .qi-icon { background: #3a3a3c; }
html.dark .qi-name { color: #f5f5f7; }
html.dark .qi-meta { color: #636366; }
html.dark .qi-bar-wrap { background: #3a3a3c; }
html.dark .qi-status { color: #636366; }
html.dark .qi-status.processing { color: #4a9eff; }
html.dark .qi-status.error { color: #f87171; }
html.dark .qi-status.done { color: #4ade80; }
html.dark .qi-remove { color: #636366; }
html.dark .qi-remove:hover { background: #3a3a3c; color: #f87171; }
html.dark .qi-download { background: #0c2318; color: #4ade80; }
html.dark .qi-download:hover { background: #0d2a1e; }

/* Process button */
html.dark .process-btn { background: #f5f5f7; color: #1d1d1f; }
html.dark .process-btn:hover:not(:disabled) { background: #e5e5ea; transform: scale(1.005); }
html.dark .process-btn:disabled { background: #2c2c2e; color: #636366; }

/* ══════════════════════════════════════════════════════════════
   COPY STUDIO
   ══════════════════════════════════════════════════════════════ */

/* Page background */
html.dark body.page-copy-studio,
html.dark:not(body) body { background: #0a0a0a; }

/* Header */
html.dark .header-back { color: #4a9eff; }
html.dark .header-title { border-left-color: rgba(255,255,255,0.1); }

/* Tab bar */
html.dark .tab-bar { background: #2c2c2e; }
html.dark .tab-btn { color: #8e8e93; }
html.dark .tab-btn.active {
    background: #3a3a3c;
    color: #f5f5f7;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Section titles */
html.dark .section-title { color: #f5f5f7; }
html.dark .section-sub { color: #8e8e93; }

/* Card (copy-studio specific — overrides equipes .card override selectively) */
html.dark .copy-studio-page .card,
html.dark .card.cs-card { background: #1c1c1e; box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.2); }

/* Form fields */
html.dark .label { color: #8e8e93; }
html.dark .input {
    background: #1c1c1e;
    border-color: rgba(255,255,255,0.08);
    color: #f5f5f7;
}
html.dark .input:focus {
    border-color: #4a9eff;
    background: #2c2c2e;
}
html.dark .input::placeholder { color: #636366; }

/* Counter */
html.dark .counter { background: #1c1c1e; }
html.dark .counter-btn { color: #8e8e93; }
html.dark .counter-btn:hover { background: #3a3a3c; color: #f5f5f7; }
html.dark .counter-val { color: #f5f5f7; }

/* Buttons */
html.dark .btn-primary { background: #4a9eff; color: #fff; }
html.dark .btn-primary:hover { background: #5aabff; }
html.dark .btn-secondary { background: #2c2c2e; color: #f5f5f7; }
html.dark .btn-secondary:hover { background: #3a3a3c; }
html.dark .btn-danger { border-color: rgba(248,113,113,0.3); color: #f87171; }
html.dark .btn-danger:hover { background: #2a0a0a; }

/* Script cards */
html.dark .script-card {
    background: #1c1c1e;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.2);
}
html.dark .script-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
html.dark .script-card-header { border-bottom-color: rgba(255,255,255,0.06); }
html.dark .script-title { color: #f5f5f7; }
html.dark .script-hook { background: #2c2c2e; border-bottom-color: rgba(255,255,255,0.06); }
html.dark .hook-label { color: #636366; }
html.dark .hook-text { color: #f5f5f7; }
html.dark .script-scenes { color: #f5f5f7; }
html.dark .scenes-label { color: #636366; }
html.dark .scene-visual { color: #f5f5f7; }
html.dark .scene-audio { color: #8e8e93; }
html.dark .scene-caption { background: #2c1a04; color: #fbbf24; }
html.dark .script-cta { border-top-color: rgba(255,255,255,0.06); }
html.dark .cta-label { color: #636366; }
html.dark .cta-text { color: #4ade80; }
html.dark .script-actions { border-top-color: rgba(255,255,255,0.06); }
html.dark .script-raw { color: #8e8e93; }

/* Chips */
html.dark .chip-platform { background: #0c2340; color: #60a5fa; }
html.dark .chip-duration  { background: #0c2318; color: #4ade80; }

/* Scene time */
html.dark .scene-time { color: #4a9eff; }

/* Winners */
html.dark .winner-row {
    background: #1c1c1e;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
html.dark .winner-row:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
html.dark .winner-title { color: #f5f5f7; }
html.dark .winner-hook { color: #f5f5f7; }
html.dark .winner-notes { color: #636366; }
html.dark .empty-text { color: #8e8e93; }
html.dark .empty-sub { color: #636366; }

/* Modal (copy-studio) */
html.dark .modal-overlay { background: rgba(0,0,0,0.6); }
html.dark .modal-box {
    background: #1c1c1e;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
html.dark .modal-header { border-bottom-color: rgba(255,255,255,0.08); }
html.dark .modal-title { color: #f5f5f7; }
html.dark .modal-close { background: #2c2c2e; color: #f5f5f7; }
html.dark .modal-close:hover { background: #3a3a3c; }

/* Toast */
html.dark .toast { background: #2c2c2e; color: #f5f5f7; }
html.dark .toast-error { background: #2a0a0a; color: #f87171; }

/* ══════════════════════════════════════════════════════════════
   SUIVI (candidature)
   ══════════════════════════════════════════════════════════════ */

/* Logo inversion */
html.dark .logo { filter: brightness(0) invert(1); }

/* Headings */
html.dark h1 { color: #f5f5f7; }
html.dark .subtitle { color: #8e8e93; }

/* Search input */
html.dark .search-form input {
    background: #1c1c1e;
    color: #f5f5f7;
    border-color: rgba(255,255,255,0.08);
}
html.dark .search-form input::placeholder { color: #636366; }
html.dark .search-form input:focus {
    background: #2c2c2e;
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}

/* Search button */
html.dark .search-btn { background: #f5f5f7; color: #1d1d1f; }
html.dark .search-btn:hover { background: #e5e5ea; }

/* Status cards */
html.dark .status-pending {
    background: #2c1a04;
    border-color: rgba(251,191,36,0.25);
    color: #fbbf24;
}
html.dark .status-approved {
    background: #0c2318;
    border-color: rgba(74,222,128,0.25);
    color: #4ade80;
}
html.dark .status-rejected {
    background: #2a0a0a;
    border-color: rgba(248,113,113,0.25);
    color: #f87171;
}
html.dark .status-notfound {
    background: #1c1c1e;
    border-color: rgba(255,255,255,0.08);
    color: #8e8e93;
}

/* Calendar section */
html.dark .calendar-label { color: #f5f5f7; }
html.dark .calendar-btn { background: #f5f5f7; color: #1d1d1f; }
html.dark .calendar-btn:hover { background: #e5e5ea; }
html.dark .calendar-iframe-wrap {
    border-color: rgba(255,255,255,0.08);
    background: #1c1c1e;
}

/* Back link */
html.dark .back-link { color: #4a9eff; }

/* ══════════════════════════════════════════════════════════════
   UGC (acteurs catalogue)
   ══════════════════════════════════════════════════════════════ */

/* Body */
html.dark body { background: #0a0a0a; color: #f5f5f7; }

/* Header */
html.dark .header { border-bottom-color: rgba(255,255,255,0.08); }
html.dark .header-logo { filter: brightness(0) invert(1); opacity: 0.9; }
html.dark .header-tag { color: #636366; }

/* Hero */
html.dark .hero h1 { color: #f5f5f7; }
html.dark .hero p { color: #8e8e93; }
html.dark .hero-eyebrow { background: rgba(74,222,128,0.15); color: #4ade80; }

/* Actor card photo placeholder */
html.dark .actor-photo-wrap { background: #2c2c2e; }
html.dark .actor-placeholder {
    background: linear-gradient(135deg, #2c2c2e 0%, #3a3a3c 100%);
    color: #636366;
}
html.dark .actor-name { color: #f5f5f7; }

/* Skeleton */
html.dark .sk {
    background: linear-gradient(90deg, #1c1c1e 25%, #2c2c2e 50%, #1c1c1e 75%);
    background-size: 200% 100%;
}
html.dark .sk-name { background: #2c2c2e; }

/* Empty state */
html.dark .empty { color: #636366; }

/* Footer */
html.dark .footer {
    border-top-color: rgba(255,255,255,0.08);
    color: #3a3a3c;
}

/* ══════════════════════════════════════════════════════════════
   CLAUDE IN WHATSAPP (download page)
   ══════════════════════════════════════════════════════════════ */

/* App name */
html.dark .app-name { color: #f5f5f7; }
html.dark .app-desc { color: #8e8e93; }

/* File row */
html.dark .file-row { background: #1c1c1e; }
html.dark .file-icon { background: #2c2c2e; }
html.dark .file-name { color: #f5f5f7; }
html.dark .file-meta { color: #636366; }

/* Download button */
html.dark .download-btn { background: #f5f5f7; color: #1d1d1f; }
html.dark .download-btn:hover { background: #e5e5ea; }

/* Footnote */
html.dark .footnote { color: #636366; }

/* ══════════════════════════════════════════════════════════════
   COPY STUDIO — page body background (broad selector)
   ══════════════════════════════════════════════════════════════ */
/* copy-studio sets body { background: #f5f5f7 } — override it */
html.dark body { background: #0a0a0a; }

/* Copy Studio card layout — the .card class conflicts with equipes.
   Use explicit page context via the header element present only in copy-studio. */
html.dark .header ~ .page .card,
html.dark .header ~ [id^="tab"] .card {
    background: #1c1c1e;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.2);
}
html.dark .header ~ [id^="tab"] .card:hover { background: #1c1c1e; }

/* ══════════════════════════════════════════════════════════════
   CONTRAT (générateur de contrat)
   ══════════════════════════════════════════════════════════════ */

/* Header */
html.dark body.page-contrat .header { background: rgba(18,18,18,0.88); }
html.dark body.page-contrat .header-title { color: #f5f5f7; border-left-color: rgba(255,255,255,0.1); }
html.dark body.page-contrat .header-back { color: #4a9eff; }

/* Layout */
html.dark body.page-contrat .page-wrap { background: #0a0a0a; }

/* Form panel */
html.dark body.page-contrat .form-panel { background: #1c1c1e; border-right-color: rgba(255,255,255,0.08); }
html.dark body.page-contrat .form-panel h1 { color: #f5f5f7; }
html.dark body.page-contrat .form-panel .subtitle { color: #8e8e93; }
html.dark body.page-contrat .form-section .section-title { color: #636366; }
html.dark body.page-contrat label.field { color: #f5f5f7; }

/* Inputs */
html.dark body.page-contrat .field input,
html.dark body.page-contrat .field textarea {
    background: #2c2c2e;
    border-color: rgba(255,255,255,0.06);
    color: #f5f5f7;
}
html.dark body.page-contrat .field select {
    background-color: #2c2c2e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23636366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    border-color: rgba(255,255,255,0.06);
    color: #f5f5f7;
}
html.dark body.page-contrat .field input::placeholder,
html.dark body.page-contrat .field textarea::placeholder { color: #48484a; }
html.dark body.page-contrat .field input:focus,
html.dark body.page-contrat .field textarea:focus,
html.dark body.page-contrat .field select:focus {
    background: #3a3a3c;
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}
html.dark body.page-contrat .amount-suffix { color: #636366; }

/* Generate button */
html.dark body.page-contrat .btn-generate { background: #f5f5f7; color: #1d1d1f; }
html.dark body.page-contrat .btn-generate:hover { background: #fff; }

/* Preview panel */
html.dark body.page-contrat .preview-panel { background: #131316; }
html.dark body.page-contrat .preview-label { color: #636366; }
html.dark body.page-contrat .btn-pdf { background: #2c2c2e; border-color: rgba(255,255,255,0.1); color: #f5f5f7; box-shadow: none; }
html.dark body.page-contrat .btn-pdf:hover { background: #3a3a3c; border-color: rgba(255,255,255,0.2); }

/* Contract document — kept light for readability & impression */
html.dark body.page-contrat .contract-doc { box-shadow: 0 4px 32px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3); }
