/* Styles généraux pour toutes les pages */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    color: #333;
}

/* Conteneur principal pour chaque page */
.container {
    background: #ffffff;
    padding: 100px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
}

/* Titre principal */
h1 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 20px;
    text-align: center;
}

/* Sous-titres */
h2, h3 {
    font-size: 20px;
    color: #555555;
    margin-bottom: 10px;
    text-align: center;
}

/* Navigation (liens principaux) */
nav {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

nav a, .back-link {
    text-decoration: none;
    padding: 10px 15px;
    background: #8C52FF;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    transition: background 0.3s;
}

nav a:hover, .back-link:hover {
    background: #0056b3;
}

/* Style des formulaires */
form {
    margin-top: 20px;
    text-align: left;
    display: grid;
    gap: 15px;
}

label {
    font-weight: bold;
    color: #555555;
}

input, select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: #007BFF;
    outline: none;
}

button {
    padding: 10px 15px;
    background: #8C52FF;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #8C52FF;
}

/* Conteneur principal des tableaux */
.table-container {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Espace entre les deux tableaux */
    margin-top: 20px;
}

/* Sections individuelles des tableaux */
.table-section {
    flex: 1;
    padding: 10px;
    background-color: #f8f8f8; /* Couleur de fond optionnelle */
    border-radius: 5px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ccc;
}

table th {
    background: #f8f8f8;
    font-weight: bold;
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup:target {
    display: block;
}

.popup-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding-top: 10%;
    padding: 30px;
    border-radius: 10px;
    width: 90%; /* Largeur plus large */
    max-width: 1200px; /* Maximum en largeur */
    height: auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

/* Bouton de fermeture dans le popup */
.close-popup {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background: #ff4d4d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

.close-popup:hover {
    background: #cc0000;
}

/* Messages d'erreur ou de succès */
#errorMessage {
    color: red;
    font-weight: bold;
    margin-top: 15px;
}

#successMessage {
    color: green;
    font-weight: bold;
    margin-top: 15px;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

.image-container img {
    width: 350px; /* Réduire la largeur de l'image */
    height: auto; /* Garder les proportions de l'image */
}

.devinfo {
    display: flex;
    justify-content: center;
    align-items: center;
}
