/* 
    sombre.css - Styles optimisés pour le mode sombre 
    
    Ce fichier contient tous les styles nécessaires pour afficher le site
    correctement en mode sombre, en s'appuyant sur les variables CSS
    définies dans style.css.

    @author Alexandre BURIN
    @version 1.5.1
*/

/* Redéfinition des variables CSS pour le mode sombre */
body.mode-nuit {
    --background-header-primary: #1a1a1a;
    --background-header-secondary: #e2e8f0;
    --background-footer-primary: #242b35; /* Version sombre de #e2e8f0 */
    
    /* Couleurs adaptées et harmonisées avec le thème de base */
    --primary-green: #8fb87f;
    --primary-brown: #a68a5c;
    --accent-gold: #d4b97a;
    --text-dark: #e2e8f0;
    --text-light: #1a1a1a;
    --border-light: rgba(143, 184, 127, 0.2);
    --hover-bg: rgba(143, 184, 127, 0.12);
}

/* Application globale de la transition douce lors du changement de thème */
*, *::before, *::after {
    transition: background-color 0.3s ease-out, border-color 0.3s ease-out, color 0.3s ease-out, box-shadow 0.3s ease-out;
}

/* Base Body & Layout global en mode nuit */
body.mode-nuit {
    background-color: #121212;
    color: var(--text-dark);
}

/* --- Overrides Mode Sombre --- */

