/* Style général pour la page */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f2f7ed; /* Fond crème clair */
    margin: 0;
    padding: 0;
    color: #000000; /* Texte noir */
    zoom: 0.75;
    padding-top: 50px; /* Espacement en haut pour éviter que le contenu soit masqué sous la navbar */
}

/* Barre de navigation */
nav {
    position: fixed; /* Fixe la barre en haut de la page */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1e3658; /* Bleu profond */
    padding: 8px 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    zoom: 1.25;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    display: inline-block;
    font-size: 14px;
}

nav a:hover {
    background-color: #d03a42;
}

.menu-button {
    margin: 0 12px;
    padding: 8px 16px;
    text-decoration: none;
    color: #fff;
    background-color: #e63b48;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.menu-button:hover {
    background-color: #c6313a;
    transform: translateY(-3px);
}

.submenu {
    position: absolute;
    background-color: #1e3658;
    display: none;
    top: 35px;
    left: 0;
    right: 0;
    text-align: center;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease;
    z-index: 1000;
}

.submenu a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #fff;
    background-color: #e63b48;
    border-top: 1px solid #1e3658;
    border-radius: 5px;
}

.submenu a:hover {
    background-color: #c6313a;
}

.nav-container {
    position: relative;
    display: inline-block;
    padding: 8px;
}

.nav-container:hover .submenu {
    display: block;
    opacity: 1;
    transform: translateY(10px);
}

/* Titre principal */
h1 {
    text-align: center;
    color: #e63b48; /* Rouge vif */
    margin-top: 50px;
    font-size: 28px;
}

/* Formulaire de recherche */
form {
    background-color: #fff;
    max-width:50%;
    margin: 20px auto;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Champ de saisie et boutons */
input, textarea, select {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button, .add-contact-btn, .pagination-btn, .form-compartment button {
    padding: 12px;
    background-color: #f2f7ed;
    color: #e63b48;
    border: 2px solid #e63b48;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

button:hover, .add-contact-btn:hover, .pagination-btn:hover, .form-compartment button:hover {
    background-color: #e63b48;
    color: white;
    border-color: #d03a42;
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

button:focus, .add-contact-btn:focus, .pagination-btn:focus, .form-compartment button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(230, 59, 72, 0.4);
}

/* Section des résultats */
h2, h3.details-title {
    text-align: center;
    color: #e63b48;
    margin-top: 40px;
}

h3.details-title {
    font-size: 24px;
    font-weight: bold;
}

/* Grille et cartes */
.card, .details-card, .adhesion-card, .tableau_facture {
    background-color: #fff;
    padding: 20px;
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tableaux */
table {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 8px;
    text-align: left;
    font-size: 14px;
    border: 1px solid #ccc;
}

table th {
    background-color: #e63b48;
    color: white;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.pagination-btn {
    padding: 12px 20px;
    background-color: #f2f7ed;
    color: #e63b48;
    border: 2px solid #e63b48;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin: 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-btn:hover {
    background-color: #e63b48;
    color: white;
    border-color: #d03a42;
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.pagination-btn.active {
    background-color: #e63b48;
    color: white;
    border-color: #d03a42;
    pointer-events: none;
}

.pagination-btn.disabled {
    background-color: #f1f1f1;
    color: #ccc;
    cursor: not-allowed;
    border-color: #ccc;
    pointer-events: none;
}

.pagination-btn.disabled:hover {
    box-shadow: none;
}

/* Sections supplémentaires */
.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.search-container input {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 45%;
    margin: 5px;
}

.invoice-details, .info_entreprises, .footer-text {
    margin-left: 50px;
}

.logo {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.rib {
    max-width: 90%;
    height: auto;
    margin-left: 3%;
    margin-top: 3%;
}
