.elementor-kit-9{--e-global-color-primary:#6EC1E4;--e-global-color-secondary:#54595F;--e-global-color-text:#7A7A7A;--e-global-color-accent:#61CE70;--e-global-color-fa414cf:#DE0E52;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1120px;}.e-con{--container-max-width:1120px;}.elementor-widget:not(:last-child){margin-bottom:20px;}.elementor-element{--widgets-spacing:20px;}{}h1.entry-title{display:var(--page-title-display);}.elementor-kit-9 e-page-transition{background-color:#FFBC7D;}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}/* Start custom CSS */document.addEventListener('DOMContentLoaded', function () {
    const themeSelect = document.querySelector('select[name="theme"]');
    const sousThemeContainer = document.querySelector('#form-field-sous-theme').closest('.elementor-field-group');

    const sousThemes = {
        "Sciences": ["Physique", "Chimie", "Biologie"],
        "Littérature": ["Poésie", "Roman", "Essai"],
        "Informatique": ["IA", "Réseaux", "Développement Web"]
    };

    sousThemeContainer.style.display = 'none'; // Masquer initialement

    themeSelect.addEventListener('change', function () {
        const selectedTheme = this.value;
        const sousThemeSelect = document.querySelector('select[name="sous-theme"]');

        sousThemeSelect.innerHTML = ""; // Réinitialiser
        if (sousThemes[selectedTheme]) {
            sousThemes[selectedTheme].forEach(st => {
                let opt = document.createElement('option');
                opt.value = st;
                opt.textContent = st;
                sousThemeSelect.appendChild(opt);
            });
            sousThemeContainer.style.display = 'block';
        } else {
            sousThemeContainer.style.display = 'none';
        }
    });
});/* End custom CSS */