/* style.css */
body {
    font-family: Arial, sans-serif;
    background: #f5f5f5; /* Blanc un peu foncé */
    color: #111; /* Texte plus noir */
    margin: 0;
    padding: 0;
}

header, footer {
    background-color: #ffffff; /* Blanc pur */
    color: #000; /* Texte noir */
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #111;
    font-weight: bold;
}

nav a:hover {
    color: #f35f41;
}

.container {
    padding: 20px;
}

.course, .module {
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ✅ Cartes */
.card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 20px;
    color: #222;
    margin-bottom: 10px;
    font-weight: bold;
}

.card-body {
    font-size: 16px;
    color: #555;
}

.module-box, .section-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
}

/* ✅ Boutons */
button, .btn {
    background-color: #f35f41;
    border: none;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background-color: #d94b30;
}

/* ✅ Progression */
.progress-bar {
    width: 100%;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar-fill {
    height: 20px;
    background-color: #f35f41;
    width: 0%;
    transition: width 0.5s;
}

/* ✅ Titres */
h1, h2 {
    color: #111;
    margin-top: 20px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #f35f41;
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dropbtn:hover {
    background-color: #d94b30;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    z-index: 10;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.dropdown:hover .dropdown-content {
    display: block;
}
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
}

.user-table th, .user-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.user-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}
.user-table select {
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.user-table form {
    margin: 0;
}

/* 🔄 Conteneur adaptatif */
.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* 🧠 Responsive Typography */
h1 {
    font-size: 2em;
}
h2 {
    font-size: 1.5em;
}
.card-title,
.card-body,
.user-table {
    font-size: 1em;
}
button, .btn {
    font-size: 1em;
}

/* 📱 Responsive Tables */
.user-table-wrapper {
    overflow-x: auto;
}
.user-table {
    min-width: 600px;
    width: 100%;
}

/* 📱 Responsive Forms */
input[type="text"],
input[type="password"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 🧱 Layout adaptatif */
@media screen and (max-width: 768px) {
    .card, .module-box, .section-box {
        padding: 15px;
    }

    .dropbtn {
        width: 100%;
        text-align: left;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }

    header, footer {
        text-align: center;
        padding: 10px;
    }

    .user-table th, .user-table td {
        font-size: 14px;
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.2em;
    }

    .btn, button {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .card-body {
        font-size: 0.95em;
    }
}

input[type="radio"] {
    margin-right: 5px;
    transform: scale(1.1);
}
.accordion-toggle {
    background-color: #f35f41;
    color: white;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    border: none;
    text-align: left;
    font-weight: bold;
    margin-top: 10px;
    border-radius: 6px;
}

.accordion-toggle.active {
    background-color: #d94b30;
}




.accordion-title:hover {
    background: #f1f1f1;
}

.accordion-content {
    display: none;
    padding: 20px;
}
/* ✅ Structure de base */
.accordion {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #fff;
}

/* ✅ Titre de l'accordéon */
.accordion-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    color: #333;
    text-align: left;
}

/* ✅ Flèche */
.accordion-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* ✅ Contenu */
.accordion-content {
    display: none;
    padding: 15px 20px;
}

/* ✅ Responsive */
@media (max-width: 768px) {
    .accordion-title {
        font-size: 16px;
        padding: 12px 16px;
    }

    .accordion-content {
        padding: 12px 16px;
    }

    .accordion-arrow {
        font-size: 18px;
    }
}



.accordion-title:hover {
    background: #f1f1f1;
}

.accordion-content {
    display: none;
    padding: 20px;
}

.accordion-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.accordion-title.active .accordion-arrow {
    content: "➖";
    transform: rotate(180deg);
}