body.mode-nuit header {
    background: linear-gradient(135deg, var(--background-header-primary) 0%, #262626 100%);
    color: var(--background-header-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.mode-nuit .header-head-container h1 {
    color: var(--text-dark);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.mode-nuit .nav-link { color: var(--text-dark); }
body.mode-nuit .nav-link:hover { color: var(--primary-green); background-color: var(--hover-bg); }

body.mode-nuit .dropdown-menu {
    background-color: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-light);
}
body.mode-nuit .dropdown-item { color: var(--text-dark); }
body.mode-nuit .dropdown-item:hover { background-color: var(--hover-bg); color: var(--primary-green); }

/* Bouton Toggle */
body.mode-nuit #mode-toggle { border-color: var(--primary-green); color: var(--primary-green); }
body.mode-nuit #mode-toggle:hover {
    background-color: var(--primary-green);
    color: var(--background-header-primary);
    box-shadow: 0 6px 16px rgba(143, 184, 127, 0.4);
}

/* Section Carte Entreprise */
body.mode-nuit section.carte-presentation-entreprise {
    display: flex !important;
    flex-direction: column !important;
    background-color: #1e1e1e !important;
    border: 2px solid var(--border-light) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
}
body.mode-nuit section.carte-presentation-entreprise:hover {
    border-color: var(--primary-green) !important;
    box-shadow: 0 20px 60px rgba(143, 184, 127, 0.25) !important;
}
body.mode-nuit section.carte-presentation-entreprise .carte-presentation-entreprise-header {
    background: linear-gradient(135deg, rgba(143, 184, 127, 0.08) 0%, rgba(212, 185, 122, 0.04) 100%) !important;
    border-bottom: 2px solid var(--border-light) !important;
}
body.mode-nuit section.carte-presentation-entreprise .carte-presentation-entreprise-header h2 { color: var(--primary-green) !important; }

body.mode-nuit section.carte-presentation-entreprise .carte-presentation-entreprise-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2.5rem 3rem !important;
}

body.mode-nuit section.carte-presentation-entreprise .carte-presentation-entreprise-content .infos-auteur {
    background: linear-gradient(135deg, rgba(143, 184, 127, 0.12) 0%, rgba(212, 185, 122, 0.05) 100%) !important;
    border: 1.5px solid var(--border-light) !important;
}

/* Badges Auteur */
body.mode-nuit .auteur,
body.mode-nuit .profession-auteur,
body.mode-nuit .location {
    background-color: #262626 !important;
    color: #cdcdcd;
    border-color: var(--border-light);
}
body.mode-nuit .auteur {
    color: var(--primary-green);
    background: linear-gradient(135deg, rgba(143, 184, 127, 0.2) 0%, rgba(143, 184, 127, 0.05) 100%);
    border-color: var(--primary-green);
}
body.mode-nuit .auteur:hover,
body.mode-nuit .profession-auteur:hover,
body.mode-nuit .location:hover {
    background-color: var(--hover-bg);
    border-color: var(--primary-green);
    color: #ffffff;
}

/* Sections annexes (Plan, Boutique, Contacts, À propos) */
body.mode-nuit #plan, 
body.mode-nuit .bloc-statistiques,
body.mode-nuit .contact-section,
body.mode-nuit .a-propos-site {
    background: linear-gradient(135deg, #1e1e1e 0%, #262626 100%) !important;
    border-color: var(--border-light) !important;
}

body.mode-nuit .a-propos-site h2 {
    color: var(--primary-green) !important;
}

body.mode-nuit .approche-content {
    margin-bottom: 2rem;
}

body.mode-nuit .approche-content h3 {
    color: var(--primary-brown) !important;
}

body.mode-nuit .approche-content p {
    color: #c0c0c0;
    line-height: 1.7;
}

body.mode-nuit .approche-content em {
    color: var(--primary-green);
}

body.mode-nuit .approche-content figure,
body.mode-nuit .but-section figure {
    margin: 1.5rem 0;
}

body.mode-nuit .approche-content img,
body.mode-nuit .but-section img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body.mode-nuit .approche-content img:hover,
body.mode-nuit .but-section img:hover {
    box-shadow: 0 12px 32px rgba(143, 184, 127, 0.3);
}

body.mode-nuit .approche-content figcaption,
body.mode-nuit .but-section figcaption {
    color: #a0aec0;
}

body.mode-nuit .but-section {
    background: linear-gradient(135deg, rgba(143, 184, 127, 0.08) 0%, rgba(212, 185, 122, 0.06) 100%);
    border-color: var(--border-light);
}

body.mode-nuit .but-section h3 {
    color: var(--primary-brown);
}

body.mode-nuit .but-section p {
    color: #c0c0c0;
}

body.mode-nuit .but-section strong {
    color: var(--primary-green);
}

/* Section intro prestations */
body.mode-nuit .intro-prestations {
    background: linear-gradient(135deg, rgba(143, 184, 127, 0.12) 0%, rgba(212, 185, 122, 0.08) 100%);
    border-color: var(--border-light);
}

body.mode-nuit .intro-prestations h2 {
    color: var(--primary-green);
}

body.mode-nuit .intro-prestations p {
    color: #c0c0c0;
}

/* Section prestations content */
body.mode-nuit .prestations-content {
    background: linear-gradient(135deg, rgba(143, 184, 127, 0.12) 0%, rgba(212, 185, 122, 0.08) 100%);
    border-color: var(--border-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.mode-nuit .prestations-content h2 {
    color: var(--primary-green);
    text-shadow: 0 2px 8px rgba(143, 184, 127, 0.3);
}

/* Accordion items */
body.mode-nuit .accordion-item {
    background-color: #1e1e1e;
    border-color: var(--border-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.mode-nuit .accordion-item:hover {
    border-color: var(--primary-green);
    box-shadow: 0 8px 24px rgba(143, 184, 127, 0.25);
}

body.mode-nuit .accordion-item.active {
    border-color: var(--primary-green);
    box-shadow: 0 8px 24px rgba(143, 184, 127, 0.3);
}

body.mode-nuit .accordion-header {
    background: linear-gradient(135deg, rgba(143, 184, 127, 0.1) 0%, rgba(212, 185, 122, 0.06) 100%);
}

body.mode-nuit .accordion-header::before {
    background: linear-gradient(180deg, var(--primary-green), var(--accent-gold));
}

body.mode-nuit .accordion-header:hover {
    background: linear-gradient(135deg, rgba(143, 184, 127, 0.15) 0%, rgba(212, 185, 122, 0.1) 100%);
}

body.mode-nuit .accordion-title {
    color: var(--primary-green);
}

body.mode-nuit .accordion-icon {
    color: var(--primary-green);
}

body.mode-nuit .accordion-description {
    color: #c0c0c0;
    border-bottom-color: var(--border-light);
    background: linear-gradient(135deg, rgba(143, 184, 127, 0.04) 0%, rgba(212, 185, 122, 0.02) 100%);
}

body.mode-nuit .infos-prestations {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.5) 0%, rgba(38, 38, 38, 0.3) 100%);
}

body.mode-nuit .infos-prestations dt {
    color: var(--primary-brown);
}

body.mode-nuit .infos-prestations dd {
    color: #c0c0c0;
    background: linear-gradient(135deg, rgba(143, 184, 127, 0.1) 0%, rgba(212, 185, 122, 0.06) 100%);
    border-color: var(--border-light);
}

/* Section comment contacter */
body.mode-nuit .comment-contacter {
    background: linear-gradient(135deg, rgba(143, 184, 127, 0.1) 0%, rgba(212, 185, 122, 0.06) 100%);
    border-color: var(--border-light);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

body.mode-nuit .comment-contacter h2 {
    color: var(--primary-green);
}

body.mode-nuit .comment-contacter p {
    color: #c0c0c0;
}

body.mode-nuit .contact-link {
    color: var(--primary-green);
}

body.mode-nuit .contact-link:hover {
    color: var(--primary-brown);
    border-bottom-color: var(--primary-brown);
    background: linear-gradient(135deg, rgba(143, 184, 127, 0.15) 0%, rgba(212, 185, 122, 0.1) 100%);
}

body.mode-nuit .note-importante {
    background: linear-gradient(135deg, rgba(212, 185, 122, 0.15) 0%, rgba(212, 185, 122, 0.08) 100%);
    border-left-color: var(--accent-gold);
    color: #c0c0c0;
}

body.mode-nuit .note-importante strong {
    color: var(--primary-brown);
}

/* Styles mode sombre pour la liste des cas de naturopathie */
body.mode-nuit .liste-cas-naturopathie li {
    background-color: #222222;
    border-color: var(--border-light);
}

body.mode-nuit .liste-cas-naturopathie li:hover {
    border-color: var(--primary-green);
    box-shadow: 0 8px 24px rgba(143, 184, 127, 0.2);
}

body.mode-nuit .liste-cas-naturopathie li strong {
    color: var(--primary-green);
}

body.mode-nuit .liste-cas-naturopathie li em {
    color: #c0c0c0;
}

body.mode-nuit .note-fin {
    background: linear-gradient(135deg, rgba(143, 184, 127, 0.08) 0%, rgba(143, 184, 127, 0.04) 100%);
    border-color: var(--border-light);
}

body.mode-nuit .note-fin p {
    color: #c0c0c0;
}

/* Styles mode sombre pour les sections tarifs */
body.mode-nuit .intro-tarifs {
    background: linear-gradient(135deg, rgba(143, 184, 127, 0.12) 0%, rgba(212, 185, 122, 0.08) 100%);
    border-color: var(--border-light);
}

body.mode-nuit .intro-tarifs h2 {
    color: var(--primary-green);
}

body.mode-nuit .intro-tarifs p {
    color: #c0c0c0;
}

body.mode-nuit .note-importante {
    background: linear-gradient(135deg, rgba(212, 185, 122, 0.15) 0%, rgba(212, 185, 122, 0.08) 100%);
    border-left-color: var(--accent-gold);
    color: #c0c0c0;
}

body.mode-nuit .note-importante strong {
    color: var(--primary-brown);
}

body.mode-nuit .tarifs-tableau {
    background: linear-gradient(135deg, #1e1e1e 0%, #262626 100%);
    border-color: var(--border-light);
}

body.mode-nuit .tarifs-tableau h2 {
    color: var(--text-dark);
}

body.mode-nuit .tarifs-tableau table {
    background-color: #222222;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.mode-nuit .tarifs-tableau caption {
    color: var(--primary-green);
}

body.mode-nuit .tarifs-tableau thead {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-brown) 100%);
}

body.mode-nuit .tarifs-tableau th {
    color: white;
}

body.mode-nuit .tarifs-tableau tbody tr {
    border-bottom-color: var(--border-light);
}

body.mode-nuit .tarifs-tableau tbody tr:hover {
    background: linear-gradient(135deg, rgba(143, 184, 127, 0.12) 0%, rgba(212, 185, 122, 0.08) 100%);
}

body.mode-nuit .tarifs-tableau td {
    color: #c0c0c0;
}

body.mode-nuit .tarifs-tableau td:first-child {
    color: var(--text-dark);
}

body.mode-nuit .tarifs-tableau td:nth-child(2) {
    color: var(--primary-green);
}

body.mode-nuit .excellente-visite {
    color: var(--primary-green);
}

/* Section Accès Rapide */
body.mode-nuit .acces-rapide-container {
    background: linear-gradient(135deg, rgba(143, 184, 127, 0.08) 0%, rgba(212, 185, 122, 0.08) 100%);
    border-color: var(--border-light);
}

body.mode-nuit .acces-rapide-container h2 {
    color: var(--text-dark);
}

body.mode-nuit .acces-rapide-item {
    background-color: #262626;
    border-color: var(--border-light);
}

body.mode-nuit .acces-rapide-item:hover {
    border-color: var(--primary-green);
    box-shadow: 0 8px 24px rgba(143, 184, 127, 0.2);
}

body.mode-nuit .acces-rapide-item a {
    color: var(--primary-green);
}

body.mode-nuit .acces-rapide-item a:hover {
    color: var(--primary-brown);
}

body.mode-nuit .acces-rapide-item .description {
    color: #c0c0c0;
}

body.mode-nuit #plan .acces-rapide-grid .acces-rapide-item {
    background: #222222 !important;
    border-color: var(--border-light) !important;
}

body.mode-nuit #plan .acces-rapide-grid .acces-rapide-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    border-color: var(--primary-green) !important;
}

body.mode-nuit #plan .acces-rapide-grid .acces-rapide-item a {
    color: var(--primary-green) !important;
}

body.mode-nuit #plan .acces-rapide-grid .acces-rapide-item a:hover {
    color: var(--primary-brown) !important;
}

