html, body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    padding-top: 25px; /* Selon la hauteur du menu */
    background-color: #f4f4f9;
    height: 100%;
}

/* Styles pour le main */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 100% de la hauteur de la fenêtre */
}


.block-content {
    width: 100%; /* 75% de la largeur de l'écran */
    margin-top: 10px;
    padding: 0px 15px 0px 15px;
    box-sizing: border-box;
    flex: 1; /* Prend tout l’espace disponible */
}


/* Gestion du responsive (écran étroit) */
@media (max-width: 768px) {
    body {
        flex-direction: column; /* Empiler aside et main verticalement */
    }
    
    main {
        width: 100%; /* Occuper toute la largeur */
    }
}


/* Style uniforme pour tous les champs de formulaire */
body select,
body input[type="text"],
body input[type="date"],
body input[type="email"],
body input[type="number"],
body textarea {
    width: 25%;
    padding: 8px;
    font-size: 16px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Style général de base pour tous les boutons */
.btn-ajout {
    background-color: #28a745; /* Vert */
    color: white;
    margin: 10px 0px 10px 0px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.btn-ajout:hover {
    background-color: #218838;
}


/* Style pour les boutons de soumission */
.btn-submit, .btn-filter {
    background-color: #007bff;
    color: white;
    margin: 10px 0px 10px 0px;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-submit:hover, .btn-filter:hover {
    background-color: #0056b3;
}


/* Style pour les boutons de suppression */
.btn-delete {
    background-color: #dc3545;
    color: white;
    margin: 10px 0px 10px 0px;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-delete:hover {
    background-color: #a71d2a;
}


/* (Optionnel) Style pour un bouton annuler */
.btn-cancel {
    background-color: #6c757d;
    color: white;
    margin: 10px 0px 10px 0px;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;    
}

.btn-cancel:hover {
    background-color: #565e64;
}


.lien-submit {
    color: #007bff;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.lien-delete {
    color: #dc3545;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}


.lien-modifier {
    color: #f1c40f;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.lien-export {
    display: inline-block;
    padding: 6px 12px;
    margin-top: 15px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: background-color 0.3s;
}
.lien-export:hover {
    background-color: #e0e0e0;
}