/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    text-align: center;
}

/* En-tête */
header {
    background: #007BFF;
    padding: 20px;
    color: white;
}

.logo-header {
    max-width: 500px;
}

/* Tableau de bord */
.dashboard-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    gap: 20px;
    justify-content: center;
    max-width: 800px;
    margin: auto;
}

.dashboard-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-item img {
    width: 100px;
    height: 100px;
}

.dashboard-item:hover {
    transform: scale(1.1);
}

/* Ajustement pour que Consultation Cartes prenne 2 cases */
.dashboard-item.large {
    width: 100%; /* Prend toute la largeur du conteneur */
    max-width: 770px; /* Pour éviter qu'il soit trop grand sur grand écran */
    margin: 0 auto 20px auto; /* Centrage et espace en bas */
}

/* Contenu des procédures */
.tab-content {
    display: none;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.tab-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.info {
    text-align: center;
    font-style: italic;
    font-weight: bold;
    margin-top: 10px;
}

.solde-title {
    text-align: center; /* Centré */
    font-size: 22px; /* Un peu plus gros */
    font-weight: bold; /* Gras */
    text-decoration: underline; /* Souligné */
    margin-top: 15px;
}
.important {
    font-size: 20px; /* Augmente la taille */
    font-weight: bold; /* Gras */
    text-decoration: underline; /* Souligné */
    text-align: center; /* Centré */
    margin-top: 10px;
}

.coming-soon {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: gray;
    margin-top: 20px;
}

/* Bouton Retour */
#btn-retour {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease-in-out;
    display: none; /* Caché au départ */
}

#btn-retour:hover {
    background: #0056b3;
}


/* Pied de page */
.logo-footer {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 80px;
}

/* Avertissement */
.warning {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

@media screen and (max-width: 768px) {
    .dashboard-item.large {
        width: 90%; /* Adapte la largeur en mobile */
        max-width: 400px; /* Taille max */
        margin: auto; /* Centre correctement */
    }
}
