

.contact-section {
    padding: 100px 20px;
    display: flex;
    justify-content: center;

    position: relative;

    background-image: url("/images/fond-ecran-contact-1280.webp") !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    overflow: hidden;
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        rgba(246, 241, 232, 0.72),
        rgba(246, 241, 232, 0.78)
    );

    pointer-events: none;
}

.contact-container {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 920px;

    text-align: center;
}

.contact-container h2 {
    position: relative;
    display: inline-block;

    margin-bottom: clamp(28px, 5vw, 50px);

    color: var(--section-light-text);

    font-family: var(--font-heading);

    font-weight: 900;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-card {
    position: relative;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 34px 54px;

    padding: 36px 40px;

    background: rgba(255, 250, 242, 0.92);

    border: 1px solid rgba(23, 33, 29, 0.08);
    border-radius: 24px;

    box-shadow: var(--shadow-soft);

    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.contact-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.contact-card::before {
    content: "";

    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 50%;

    width: 1px;

    background: rgba(23, 33, 29, 0.08);

    transform: translateX(-50%);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 10px 12px;

    text-align: left;

    border-radius: 14px;

    transition:
        background 0.22s ease,
        transform 0.22s ease;
}

.contact-item:hover {
    background: rgba(23, 33, 29, 0.025);
}

.contact-item > div {
    transition: transform 0.22s ease;
}

.contact-item:hover > div {
    transform: translateX(3px);
}

.contact-item strong {
    display: inline-block;

    margin-bottom: 3px;

    color: var(--section-light-hover);

    font-weight: 800;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-item p {
    margin: 4px 0 0;

    color: var(--section-light-text);

    font-weight: 600;
    line-height: 1.4;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border-radius: 12px;

    background-color: rgba(241, 210, 176, 0.96);

    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;

    box-shadow:
        0 3px 10px rgba(23, 33, 29, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.10);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;

    will-change: transform;
    backface-visibility: hidden;
}

.contact-item:hover .contact-icon {
    transform: translateY(-2px);

    box-shadow:
        0 6px 14px rgba(23, 33, 29, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.10);

    filter: brightness(1.02);
}

.contact-icon.is-bouncing {
    animation: contactIconBounce 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.name-icon {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='8' r='4' fill='%2317211d'/><path d='M4 20c0-4 16-4 16 0' fill='%2317211d'/></svg>");
}

.location-icon {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%2317211d' d='M12 2C8 2 5 5 5 9c0 5 7 13 7 13s7-8 7-13c0-4-3-7-7-7z'/><circle cx='12' cy='9' r='2' fill='%23fffaf2'/></svg>");
}

.phone-icon {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%2317211d' d='M6 2h4l2 5-2 2c1 2 3 4 5 5l2-2 5 2v4c0 1-1 2-2 2C10 22 2 14 2 4c0-1 1-2 2-2z'/></svg>");
}

.mail-icon {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='2' y='4' width='20' height='16' rx='2' fill='%2317211d'/><path d='M2 6l10 8 10-8' fill='none' stroke='%23fffaf2' stroke-width='2'/></svg>");
}

.contact-item .email-link {
    position: relative;
    display: inline-block;

    color: inherit;

    font-weight: 600;
    text-decoration: none;

    transition: color 0.28s ease;
}

.contact-item .email-link::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -3px;

    width: 0;
    height: 2px;

    background: var(--section-light-hover);

    transition: width 0.28s ease;
}

.contact-item:hover .email-link {
    color: var(--section-light-hover);
}

.contact-item:hover .email-link::after {
    width: 100%;
}

.address-value {

    font-weight: 700;
    text-align: left;
}

@keyframes contactIconBounce {
    0% {
        transform: translateY(0) scale(1);
    }
    30% {
        transform: translateY(-4px) scale(1.03);
    }
    60% {
        transform: translateY(0) scale(0.99);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.contact-form-card {
    width: min(92%, 680px);
    margin: 3rem auto 0;
    padding: 2.2rem 2rem 1.5rem;

    background: var(--section-light-card);
    border: 1px solid rgba(31, 36, 33, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);

    text-align: center;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.contact-form-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.contact-form-card .section-kicker {
    display: block;
    margin-bottom: 0.4rem;

    color: var(--section-light-hover);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

.contact-form-card h3 {
    margin: 0 0 1.5rem;

    color: var(--section-light-text);
    font-size: clamp(1.7rem, 3vw, 2rem);
    line-height: 1.1;
}

.form-generic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.phone-optional-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 380px) {
    .phone-optional-label {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0 0 -0.35rem 0.15rem;
        overflow: visible;
        clip: auto;
        color: var(--section-light-text);
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.3;
        text-align: left;
        white-space: normal;
    }

    .phone-optional-label span {
        color: var(--section-light-muted);
        font-weight: 400;
    }
}

.form-generic textarea,
.form-generic button {
    grid-column: 1 / -1;
}

.form-generic input,
.form-generic textarea {
    width: 100%;
    padding: 12px 14px;

    border: 1px solid rgba(31, 36, 33, 0.14);
    border-radius: 14px;

    background: var(--section-light-card);
    color: var(--section-light-text);

    font-size: 0.95rem;
    font-family: var(--font-body);

    outline: none;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.form-generic input:hover,
.form-generic textarea:hover {
    transform: translateY(-2px);
    border-color: rgba(200, 121, 74, 0.4);
}

.form-generic input:focus,
.form-generic textarea:focus {
    transform: translateY(-2px);

    border-color: var(--section-light-hover);
    background: #f7f0e7;

    box-shadow: none;
}

.form-generic input::placeholder,
.form-generic textarea::placeholder {
    color: var(--section-light-muted);
    transition: opacity 0.25s ease;
}

.form-generic input:focus::placeholder,
.form-generic textarea:focus::placeholder {
    opacity: 0.45;
}

.form-generic textarea {
    grid-column: 1 / -1;

    resize: vertical;

    min-height: 95px;
    max-height: 220px;
}

.message-character-count {
    grid-column: 1 / -1;
    justify-self: end;

    margin: -6px 2px 0;

    color: var(--section-light-muted);

    font-size: 0.86rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.message-character-count.is-limit {
    color: var(--section-light-hover);
    font-weight: 700;
}

.form-generic button {
    justify-self: center;

    margin-top: 6px;
    padding: 12px 24px;

    border: none;
    border-radius: 999px;

    background: var(--section-light-accent);
    color: var(--section-light-card);

    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-body);

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        letter-spacing 0.25s ease;
}

.form-generic button:hover {
    transform: translateY(-3px) scale(1.02);

    background: var(--section-light-hover);

    box-shadow:
        0 10px 24px rgba(23, 33, 29, 0.16);

    letter-spacing: 0.02em;
}

.form-generic button:active {
    transform: translateY(0) scale(0.98);
}

.form-message {
    margin: 0 0 1rem;
    font-weight: 700;
}

.form-message.success {
    color: #2f7d4f;
}

.form-message.error {
    color: #b44236;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

/* Copyright RZU Informatique */
