:root {
    --wp-blue: #0f7faa;
    --wp-blue-dark: #075f86;
    --wp-sky: #65c0df;
    --wp-light: #d8f3fb;
    --wp-soft: #f2fbfd;
    --wp-green: #31b38f;
    --wp-text: #18323f;
    --wp-muted: #617381;
}

* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--wp-text); padding-top: 76px; background: #fff; }
a { color: var(--wp-blue); text-decoration: none; }
a:hover { color: var(--wp-blue-dark); }
.brand-logo { width: 150px; height: auto; }
.footer-logo { width: 155px; background: #fff; border-radius: 14px; padding: .4rem .7rem; }
.navbar .nav-link { font-weight: 600; font-size: .94rem; color: var(--wp-text); }
.navbar .nav-link:hover { color: var(--wp-blue); }
.btn-primary { --bs-btn-bg: var(--wp-blue); --bs-btn-border-color: var(--wp-blue); --bs-btn-hover-bg: var(--wp-blue-dark); --bs-btn-hover-border-color: var(--wp-blue-dark); }
.btn-outline-primary { --bs-btn-color: var(--wp-blue); --bs-btn-border-color: var(--wp-blue); --bs-btn-hover-bg: var(--wp-blue); --bs-btn-hover-border-color: var(--wp-blue); }
.messages-container { position: fixed; top: 85px; left: 0; right: 0; z-index: 1060; }

.hero-section { min-height: 78vh; display: flex; align-items: center; background: radial-gradient(circle at 80% 10%, rgba(101,192,223,.26), transparent 28%), linear-gradient(135deg, #f5fcff 0%, #ffffff 45%, #e9f8fc 100%); position: relative; overflow: hidden; }
.hero-section:before { content: ""; position: absolute; inset: auto -10% -40% 50%; height: 520px; background: linear-gradient(135deg, rgba(15,127,170,.16), rgba(101,192,223,.18)); transform: rotate(-12deg); border-radius: 70px; }
.min-vh-75 { min-height: 75vh; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid rgba(15,127,170,.15); color: var(--wp-blue); border-radius: 999px; padding: .55rem 1rem; font-weight: 700; box-shadow: 0 10px 30px rgba(15,127,170,.08); margin-bottom: 1.2rem; }
.hero-section h1 { letter-spacing: -.04em; line-height: 1.04; }
.hero-card { background: var(--wp-blue); color: #fff; border-radius: 32px; padding: 2.2rem; min-height: 420px; position: relative; overflow: hidden; }
.hero-card:after { content: ""; position: absolute; width: 280px; height: 280px; right: -90px; bottom: -90px; background: rgba(255,255,255,.15); border-radius: 50%; }
.hero-wave { position: absolute; inset: 0; opacity: .22; background-image: repeating-radial-gradient(circle at 10% 10%, transparent 0 12px, rgba(255,255,255,.65) 13px 14px); }
.hero-card h2, .hero-card p, .hero-metrics { position: relative; z-index: 2; }
.hero-card h2 { font-size: 2.2rem; font-weight: 800; margin-top: 4rem; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 4rem; }
.hero-metrics div { background: rgba(255,255,255,.14); border-radius: 18px; padding: 1rem; }
.hero-metrics span { display: block; font-size: 1.65rem; font-weight: 800; }
.hero-metrics small { opacity: .85; }

.section-kicker { text-transform: uppercase; letter-spacing: .13em; color: var(--wp-blue); font-weight: 800; font-size: .78rem; margin-bottom: .55rem; }
.section h2, .page-header h1 { letter-spacing: -.03em; }
.section-soft { background: var(--wp-soft); }
.page-header { background: linear-gradient(135deg, var(--wp-blue) 0%, var(--wp-sky) 100%); color: #fff; position: relative; overflow: hidden; }
.page-header:after { content: ""; position: absolute; width: 380px; height: 380px; right: -80px; bottom: -120px; background: rgba(255,255,255,.16); border-radius: 50%; }
.page-header .container { position: relative; z-index: 2; }
.page-header .section-kicker { color: rgba(255,255,255,.8); }

.feature-card, .service-card, .project-card, .news-card, .member-card, .expert-card, .form-card, .info-panel, .job-card { background: #fff; border: 1px solid rgba(15,127,170,.1); border-radius: 24px; box-shadow: 0 12px 35px rgba(7,95,134,.08); }
.feature-card { padding: 1.7rem; position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover, .project-card:hover, .news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 46px rgba(7,95,134,.12); }
.feature-card h3, .service-card h3, .project-card h3, .news-card h3 { font-size: 1.18rem; font-weight: 800; margin-top: 1rem; }
.feature-card p, .service-card p, .project-card p, .news-card p { color: var(--wp-muted); }
.icon-circle { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--wp-light); color: var(--wp-blue); font-size: 1.6rem; }
.icon-circle.small { width: 46px; height: 46px; font-size: 1.3rem; border-radius: 14px; }
.service-card { padding: 1.6rem; }
.service-domain { display: inline-block; color: var(--wp-green); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.project-card, .news-card { overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.project-card img, .news-card img { width: 100%; height: 220px; object-fit: cover; }
.placeholder-visual { height: 220px; display: grid; place-items: center; background: linear-gradient(135deg, var(--wp-light), #fff); color: var(--wp-blue); font-size: 4rem; }
.members-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.member-card { padding: 1.3rem; text-align: center; }
.member-card h3 { font-size: 1rem; font-weight: 800; margin-top: .8rem; }
.member-card span { color: var(--wp-blue); font-weight: 800; }
.member-logo-wrap { min-height: 78px; display: flex; align-items: center; justify-content: center; }
.member-initial { width: 62px; height: 62px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; background: var(--wp-light); color: var(--wp-blue); font-weight: 900; }
.member-card img.member-logo { max-width: 155px; width: auto; height: 72px; object-fit: contain; }

.domain-block { padding: 2rem 0; border-bottom: 1px solid rgba(15,127,170,.12); scroll-margin-top: 110px; }
.domain-block:last-child { border-bottom: 0; }
.domain-title-box { background: var(--wp-soft); border-radius: 28px; padding: 1.8rem; position: sticky; top: 110px; }
.mini-service { display: flex; gap: .7rem; align-items: flex-start; background: #fff; border: 1px solid rgba(15,127,170,.1); border-radius: 16px; padding: 1rem; height: 100%; font-weight: 600; }
.mini-service i { color: var(--wp-green); }
.info-panel, .form-card { padding: 2rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { margin-bottom: 1rem; display: flex; gap: .75rem; }
.check-list li:before { content: "✓"; flex: 0 0 28px; height: 28px; display: grid; place-items: center; background: var(--wp-green); color: #fff; border-radius: 50%; font-weight: 900; }
.value-pill { text-align: center; padding: 1rem; background: #fff; border-radius: 999px; font-weight: 800; color: var(--wp-blue); box-shadow: 0 10px 30px rgba(7,95,134,.08); }
.expert-card { text-align: center; padding: 1.2rem; }
.expert-card img { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; margin-bottom: 1rem; }
.job-card { padding: 1.4rem; }
.content-body { font-size: 1.05rem; line-height: 1.8; color: #294654; }
.map-box iframe { width: 100%; min-height: 300px; border: 0; border-radius: 18px; }
.success-icon { font-size: 5rem; color: var(--wp-green); }

.cta-band { background: linear-gradient(135deg, var(--wp-blue-dark), var(--wp-blue)); color: #fff; }
.footer { background: #063a53; color: #fff; }
.footer h6 { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: #fff; }
.footer-links li { margin-bottom: .7rem; color: rgba(255,255,255,.75); }
.footer-links a { color: rgba(255,255,255,.75); }
.text-white-75 { color: rgba(255,255,255,.75); }
.social { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; font-size: 1.75rem; box-shadow: 0 12px 30px rgba(0,0,0,.2); z-index: 1040; }
.whatsapp-float:hover { color: #fff; transform: translateY(-2px); }

@media (max-width: 991.98px) {
    body { padding-top: 68px; }
    .brand-logo { width: 128px; }
    .hero-section h1 { font-size: 2.4rem; }
    .hero-metrics { grid-template-columns: 1fr; margin-top: 2rem; }
    .members-grid { grid-template-columns: repeat(2, 1fr); }
    .domain-title-box { position: static; }
}
@media (max-width: 575.98px) { .members-grid { grid-template-columns: 1fr; } .info-panel, .form-card { padding: 1.2rem; } }

/* Références, partenaires et pages entreprises membres */
.references-hero,
.partners-hero,
.member-hero,
.reference-detail-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(255,255,255,.22), transparent 24%),
        linear-gradient(135deg, var(--wp-blue-dark), var(--wp-blue));
    color: #fff;
    position: relative;
    overflow: hidden;
}
.references-hero:after,
.partners-hero:after,
.member-hero:after,
.reference-detail-hero:after {
    content: "";
    position: absolute;
    width: 540px;
    height: 540px;
    right: -170px;
    bottom: -250px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
}
.references-hero .container,
.partners-hero .container,
.member-hero .container,
.reference-detail-hero .container { position: relative; z-index: 2; }
.references-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.references-stats div { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 1rem; text-align: center; }
.references-stats strong { display: block; font-size: 1.8rem; line-height: 1; }
.references-stats span { font-size: .78rem; opacity: .85; }
.filter-pill { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid rgba(15,127,170,.18); color: var(--wp-text); background: #fff; padding: .55rem .9rem; border-radius: 999px; font-weight: 800; font-size: .9rem; }
.filter-pill span { background: var(--wp-light); color: var(--wp-blue); border-radius: 999px; padding: .05rem .45rem; font-size: .75rem; }
.filter-pill.active, .filter-pill:hover { background: var(--wp-blue); color: #fff; }
.filter-pill.active span, .filter-pill:hover span { background: rgba(255,255,255,.2); color: #fff; }
.references-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.reference-card { background: #fff; border: 1px solid rgba(15,127,170,.12); border-radius: 24px; padding: 1.35rem; box-shadow: 0 14px 36px rgba(7,95,134,.08); transition: transform .2s ease, box-shadow .2s ease; }
.reference-card:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(7,95,134,.12); }
.reference-topline { display: flex; justify-content: space-between; gap: .7rem; align-items: center; margin-bottom: 1rem; }
.ref-number, .detail-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .35rem .75rem; background: var(--wp-light); color: var(--wp-blue); font-size: .78rem; font-weight: 900; }
.ref-structure { display: inline-flex; align-items: center; border-radius: 999px; padding: .35rem .75rem; background: var(--wp-blue); color: #fff; font-size: .78rem; font-weight: 900; }
.ref-structure:hover, .detail-badge:hover { color: #fff; background: var(--wp-blue-dark); }
.reference-card h2 { font-size: 1.07rem; line-height: 1.35; font-weight: 850; margin-bottom: .9rem; }
.reference-card h2 a { color: var(--wp-text); }
.reference-card h2 a:hover { color: var(--wp-blue); }
.reference-meta { display: grid; gap: .45rem; color: var(--wp-muted); font-size: .9rem; }
.reference-meta span { display: flex; gap: .45rem; align-items: flex-start; }
.reference-meta i { color: var(--wp-blue); margin-top: .1rem; }
.associated { background: var(--wp-soft); border-left: 3px solid var(--wp-sky); padding: .75rem .9rem; border-radius: 14px; margin-top: 1rem; color: var(--wp-muted); font-size: .9rem; }
.reference-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 800; }
.reference-detail-hero h1,
.member-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 900; letter-spacing: -.04em; }
.reference-meta-panel { background: #fff; color: var(--wp-text); border-radius: 24px; padding: 1.35rem; box-shadow: 0 18px 46px rgba(0,0,0,.12); }
.reference-meta-panel p { display: grid; grid-template-columns: 34px 1fr; column-gap: .75rem; margin-bottom: 1rem; }
.reference-meta-panel i { grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--wp-blue); background: var(--wp-light); }
.reference-meta-panel span { color: var(--wp-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.reference-meta-panel strong { font-size: .95rem; }
.content-card { background: #fff; border: 1px solid rgba(15,127,170,.1); border-radius: 26px; padding: 2rem; box-shadow: 0 14px 36px rgba(7,95,134,.07); }
.project-side-panel { top: 105px; }
.member-card-link { display: block; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.member-card-link:hover { color: inherit; transform: translateY(-4px); box-shadow: 0 18px 46px rgba(7,95,134,.12); }
.member-profile-card { background: #fff; border-radius: 30px; padding: 2rem; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.13); color: var(--wp-text); }
.member-profile-card img { max-width: 240px; max-height: 135px; width: auto; height: auto; object-fit: contain; margin-bottom: 1rem; }
.member-profile-card span { display: inline-flex; background: var(--wp-light); color: var(--wp-blue); border-radius: 999px; padding: .4rem .85rem; font-weight: 900; }
.member-initial.large { width: 110px; height: 110px; border-radius: 30px; font-size: 2rem; margin-bottom: 1rem; }
.member-logo-wrap.mini { min-height: 54px; width: 80px; flex: 0 0 80px; }
.member-logo-wrap.mini img { max-width: 74px; max-height: 48px; object-fit: contain; }
.partners-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.partner-card { background: #fff; border: 1px solid rgba(15,127,170,.12); border-radius: 24px; padding: 1.25rem; text-align: center; box-shadow: 0 14px 36px rgba(7,95,134,.07); min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.partner-logo-box { width: 112px; height: 74px; border-radius: 20px; background: var(--wp-soft); display: grid; place-items: center; margin-bottom: 1rem; border: 1px solid rgba(15,127,170,.12); }
.partner-logo-box img { max-width: 92px; max-height: 54px; object-fit: contain; }
.partner-logo-box span { width: 52px; height: 52px; border-radius: 16px; background: var(--wp-light); color: var(--wp-blue); display: grid; place-items: center; font-weight: 900; text-transform: uppercase; }
.partner-card h3 { font-size: .98rem; line-height: 1.3; font-weight: 850; margin-bottom: .4rem; }
.partner-card p { font-size: .82rem; color: var(--wp-muted); margin: 0; }
@media (max-width: 991.98px) { .references-grid, .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .references-stats { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .references-grid, .partners-grid { grid-template-columns: 1fr; } .reference-card, .content-card { padding: 1.15rem; } }


/* --- Fixes July 2026: cleaner home + professional references cards --- */
.feature-card,
.service-card,
.project-card,
.member-card,
.partner-card,
.reference-card,
.content-card {
    overflow: hidden;
}
.feature-card h3,
.service-card h3,
.project-card h3,
.news-card h3,
.reference-title {
    overflow-wrap: anywhere;
}
.references-stats div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 110px;
}
.references-grid-pro {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}
.reference-card-pro {
    padding: 0;
    border-radius: 26px;
    box-shadow: 0 18px 42px rgba(7,95,134,.08);
    border: 1px solid rgba(15,127,170,.10);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.reference-card-head {
    padding: 1.1rem 1.15rem 1rem;
    background: linear-gradient(180deg, #f7fcfe 0%, #eef8fc 100%);
    border-bottom: 1px solid rgba(15,127,170,.10);
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: flex-start;
}
.reference-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.ref-year {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .35rem .75rem;
    background: #fff;
    border: 1px solid rgba(15,127,170,.12);
    color: var(--wp-blue-dark);
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
}
.reference-card-body {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 auto;
}
.reference-title {
    font-size: 1.12rem !important;
    line-height: 1.38 !important;
    font-weight: 850;
    margin: 0;
    min-height: 4.7rem;
}
.reference-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .85rem;
}
.meta-item {
    background: #fff;
    border: 1px solid rgba(15,127,170,.10);
    border-radius: 18px;
    padding: .9rem;
}
.meta-item-full {
    grid-column: 1 / -1;
}
.meta-label {
    display: block;
    margin-bottom: .35rem;
    color: var(--wp-muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
}
.meta-item strong {
    display: block;
    color: var(--wp-text);
    font-size: .96rem;
    line-height: 1.45;
    font-weight: 800;
}
.associated-pro {
    background: var(--wp-soft);
    border-color: rgba(15,127,170,.14);
}
.reference-card-footer {
    padding: 0 1.15rem 1.15rem;
    margin-top: auto;
}
.reference-card-footer .reference-link {
    margin-top: 0;
    width: 100%;
    justify-content: center;
}
@media (max-width: 1199.98px) {
    .references-grid-pro { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
    .references-grid-pro { grid-template-columns: 1fr; }
    .reference-meta-grid { grid-template-columns: 1fr; }
    .reference-title { min-height: auto; }
}


/* --- Navigation active state + partner logo visibility --- */
.navbar .nav-link {
    position: relative;
    border-radius: 999px;
    padding: .45rem .75rem !important;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.navbar .nav-link.active {
    color: var(--wp-blue) !important;
    background: var(--wp-light);
    box-shadow: inset 0 0 0 1px rgba(15,127,170,.16);
    font-weight: 850;
}
.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: .18rem;
    width: 32px;
    height: 3px;
    border-radius: 999px;
    background: var(--wp-blue);
}
.navbar .dropdown-toggle.active::after {
    border-top-color: var(--wp-blue);
}
.references-hero,
.partners-hero,
.member-hero,
.reference-detail-hero {
    padding-top: 5.75rem !important;
    padding-bottom: 4.25rem !important;
}
.partners-grid {
    gap: 1.35rem;
}
.partner-card {
    min-height: 270px;
    padding: 1rem 1.1rem 1.25rem;
    justify-content: flex-start;
}
.partner-logo-box {
    width: 100%;
    height: 150px;
    border-radius: 22px;
    margin-bottom: 1.05rem;
    background: linear-gradient(180deg, #f8fdff, #edf9fd);
}
.partner-logo-box img {
    width: 92%;
    height: 125px;
    max-width: 92%;
    max-height: 125px;
    object-fit: contain;
}
.partner-logo-box span {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    font-size: 1.35rem;
}
.partner-card h3 {
    font-size: 1.08rem;
    margin-top: .2rem;
}
.partner-card p {
    font-size: .88rem;
}
@media (max-width: 991.98px) {
    .navbar .nav-link.active::after { display: none; }
    .partners-hero,
    .references-hero,
    .member-hero,
    .reference-detail-hero { padding-top: 4.5rem !important; }
    .partner-logo-box { height: 135px; }
    .partner-logo-box img { height: 112px; }
}


/* --- Menu refinement patch: active item color only + consortium dropdown --- */
.navbar .nav-link {
    white-space: nowrap;
}
.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
    color: var(--wp-blue) !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.navbar .nav-link.active::after,
.navbar .nav-link[aria-current="page"]::after {
    display: none !important;
    content: none !important;
}
.navbar .nav-link:hover {
    color: var(--wp-blue) !important;
    background: transparent !important;
}
.navbar .dropdown-menu {
    border: 1px solid rgba(15,127,170,.10);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(7,95,134,.12);
    padding: .65rem;
}
.navbar .dropdown-item {
    border-radius: 12px;
    padding: .65rem .75rem;
    font-weight: 650;
    color: var(--wp-text);
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: var(--wp-blue);
    background: var(--wp-soft);
}
.nav-consortium {
    position: relative;
}
.consortium-menu {
    width: min(820px, calc(100vw - 2rem));
    min-width: 720px;
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .6rem;
    padding: .8rem;
}
.consortium-menu li {
    min-width: 0;
}
.consortium-menu .dropdown-item {
    height: 100%;
    min-height: 86px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .35rem;
    white-space: normal;
    line-height: 1.25;
    padding: .75rem .8rem;
    background: #fff;
    border: 1px solid rgba(15,127,170,.10);
}
.consortium-menu .dropdown-item span:last-child {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dropdown-acronym {
    min-width: auto;
    max-width: 100%;
    height: 26px;
    padding: 0 .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--wp-light);
    color: var(--wp-blue);
    font-size: .72rem;
    font-weight: 900;
    flex: 0 0 auto;
    white-space: nowrap;
}
.nav-quote-btn {
    white-space: nowrap;
}
.nav-quote-btn.active {
    background: var(--wp-blue-dark) !important;
    border-color: var(--wp-blue-dark) !important;
}
@media (min-width: 992px) {
    .nav-consortium:hover > .dropdown-menu.consortium-menu,
    .nav-consortium > .dropdown-menu.consortium-menu.show {
        display: grid !important;
        margin-top: 0;
    }
    .nav-consortium:hover > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    .navbar-nav {
        flex-wrap: nowrap;
    }
}
@media (max-width: 1199.98px) and (min-width: 992px) {
    .brand-logo { width: 132px; }
    .navbar .nav-link { font-size: .88rem; padding-left: .42rem !important; padding-right: .42rem !important; }
    .nav-quote-btn { font-size: .82rem; padding-left: .75rem !important; padding-right: .75rem !important; }
}


/* --- Consortium dropdown compact grid patch --- */
@media (min-width: 992px) {
    .nav-consortium .dropdown-menu.consortium-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        margin-top: .6rem;
    }
}
@media (max-width: 1199.98px) and (min-width: 992px) {
    .consortium-menu {
        width: min(680px, calc(100vw - 2rem));
        min-width: 620px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 991.98px) {
    .consortium-menu {
        width: 100%;
        min-width: 0;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        box-shadow: none;
    }
    .nav-consortium > .dropdown-menu.consortium-menu.show {
        display: grid !important;
    }
}
@media (max-width: 575.98px) {
    .consortium-menu {
        grid-template-columns: 1fr;
    }
}


/* --- Fix: consortium menu must stay hidden until hover/click --- */
.nav-consortium > .dropdown-menu.consortium-menu {
    display: none !important;
}
@media (min-width: 992px) {
    .nav-consortium:hover > .dropdown-menu.consortium-menu,
    .nav-consortium > .dropdown-menu.consortium-menu.show {
        display: grid !important;
    }
}
@media (max-width: 991.98px) {
    .nav-consortium > .dropdown-menu.consortium-menu.show {
        display: grid !important;
    }
}
