/* FORMULAIRE */
main.form-container {
    background: #0e0e0e;
    color: #fff;
    padding: 60px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.6s ease;
}

main.form-container h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #00C9A7; /* Titre de la page en bleu */
}

form {
    background: #1c1c1c;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 201, 167, 0.3);
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: background-color 0.6s ease;
}

form label {
    font-weight: bold;
}

form input,
form textarea {
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background-color: #2e2e2e;
    color: #fff;
    font-size: 1rem;
    resize: vertical;
    transition: background-color 0.6s ease, box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #026b58; /* Box-shadow bleu foncé au focus */
    border: 2px solid #02a98d;
}

.g-recaptcha{
    margin-top: 20px;
}

/* BOUTONS */
.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.btn {
    font-family: 'Montserrat', sans-serif;
    flex: 1;
    padding: 14px 20px; /* adapté au btn-modal-site */
    margin: 15px;
    border: none;
    border-radius: 24px;
    font-weight: 500;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-decoration: none;
}

/* pseudo-élément pour la vague */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 40%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transform: skewX(-25deg);
    transition: none;
}

.btn:hover {
    transform: translate(-2px, 2px) scale(1.1);
}

.btn:hover::after {
    animation: wave 0.8s ease-out forwards;
}

.btn:active {
    transform: translate(0, 0) scale(0.98);
}

/* keyframes de la vague */
@keyframes wave {
    0%   { left: -120%;  }
    50%  { left: 110%;   }
    100% { left: 110%;   }
}

/* Bouton Envoyer spécifique */
.envoyer {
    transition: background 0.3s ease;
    background: linear-gradient(135deg, #00C9A7, #007CFF);
    color: #fff;
    box-shadow:
            4px -6px 0 0 rgb(0, 159, 133, 0.6),
            -4px 6px 0 0 rgb(0, 97, 202, 0.6);
}

.envoyer:hover {
    background: linear-gradient(135deg, #0b9e92, #136dcd);
    box-shadow:
            10px -6px 0 0 rgba(0, 159, 133, 0.8),
            -10px 6px 0 0 rgba(0, 97, 202, 0.8);
}

/* Bouton Supprimer spécifique (couleurs différentes) */
.supprimer {
    background: linear-gradient(135deg, #7b32e1, #7d08b8);
    color: #fff;
    box-shadow:
            -4px 6px 0 0 rgba(123, 50, 225, 0.6),
            4px -6px 0 0 rgba(112, 8, 184, 0.6);
}

.supprimer:hover {
    background: linear-gradient(135deg, #4e0cb3, #6a0085);
    box-shadow:
            -10px 6px 0 0 rgba(78, 12, 179, 0.8),
            10px -6px 0 0 rgba(106, 0, 133, 0.8);
}

/* === MODE CLAIR === */

body.light h1 {
    color: #007CFF;
}

body.light main.form-container {
    background-color: #fef9f3;
    color: #111;
}

body.light form {
    background: #e8e8e8;
    color: #111;
    box-shadow: 0 8px 24px rgba(85, 142, 217, 0.5);
}

body.light form input,
body.light form textarea {
    background-color: #fff;
    color: #111;
}

body.light form input:focus,
form textarea:focus {
    box-shadow: 0 0 0 2px #0350a1; /* Box-shadow bleu foncé au focus */
    border: 1px solid #0e80f8;
}

/* Bouton Envoyer mode clair */
body.light .envoyer {
    background: linear-gradient(135deg, #51cdb7, #2990fb);
    box-shadow:
            4px -6px 0 0 rgba(31, 221, 189, 0.6),
            -4px 6px 0 0 rgba(41, 133, 237, 0.6);
}

body.light .envoyer:hover {
    background: linear-gradient(135deg, #0db3a5, #1e79da);
    box-shadow:
            10px -6px 0 0 rgba(76, 232, 207, 0.8),
            -10px 6px 0 0 rgba(40, 136, 241, 0.8);
}

/* Bouton Supprimer mode clair */
body.light .supprimer {
    background: linear-gradient(135deg, #884ce3, #8c33c1);
    box-shadow:
            -4px 6px 0 0 rgba(143, 82, 221, 0.6),
            4px -6px 0 0 rgba(148, 55, 209, 0.6);
}

body.light .supprimer:hover {
    background: linear-gradient(135deg, #6639a5, #752a9e);
    box-shadow:
            -10px 6px 0 0 rgba(114, 17, 255, 0.8),
            10px -6px 0 0 rgba(159, 92, 209, 0.8);
}

/* Ajuste les marges des boutons dans formulaire */
.form-buttons {
    margin-top: 24px;
}
