/* #region Contact */


/* =========================================================
   CONTENEUR PRINCIPAL
   ========================================================= */

.contact {
    width: 100%;
    padding: 30px 14px;
    box-sizing: border-box;
}


.contact__container {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}



/* =========================================================
   TEXTE D'INTRODUCTION
   ========================================================= */

.contact__intro {
    margin: 0 0 25px;

    color: var(--color-text);

    font-size: 16px;
    line-height: 1.6;
}


/* =========================================================
   MESSAGES DE CONFIRMATION / ERREUR
   ========================================================= */

.contact__confirmation,
.contact__error {
    width: 100%;
    margin-bottom: 25px;
    padding: 15px 20px;

    box-sizing: border-box;

    border: 1px solid var(--color-primary);
    border-radius: 8px;

    color: var(--color-text);

    line-height: 1.5;
}


.contact__confirmation {
    background-color: rgba(58, 70, 239, 0.06);
}


.contact__error {
    background-color: rgba(255, 0, 0, 0.05);
}


/* =========================================================
   FORMULAIRE
   ========================================================= */

.contact__form {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;

    padding: 25px;

    box-sizing: border-box;

    border: 1px solid var(--color-primary);
    border-radius: 8px;

    background-color: var(--color-bg);
}


/* =========================================================
   CHAMPS
   ========================================================= */

.contact__field {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin: 0;
    padding: 0;

    border: 0;
}


/* =========================================================
   LABELS
   ========================================================= */

.contact__field label,
.contact__field legend {
    color: var(--color-title);

    font-size: 16px;
    font-weight: 600;
}


.contact__field legend {
    margin-bottom: 8px;
}


/* =========================================================
   INPUTS
   ========================================================= */

.contact__field input[type="text"],
.contact__field input[type="email"],
.contact__field textarea {
    width: 100%;

    padding: 12px 14px;

    box-sizing: border-box;

    border: 1px solid var(--color-primary);
    border-radius: 6px;

    background-color: var(--color-bg);

    color: var(--color-text);

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   FOCUS
   ========================================================= */

.contact__field input[type="text"]:focus,
.contact__field input[type="email"]:focus,
.contact__field textarea:focus {
    border-color: var(--color-title);

    box-shadow:
        0 0 0 2px rgba(58, 70, 239, 0.12);
}


/* =========================================================
   TEXTAREA
   ========================================================= */

.contact__field textarea {
    min-height: 180px;

    resize: vertical;

    line-height: 1.5;
}


/* =========================================================
   GROUPES RADIO
   ========================================================= */

.contact__field:has(input[type="radio"]) {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;

    gap: 12px 25px;

    padding: 15px;

    border: 1px solid var(--color-primary);
    border-radius: 6px;
}


.contact__field:has(input[type="radio"]) legend {
    width: 100%;
}


.contact__field:has(input[type="radio"]) label {
    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--color-text);

    font-size: 15px;
    font-weight: 400;

    cursor: pointer;
}


.contact__field input[type="radio"] {
    width: 16px;
    height: 16px;

    accent-color: var(--color-primary);

    cursor: pointer;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.contact__field:has(textarea) {
    grid-column: 1 / -1;
}


/* =========================================================
   CAPTCHA
   ========================================================= */

.contact__captcha {
    grid-column: 1 / -1;

    display: flex;
    justify-content: center;

    padding-top: 5px;
}


/* =========================================================
   BOUTON
   ========================================================= */

.contact__submit {
    grid-column: 1 / -1;

    display: flex;
    justify-content: center;

    padding-top: 5px;
}


.contact__submit button {
    min-width: 200px;

    padding: 12px 30px;

    border: 1px solid var(--color-primary);
    border-radius: 6px;

    background-color: var(--color-primary);

    color: var(--color-bg);

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.contact__submit button:hover {
    background-color: var(--color-bg);

    color: var(--color-primary);
}


.contact__submit button:active {
    transform: translateY(1px);
}



/* =========================================================
   RESPONSIVE TÉLÉPHONE
   ========================================================= */

@media (max-width: 767px) {

    .contact {
        padding: 20px 10px;
    }


    .contact__title {
        font-size: 24px;
    }


    .contact__form {
        padding: 18px;

        gap: 18px;
    }


    .contact__field:has(input[type="radio"]) {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }


    .contact__field:has(input[type="radio"]) legend {
        margin-bottom: 2px;
    }


    .contact__submit button {
        width: 100%;
    }

}


/* #endregion Contact */

/* =========================================================
   HONEYPOT ANTI-BOT
   ========================================================= */

/*
 * Le champ reste présent dans le HTML et peut donc être
 * détecté/rempli par les robots.
 *
 * Il est totalement invisible pour les visiteurs.
 *
 * !important garantit que le champ reste caché quel que
 * soit le thème actif : clair ou sombre.
 */

.contact__honeypot {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    border: 0 !important;

    opacity: 0 !important;

    pointer-events: none !important;

    background: transparent !important;

    color: transparent !important;
}


.contact__honeypot label,
.contact__honeypot input {
    display: none !important;
}