/* Reset et styles de base */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #90EE90; /* Vert clair */
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.navbar-content {
    display: flex;
    justify-content: center; /* Centre le contenu horizontalement */
    align-items: center;
    width: auto;
    margin: 0 auto; /* Assure que la navbar est centrée */
}

.left-content, .right-content {
    display: flex;
    justify-content: flex-start; /* Pour left-content */
    justify-content: flex-end; pour right-content si nécessaire
    gap: 0.5rem; /* Espace entre les éléments */
}



/* Style pour les liens de la navbar */
.navbar a {
    background-color: #90EE90; /* Vert clair */
    color: #000; /* Couleur du texte */
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px; /* Bords arrondis */
    white-space: nowrap;
    margin: 0 0.5rem; /* Espace horizontal entre les boutons */
}

.navbar a:hover {
    background-color: #45a049; /* Vert plus foncé au survol */
    color: black;
}

/* Style pour le bouton de déconnexion */
.logout-btn {
    background-color: #ff4500; /* Rouge/orange pour déconnexion */
    color: #fff; /* Couleur du texte du bouton */
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    white-space: nowrap;
    margin: 0 0.5rem;
}

.logout-btn:hover {
    background-color: #d13a00; /* Rouge/orange plus foncé au survol */
}

/* Container pour le contenu principal */
.container {
    margin: 60px auto 1rem auto; /* Top margin de 60px pour éviter chevauchement avec navbar */
    background-color: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    box-sizing: border-box;
}

/* Styles supplémentaires (formulaire, titres, etc.) */
h2, h3, h4, p {
    color: #2E8B57; /* Vert bouteille */
    font-size: 1rem;
    margin: 0.5rem 0;
}

.repair-table {
    width: 100%;
    margin: 1rem 0;
    color: #2E8B57;
    font-size: 1rem;
    text-align: center;
}

.repair-table a {
    color: green;
    text-decoration: none;
}

.repair-table a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group button {
    display: block;
    width: 100%;
    padding: 0.5rem;
    background-color: #007bff;
    border: none;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.form-group button:hover {
    background-color: #0056b3;
}

.thumbnails img {
    width: 150px; /* Largeur de la vignette */
    height: auto; /* Conserve les proportions de l'image */
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}


.thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.thumbnails img {
    width: 30rem;
    height: 14rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

/* Styles pour l'image magasin.jpg */
.center-image-container {
    display: flex;
    justify-content: center;
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#countdown {
    text-align: center;
    margin-bottom: 1rem;
}

#countdown-timer {
    font-size: 1.5rem;
    color: #ff4500;
    font-weight: bold;
    margin-top: 0.5rem;
}

.form-group {
    position: relative;
}

#togglePassword {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    cursor: pointer;
    background-color: #ddd;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
}

table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    border: 1px solid #ccc;
    border-radius: 10px;
    color: #2E8B57;
    background-color: #fff;
    font-size: 1rem;
}

table th, table td {
    padding: 0.5rem;
    border: 1px solid #ccc;
    color: #2E8B57;
}

table th {
    background-color: #f8f8f8;
}

/* Styles pour le modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.modal-content, #caption { 
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Styles responsives */
@media (max-width: 600px) {
    h2, h3 {
        font-size: 1.2rem;
    }
    p, .repair-table, .form-group label, .form-group input, .form-group select, .form-group textarea, .form-group button, table, .navbar a, #countdown-timer {
        font-size: 0.9rem;
    }
    .thumbnails img {
        width: 4rem;
        height: 4rem;
    }
    table th, table td {
        padding: 0.3rem;
    }
    .navbar a {
        padding: 0.3rem 0.5rem;
    }
}
.navbar .logo img {
    width: 100px; /* Réduire la taille du logo */
    height: auto;
    margin-right: 1rem; /* Espace avec les autres éléments */
    max-height: 50px; /* Limite la hauteur si nécessaire */
}