/**
 * ========================================================
 * [ÉTAT : EN DÉVELOPPEMENT] Date : 23-05-2026 18:30:08
 * FICHIER : seva.css
 * RÔLE : Styles pour le tableau de bord principal (menus en accordéon)
 * Auteurs : Yvan Dubé & Gemini (IA Collaboratrice)
 * =========================================================
 */

.dashboard-seva {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.titre-principal {
    text-align: center;
    margin-bottom: 2rem;
}

/* --- Structure de l'accordéon --- */
.menu-accordeon {
    background-color: #fcfcfc;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.menu-accordeon[open] {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-color: #ccc;
}

/* --- Entête cliquable --- */
.menu-accordeon summary {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    user-select: none;
    list-style: none; /* Cache la flèche par défaut */
}

/* Flèche personnalisée à droite */
.menu-accordeon summary::after {
    content: '▼';
    font-size: 0.9rem;
    color: #666;
    transition: transform 0.3s ease;
}

.menu-accordeon[open] summary::after {
    transform: rotate(-180deg);
}

/* Fix pour cacher la flèche native sur Safari/Chrome */
.menu-accordeon summary::-webkit-details-marker {
    display: none;
}

.menu-accordeon summary h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

/* --- Contenu de l'accordéon (La Grille) --- */
.contenu-accordeon {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    border-top: 1px solid #eee;
}

/* --- Boutons --- */
.btn-lien {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 50px;
}

.btn-lien:hover {
    background-color: #f0f7ff;
    border-color: #0066cc; /* Adapte avec ton bleu de global.css si nécessaire */
    color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}