/*
 * HOREL — Formulaire commun
 * 09/10/2026
 *
 * Formulaire réutilisable :
 * Atelier / Contact / futures pages HOREL.
 */


/* =========================================================
   1. STRUCTURE
   ========================================================= */

.horel-form {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: #121212;
    font-family: Montserrat, sans-serif;
}

.horel-form *,
.horel-form *::before,
.horel-form *::after {
    box-sizing: border-box;
}

.horel-form__form {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.horel-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
    width: 100%;
    max-width: none;
}

.horel-form__field {
    width: 100%;
    min-width: 0;
}

.horel-form__field--full {
    grid-column: 1 / -1;
}


/* =========================================================
   2. LABELS
   ========================================================= */

.horel-form label {
    display: block;
    margin: 0 0 8px;
    color: #121212;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .06em;
    text-transform: uppercase;
}


/* =========================================================
   3. CHAMPS
   ========================================================= */

.horel-form input[type="text"],
.horel-form input[type="email"],
.horel-form select,
.horel-form textarea {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #121212;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #121212;
    box-shadow: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.horel-form input[type="text"]:focus,
.horel-form input[type="email"]:focus,
.horel-form select:focus {
    border-bottom: 2px solid #121212;
    outline: 0;
    box-shadow: none;
}

.horel-form textarea {
    min-height: 170px;
    padding: 16px;
    border: 1px solid #cfcfcf;
    resize: vertical;
}

.horel-form textarea:focus {
    border-color: #121212;
    outline: 0;
    box-shadow: none;
}

.horel-form select {
    min-height: 47px;
    cursor: pointer;
}


/* =========================================================
   4. PIÈCE JOINTE
   ========================================================= */

.horel-form .horel-form__file {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 47px;
    margin: 0;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid #121212;
    border-radius: 0;
    background: transparent;
    color: #121212;
    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
}

.horel-form .horel-form__file::file-selector-button {
    margin-right: 14px;
    padding: 8px 14px;
    border: 1px solid #121212;
    border-radius: 0;
    background: #fff;
    color: #121212;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}

.horel-form .horel-form__file::file-selector-button:hover {
    background: #121212;
    color: #fff;
}


/* =========================================================
   5. INFORMATION CONFIDENTIALITÉ
   ========================================================= */

.horel-form .horel-form__privacy {
    margin: 0;
    color: #666;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
}

.horel-form .horel-form__privacy a {
    color: #121212;
    border-bottom: 1px solid #121212;
    text-decoration: none;
}

.horel-form .horel-form__privacy a:hover,
.horel-form .horel-form__privacy a:focus-visible {
    border-bottom-color: transparent;
}


/* =========================================================
   6. BOUTON
   ========================================================= */

.horel-form__footer {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin: 28px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.horel-form .horel-form__submit {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 46px;
    margin: 0;
    padding: 12px 28px;
    border: 1px solid #121212;
    border-radius: 0;
    outline: 0;
    background: #121212;
    color: #fff;
    box-shadow: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

.horel-form .horel-form__submit:hover,
.horel-form .horel-form__submit:focus,
.horel-form .horel-form__submit:focus-visible {
    border-color: #121212;
    background: #fff;
    color: #121212;
    box-shadow: none;
}


/* =========================================================
   7. MESSAGES
   ========================================================= */

.horel-form__notice {
    width: 100%;
    margin: 0 0 28px;
    padding: 16px 18px;
    border: 1px solid #121212;
    background: #fff;
    color: #121212;
}

.horel-form__notice ul {
    margin: 0;
    padding-left: 18px;
}


/* =========================================================
   8. ANTISPAM
   ========================================================= */

.horel-form .horel-form__honeypot,
.horel-form input[name="url"] {
    display: none !important;
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}


/* =========================================================
   9. MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .horel-form__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .horel-form__field--full {
        grid-column: auto;
    }

    .horel-form .horel-form__submit {
        width: 100%;
    }

}