/* Conteneur pour aligner les boutons sur la même ligne */
.btn-actions-row {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
    justify-content: center;
}
/* Boutons d'action pour le tableau d'options */
.btn-action {
    font-size: 1.1em;
    padding: 2px 10px;
    margin: 0 2px;
    border: none;
    border-radius: 4px;
    background: #eaeaea;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    vertical-align: middle;
}
.btn-valider:hover {
    background: #2ecc40;
    color: #fff;
}
.btn-supprimer:hover {
    background: #e74c3c;
    color: #fff;
}
body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

.background {
    background-image: url("/static/fond_mini.jpg");
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Espace entre les deux fenêtres */
    flex-wrap: wrap; /* Permet de passer en mode colonne sur les petits écrans */
    width: 100%;
    max-width: 1100px; /* Largeur maximale du conteneur principal */
    height: 100%; /* Prend toute la hauteur disponible */
    box-sizing: border-box;
    overflow-y: auto; /* Permet le défilement vertical si le contenu dépasse la hauteur */
}

.horizontal-container{
    background-color: rgba(255, 255, 255, 0.8);
    padding-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    align-items: left;
}
.options-a-cocher-container{
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}


.form-container, .side-container, .tarifeur-container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    width: 300px; /* Largeur des fenêtres */
    align-items: left ;
}

.form-toiles-tendues-container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    width: 500px; /* Largeur des fenêtres */
    align-items: left ;
}
.petite-side-container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    width: 225px; /* Largeur des fenêtres */;
    font-size: 15px
}

.petite-side-container form label,
.petite-side-container form input,
.petite-side-container form select,
.petite-side-container form button {
    margin-bottom: 5px; /* Réduire la marge en bas de chaque élément */
}

label {
    display: block;
    margin: 10px 0 5px;
}

select, button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

input {
    width: 60%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    
}

button {
    background-color: #f4cb39;
    color: black;
    border: none;
    cursor: pointer;
}

.cancel-button {
    background-color: #bfbfbf; /* Rouge */
    color: rgb(5, 4, 4);
    cursor:pointer;
    border: none;
}

.cancel-button:hover {
    background-color: #e74c3c; /* Couleur d'arrière-plan au survol */
}

.hidden {
    display: none !important;
}

button:hover {
    background-color: #888B8D;
}


@media (max-width: 600px) {
    .container {
        flex-direction: column;
        gap: 10px; /* Réduire l'espace entre les fenêtres */
    }

    .form-container, .side-container {
        width: 100%; /* Prendre toute la largeur sur les petits écrans */
        max-width: 400px; /* Largeur maximale pour éviter de trop étendre */
        margin: 0 10px 10px 10px; /* Ajouter un peu de marge latérale */
    }

    input {
        width: 100%; /* Prendre toute la largeur pour les petits écrans */
    }
}

/* Réparer les labels checkbox qui héritent du label global */
.checkbox-label {
    display: flex !important;
    align-items: center;
    margin: 5px 0 !important;
    padding: 0 !important;
}

/* Réparer la checkbox qui héritait du style input global */
.checkbox-label input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 6px 0 0 !important;
    border: none !important;
}

/* Texte de la checkbox */
.checkbox-label span {
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
}

/* Layout pour la liste d'options (toiles tendues) */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 18px; /* Espace augmenté après la liste d'options */
}

.option-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.option-item label {
    margin: 0;
    font-weight: 400; /* Poids normal */
}

/* Assurer que le titre 'Options :' a le même rendu (normal) */
#options_facultatives > span {
    font-weight: 400;
    display: block;
    margin-bottom: 6px;
}

.option-extras {
    font-size: 0.9em;
    color: #666;
}

/* Sur petits écrans, empiler label et extras proprement */
@media (max-width: 480px) {
    .option-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 1px;
    bottom: 1px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #f4cb39;
}

input:checked + .slider:before {
    transform: translateX(20px);
}


/* Style pour la fenêtre modale */
.modal {
    display: none; /* Masqué par défaut */
    position: fixed; /* Reste à la même place même quand on scrolle */
    z-index: 1000; /* Au-dessus des autres éléments */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* Centré verticalement */
    padding: 20px;
    border: 1px solid #888;
    width: 300px; /* Largeur de la fenêtre */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

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

.menu-btn {
    display: block;
    width: 100%;
    padding: 16px 0;
    background:#f4cb39 0%;
    color: #000000;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s, transform 0.1s;
}
.menu-btn:hover, .menu-btn:focus {
    background: #888B8D;
    transform: translateY(-2px) scale(1.03);
    color: #fff;
    text-decoration: none;
}