/* ==========================================================================
   Départements — index page (cards come from mysite/css/specific/estc_components.css)
   ========================================================================== */

.estc-deps {
    position: relative;
    overflow: hidden;
    padding: 80px 0 112px;
    background:
        radial-gradient(900px 420px at 100% 0%, rgba(0, 75, 130, .05), transparent 65%),
        #f6f7f9;
}

.estc-deps::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
    height: 520px;
    background: url('../../mysite/images/patterns/pattern_05.png') repeat;
    background-size: 150px;
    opacity: .05;
    -webkit-mask-image: radial-gradient(farthest-side at 100% 0, #000 25%, transparent);
    mask-image: radial-gradient(farthest-side at 100% 0, #000 25%, transparent);
    pointer-events: none;
}

.estc-deps > .estc-container {
    position: relative;
}

/* ---- Intro ---- */
.estc-deps__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: end;
    margin-bottom: 72px;
}

.estc-deps__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    font-family: var(--estc-font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--estc-primary);
}

.estc-deps__eyebrow::before {
    content: '';
    width: 40px;
    height: 2px;
    background: #c9a227;
}

.estc-deps__heading {
    margin: 0;
    font-family: var(--estc-font-heading);
    font-size: 52px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.5px;
    color: var(--estc-heading);
}

.estc-deps__lead p {
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--estc-text);
}

.estc-deps__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.estc-deps__facts li {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--estc-border);
    border-top-right-radius: 14px;
    font-size: 14px;
    color: var(--estc-text);
}

.estc-deps__facts strong {
    font-family: var(--estc-font-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--estc-primary);
}

/* ---- Pôle groups ---- */
.estc-deps__pole + .estc-deps__pole {
    margin-top: 72px;
}

.estc-deps__pole-head {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--estc-border);
}

.estc-deps__pole-num {
    font-family: var(--estc-font-heading);
    font-size: 22px;
    color: #c9a227;
}

.estc-deps__pole-head h3 {
    margin: 0;
    font-family: var(--estc-font-heading);
    font-size: 30px;
    font-weight: 500;
    color: var(--estc-heading);
}

.estc-deps__pole-count {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--estc-muted);
}

.estc-deps__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .estc-deps__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .estc-deps__heading {
        font-size: 42px;
    }
}

@media (max-width: 860px) {
    .estc-deps {
        padding: 56px 0 80px;
    }

    .estc-deps__intro {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 52px;
    }
}

@media (max-width: 640px) {
    .estc-deps__heading {
        font-size: 34px;
    }

    .estc-deps__lead p {
        font-size: 16px;
    }

    .estc-deps__pole + .estc-deps__pole {
        margin-top: 52px;
    }

    .estc-deps__pole-head {
        margin-bottom: 18px;
    }

    .estc-deps__pole-head h3 {
        font-size: 24px;
    }

    .estc-deps__pole-count {
        display: none;
    }

    .estc-deps__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* Cards sit under their pôle heading here, so the per-card pôle label is redundant */
.estc-deps .estc-dept__pole {
    display: none;
}
