﻿/* Styles de base */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0
}

h1 {
    text-align: center;
    margin: 20px 0;
    color: #0056b3;
}

/*p {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}*/

.form-container {
    max-width: 600px;
    margin: 0 auto 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #0056b3;
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: #0056b3;
    outline: none;
}

textarea {
    resize: none;
    height: 120px;
}

button {
    display: block;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #0056b3;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #003f7d;
}

#delete-image {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.full-button {
    width: 100%;
}

.note {
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Styles pour la boîte de dialogue */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #0056b3;
}

.modal-content p {
    margin-bottom: 20px;
    color: #333;
}

.modal-content button {
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #003f7d;
}

.custom-select {
    position: relative;
    width: 100%;
}

select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #fff;
    appearance: none; /* Retirer l'apparence par défaut */
    -webkit-appearance: none; /* Pour les navigateurs webkit */
    -moz-appearance: none; /* Pour Firefox */
    transition: border-color 0.3s;
}

select:focus {
    border-color: #0056b3;
    outline: none;
}

/* Ajouter une flèche customisée à droite */
select::-ms-expand {
    display: none; /* Cache la flèche pour Internet Explorer */
}

.select-container {
    position: relative;
}

.select-container::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-30%);
    color: #0056b3;
    font-size: 18px;
    pointer-events: none;
}

#preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.preview-item {
    position: relative;
    display: inline-block;
}

.preview-item img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.preview-item button {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    font-size: 18px; /* Ajuste la taille du X */
    cursor: pointer;
    padding: 0; /* Supprime tout padding par défaut */
    z-index: 10; /* Assure que le bouton est toujours au-dessus de l'image */
    margin-top: 5px;
    margin-right: 5px;
}

.preview-item button:hover {
    background-color: darkred;
}

/* Overlay couvrant toute la page */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Animation du loader */
.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#personal-data-container {
    text-align: center;
    color: #fff;
    background-color: #0056b3;
    padding: 10px;
}
#personal-data-container a {
    color: aqua;
}

#title-container {
    margin: 0;
    padding: 40px 40px 20px 40px;
    text-align: center;
}
.image-container {
    display: flex;
    justify-content: center;
}