
/* ========================================
   PAGE CONTACT
======================================== */

.contact-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 80px 20px;
    background-color: #FAFAFA;
}

/* Colonnes orange dans la moitié inférieure */
.contact-page::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;

    background: repeating-linear-gradient(
        to right,
        rgba(254, 131, 0, 0.3) 0,
        rgba(254, 131, 0, 0.3) 35px,
        #FAFAFA 35px,
        #FAFAFA 70px
    );

    /* Dégradé appliqué uniquement aux colonnes */
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 50%,
        black 100%
    );

    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 50%,
        black 100%
    );
}


/* ========================================
   CONTENEUR DU FORMULAIRE
======================================== */

.contact-page__container {
    position: relative;
    z-index: 1;
    width: min(100%, 650px);
    box-sizing: border-box;
    margin-inline: auto;
    padding: 40px;
    background: transparent;
}


/* ========================================
   TITRE DE LA PAGE CONTACT
======================================== */

.contact-page__title {
    margin: 0 0 35px;
    text-align: center;
    font-size: 64px;
    font-weight: 200;
    letter-spacing: -3%;
}

/* Gras uniquement sur les mots balisés */
.contact-page__title strong,
.contact-page__title b {
    font-weight: 900;
}

/* Italique uniquement sur les mots balisés */
.contact-page__title em,
.contact-page__title i {
    font-style: italic;
}


/* ========================================
   STRUCTURE DU FORMULAIRE
======================================== */

.contact-page .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-page .wpcf7 form p {
    margin: 0;
}


/* ========================================
   CHAMPS DE SAISIE
======================================== */

.contact-page .wpcf7 input:not([type="submit"]),
.contact-page .wpcf7 textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px;

    border: 2px dashed #03062E;
    border-radius: 13px;

    background-color: #FFFFFF;
    color: #03062E;

    font-family: inherit;
    font-size: 17px;
    letter-spacing: -3%;

    outline: none;
    transition: border-color 0.2s ease;
}

/* Placeholders : bleu nuit à 17 % d'opacité */
.contact-page .wpcf7 input:not([type="submit"])::placeholder,
.contact-page .wpcf7 textarea::placeholder {
    color: rgba(3, 6, 46, 0.17);
    opacity: 1;
    font-size: 24px;
    font-weight: 200;
}

/* Bordure orange lorsque le champ est sélectionné */
.contact-page .wpcf7 input:not([type="submit"]):focus,
.contact-page .wpcf7 textarea:focus {
    border-color: #FE8300;
}

/* Zone de message */
.contact-page .wpcf7 textarea {
    min-height: 180px;
    resize: vertical;
}


/* ========================================
   BOUTON ENVOYER
======================================== */

.contact-page .wpcf7 input[type="submit"] {
    display: inline-block;
    width: 204px;
    height: auto;
    box-sizing: border-box;

    padding: 8px 35px 8px 12px;
    border: 2px dashed #FE8300;
    border-radius: 13px;

    background-color: #FFFFFF;
    background-image: url("../images/arrow.svg");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;

    color: #03062E;
    font-family: inherit;
    font-size: 24px;
    line-height: 1;

    text-align: left;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

/* Survol du bouton */
.contact-page .wpcf7 input[type="submit"]:hover {
    background-color: #FE8300;
    color: #FAFAFA;
}

/* Centrage du bouton */
.contact-page .wpcf7 form p:last-of-type {
    text-align: center;
}


/* ========================================
   MESSAGES DE VALIDATION
======================================== */

.contact-page .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    font-size: 0.9rem;
}

.contact-page .wpcf7 form .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 12px;
}


/* ========================================
   FOOTER
======================================== */

body:has(.contact-page) footer {
    margin-top: 0;
}


/* ========================================
   RESPONSIVE — MOBILE
======================================== */

@media (max-width: 600px) {
    .contact-page {
        padding: 45px 15px;
    }

    .contact-page__container {
        padding: 25px 10px;
    }

    .contact-page__title {
        margin-bottom: 25px;
        font-size: 42px;
    }

    .contact-page .wpcf7 input:not([type="submit"]),
    .contact-page .wpcf7 textarea {
        padding: 12px;
    }

    .contact-page .wpcf7 input:not([type="submit"])::placeholder,
    .contact-page .wpcf7 textarea::placeholder {
        font-size: 20px;
    }

    .contact-page .wpcf7 input[type="submit"] {
        width: 204px;
        height: 37px;
        font-size: 20px;
    }
}



/* Images décoratives de fond */
.contact-page {
    position: relative;
}

.contact-page::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    background:
        url("../images/contact-image-1.png") 5% 103% / 64px no-repeat,
        url("../images/contact-image-2.png") 10% 32% / 220px no-repeat,
        url("../images/contact-image-3.png") 80% 15% / 63px no-repeat,
        url("../images/contact-image-4.png") 92% 90% / 180px no-repeat,
        url("../images/contact-image-5.png") 83% 80% / 49px no-repeat;
}



