/* ==========================================
   DARK MODE STYLES
   ========================================== */

/* CSS Variables for Light and Dark Themes */
:root {
    /* Light mode (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f9fafb;
    --bg-gray: #e9ecef;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;

    --text-primary: #1a1a1a;
    --text-secondary: #374151;
    --text-tertiary: #64748B;
    --text-gray-500: #6b7280;
    --text-gray-600: #4b5563;
    --text-gray-700: #374151;
    --text-gray-900: #111827;

    --border-color: rgba(0,0,0,0.05);
    --border-gray-100: #f3f4f6;
    --border-gray-200: #e5e7eb;

    --glass-nav-bg: rgba(255, 255, 255, 0.9);
    --glass-nav-border: rgba(0,0,0,0.05);

    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);

    --footer-bg: #f9fafb;
    --footer-border: #e5e7eb;

    --mega-menu-bg: #ffffff;
    --mega-menu-border: #E2E8F0;

    /* Brand colors - restent identiques */
    --brand-blue: #2babe0;
    --brand-green: #99c110;
    --brand-red: #e32f26;
    --brand-yellow: #f8b400;
    --brand-dark: #1a1a1a;
    --brand-light: #f8f9fa;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #1e293b;
    --bg-gray: #334155;
    --bg-gray-50: #1e293b;
    --bg-gray-100: #334155;

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-gray-500: #94a3b8;
    --text-gray-600: #cbd5e1;
    --text-gray-700: #e2e8f0;
    --text-gray-900: #f8fafc;

    --border-color: rgba(255,255,255,0.1);
    --border-gray-100: #334155;
    --border-gray-200: #475569;

    --glass-nav-bg: rgba(15, 23, 42, 0.9);
    --glass-nav-border: rgba(255,255,255,0.1);

    --card-bg: #1e293b;
    --card-shadow: rgba(0, 0, 0, 0.3);

    --footer-bg: #1e293b;
    --footer-border: #334155;

    --mega-menu-bg: #1e293b;
    --mega-menu-border: #334155;
}

/* Smooth transition for theme change */
body,
header,
footer,
.glass-nav,
.mega-menu,
.card,
.bg-white,
.bg-gray-50,
.text-gray-900,
.text-gray-600,
.text-gray-500 {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Apply theme variables */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Glass Navigation */
.glass-nav {
    background: var(--glass-nav-bg);
    border-bottom: 1px solid var(--glass-nav-border);
}

/* Text Colors */
.text-gray-900 {
    color: var(--text-gray-900) !important;
}

.text-gray-700 {
    color: var(--text-gray-700) !important;
}

.text-gray-600 {
    color: var(--text-gray-600) !important;
}

.text-gray-500 {
    color: var(--text-gray-500) !important;
}

/* Background Colors */
.bg-white {
    background-color: var(--bg-primary) !important;
}

.bg-gray-50 {
    background-color: var(--bg-gray-50) !important;
}

.bg-gray-100 {
    background-color: var(--bg-gray-100) !important;
}

/* Borders */
.border-gray-100 {
    border-color: var(--border-gray-100) !important;
}

.border-gray-200 {
    border-color: var(--border-gray-200) !important;
}

.border-t {
    border-top-color: var(--border-color);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    border-top-color: var(--footer-border);
}

/* Mega Menu */
.mega-menu {
    background: var(--mega-menu-bg);
    border-color: var(--mega-menu-border);
}

.mega-menu-footer {
    border-top-color: var(--mega-menu-border);
}

/* Mega Menu - Styles détaillés pour dark mode */
[data-theme="dark"] .mega-menu {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .mega-menu-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .mega-menu-col ul li a {
    color: #94a3b8 !important;
}

[data-theme="dark"] .mega-menu-col ul li a:hover {
    color: #2babe0 !important;
}

[data-theme="dark"] .type-bien {
    color: #f8fafc !important;
}

[data-theme="dark"] .mega-menu-footer {
    border-top-color: #334155 !important;
}

[data-theme="dark"] .mega-menu-footer a {
    color: #2babe0 !important;
}

/* Mega Menu Simple */
[data-theme="dark"] .mega-menu-simple-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .mega-menu-simple-text {
    color: #94a3b8 !important;
}

[data-theme="dark"] .mega-menu-simple-link {
    color: #2babe0 !important;
}

[data-theme="dark"] .mega-menu-simple-link:hover {
    color: #1a8ab8 !important;
}

/* Mega Menu Agence */
[data-theme="dark"] .mega-menu-agence-name {
    color: #f8fafc !important;
}

[data-theme="dark"] .mega-menu-agence-address,
[data-theme="dark"] .mega-menu-agence-city {
    color: #94a3b8 !important;
}

[data-theme="dark"] .mega-menu-agence-link {
    color: #2babe0 !important;
}

[data-theme="dark"] .mega-menu-agence-link:hover {
    color: #1a8ab8 !important;
}

/* Cards & Boxes */
.card,
.property-card,
.article-card {
    background-color: var(--card-bg);
}

/* Mobile Menu */
#mobile-menu-panel {
    background-color: var(--bg-primary);
}

[data-theme="dark"] #mobile-menu-panel {
    background-color: #1e293b !important;
}

