
/* ==========================================================
   RDA — FORMULAIRE DE CONTACT
   Contact Form 7 — Formulaire 467
   ========================================================== */

/* Conteneur général */
main.site-main:has(#wpcf7-f467-o1) {
    max-width: 1000px;
    margin: 45px auto 70px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Titre */
main.site-main:has(#wpcf7-f467-o1) > h1 {
    margin: 0 0 20px;
    text-align: center;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: #303030;
}

/* Lien retour */
main.site-main:has(#wpcf7-f467-o1) > p:first-of-type {
    max-width: 760px;
    margin: 0 auto 22px;
}

main.site-main:has(#wpcf7-f467-o1) > p:first-of-type a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a86600;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

main.site-main:has(#wpcf7-f467-o1) > p:first-of-type a::before {
    content: "←";
    font-size: 19px;
}

main.site-main:has(#wpcf7-f467-o1) > p:first-of-type a:hover {
    color: #ef9c13;
}

/* Carte formulaire */
#wpcf7-f467-o1 {
    max-width: 760px;
    margin: 0 auto;
    padding: 38px 45px 42px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-top: 4px solid #ef9c13;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .07);
    box-sizing: border-box;
}

/* Espacement des groupes */
#wpcf7-f467-o1 form > p {
    margin: 0 0 23px;
}

/* Libellés */
#wpcf7-f467-o1 label {
    display: block;
    color: #353535;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
}

/* Champs de saisie */
#wpcf7-f467-o1 input[type="text"],
#wpcf7-f467-o1 input[type="email"],
#wpcf7-f467-o1 textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 7px;
    padding: 13px 15px;
    background: #fafafa;
    border: 1px solid #d9dfe3;
    border-radius: 9px;
    box-shadow: none;
    color: #303030;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

/* Hauteur des champs simples */
#wpcf7-f467-o1 input[type="text"],
#wpcf7-f467-o1 input[type="email"] {
    min-height: 48px;
}

/* Zone de message */
#wpcf7-f467-o1 textarea {
    min-height: 175px;
    height: 175px;
    resize: vertical;
}

/* Focus */
#wpcf7-f467-o1 input[type="text"]:focus,
#wpcf7-f467-o1 input[type="email"]:focus,
#wpcf7-f467-o1 textarea:focus {
    outline: none;
    background: #fff;
    border-color: #ef9c13;
    box-shadow: 0 0 0 3px rgba(239, 156, 19, .14);
}

/* Bouton Envoyer */
#wpcf7-f467-o1 input[type="submit"] {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 14px 25px;
    background: #ef9c13;
    border: 1px solid #ef9c13;
    border-radius: 9px;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

#wpcf7-f467-o1 input[type="submit"]:hover {
    background: #d88708;
    border-color: #d88708;
    color: #fff;
    transform: translateY(-1px);
}

/* Messages d'erreur */
#wpcf7-f467-o1 .wpcf7-not-valid {
    border-color: #c62828 !important;
    background: #fff8f8 !important;
}

#wpcf7-f467-o1 .wpcf7-not-valid-tip {
    margin-top: 5px;
    color: #c62828;
    font-size: 12px;
}

#wpcf7-f467-o1 .wpcf7-response-output {
    margin: 18px 0 0;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
}

/* Dernier paragraphe contenant le bouton */
#wpcf7-f467-o1 form > p:last-of-type {
    margin-bottom: 0;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 767px) {

    main.site-main:has(#wpcf7-f467-o1) {
        margin: 25px auto 45px;
        padding: 0 15px;
    }

    main.site-main:has(#wpcf7-f467-o1) > h1 {
        margin-bottom: 20px;
    }

    #wpcf7-f467-o1 {
        padding: 25px 20px 30px;
        border-radius: 12px;
    }

    #wpcf7-f467-o1 form > p {
        margin-bottom: 18px;
    }

    #wpcf7-f467-o1 textarea {
        min-height: 150px;
        height: 150px;
    }
}
