/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.intro-text {
    font-size: 1.2rem;
    color: green;
    margin-bottom: 40px;
}

/* Cards container */
.quiz-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* Individual Quiz Card */
.quiz-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    width: 100%;
    max-width: 320px;
}

.quiz-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.quiz-icon {
    font-size: 3rem;
    color: #16a085;
    margin-bottom: 15px;
}

.quiz-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.quiz-description {
    font-size: 1rem;
    color: black;
    margin-bottom: 20px;
}

.quiz-button {
    background-color: #16a085;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.quiz-button:hover {
    background-color: #1abc9c;
}

/* Buttons at the bottom */
.bottom-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.bottom-buttons a {
    background-color: #3498db;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.bottom-buttons a:hover {
    background-color: #2980b9;
}

.btn-dashboard i, .btn-formations i {
    font-size: 1.4rem;
}

/* Footer */
footer {
    margin-top: 40px;
    font-size: 1rem;
    color: #7f8c8d;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-cards-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Boutons au bas de la page */
.bottom-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.bottom-buttons a {
    background: linear-gradient(45deg, #16a085, #1abc9c); /* Dégradé de couleur vert */
    color: white;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px; /* Bord arrondi pour un aspect moderne */
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Effet au survol du bouton */
.bottom-buttons a:hover {
    transform: translateY(-5px); /* Déplacement léger vers le haut */
    background: linear-gradient(45deg, #1abc9c, #16a085); /* Inverser le dégradé au survol */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Ombrage plus prononcé */
}

/* Effet au focus pour une meilleure accessibilité */
.bottom-buttons a:focus {
    outline: none;
    border: 2px solid #fff;
    box-shadow: 0 0 5px 2px rgba(26, 188, 156, 0.7); /* Bordure visible pour l'accessibilité */
}

/* Style de l'icône dans le bouton */
.bottom-buttons a i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

/* Animation de l'icône au survol */
.bottom-buttons a:hover i {
    transform: translateX(5px); /* Déplacement léger de l'icône vers la droite */
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .bottom-buttons a {
        padding: 12px 20px;
        font-size: 1rem;
    }
}