body.mode-nuit #plan .acces-rapide-grid .acces-rapide-item .description {
    color: #c0c0c0 !important;
}

body.mode-nuit #plan .acces-rapide-grid .acces-rapide-icon {
    color: var(--primary-green) !important;
}

body.mode-nuit .acces-rapide-icon {
    color: var(--primary-green);
}

body.mode-nuit .acces-rapide-icon i {
    transition: transform 0.3s ease;
}

body.mode-nuit .acces-rapide-item:hover .acces-rapide-icon i {
    transform: scale(1.15);
}

/* Section Hero Content */
body.mode-nuit .hero-content {
    text-align: center;
}

/* Lien retour en haut */
body.mode-nuit .lien-retour-haut {
    border-top-color: var(--border-light);
}

body.mode-nuit .lien-retour-haut a {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-brown) 100%);
    box-shadow: 0 4px 12px rgba(143, 184, 127, 0.3);
    color: white;
}

body.mode-nuit .lien-retour-haut a:hover {
    box-shadow: 0 6px 16px rgba(143, 184, 127, 0.4);
}

/* Section Plan Info List */
body.mode-nuit .plan-info-list li {
    background: linear-gradient(135deg, #333333 0%, #3a3a3a 100%);
    border-color: var(--border-light);
}

body.mode-nuit .plan-info-list li:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #404040 100%);
    border-color: var(--primary-green);
}