[data-theme="dark"] #mobile-menu-panel .border-gray-100 {
    border-color: #334155 !important;
}

[data-theme="dark"] #mobile-menu-panel a {
    color: #cbd5e1 !important;
}

[data-theme="dark"] #mobile-menu-panel a:hover {
    background-color: #334155 !important;
    color: #2babe0 !important;
}

[data-theme="dark"] #mobile-menu-panel .bg-gray-50 {
    background-color: #0f172a !important;
}

[data-theme="dark"] #mobile-menu-close {
    color: #cbd5e1 !important;
}

[data-theme="dark"] #mobile-menu-close:hover {
    color: #f8fafc !important;
}

/* Forms & Inputs */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-gray-200);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-tertiary);
}

/* Specific dark mode adjustments */
[data-theme="dark"] .nouveaute-item {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .type-bien {
    color: var(--text-gray-900);
}

/* Images - légère opacité en dark mode */
[data-theme="dark"] img:not(.logo):not([alt*="favicon"]):not([alt*="logo"]) {
    opacity: 0.9;
}

/* Exception pour l'image décorative de fond - toujours à 0.1 */
img[src="/assets/img/image_1_back.webp"],
.bg-decorative-right {
    opacity: 0.1 !important;
}

/* Hero Section - Page d'accueil */
[data-theme="dark"] .hero-content {
    background: rgba(30, 41, 59, 0.9) !important;
}

[data-theme="dark"] .hero-kicker {
    color: #94a3b8 !important;
}

[data-theme="dark"] .hero-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .hero-subtitle {
    color: #cbd5e1 !important;
}

/* Search Box */
[data-theme="dark"] .search-box {
    background: #1e293b !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .search-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .search-select,
[data-theme="dark"] .search-input {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .search-select:hover,
[data-theme="dark"] .search-select:focus,
[data-theme="dark"] .search-input:hover,
[data-theme="dark"] .search-input:focus {
    color: #f8fafc !important;
}

[data-theme="dark"] .search-select option {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .search-input::placeholder {
    color: #64748b !important;
}

[data-theme="dark"] .search-input-currency {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .search-btn {
    background: #2babe0 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .search-btn:hover {
    background: #1a8ab8 !important;
}

/* Pages d'annonces (Location / Vente) */

/* Filters Container */
[data-theme="dark"] .filters-container {
    background: #1e293b !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .filter-select {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .filter-select:hover,
[data-theme="dark"] .filter-select:focus {
    border-color: #2babe0 !important;
}

[data-theme="dark"] .filter-select option {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

/* Cards d'annonces */
[data-theme="dark"] .container-bien {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .container-bien:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    border-color: #2babe0 !important;
}

[data-theme="dark"] .container-item-resume {
    background: transparent !important;
}

/* Titres et descriptions */
[data-theme="dark"] .block-titre-description h2 {
    color: #f8fafc !important;
}

[data-theme="dark"] .block-titre-description h2 a {
    color: #f8fafc !important;
}

[data-theme="dark"] .block-titre-description h2 a:hover {
    color: #2babe0 !important;
}

[data-theme="dark"] .block-titre-description h3 {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .block-titre-description h4 {
    color: #94a3b8 !important;
}

[data-theme="dark"] .description {
    color: #94a3b8 !important;
}

/* Prix et infos */
[data-theme="dark"] .block-prix-info {
    border-top-color: #334155 !important;
}

[data-theme="dark"] .info-detail {
    color: #94a3b8 !important;
}

[data-theme="dark"] .info-detail p {
    color: #94a3b8 !important;
}

[data-theme="dark"] .header-ref {
    color: #94a3b8 !important;
}

[data-theme="dark"] .mentionLocation {
    color: #64748b !important;
}

/* Bouton d'action */
[data-theme="dark"] .btn-action {
    background: #2babe0 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-action:hover {
    background: #1a8ab8 !important;
}

/* Skeleton loader */
[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%) !important;
    background-size: 200% 100%;
}

/* Vignette */
[data-theme="dark"] .vignette {
    /* Keep the same bright colors for vignettes */
}

/* Pages de détail d'annonces */

/* Caractéristiques */
[data-theme="dark"] .caracteristique-item {
    background: #0f172a !important;
}

[data-theme="dark"] .caracteristique-item .text-gray-600 {
    color: #94a3b8 !important;
}

[data-theme="dark"] .caracteristique-item .text-gray-900,
[data-theme="dark"] .caracteristique-item .font-semibold {
    color: #f8fafc !important;
}

/* Blocs d'informations */
[data-theme="dark"] .caracteristique-bloc {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .caracteristique-bloc h3 {
    color: #f8fafc !important;
}

[data-theme="dark"] .caracteristique-bloc ul li {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .caracteristique-bloc ul li strong {
    color: #f8fafc !important;
}

/* Page Estimation */

/* Type Cards */
[data-theme="dark"] .type-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .type-card:hover {
    border-color: #2babe0 !important;
    box-shadow: 0 12px 24px rgba(43, 171, 224, 0.3) !important;
}

[data-theme="dark"] .type-card.selected {
    border-color: #2babe0 !important;
    background: linear-gradient(135deg, rgba(43, 171, 224, 0.15), rgba(26, 143, 184, 0.15)) !important;
}

[data-theme="dark"] .type-card .icon {
    color: #2babe0 !important;
}

[data-theme="dark"] .type-card.selected .icon {
    color: #4fc3f7 !important;
}

[data-theme="dark"] .type-card .title {
    color: #f8fafc !important;
}

/* Form Inputs */
[data-theme="dark"] .form-input {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .form-input:focus {
    border-color: #2babe0 !important;
}

[data-theme="dark"] .form-input::placeholder {
    color: #64748b !important;
}

/* Boutons */
[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #2babe0, #1a8fb8) !important;
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(43, 171, 224, 0.4) !important;
}

[data-theme="dark"] .btn-primary:disabled {
    opacity: 0.5 !important;
}

/* Page Qui sommes-nous */

/* Content Cards */
[data-theme="dark"] .content-card {
    background: #1e293b !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .content-card h2 {
    color: #f8fafc !important;
}

[data-theme="dark"] .content-card h3 {
    color: #2babe0 !important;
}

[data-theme="dark"] .content-card p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .content-card p strong {
    color: #f8fafc !important;
}

[data-theme="dark"] .content-card ul li {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .content-card ul li:before {
    color: #99c110 !important;
}

/* Page Syndic */

/* Section Titles */
[data-theme="dark"] .section-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .section-text {
    color: #cbd5e1 !important;
}

/* Page Gestion Locative */

/* Service Cards */
[data-theme="dark"] .service-card {
    background: #1e293b !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .service-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Feature Items */
[data-theme="dark"] .feature-item {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .feature-item strong {
    color: #f8fafc !important;
}

[data-theme="dark"] .feature-item:before {
    color: #2babe0 !important;
}

/* Blocs de services avec gradients */
[data-theme="dark"] .bg-gradient-to-br {
    background: #1e293b !important;
    border-color: #2babe0 !important;
}

[data-theme="dark"] .from-blue-50 {
    background: #1e293b !important;
}

/* Numéros dans les cercles */
[data-theme="dark"] .bg-brand-blue {
    background-color: #2babe0 !important;
}

/* Shadows in dark mode */
[data-theme="dark"] .shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* Dark Mode Toggle Button Styles */
.dark-mode-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--border-gray-200);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.dark-mode-toggle:hover {
    background-color: var(--bg-gray-50);
    border-color: var(--brand-blue);
}

.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    color: var(--text-gray-700);
}

.dark-mode-toggle .sun-icon {
    position: absolute;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.dark-mode-toggle .moon-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .dark-mode-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .dark-mode-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dark-mode-toggle {
        width: 40px;
        height: 40px;
    }

    .dark-mode-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* Page Nous Contacter */

/* Info Cards */
[data-theme="dark"] .info-card {
    background: #1e293b !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .info-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Form Elements */
[data-theme="dark"] .form-label {
    color: #f8fafc !important;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
    border-color: #2babe0 !important;
    box-shadow: 0 0 0 3px rgba(43, 171, 224, 0.2) !important;
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
    color: #64748b !important;
}

[data-theme="dark"] .form-select option {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

/* Submit Button */
[data-theme="dark"] .btn-submit {
    background: linear-gradient(135deg, #2babe0, #1a8fb8) !important;
}

[data-theme="dark"] .btn-submit:hover {
    box-shadow: 0 8px 20px rgba(43, 171, 224, 0.4) !important;
}

/* Contact Items */
[data-theme="dark"] .contact-item {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .contact-item:hover {
    background: #1e293b !important;
    border-color: #2babe0 !important;
}

/* Modal Contact (Demander une visite) */

/* Modal Content */
[data-theme="dark"] .modal-content {
    background: #1e293b !important;
}

/* Modal Header */
[data-theme="dark"] .modal-header {
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .modal-header h2 {
    color: #f8fafc !important;
}

[data-theme="dark"] .modal-header p {
    color: #94a3b8 !important;
}

/* Modal Close Button */
[data-theme="dark"] .modal-close {
    background: #0f172a !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .modal-close:hover {
    background: #334155 !important;
    color: #f8fafc !important;
}

/* Contact Methods */
[data-theme="dark"] .contact-method {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .contact-method:hover {
    background: #1e293b !important;
    border-color: #2babe0 !important;
    box-shadow: 0 8px 24px rgba(43, 171, 224, 0.3) !important;
}

/* Contact Details */
[data-theme="dark"] .contact-details h4 {
    color: #f8fafc !important;
}

[data-theme="dark"] .contact-details p {
    color: #94a3b8 !important;
}

/* Page Mensualités */

/* Form Cards */
[data-theme="dark"] .form-card {
    background: #1e293b !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Annonce Info */
[data-theme="dark"] .annonce-info {
    background: #0f172a !important;
    border-left-color: #2babe0 !important;
}

[data-theme="dark"] .annonce-info h3 {
    color: #f8fafc !important;
}

/* Tab Buttons */
[data-theme="dark"] .tab-button {
    color: #94a3b8 !important;
}

[data-theme="dark"] .tab-button.border-brand-blue,
[data-theme="dark"] .tab-button.text-brand-blue {
    color: #2babe0 !important;
}

/* Results Table */
[data-theme="dark"] .results-table {
    background: #1e293b !important;
}

[data-theme="dark"] .results-table thead {
    background: linear-gradient(135deg, #2babe0, #1a8fb8) !important;
}

[data-theme="dark"] .results-table td {
    border-bottom-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .results-table tbody tr:nth-child(even) {
    background-color: #0f172a !important;
}

[data-theme="dark"] .results-table tbody tr:nth-child(odd) {
    background-color: #1e293b !important;
}

/* Highlight Row */
[data-theme="dark"] .highlight-row {
    background-color: rgba(43, 171, 224, 0.15) !important;
}

[data-theme="dark"] .highlight-row td {
    color: #f8fafc !important;
}

/* Result Boxes */
[data-theme="dark"] .result-box {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .result-box-notaire {
    background: linear-gradient(135deg, rgba(43, 171, 224, 0.2), rgba(30, 41, 59, 0.8)) !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .result-value {
    color: #f8fafc !important;
}

/* Page Honoraires */

/* Honoraires Tables */
[data-theme="dark"] .honoraires-table {
    background: #1e293b !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .honoraires-table thead {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
}

[data-theme="dark"] .honoraires-table th {
    color: #ffffff !important;
}

[data-theme="dark"] .honoraires-table td {
    color: #cbd5e1 !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .honoraires-table tbody tr:nth-child(even) {
    background-color: #0f172a !important;
}

[data-theme="dark"] .honoraires-table tbody tr:nth-child(odd) {
    background-color: #1e293b !important;
}

/* Table Bleu */
[data-theme="dark"] .honoraires-table.table-bleu tbody tr:nth-child(even) {
    background-color: rgba(43, 171, 224, 0.1) !important;
}

[data-theme="dark"] .honoraires-table.table-bleu tbody tr:nth-child(odd) {
    background-color: #1e293b !important;
}

/* Table Vert */
[data-theme="dark"] .honoraires-table.table-vert tbody tr:nth-child(even) {
    background-color: rgba(153, 193, 16, 0.1) !important;
}

[data-theme="dark"] .honoraires-table.table-vert tbody tr:nth-child(odd) {
    background-color: #1e293b !important;
}

/* Colored cells (colspan headers in tables) */
[data-theme="dark"] .honoraires-table tbody td[colspan] {
    background-color: rgba(43, 171, 224, 0.15) !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .honoraires-table.table-vert tbody td[colspan] {
    background-color: rgba(153, 193, 16, 0.15) !important;
}

/* Section titles on honoraires page */
[data-theme="dark"] .section-title {
    color: #f8fafc !important;
}

/* Page Mentions Légales */

/* Section Text */
[data-theme="dark"] .section-text {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .section-text strong {
    color: #f8fafc !important;
}

[data-theme="dark"] .section-text p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .section-text li {
    color: #cbd5e1 !important;
}

/* H4 and H5 in section-text */
[data-theme="dark"] .section-text h4,
[data-theme="dark"] .section-text h5 {
    color: #f8fafc !important;
}

/* Tables in section-text (cookie table) */
[data-theme="dark"] .section-text table {
    background: #1e293b !important;
}

[data-theme="dark"] .section-text table thead {
    background: #334155 !important;
}

[data-theme="dark"] .section-text table th {
    color: #f8fafc !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .section-text table td {
    color: #cbd5e1 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .section-text table tbody tr:nth-child(even) {
    background-color: #0f172a !important;
}

[data-theme="dark"] .section-text table tbody tr:nth-child(odd) {
    background-color: #1e293b !important;
}

/* ==========================================
   PRINT MODE - Force Light Theme
   ========================================== */

@media print {
    /* Force light mode variables when printing, even if dark mode is active */
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --bg-tertiary: #f9fafb;
        --bg-gray: #e9ecef;
        --bg-gray-50: #f9fafb;
        --bg-gray-100: #f3f4f6;

        --text-primary: #1a1a1a;
        --text-secondary: #374151;
        --text-tertiary: #64748B;
        --text-gray-500: #6b7280;
        --text-gray-600: #4b5563;
        --text-gray-700: #374151;
        --text-gray-900: #111827;

        --border-color: rgba(0,0,0,0.05);
        --border-gray-100: #f3f4f6;
        --border-gray-200: #e5e7eb;

        --glass-nav-bg: rgba(255, 255, 255, 0.9);
        --glass-nav-border: rgba(0,0,0,0.05);

        --card-bg: #ffffff;
        --card-shadow: rgba(0, 0, 0, 0.1);

        --footer-bg: #f9fafb;
        --footer-border: #e5e7eb;

        --mega-menu-bg: #ffffff;
        --mega-menu-border: #E2E8F0;
    }

    /* Override all dark mode specific styles for printing */
    [data-theme="dark"] body,
    [data-theme="dark"] .bg-white,
    [data-theme="dark"] .bg-gray-50,
    [data-theme="dark"] .bg-gray-100,
    [data-theme="dark"] .form-card,
    [data-theme="dark"] .info-card,
    [data-theme="dark"] .modal-content,
    [data-theme="dark"] .annonce-info,
    [data-theme="dark"] .result-box,
    [data-theme="dark"] .caracteristique-item,
    [data-theme="dark"] .caracteristique-bloc,
    [data-theme="dark"] .container-bien,
    [data-theme="dark"] .filters-container,
    [data-theme="dark"] .content-card,
    [data-theme="dark"] .service-card,
    [data-theme="dark"] .type-card,
    [data-theme="dark"] .honoraires-table,
    [data-theme="dark"] .results-table {
        background: white !important;
        color: #1a1a1a !important;
    }

    [data-theme="dark"] .text-gray-900,
    [data-theme="dark"] .text-gray-700,
    [data-theme="dark"] .text-gray-600,
    [data-theme="dark"] .text-gray-500,
    [data-theme="dark"] h1,
    [data-theme="dark"] h2,
    [data-theme="dark"] h3,
    [data-theme="dark"] h4,
    [data-theme="dark"] h5,
    [data-theme="dark"] h6,
    [data-theme="dark"] p,
    [data-theme="dark"] span,
    [data-theme="dark"] td,
    [data-theme="dark"] li,
    [data-theme="dark"] .section-title,
    [data-theme="dark"] .section-text,
    [data-theme="dark"] .form-label {
        color: #1a1a1a !important;
    }

    [data-theme="dark"] .border-gray-100,
    [data-theme="dark"] .border-gray-200,
    [data-theme="dark"] table td,
    [data-theme="dark"] table th {
        border-color: #e5e7eb !important;
    }

    /* Force black text for section headings in print */
    [data-theme="dark"] .caracteristique-bloc h3,
    [data-theme="dark"] .info-blocs-grid h3,
    [data-theme="dark"] strong {
        color: #000000 !important;
    }
}
