/* =========================================================
   HERO
========================================================= */

.page-hero {
    position: relative;
    padding: 4.5rem 0 3rem;
    overflow: hidden;
}

.page-hero--contact {
    background: linear-gradient(
        135deg,
        #666666 0%,
        #666666 45%,
        #666666 100%
    );
}

.page-hero--contact::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at top right,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.06) 25%,
        rgba(255, 255, 255, 0) 55%
    );
}

.page-hero--contact::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.18);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero .eyebrow {
    color: rgba(230, 230, 230, 0.9);
}

.page-hero h1 {
    margin: 0.5rem 0 1rem;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    color: #ffffff;
}

.page-hero__text {
    max-width: 70ch;
    margin: 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.94);
}

/* image à droite uniquement sur desktop */
@media (min-width: 901px) {
    .page-hero--contact::before {
        background:
            linear-gradient(
                90deg,
                rgba(102, 102, 102, 1) 0%,
                rgba(102, 102, 102, 1) 20%,
                rgba(102, 102, 102, 1) 50%,
                rgba(102, 102, 102, 0) 100%
            ),
            radial-gradient(
                circle at top right,
                rgba(255, 255, 255, 0.15) 0%,
                rgba(255, 255, 255, 0.06) 25%,
                rgba(255, 255, 255, 0) 55%
            ),
            url("../images/fond-elearning-2.png");
        background-repeat: no-repeat, no-repeat, no-repeat;
        background-position: top right;
        background-size: 60%;
        opacity: 0.45;
    }
}

/* =========================================================
   INTRO
========================================================= */

.contact-intro {
    max-width: 850px;
    margin: 0;
    text-align: left;
}

.contact-intro h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.9rem;
    line-height: 1.2;
}

.contact-intro h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin: 12px 0 0;
    background: var(--color-primary);
}

.contact-intro p {
    margin: 0 0 1.5rem;
    color: var(--color-text);
    line-height: 1.8;
}

.contact-mail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.4rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-mail-btn:hover {
    transform: translateY(-2px);
    opacity: 0.96;
}

/* =========================================================
   CONTACT CARDS
========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contact-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: var(--color-primary);
}

.contact-card__icon img {
    width: 42px;
    height: auto;
    object-fit: contain;
}

.contact-card__content h3 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    line-height: 1.2;
}

.contact-card__subtitle {
    margin: 0 0 0.75rem;
    color: var(--color-muted);
    font-style: italic;
}

.contact-card__phone {
    margin: 0 0 1rem;
    font-weight: 700;
}

.contact-card__phone a {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-card__phone a:hover {
    text-decoration: underline;
}

.contact-card__address {
    font-style: normal;
    color: var(--color-text);
    line-height: 1.8;
}

.contact-card__address span {
    display: block;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-hero {
        padding: 3.5rem 0 2.5rem;
    }

    .contact-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}