body.mode-nuit .plan-info-list li span {
    color: var(--text-dark);
}

/* Section Grille À Propos */
body.mode-nuit .bloc-statistiques h2 {
    color: white;
}

body.mode-nuit .grille-apropos h3 {
    color: var(--primary-brown);
}

body.mode-nuit .grille-apropos p {
    color: white;
}

/* Section Carte Presentation Header */
body.mode-nuit .carte-presentation-entreprise-header h3 {
    color: var(--primary-brown);
}

body.mode-nuit .carte-presentation-entreprise-header p {
    color: #c0c0c0;
}

body.mode-nuit .carte-presentation-entreprise-header em {
    color: var(--primary-green);
}

body.mode-nuit #plan article,
body.mode-nuit .carte-apropos,
body.mode-nuit #contact-info,
body.mode-nuit .contact-form-section,
body.mode-nuit #boutique-header figcaption {
    background-color: #222222 !important;
    border-color: var(--border-light) !important;
    color: var(--text-dark) !important;
}

body.mode-nuit .contact-form-container input,
body.mode-nuit .contact-form-container select,
body.mode-nuit .contact-form-container textarea {
    background-color: #121212 !important;
    border-color: var(--border-light) !important;
    color: #ffffff !important;
}

body.mode-nuit .contact-form-container input:focus,
body.mode-nuit .contact-form-container textarea:focus {
    border-color: var(--primary-green) !important;
    box-shadow: 0 0 0 3px rgba(143, 184, 127, 0.3) !important;
}

