/* =====================================================
   SECTION : CONTACT
===================================================== */
.contact {
    position: relative;
    height: 100%;
    padding: 50px 20px 0px;

    flex-direction: column;
    align-items: center;

    text-align: center;
    color: var(--text-soft);

    overflow: hidden;
}

/* =====================================================
   TITRE
===================================================== */
.contact h2 {
    position: relative;
    z-index: 2;

    margin-bottom: 25px;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.04em;

    color: var(--text-main);
}

/* =====================================================
   WRAPPER
===================================================== */
.contact-wrapper {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;

    width: 100%;
    max-width: 900px;
}

/* =====================================================
   CARTE CONTACT (STYLE PREMIUM CLAIR)
===================================================== */
.contact-card {
    aspect-ratio: 1 / 1;
    padding: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;

    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.6)
    );

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.45);

    color: #1f2937;
    text-decoration: none;
    text-align: center;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.35s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.35s ease;
}

/* clic carte entière */
.contact-card * {
    pointer-events: none;
}

/* Hover */
.contact-card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 30px 70px rgba(193, 18, 31, 0.35),
        inset 0 0 0 1px rgba(193, 18, 31, 0.35);
}

/* =====================================================
   ICÔNE
===================================================== */
.contact-card .icon {
    width: 78px;
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2.2rem;

    border-radius: 50%;
    background: radial-gradient(
        circle at top,
        #ffffff,
        #f1f5f9
    );

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.2),
        inset 0 0 0 4px rgba(193, 18, 31, 0.15);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.contact-card:hover .icon {
    transform: scale(1.12) rotate(-4deg);

    box-shadow:
        0 16px 36px rgba(193, 18, 31, 0.45),
        inset 0 0 0 4px rgba(193, 18, 31, 0.35);
}

/* icône image (LinkedIn) */
.social-icon {
    width: 52px;
    height: 52px;
}

/* =====================================================
   TEXTE
===================================================== */
.contact-card p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;

    color: #111827;
}

.contact-card span {
    font-size: 0.95rem;
    font-weight: 600;

    color: #c1121f;
    line-height: 1.3;
    word-break: break-word;
}

/* =====================================================
   ACCENT VISUEL BAS DE CARTE
===================================================== */
.contact-card::after {
    content: "";
    position: absolute;
    bottom: 14px;
    width: 40%;
    height: 3px;

    border-radius: 999px;
    background: linear-gradient(
        to right,
        transparent,
        #c1121f,
        transparent
    );

    opacity: 0.6;
}

/* =====================================================
   BACKGROUND SUBTIL (PAS SOMBRE)
===================================================== */
.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        radial-gradient(
            circle at center,
            rgba(193, 18, 31, 0.08) 0%,
            transparent 65%
        );

    animation: floatBG 26s linear infinite;
}

@keyframes floatBG {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 600px) {
    .contact h2 {
        margin-bottom: 40px;
    }

    .contact-wrapper {
        gap: 20px;
    }
}
