/* =========================================================
   CONTACT PAGE
   ========================================================= */

:root {
    --contact-primary: #23834a;
    --contact-primary-dark: #176238;
    --contact-primary-light: #eaf7ef;

    --contact-accent: #f59e0b;

    --contact-dark: #17251d;
    --contact-text: #526158;
    --contact-muted: #89958e;

    --contact-border: #e5ebe7;
    --contact-bg: #f6f9f7;
    --contact-white: #ffffff;

    --contact-danger: #dc3545;

    --contact-shadow:
        0 25px 70px rgba(23, 37, 29, 0.10);
}


/* =========================================================
   PAGE
   ========================================================= */

.contact-page {
    position: relative;

    min-height: 100vh;

    padding: 80px 20px 100px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 5% 10%,
            rgba(35, 131, 74, 0.09),
            transparent 28%
        ),
        radial-gradient(
            circle at 95% 85%,
            rgba(245, 158, 11, 0.07),
            transparent 25%
        ),
        var(--contact-bg);

    font-family:
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--contact-dark);
}


/* Décor arrière-plan */

.contact-page::before,
.contact-page::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    z-index: 0;
}


.contact-page::before {
    width: 380px;
    height: 380px;

    top: -180px;
    right: -120px;

    border: 70px solid rgba(35, 131, 74, 0.035);
}


.contact-page::after {
    width: 280px;
    height: 280px;

    bottom: -160px;
    left: -120px;

    border: 55px solid rgba(245, 158, 11, 0.035);
}


/* =========================================================
   CONTAINER
   ========================================================= */

.contact-container {
    position: relative;

    z-index: 1;

    width: min(1180px, 100%);

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.contact-heading {
    max-width: 720px;

    margin: 0 auto 55px;

    text-align: center;
}


.contact-eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 16px;

    padding: 8px 15px;

    border: 1px solid rgba(35, 131, 74, 0.14);

    border-radius: 50px;

    background: rgba(35, 131, 74, 0.07);

    color: var(--contact-primary);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.contact-eyebrow span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--contact-primary);

}


.contact-heading h1 {
    margin: 0 0 15px;

    color: var(--contact-dark);

    font-size: clamp(34px, 5vw, 52px);

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -0.04em;
}


.contact-heading h1 span {
    color: var(--contact-primary);
}


.contact-heading p {
    max-width: 600px;

    margin: 0 auto;

    color: var(--contact-text);

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   GRID
   ========================================================= */

.contact-grid {
    display: grid;

    grid-template-columns:
        0.85fr
        1.15fr;

    gap: 28px;

    align-items: stretch;
}


/* =========================================================
   LEFT - INFORMATIONS
   ========================================================= */

.contact-info {
    position: relative;

    overflow: hidden;

    min-height: 650px;

    padding: 42px;


    background:
        linear-gradient(
            145deg,
            rgba(35, 131, 74, 0.98),
            rgba(23, 98, 56, 0.98)
        );

    color: #fff;
}


.contact-info::before {
    content: "";

    position: absolute;

    width: 270px;
    height: 270px;

    right: -120px;
    top: -100px;

    border: 55px solid rgba(255, 255, 255, 0.06);

    border-radius: 50%;
}


.contact-info::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    bottom: -100px;
    left: -80px;

    border: 35px solid rgba(255, 255, 255, 0.05);

    border-radius: 50%;
}


.contact-info-content {
    position: relative;

    z-index: 2;
}


.contact-info h2 {
    margin: 0 0 12px;

    color: #fff;

    font-size: 29px;

    line-height: 1.25;

    font-weight: 750;
}


.contact-info-description {
    margin: 0 0 38px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   CONTACT DETAILS
   ========================================================= */

.contact-details {
    display: flex;

    flex-direction: column;

    gap: 25px;
}


.contact-detail {
    display: flex;

    align-items: flex-start;

    gap: 17px;
}


.contact-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.10);

    color: #fff;

    font-size: 19px;

    backdrop-filter: blur(10px);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.contact-detail:hover .contact-icon {
    transform: translateY(-3px);

    background: rgba(255, 255, 255, 0.18);
}


.contact-detail-content {
    padding-top: 2px;
}


