.contact-page {
    position: relative;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.hero-brand {
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.contact-logo {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(240px, 100%);
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.contact-hero {
    position: relative;
    overflow: hidden;
    background: var(--beige);
    border: 2px solid var(--beige-fonce);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow:
        0 4px 0 var(--beige-fonce),
        0 10px 20px rgba(0, 0, 0, 0.12);
    margin-bottom: 1.75rem;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px dashed var(--or-terne);
    border-radius: 1rem;
    opacity: 0.5;
    pointer-events: none;
}

.contact-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(250, 202, 34, 0.12), transparent 28%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.contact-hero h1,
.contact-hero p {
    position: relative;
    z-index: 1;
}

.contact-hero h1 {
    color: var(--brun-nuit);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.contact-hero h1::after {
    content: '';
    flex: 1;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--or-terne) 0 8px, transparent 8px 16px);
}

.contact-hero p {
    color: var(--brun-cuir);
    text-shadow: none;
}

.contact-card {
    border: 2px solid var(--beige-fonce);
    border-radius: 1rem;
    background: var(--beige);
    box-shadow:
        0 4px 0 var(--beige-fonce),
        0 8px 16px rgba(0, 0, 0, 0.12);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    text-align: center;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(163, 77, 39, 0.06), transparent 45%, rgba(250, 202, 34, 0.08));
    pointer-events: none;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 6px 0 var(--beige-fonce),
        0 12px 20px rgba(0, 0, 0, 0.16);
}

.contact-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 32% 28%, var(--brun-cuir-clair), var(--brun-nuit) 75%);
    border: 3px solid var(--or);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
    color: var(--brun-nuit);
    position: relative;
    overflow: hidden;
}

.contact-icon img.contact-icon-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.contact-card .card-body {
    padding: 26px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.contact-card .btn-kros {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.contact-card h3 {
    margin-bottom: 0.75rem;
    color: var(--kros-black);
    font-weight: 700;
}

.contact-card p {
    color: var(--brun-cuir);
    flex: 1;
}

.contact-note {
    color: var(--brun-cuir);
    margin-top: 1.75rem;
    font-family: 'Kalam', cursive;
}

@media (max-width: 575.98px) {
    .contact-card .card-body {
        padding: 1.25rem;
    }

    .contact-icon {
        width: 66px;
        height: 66px;
    }

    .contact-icon img.contact-icon-img {
        width: 30px;
        height: 30px;
    }

    .contact-logo {
        width: 72px;
    }
}
