/* Style global */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('BGBank.png');
    background-size: cover;
    background-position: center;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* En-tête */
header {
    background-color: rgba(0, 45, 114, 0.8); /* Couleur avec transparence */
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

header .logo {
    max-width: 150px;
    margin-bottom: 10px;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

nav ul {
    list-style-type: none;
    margin: 20px 0 0 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Add wrap to handle smaller screens */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #00509e;
    border-radius: 5px;
}

/* Contenu principal */
main {
    padding: 40px;
    max-width: 800px;
    margin: 40px auto;
    background-color: rgba(255, 255, 255, 0.9); /* Légère transparence pour la lisibilité */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Formulaires */
form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: auto;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form input[type="email"], 
form input[type="password"], 
form input[type="text"], 
form input[type="number"], 
form button {
    width: calc(100% - 20px);
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

form input:focus {
    border-color: #00509e;
    outline: none;
}

form button {
    background-color: #0077cc;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #00509e;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 15px;
    text-align: left;
}

th {
    background-color: #002d72;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Pied de page */
footer {
    background-color: #002d72;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem;
    width: 100%;
}

/* Media Queries pour les smartphones */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        margin: 10px 0 0 0;
    }

    nav ul li {
        margin: 10px 0;
    }

    main {
        padding: 20px;
        margin: 20px auto;
        width: 90%;
    }

    form {
        max-width: 90%;
        padding: 20px;
    }

    form button {
        font-size: 16px;
    }

    table, th, td {
        padding: 10px;
    }

    footer {
        padding: 15px 0;
        font-size: 0.8rem;
    }
}
