/* base de l'architecture */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(#f0f8ff, #dceeff);
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 80%;
    margin: auto;
    padding: 0;
    background-color: #fff;
    border: 2px solid #005a9c;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    text-align: center;
    overflow: hidden;
}

header {
    background-color: #005a9c;
    color: white;
    padding: 20px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

h1 {
    margin: 0;
    font-size: 2.5em;
}

nav {
    margin-top: 10px;
}

nav a {
    margin: 10px;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

.login-box {
    width: 320px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border: 2px solid #005a9c;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 90, 156, 0.1);
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.login-box h2 {
    margin-bottom: 20px;
    color: #005a9c;
}

.form-group {
    margin-bottom: 20px;
}

.login-box input {
    width: 80%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

button {
    padding: 10px 20px;
    background-color: #005a9c;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #004080;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.98);
}

.register-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
}

.register-prompt a {
    color: #005a9c;
    text-decoration: none;
    font-weight: bold;
}

.register-prompt a:hover {
    text-decoration: underline;
}

footer {
    background-color: #005a9c;
    color: white;
    text-align: center;
    padding: 10px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    margin-top: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
 .cards {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 20px;
    }

    .card {
        background-color: #e6f3ff;
        border: 1px solid #005a9c;
        border-radius: 10px;
        padding: 20px;
        width: 220px;
        box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
        text-align: center;
        animation: fadeInUp 0.6s ease forwards;
        opacity: 0;
    }

    .card h3 {
        margin-top: 0;
    }

    .card a {
        display: inline-block;
        margin-top: 10px;
        background-color: #005a9c;
        color: white;
        padding: 8px 12px;
        border-radius: 5px;
        text-decoration: none;
    }

    .card a:hover {
        background-color: #004080;
    }

    .stars {
        font-size: 2em;
        margin: 15px;
    }

    .star {
        color: #ccc;
    }

    .star.filled {
        color: gold;
    }

    .equation {
        font-size: 2em;
        margin: 20px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .drop-zone {
        width: 60px;
        height: 60px;
        border: 2px dashed #005a9c;
        border-radius: 8px;
        background-color: #e6f3ff;
        margin: 0 5px;
        font-size: 1.4em;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .draggable {
        margin: 8px;
        padding: 12px 20px;
        background-color: #005a9c;
        color: white;
        border-radius: 8px;
        cursor: grab;
        font-size: 1.4em;
    }

    .draggable.in-drop {
        background-color: #e6f3ff;
        color: #005a9c;
        border: 1px solid #005a9c;
    }

    #numbers {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 15px;
    }

    #feedback {
        margin-top: 15px;
        font-size: 1.2em;
        font-weight: bold;
    }

    .success {
        color: green;
    }

    .error {
        color: red;
        background-color: #ffe6e6;
        border: 1px solid #d70000;
        padding: 15px;
        border-radius: 10px;
        margin: 20px auto;
        max-width: 600px;
    }

    form {
        display: inline-block;
        text-align: left;
        max-width: 400px;
        width: 100%;
        margin: auto;
    }

    label {
        display: block;
        margin: 10px 0 5px;
        font-weight: bold;
    }

    input {
        width: 100%;
        padding: 10px;
        border: 1px solid #aaa;
        border-radius: 5px;
        margin-bottom: 15px;
    }

    .matiere-box {
        background-color: #ffffff;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        text-align: center;
        transition: transform 0.2s;
    }

    .matiere-box:hover {
        transform: scale(1.03);
    }

    .matiere-box h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .matiere-box p {
        font-size: 1.2em;
        margin-bottom: 15px;
    }

    .matieres-grid {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        padding: 20px;
    }

    /* ----------------------------------------------------
    * Animations
    * ---------------------------------------------------- */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeInUp {
        0% { opacity: 0; transform: translateY(20px); }
        100% { opacity: 1; transform: translateY(0); }
    }

    .card:nth-child(1) { animation-delay: 0.1s; }
    .card:nth-child(2) { animation-delay: 0.2s; }
    .card:nth-child(3) { animation-delay: 0.3s; }
    .card:nth-child(4) { animation-delay: 0.4s; }

    /* ----------------------------------------------------
    * Responsive
    * ---------------------------------------------------- */
    @media screen and (max-width: 600px) {
        .container {
            width: 95%;
        }
        .card {
            width: 100%;
        }
    }
/* Styles pour les boutons de navigation */
.btn-suivant {
  padding: 15px 30px; /* Augmente la taille du bouton */
  font-size: 1.2em; /* Augmente la taille de la police */
  margin-bottom: 20px; /* Ajoute une marge en bas */
}

.btn-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px; /* Assure que le conteneur a aussi une marge basse */
}

/* Style pour les messages de feedback */
.feedback {
    margin-top: 15px;
    margin-bottom: 20px; /* Ajoute de l'espace sous le message */
    font-size: 1.2em;
    font-weight: bold;
}