/* Dark Mode Styles */
:root.dark {
    --primary-color: #77021D;
    --primary-dark: #5a0116;
    --dark-bg: #1a1a1a;
    --light-gray: #2d2d2d;
    --text-dark: #f0f0f0;
    --text-light: #b0b0b0;
    --white: #ffffff;
    --border-color: #3a3a3a;
}

/* Body & Global */
html.dark body {
    background-color: #0f0f0f;
    color: #f0f0f0;
}

/* Textes généraux */
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
    color: #f0f0f0;
}

html.dark p,
html.dark span,
html.dark li,
html.dark a {
    color: #b0b0b0;
}

html.dark strong {
    color: #f0f0f0;
}

/* Header */
html.dark .header {
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Hero Section */
html.dark .hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* About Section */
html.dark .about {
    background: #0f0f0f;
}

html.dark .about-text h3,
html.dark .section-header h2 {
    color: #f0f0f0;
}

html.dark .about-text p,
html.dark .section-header p {
    color: #b0b0b0;
}

html.dark .feature {
    background: #2d2d2d;
    color: #f0f0f0;
}

html.dark .feature:hover {
    background: #3a3a3a;
}

html.dark .feature span {
    color: #f0f0f0;
}

/* Formations Section */
html.dark .formations {
    background: #1a1a1a;
}

html.dark .formation-card {
    background: #2d2d2d;
}

html.dark .formation-card h3 {
    color: #f0f0f0;
}

html.dark .formation-card p {
    color: #b0b0b0;
}

html.dark .formation-link {
    color: #ffffff;
}

/* Advantages Section */
html.dark .advantages {
    background: #0f0f0f;
}

html.dark .advantage h3 {
    color: #f0f0f0;
}

html.dark .advantage p {
    color: #b0b0b0;
}

/* Testimonials Section */
html.dark .testimonials {
    background: #1a1a1a;
}

html.dark .testimonial-card {
    background: #2d2d2d;
}

html.dark .testimonial-card p {
    color: #b0b0b0;
}

html.dark .testimonial-author strong {
    color: #f0f0f0;
}

html.dark .testimonial-author span {
    color: #888;
}

/* Contact Section */
html.dark .contact {
    background: #0f0f0f;
}

html.dark .contact-item h3 {
    color: #f0f0f0;
}

html.dark .contact-item p {
    color: #b0b0b0;
}

html.dark .contact a {
    color: #f0f0f0;
}

/* Forms */
html.dark .contact-form input,
html.dark .contact-form select,
html.dark .contact-form textarea {
    background: #2d2d2d;
    border-color: #3a3a3a;
    color: #f0f0f0;
}

html.dark .contact-form input:focus,
html.dark .contact-form select:focus,
html.dark .contact-form textarea:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Footer */
html.dark .footer {
    background: #0a0a0a;
}

html.dark .footer-bottom {
    border-top: 1px solid #2d2d2d;
}

html.dark .footer-column h3 {
    color: #ffffff;
}

html.dark .footer-column p {
    color: #b0b0b0;
}

html.dark .footer-column ul li a {
    color: #b0b0b0;
}

html.dark .footer-column ul li a:hover {
    color: #ffffff;
}

html.dark .footer-bottom p,
html.dark .footer-bottom a {
    color: #b0b0b0;
}

html.dark .footer-bottom a:hover {
    color: #ffffff;
}

html.dark .social-links a {
    color: #ffffff;
}

/* Dropdown menu */
html.dark .dropdown-menu {
    background: #2d2d2d;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

html.dark .dropdown-menu a {
    color: #f0f0f0;
}

html.dark .dropdown-menu a:hover {
    background: #3a3a3a;
    color: #ffffff;
}

/* Dark Mode Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(253, 25, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(253, 25, 0, 0.4);
}

.theme-toggle i {
    font-size: 1.5rem;
    color: var(--white);
}

html.dark .theme-toggle {
    background: #77021D;
    box-shadow: 0 4px 15px rgba(119, 2, 29, 0.3);
}

html.dark .theme-toggle:hover {
    box-shadow: 0 6px 20px rgba(119, 2, 29, 0.4);
}

html.dark .theme-toggle i {
    color: #ffffff;
}

/* Hero Section - Textes */
html.dark .hero-title,
html.dark .hero-subtitle {
    color: #ffffff;
}

html.dark .stat-label {
    color: #b0b0b0;
}

/* CTA Section */
html.dark .cta {
    background: linear-gradient(135deg, #77021D, #5a0116);
}

html.dark .cta h2,
html.dark .cta p {
    color: #ffffff;
}

/* Nav Links */
html.dark .nav-link {
    color: #ffffff;
}

html.dark .nav-link:hover {
    color: #ffffff;
}

/* Buttons */
html.dark .btn-primary {
    background: #77021D;
    color: #ffffff;
}

html.dark .btn-primary:hover {
    background: #5a0116;
}

html.dark .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

html.dark .btn-white {
    background: #2d2d2d;
    color: #ffffff;
}

html.dark .btn-white:hover {
    background: #3a3a3a;
}

/* Smooth transitions pour tous les éléments */
body,
.header,
.hero,
.about,
.formations,
.formation-card,
.testimonials,
.testimonial-card,
.contact,
.contact-form input,
.contact-form select,
.contact-form textarea,
.footer,
.dropdown-menu,
.feature {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Mentions Légales Section */
html.dark section[style*="background: var(--white)"] {
    background: #0f0f0f !important;
}

/* Responsive */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }

    .theme-toggle i {
        font-size: 1.2rem;
    }

    /* Dropdown mobile en dark mode */
    html.dark .dropdown-menu {
        background: #2d2d2d;
    }

    html.dark .dropdown-menu a {
        color: #f0f0f0;
    }

    html.dark .dropdown-menu a:hover {
        background: #3a3a3a;
        color: #ffffff;
    }
}
