
body.error404 #main-container {
    background-image: url('https://alloreseau.fr/wp-content/uploads/2025/10/fond-home.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* Supprimer les fonds blancs qui bloquent le fond */
body.error404 header,
body.error404 footer,
body.error404 #main {
    background-color: transparent !important;
}

/* Texte visible sur le fond */
body.error404 h1,
body.error404 p,
body.error404 a.button {
    color: #fff;
}

/* Centrer le contenu de la 404 */
body.error404 #main {
    text-align: center;
    padding: 100px 20px;
}

.custom-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.form-group {
    margin-bottom: 20px;
    padding-right: 10px;
    padding-left: 10px;
    width: 100%;
}

.form-row .form-group {
    flex: 0 0 50%;
    max-width: 50%;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="tel"],
.custom-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.custom-form textarea {
    height: 100px;
    resize: vertical;
}

.custom-form button {
    background-color: #25A6E5;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.custom-form button:hover {
    background-color: #006688;
}

.dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.searchable-dropdown {
    flex-grow: 1;
}

.dropdown-options {
    list-style-type: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.dropdown-options li {
    padding: 1px;
    cursor: pointer;
    list-style-type: none;
}

.dropdown-options li:not(.disabled):hover {
    background-color: #f0f0f0;
}

.dropdown-options li.disabled {
    color: #999;
    cursor: not-allowed;
    padding: 0px;
    padding-top: 5px;
    list-style-type: none;
}

.add-dropdown,
.remove-dropdown {
    background-color: #25A6E5;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.remove-dropdown {
    background-color: #25A6E5;
}

.success {
    color: #4CAF50;
    font-weight: bold;
}

.error {
    color: #f44336;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-row .form-group {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .custom-form {
        padding: 10px;
    }

    .custom-form input[type="text"],
    .custom-form input[type="email"],
    .custom-form input[type="tel"],
    .custom-form textarea {
        font-size: 14px;
    }

    .custom-form button {
        padding: 10px 15px;
        font-size: 14px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}
