/* 🌿 FORMULAIRE GÉNÉRAL */
form {
    background: #fdfdf5; /* Jaune clair */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: auto;
}
.styled-table form {
    padding: 0px;
    border-radius: 0px;
    box-shadow: none;
    max-width: 600px;
    margin: auto;
}
/* Conteneur principal du formulaire */
.form-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
/* 📌 GROUPES DE CHAMPS */
.form-group {
    margin-bottom: 20px;
    position: relative;
}
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}
.form-title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
    color: #215a33; /* Vert */
}
.form-label {
    font-weight: bold;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
    color: #215a33;
    text-align: left;
}
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #fdfdf5; /* Jaune clair */
}

/* 📄 FORMULAIRE */
.login-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: left;
}
.login-form p{
    text-align: center;
}
/* 🖊️ CHAMPS DE FORMULAIRE */
.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #215a33; /* Bordure verte */
    border-radius: 5px;
    font-size: 16px;
    background: #ffffff;
    transition: all 0.3s ease-in-out;
}

/* 📝 TEXTAREA SPÉCIAL */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* 🌟 FOCUS INTERACTIF */
.form-control:focus {
    border-color: #f1c40f; /* Jaune vif */
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.5);
    outline: none;
}
.form-options {
    margin: 15px 0;
    text-align: left;
}
/* ❌ ERREURS */
.form-group .error {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}
.checkbox-container input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.form-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #fdfdf5; /* Jaune clair */
}

.register-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: left;
}
/* 🎨 BOUTONS */
.btn {
    padding: 12px 18px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-align: center;
    display: inline-block;
}
.btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}
.btn-primary {
    background: #215a33; /* Vert */
    color: white;
}
.btn-primary {
    background: #215a33;
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease-in-out;
}
.btn-primary:hover {
    background: #1b4d2a;
}
.btn-primary:hover {
    background: #1b4d2a;
}
.btn-secondary {
    background: #f1c40f; /* Jaune */
    color: black;
}

.btn-secondary:hover {
    background: #d4a80c;
}
.btn-edit {
    background: #ffc107;
    color: black;
    border: none;
}

.btn-edit:hover {
    background: #d39e00;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-delete:hover {
    background: #b02a37;
}

.btn-add {
    display: block;
    width: max-content;
    margin: 20px auto;
    background: #f1c40f;
    color: black;
    padding: 10px;
}

.btn-add:hover {
    background: #d4a80c;
}
.btn-danger {
    background: #dc3545;
    color: white;
}
/* Messages d'erreur */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}
.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Ajustement du message d'erreur pour ne pas casser la mise en page */
.form-group p {
    margin: 5px 0 0;
}
/* Animation d'apparition pour les messages d'erreur */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 🏷️ LABEL FLOTTANT */
.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper textarea {
    padding-top: 20px;
}

.input-wrapper .form-label {
    position: absolute;
    left: 12px;
    top: 15px;
    font-size: 16px;
    color: #777;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

.input-wrapper input:focus + .form-label,
.input-wrapper textarea:focus + .form-label,
.input-wrapper input:not(:placeholder-shown) + .form-label {
    top: 5px;
    font-size: 12px;
    color: #215a33;
}
.no-data {
    text-align: center;
    font-style: italic;
    color: #777;
}
/* Formulaire de contact */
.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: auto;
}

.contact input, .contact textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact button {
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact button:hover {
    background: #0056b3;
}
/* Style du champ et du container */
#form-adresse-container {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-top: 10px;
}

#adresse-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Style de la liste des suggestions */
.suggestions {
    list-style: none;
    padding: 0;
    margin: 5px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 150px;
    overflow-y: auto;
}

.suggestions li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestions li:hover {
    background: #007bff;
    color: white;
}
#form-contact-container {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-top: 10px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.contact-form label {
    font-weight: bold;
    text-align: right;
}

.contact-form input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

#contact-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}
.suggestions {
    list-style: none;
    padding: 0;
    margin: 5px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 150px;
    overflow-y: auto;
    position: absolute;
    width: calc(100% - 20px);
    z-index: 1000;
}

.suggestions li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.suggestions li:hover {
    background: #007bff;
    color: white;
}
#form-info-container {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-top: 10px;
}

#form-info-container input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}
/* Liens dans les formulaires (Connexion, Inscription, Reset Password) */
.form-footer a {
    display: inline-block;
    color: #007BFF;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

.form-footer a:hover {
    background: #007BFF;
    color: white;
    text-decoration: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.form-footer-bk p{
    margin: 15px;
    text-align: center;
}