.contact-detail-label {
    display: block;

    margin-bottom: 4px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.contact-detail a,
.contact-detail p {
    margin: 0;

    color: #fff;

    text-decoration: none;

    font-size: 14px;

    line-height: 1.65;
}


.contact-detail a {
    transition: color 0.2s ease;
}


.contact-detail a:hover {
    color: #c9f1d7;
}


/* =========================================================
   SOCIALS
   ========================================================= */

.contact-socials {
    display: flex;

    gap: 10px;

    margin-top: 45px;
}


.contact-social {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.08);

    color: #fff;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}


.contact-social:hover {
    transform: translateY(-4px);

    background: #fff;

    color: var(--contact-primary);
}


/* =========================================================
   FORM CARD
   ========================================================= */

.contact-form-card {
    padding: 42px;

    border: 1px solid rgba(229, 235, 231, 0.9);

    background: rgba(255, 255, 255, 0.94);


    backdrop-filter: blur(12px);
}


.form-header {
    margin-bottom: 32px;
}


.form-header h2 {
    margin: 0 0 8px;

    color: var(--contact-dark);

    font-size: 28px;

    font-weight: 750;

    letter-spacing: -0.025em;
}


.form-header p {
    margin: 0;

    color: var(--contact-muted);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   FORM
   ========================================================= */

.contact-form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}


.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.form-group label {
    color: #334139;

    font-size: 13px;

    font-weight: 650;
}


.required {
    color: var(--contact-primary);
}


/* =========================================================
   INPUTS
   ========================================================= */

.form-control {
    width: 100%;

    box-sizing: border-box;

    padding: 14px 16px;

    border: 1px solid var(--contact-border);

    border-radius: 12px;

    outline: none;

    background: #fbfcfb;

    color: var(--contact-dark);

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.form-control::placeholder {
    color: #a5aea9;
}


.form-control:hover {
    border-color: #cbd6cf;
}


.form-control:focus {
    border-color: var(--contact-primary);

    background: #fff;

}


textarea.form-control {
    min-height: 150px;

    resize: vertical;

    line-height: 1.6;
}


/* =========================================================
   VALIDATION
   ========================================================= */

.is-invalid {
    border-color: var(--contact-danger) !important;

}


.invalid-feedback {
    color: var(--contact-danger);

    font-size: 12px;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.contact-submit {
    position: relative;

    width: 100%;

    min-height: 54px;

    margin-top: 5px;

    overflow: hidden;

    border: 0;

    background:
        linear-gradient(
            135deg,
            var(--contact-primary),
            var(--contact-primary-dark)
        );

    color: #fff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 750;

    cursor: pointer;


    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.contact-submit::before {
    content: "";

    position: absolute;

    top: 0;

    left: -100%;

    width: 70%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.18),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.6s ease;
}


.contact-submit:hover {
    transform: translateY(-2px);

}


.contact-submit:hover::before {
    left: 140%;
}


.contact-submit:active {
    transform: translateY(0);
}


.contact-submit:disabled {
    cursor: not-allowed;

    opacity: 0.8;

    transform: none;
}


.submit-content {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;
}


/* =========================================================
   SPINNER
   ========================================================= */

.contact-spinner {
    width: 16px;
    height: 16px;

    border: 2px solid rgba(255, 255, 255, 0.35);

    border-top-color: #fff;

    border-radius: 50%;

    animation:
        contactSpin 0.7s linear infinite;
}


@keyframes contactSpin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   ALERTS
   ========================================================= */

.contact-alert {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 22px;

    padding: 14px 16px;

    border-radius: 12px;

    font-size: 13px;

    line-height: 1.5;
}


.contact-alert.success {
    border: 1px solid #b9e3c8;

    background: #effaf3;

    color: #176238;
}


.contact-alert.error {
    border: 1px solid #f3c2c7;

    background: #fff3f4;

    color: #a52632;
}


.contact-alert-icon {
    flex: 0 0 auto;

    font-size: 18px;
}


/* =========================================================
   MAP
   ========================================================= */

.contact-map {
    margin-top: 28px;

    overflow: hidden;

    border: 1px solid var(--contact-border);

    background: #e9eeeb;

}


.contact-map iframe {
    display: block;

    width: 100%;

    height: 310px;

    border: 0;

    filter: saturate(0.8);
}


/* =========================================================
   BOTTOM CARDS
   ========================================================= */

.contact-bottom {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-top: 28px;
}


.contact-mini-card {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 20px;

    border: 1px solid var(--contact-border);
    background: #fff;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.contact-mini-card:hover {
    transform: translateY(-4px);


}


.mini-icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: var(--contact-primary-light);

    color: var(--contact-primary);
}


.mini-content strong {
    display: block;

    margin-bottom: 3px;

    color: var(--contact-dark);

    font-size: 13px;
}


.mini-content span {
    color: var(--contact-muted);

    font-size: 12px;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 960px) {

    .contact-grid {
        grid-template-columns: 1fr;
    }


    .contact-info {
        min-height: auto;
    }


    .contact-bottom {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .contact-page {
        padding: 50px 15px 70px;
    }


    .contact-heading {
        margin-bottom: 35px;
    }


    .contact-heading h1 {
        font-size: 35px;
    }


    .contact-heading p {
        font-size: 15px;
    }


    .contact-info,
    .contact-form-card {
        padding: 27px 22px;
    }


    .contact-info h2 {
        font-size: 25px;
    }


    .form-row {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .contact-map iframe {
        height: 250px;
    }


    .contact-detail {
        gap: 13px;
    }


    .contact-icon {
        flex-basis: 43px;

        width: 43px;
        height: 43px;
    }


    .contact-detail a,
    .contact-detail p {
        font-size: 13px;
    }

}


/* =========================================================
   PETIT MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .contact-page {
        padding-left: 10px;
        padding-right: 10px;
    }


    .contact-heading h1 {
        font-size: 30px;
    }


    .contact-info,
    .contact-form-card {
        padding: 23px 18px;
    }

}
