/*
Theme Name: Hello Elementor Child
Theme URI: https://studionumerik.fr/
Description: Hello Elementor Child Theme
Author: Studio Numerik
Author URL: https://studionumerik.fr/
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v2 or later
License URL: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hello-elementorchild
*/
/* Placer votre CSS ci-dessous */


.page-header{
    margin-top: 150px;
}

.questions-professeurs {
}
.enonce {
    text-decoration: none;
    list-style: none;
    text-transform: uppercase;
    font-size: 16px;
}


.table-of-contents {
    z-index: 1000; /* Assure que la table des matières est au-dessus du contenu */
    position: fixed;
    top: 20px; /* reste collé 20px sous le haut de l'écran */
    left: 0;
    width: 350px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: calc(100vh - 40px);
    margin-top: 200px;
    overflow-y: auto;
}

.table-of-contents h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.table-of-contents ul {
    list-style-type: none;
    padding: 0;
}

.table-of-contents ul li {
    margin: 8px 0;
}

.table-of-contents ul li a {
    text-decoration: none;
    color: #0073aa;
    font-weight: bold;
}

.table-of-contents ul li a:hover {
    text-decoration: underline;
}

/* Le contenu principal doit être décalé vers la droite */
.questions-professeurs {
    margin-left: 220px;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.accordion-header {
    padding: 15px;
    background-color: #0073aa;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    max-height: 150000px; /* Très grand pour permettre le scroll */
    padding: 20px;
}

/* Optionnel: petite flèche animée */
.accordion-header::after {
    content: "➤";
    float: right;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(90deg);
}

#codeForm {
    margin-top: 30px;
    padding-top: 30px;
    display: flex;
    gap: 15px;
    flex-direction: column;
    max-width: 300px;
    margin: auto;
    justify-content: center;
    text-align: center;
    align-items: center;
}
#codeForm #submitBtn {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

body .elementor-28 .elementor-element.elementor-element-2c59363c img {
    width: 65%;
}