/* Footer Nuit */
body.mode-nuit footer.site-footer {
    background: var(--background-footer-primary);
    border-top: 2px solid var(--primary-green);
}
body.mode-nuit footer .footer-brand { color: #ffffff !important; }
body.mode-nuit footer .footer-copyright { color: #a0aec0 !important; }
body.mode-nuit footer .contact-name, 
body.mode-nuit footer .contact-mail,
body.mode-nuit footer .footer-nav a { color: var(--text-dark); }
body.mode-nuit footer .contact-mail:hover,
body.mode-nuit footer .footer-nav a:hover { color: var(--primary-green); }


/* Responsive adaptif */
@media (max-width: 1024px) {
    body.mode-nuit section.carte-presentation-entreprise .carte-presentation-entreprise-content {
        padding: 2rem;
        gap: 2rem;
    }

    body.mode-nuit section.carte-presentation-entreprise .photo-auteur img {
        width: 220px;
        height: 220px;
    }

    body.mode-nuit section.carte-presentation-entreprise .carte-presentation-entreprise-content .infos-auteur {
        padding: 1.5rem;
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    body.mode-nuit section.carte-presentation-entreprise .carte-presentation-entreprise-header {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }

    body.mode-nuit section.carte-presentation-entreprise .carte-presentation-entreprise-header h2 {
        font-size: 1.6rem;
    }

    body.mode-nuit section.carte-presentation-entreprise .carte-presentation-entreprise-content {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    body.mode-nuit section.carte-presentation-entreprise .photo-auteur {
        order: -1;
        margin: 0 auto;
    }

    body.mode-nuit section.carte-presentation-entreprise .photo-auteur img {
        width: 180px;
        height: 180px;
        border-width: 4px;
    }

    body.mode-nuit section.carte-presentation-entreprise .carte-presentation-entreprise-content .infos-auteur {
        width: 100%;
        padding: 1.5rem;
        align-items: center;
        gap: 0.8rem;
    }

    body.mode-nuit .auteur,
    body.mode-nuit .profession-auteur,
    body.mode-nuit .location {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    body.mode-nuit section.carte-presentation-entreprise .carte-presentation-entreprise-header {
        padding: 1.5rem 1rem 1rem 1rem;
    }

    body.mode-nuit section.carte-presentation-entreprise .carte-presentation-entreprise-header h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    body.mode-nuit section.carte-presentation-entreprise .carte-presentation-entreprise-content {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    body.mode-nuit section.carte-presentation-entreprise .photo-auteur img {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }

    body.mode-nuit section.carte-presentation-entreprise .carte-presentation-entreprise-content .infos-auteur {
        padding: 1.25rem;
        gap: 0.6rem;
    }

    body.mode-nuit .auteur,
    body.mode-nuit .profession-auteur,
    body.mode-nuit .location {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    body.mode-nuit section.carte-presentation-entreprise .carte-presentation-entreprise-content .infos-auteur {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }

    body.mode-nuit .auteur,
    body.mode-nuit .profession-auteur,
    body.mode-nuit .location {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    body.mode-nuit section.carte-presentation-entreprise .carte-presentation-entreprise-header h2 {
        font-size: 1.2rem;
    }

    body.mode-nuit section.carte-presentation-entreprise .photo-auteur img {
        width: 130px;
        height: 130px;
    }
}