: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;
    }
}

/* --- Fix: consortium dropdown items must remain visually stable on hover --- */
.consortium-menu .dropdown-item:hover,
.consortium-menu .dropdown-item:focus,
.consortium-menu .dropdown-item:active {
    color: var(--wp-text) !important;
    background: #fff !important;
    border-color: rgba(15,127,170,.10) !important;
    box-shadow: none !important;
    transform: none !important;
}
.consortium-menu .dropdown-item:hover .dropdown-acronym,
.consortium-menu .dropdown-item:focus .dropdown-acronym,
.consortium-menu .dropdown-item:active .dropdown-acronym {
    color: var(--wp-blue) !important;
    background: var(--wp-light) !important;
}
.consortium-menu .dropdown-item:hover span:last-child,
.consortium-menu .dropdown-item:focus span:last-child,
.consortium-menu .dropdown-item:active span:last-child {
    color: var(--wp-text) !important;
}

/* Keep only the compact grid menu for Consortium, never the long Bootstrap-style list. */
.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;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 1199.98px) and (min-width: 992px) {
    .nav-consortium:hover > .dropdown-menu.consortium-menu,
    .nav-consortium > .dropdown-menu.consortium-menu.show {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 991.98px) {
    .nav-consortium > .dropdown-menu.consortium-menu.show {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 575.98px) {
    .nav-consortium > .dropdown-menu.consortium-menu.show {
        grid-template-columns: 1fr !important;
    }
}


/* --- Public text + services refinements, July 2026 --- */
.services-redesign { background: linear-gradient(180deg, #fff 0%, var(--wp-soft) 100%); }
.service-domain-panel {
    background: #fff;
    border: 1px solid rgba(15,127,170,.10);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(7,95,134,.08);
    scroll-margin-top: 110px;
}
.service-domain-content { padding: clamp(1.35rem, 3vw, 2.4rem); }
.service-domain-content h2 {
    font-size: clamp(1.6rem, 2.7vw, 2.35rem);
    font-weight: 900;
    color: var(--wp-text);
    letter-spacing: -.04em;
    margin-bottom: .6rem;
}
.service-domain-list { display: grid; gap: .85rem; margin-top: 1.4rem; }
.service-domain-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1rem;
    border: 1px solid rgba(15,127,170,.10);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #f8fdff 100%);
    color: var(--wp-text);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-domain-item:hover {
    color: var(--wp-text);
    transform: translateY(-2px);
    border-color: rgba(15,127,170,.22);
    box-shadow: 0 14px 30px rgba(7,95,134,.09);
}
.service-domain-arrow {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    background: var(--wp-light);
    color: var(--wp-blue);
    font-size: 1.1rem;
}
.service-domain-item strong { display: block; font-size: 1.02rem; line-height: 1.3; margin-bottom: .25rem; }
.service-domain-item small { display: block; color: var(--wp-muted); line-height: 1.45; }
.service-domain-visual {
    min-height: 100%;
    height: 100%;
    position: relative;
    background: radial-gradient(circle at 80% 15%, rgba(255,255,255,.45), transparent 22%), linear-gradient(135deg, var(--wp-blue-dark), var(--wp-blue));
}
.service-domain-visual.has-image img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}
.service-domain-visual.has-image:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,58,83,.02), rgba(6,58,83,.16));
    pointer-events: none;
}
.service-domain-visual-fallback {
    min-height: 420px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
}
.service-domain-visual-fallback i { font-size: clamp(4.8rem, 9vw, 7rem); opacity: .92; }
.service-domain-visual-fallback span { display: block; font-weight: 900; font-size: 1.1rem; max-width: 320px; }
.member-hero p:empty { display: none; }
.reference-card .reference-topline:has(.ref-structure:only-child) { justify-content: flex-start; }

@media (max-width: 991.98px) {
    .service-domain-visual.has-image img,
    .service-domain-visual-fallback { min-height: 260px; }
}

/* --- Validated domains/services update, 2026.v2 --- */
.section-title-accent {
    font-size: clamp(1.05rem, 1.7vw, 1.42rem) !important;
    line-height: 1.25;
    letter-spacing: .08em;
    color: var(--wp-blue) !important;
    font-weight: 900;
    text-transform: uppercase;
}
.section-heading .section-title-accent { margin-bottom: 0; }
.domain-description,
.domain-description-large {
    color: var(--wp-muted);
    line-height: 1.72;
}
.domain-description-large { font-size: clamp(1rem, 1.4vw, 1.14rem); }
.domain-title-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 22px;
    margin-top: 1.25rem;
    box-shadow: 0 14px 34px rgba(7,95,134,.12);
}
.service-domain-item.service-accordion-item {
    display: block;
    padding: 0;
    overflow: hidden;
}
.service-domain-toggle {
    appearance: none;
    border: 0;
    width: 100%;
    background: transparent;
    display: flex;
    gap: 1rem;
    align-items: center;
    text-align: left;
    color: var(--wp-text);
    padding: 1rem;
    font-weight: 850;
}
.service-domain-toggle:hover,
.service-domain-toggle:focus {
    color: var(--wp-blue-dark);
    outline: none;
}
.service-title-text {
    flex: 1 1 auto;
    font-size: 1.02rem;
    line-height: 1.35;
}
.service-domain-toggle .service-domain-arrow {
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
.service-domain-toggle[aria-expanded="true"] .service-domain-arrow {
    transform: rotate(180deg);
    background: var(--wp-blue);
    color: #fff;
}
.service-description-body {
    border-top: 1px solid rgba(15,127,170,.10);
    margin: 0 1rem 1rem 4.4rem;
    padding-top: .85rem;
    color: var(--wp-muted);
    line-height: 1.7;
    font-size: .98rem;
}
.service-description-body p:last-child { margin-bottom: 0; }
.member-logo-only-card {
    min-height: 132px;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}
.member-logo-only-card .member-logo-wrap {
    min-height: 100px;
    width: 100%;
}
.member-logo-only-card img.member-logo {
    max-width: 210px;
    height: 94px;
    object-fit: contain;
}
.member-about-logo-card {
    gap: .85rem;
}
.member-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
}
.member-profile-logo-only img {
    max-width: 340px !important;
    max-height: 210px !important;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 0;
}
.member-profile-logo-only {
    min-height: 260px;
    display: grid;
    place-items: center;
}
.members-logo-grid .member-card:hover,
.member-about-logo-card:hover {
    transform: translateY(-4px);
}
@media (max-width: 575.98px) {
    .service-description-body { margin-left: 1rem; }
    .service-domain-toggle { align-items: flex-start; }
    .member-profile-logo-only img { max-width: 260px !important; }
}


/* --- WaterPro Africa 2026.v2.1 SEO/content refinement --- */
.about-core-text {
    font-size: clamp(1.05rem, 1.35vw, 1.18rem);
    line-height: 1.78;
    color: #294654;
}
.service-domain-toggle {
    cursor: pointer;
}
.service-domain-toggle .service-domain-arrow {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--wp-light);
    color: var(--wp-blue);
}
.member-profile-logo-only img {
    max-width: 420px !important;
    max-height: 260px !important;
}
.member-profile-logo-only {
    min-height: 310px;
}
.map-action {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .7rem;
}
.news-card img,
.project-card img {
    object-position: center;
}
@media (max-width: 575.98px) {
    .member-profile-logo-only img {
        max-width: 300px !important;
        max-height: 210px !important;
    }
}


/* --- WaterPro Africa 2026.v2.1.1 visual polish --- */
/* Member logos: larger and cleaner on all public placements */
.members-logo-grid {
    gap: 1.35rem;
}
.member-logo-only-card {
    min-height: 178px;
    padding: 1.55rem;
    border-radius: 28px;
}
.member-logo-only-card .member-logo-wrap {
    min-height: 138px;
}
.member-logo-only-card img.member-logo {
    max-width: 285px;
    height: 128px;
    max-height: 128px;
    object-fit: contain;
}
.member-about-logo-card {
    min-height: 205px;
    padding: 1.65rem 1.4rem;
}
.member-about-logo-card .member-logo-wrap {
    min-height: 150px;
}
.member-about-logo-card img.member-logo {
    max-width: 305px;
    height: 142px;
    max-height: 142px;
}
.member-more-link {
    font-size: .96rem;
}
.member-hero-logo-zone {
    background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.08)) !important;
    border: 1px solid rgba(255,255,255,.38);
    box-shadow: 0 28px 80px rgba(0,0,0,.18);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    color: #fff;
    min-height: 390px;
    padding: 2.4rem;
}
.member-hero-logo-zone img,
.member-profile-logo-only img {
    max-width: min(560px, 100%) !important;
    width: 100%;
    max-height: 330px !important;
    object-fit: contain;
    filter: drop-shadow(0 18px 35px rgba(0,0,0,.18));
}
.member-hero-logo-zone .btn {
    background: rgba(255,255,255,.95);
    border-color: rgba(255,255,255,.95);
    color: var(--wp-blue-dark);
    font-weight: 800;
}

/* News detail: avoid raw-looking text under large flyers */
.news-detail-section {
    background: linear-gradient(180deg, #fff 0%, var(--wp-soft) 100%);
}
.news-detail-shell {
    position: relative;
}
.news-cover-frame {
    background: #fff;
    border: 1px solid rgba(15,127,170,.10);
    border-radius: 30px;
    padding: .75rem;
    box-shadow: 0 22px 65px rgba(7,95,134,.12);
    margin-bottom: 1.4rem;
}
.news-cover-frame img {
    width: 100%;
    border-radius: 22px;
    display: block;
}
.news-content-card {
    background: #fff;
    border: 1px solid rgba(15,127,170,.10);
    border-radius: 30px;
    box-shadow: 0 18px 50px rgba(7,95,134,.09);
    padding: clamp(1.4rem, 3vw, 2.4rem);
}
.news-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--wp-light);
    color: var(--wp-blue-dark);
    border-radius: 999px;
    padding: .48rem .85rem;
    font-weight: 800;
    font-size: .9rem;
    margin-bottom: 1.1rem;
}
.news-lead {
    font-size: clamp(1.08rem, 1.6vw, 1.28rem);
    line-height: 1.75;
    color: #294654;
    font-weight: 550;
    border-left: 4px solid var(--wp-sky);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}
.news-article-body {
    font-size: 1.05rem;
    line-height: 1.9;
}
.news-article-body p {
    margin-bottom: 1rem;
}

/* Footer map: compact embedded location preview */
.footer-map-card {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    box-shadow: 0 14px 34px rgba(0,0,0,.18);
}
.footer-map-card iframe,
.footer-location-map {
    display: block;
    width: 100% !important;
    height: 140px !important;
    min-height: 140px !important;
    border: 0 !important;
    border-radius: 18px;
}
.contact-location-map,
.map-box iframe {
    width: 100% !important;
    min-height: 320px !important;
    border: 0 !important;
    border-radius: 18px;
}

@media (max-width: 991.98px) {
    .member-logo-only-card img.member-logo { max-width: 240px; height: 112px; }
    .member-about-logo-card img.member-logo { max-width: 260px; height: 122px; }
    .member-hero-logo-zone { min-height: 300px; }
    .member-hero-logo-zone img, .member-profile-logo-only img { max-height: 250px !important; }
}
@media (max-width: 575.98px) {
    .member-logo-only-card { min-height: 150px; }
    .member-logo-only-card img.member-logo { max-width: 220px; height: 100px; }
    .member-about-logo-card img.member-logo { max-width: 230px; height: 108px; }
    .member-hero-logo-zone { padding: 1.35rem; min-height: 240px; }
}

/* --- WaterPro Africa 2026.v2.1.2: member hero logo without visible card --- */
.member-hero .member-hero-logo-zone,
.member-hero .member-profile-card.member-hero-logo-zone,
.member-hero-logo-zone.member-profile-card {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 430px;
    padding: 2.25rem 1.8rem;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible;
    isolation: isolate;
}

.member-hero .member-hero-logo-zone::before {
    content: "";
    position: absolute;
    inset: 8% 3% 10% 1%;
    z-index: -2;
    pointer-events: none;
    border-radius: 999px;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.46) 0%, rgba(255,255,255,.26) 34%, rgba(255,255,255,.10) 58%, rgba(255,255,255,0) 76%),
        radial-gradient(ellipse at 60% 44%, rgba(216,243,251,.35) 0%, rgba(216,243,251,.14) 50%, rgba(216,243,251,0) 78%);
    filter: blur(26px);
    transform: scale(1.04);
}

.member-hero .member-hero-logo-zone::after {
    content: "";
    position: absolute;
    inset: 18% 12% 20% 10%;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.22), rgba(255,255,255,0) 68%);
    filter: blur(16px);
}

.member-hero .member-hero-logo-zone img,
.member-hero .member-profile-logo-only img {
    width: auto !important;
    max-width: min(680px, 100%) !important;
    max-height: 385px !important;
    object-fit: contain;
    margin: 0 !important;
    filter:
        drop-shadow(0 24px 34px rgba(0,0,0,.20))
        drop-shadow(0 0 22px rgba(255,255,255,.30));
}

.member-hero .member-hero-logo-zone .member-initial.large {
    width: 170px;
    height: 170px;
    border-radius: 42px;
    font-size: 3.2rem;
    background: rgba(255,255,255,.22);
    color: #fff;
    box-shadow: 0 24px 45px rgba(0,0,0,.16);
}

.member-hero .member-hero-logo-zone .btn {
    position: relative;
    z-index: 2;
    margin-top: 1.2rem !important;
    background: rgba(255,255,255,.92) !important;
    border-color: rgba(255,255,255,.92) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
}

@media (max-width: 991.98px) {
    .member-hero .member-hero-logo-zone,
    .member-hero .member-profile-card.member-hero-logo-zone,
    .member-hero-logo-zone.member-profile-card {
        min-height: 330px;
        padding: 1.6rem .8rem;
    }
    .member-hero .member-hero-logo-zone img,
    .member-hero .member-profile-logo-only img {
        max-width: min(520px, 100%) !important;
        max-height: 285px !important;
    }
}

@media (max-width: 575.98px) {
    .member-hero .member-hero-logo-zone,
    .member-hero .member-profile-card.member-hero-logo-zone,
    .member-hero-logo-zone.member-profile-card {
        min-height: 250px;
        padding: 1.2rem .35rem;
    }
    .member-hero .member-hero-logo-zone::before {
        inset: 4% -8% 6% -8%;
        filter: blur(22px);
    }
    .member-hero .member-hero-logo-zone img,
    .member-hero .member-profile-logo-only img {
        max-width: min(360px, 100%) !important;
        max-height: 215px !important;
    }
}

/* --- WaterPro Africa 2026.v2.1.3: compact member company hero height --- */
.member-hero.py-5,
.member-hero {
    padding-top: 3.1rem !important;
    padding-bottom: 3.1rem !important;
}

.member-hero .member-hero-logo-zone,
.member-hero .member-profile-card.member-hero-logo-zone,
.member-hero-logo-zone.member-profile-card {
    min-height: 310px !important;
    padding-top: 1.15rem !important;
    padding-bottom: 1.15rem !important;
}

.member-hero .member-hero-logo-zone::before {
    inset: 4% 0% 7% 0% !important;
    filter: blur(24px) !important;
}

.member-hero .member-hero-logo-zone::after {
    inset: 14% 10% 17% 10% !important;
    filter: blur(14px) !important;
}

.member-hero .member-hero-logo-zone img,
.member-hero .member-profile-logo-only img {
    max-width: min(560px, 100%) !important;
    max-height: 285px !important;
}

.member-hero h1 {
    font-size: clamp(2.15rem, 3.45vw, 3.15rem) !important;
    line-height: 1.08 !important;
}

.member-hero .eyebrow {
    margin-bottom: .9rem !important;
}

@media (max-width: 991.98px) {
    .member-hero.py-5,
    .member-hero {
        padding-top: 2.45rem !important;
        padding-bottom: 2.45rem !important;
    }
    .member-hero .member-hero-logo-zone,
    .member-hero .member-profile-card.member-hero-logo-zone,
    .member-hero-logo-zone.member-profile-card {
        min-height: 245px !important;
        padding-top: .9rem !important;
        padding-bottom: .9rem !important;
    }
    .member-hero .member-hero-logo-zone img,
    .member-hero .member-profile-logo-only img {
        max-width: min(420px, 100%) !important;
        max-height: 225px !important;
    }
    .member-hero h1 {
        font-size: clamp(1.95rem, 6vw, 2.55rem) !important;
    }
}

@media (max-width: 575.98px) {
    .member-hero.py-5,
    .member-hero {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .member-hero .member-hero-logo-zone,
    .member-hero .member-profile-card.member-hero-logo-zone,
    .member-hero-logo-zone.member-profile-card {
        min-height: 190px !important;
        padding-top: .7rem !important;
        padding-bottom: .7rem !important;
    }
    .member-hero .member-hero-logo-zone img,
    .member-hero .member-profile-logo-only img {
        max-width: min(300px, 100%) !important;
        max-height: 165px !important;
    }
}

/* --- WaterPro Africa 2026.v2.2: Team page + navigation refinement --- */
.team-hero {
    background:
        radial-gradient(circle at 82% 18%, rgba(255,255,255,.26), transparent 26%),
        radial-gradient(circle at 12% 82%, rgba(101,192,223,.35), transparent 30%),
        linear-gradient(135deg, var(--wp-blue-dark), var(--wp-blue));
    color: #fff;
    position: relative;
    overflow: hidden;
}
.team-hero:after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -190px;
    bottom: -260px;
    border-radius: 50%;
    background: rgba(255,255,255,.13);
}
.team-hero .container { position: relative; z-index: 2; }
.team-hero h1 { letter-spacing: -.045em; line-height: 1.04; }
.team-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
    max-width: 520px;
}
.team-hero-stats div {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 22px;
    padding: 1rem 1.1rem;
    backdrop-filter: blur(14px);
}
.team-hero-stats span {
    display: block;
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
}
.team-hero-stats small {
    display: block;
    margin-top: .35rem;
    color: rgba(255,255,255,.86);
    font-weight: 750;
}
.team-hero-card {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 28px 80px rgba(0,0,0,.16);
    backdrop-filter: blur(18px) saturate(125%);
}
.team-hero-card i {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: rgba(255,255,255,.18);
    font-size: 2.15rem;
    margin-bottom: 1.3rem;
}
.team-hero-card h2 { font-weight: 900; font-size: 1.45rem; }
.team-hero-card p { color: rgba(255,255,255,.84); margin-bottom: 0; line-height: 1.7; }
.team-page-section { background: linear-gradient(180deg, #fff 0%, var(--wp-soft) 100%); }
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}
.scientific-section {
    background:
        radial-gradient(circle at 10% 10%, rgba(101,192,223,.20), transparent 28%),
        linear-gradient(180deg, #f8fdff 0%, #fff 100%);
}
.scientific-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}
.team-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(15,127,170,.11);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(7,95,134,.08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%;
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 62px rgba(7,95,134,.13);
    border-color: rgba(15,127,170,.22);
}
.team-card-scientific {
    border-color: rgba(49,179,143,.24);
}
.team-photo-wrap {
    position: relative;
    height: 245px;
    background:
        radial-gradient(circle at 50% 40%, rgba(255,255,255,.85), rgba(216,243,251,.42) 45%, rgba(15,127,170,.14) 100%),
        linear-gradient(135deg, #effbff, #fff);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.team-photo-placeholder {
    width: 132px;
    height: 132px;
    border-radius: 38px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--wp-light), #fff);
    color: var(--wp-blue);
    font-size: 4rem;
    box-shadow: 0 18px 45px rgba(7,95,134,.10);
}
.team-linkedin {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0a66c2;
    color: #fff;
    box-shadow: 0 14px 30px rgba(10,102,194,.32);
    font-size: 1.2rem;
}
.team-linkedin:hover { color: #fff; transform: translateY(-2px); }
.team-card-body { padding: 1.35rem; }
.team-group-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--wp-light);
    color: var(--wp-blue-dark);
    padding: .35rem .75rem;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .03em;
    margin-bottom: .85rem;
}
.team-card-scientific .team-group-badge {
    background: rgba(49,179,143,.13);
    color: #168166;
}
.team-card h3 {
    font-size: 1.2rem;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -.02em;
    margin-bottom: .45rem;
}
.team-position {
    color: var(--wp-blue);
    font-weight: 850;
    margin-bottom: .9rem;
}
.team-expertise-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.team-expertise-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f4fbfd;
    border: 1px solid rgba(15,127,170,.10);
    color: #365565;
    padding: .32rem .62rem;
    font-size: .78rem;
    font-weight: 700;
}
.team-bio {
    color: var(--wp-muted);
    line-height: 1.65;
    margin-top: 1rem;
    margin-bottom: 0;
}
.team-collab-card {
    background:
        radial-gradient(circle at 85% 16%, rgba(101,192,223,.22), transparent 28%),
        linear-gradient(135deg, #fff 0%, #f1fbfe 100%);
    border: 1px solid rgba(15,127,170,.10);
    border-radius: 34px;
    padding: clamp(2rem, 5vw, 3.4rem);
    box-shadow: 0 18px 48px rgba(7,95,134,.08);
}
@media (max-width: 1199.98px) and (min-width: 992px) {
    .navbar .nav-link { font-size: .82rem; padding-left: .32rem !important; padding-right: .32rem !important; }
    .nav-quote-btn { display: none; }
}
@media (max-width: 991.98px) {
    .team-grid,
    .scientific-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-photo-wrap { height: 220px; }
}
@media (max-width: 575.98px) {
    .team-grid,
    .scientific-grid { grid-template-columns: 1fr; }
    .team-hero-stats { grid-template-columns: 1fr; }
    .team-photo-wrap { height: 210px; }
}

/* Page Partenaires : afficher uniquement les logos */
.partners-grid .partner-card h3,
.partners-grid .partner-card p {
    display: none !important;
}
.partners-grid .partner-card {
    min-height: 210px !important;
    justify-content: center !important;
    padding: 1.5rem !important;
}
.partners-grid .partner-logo-box {
    margin-bottom: 0 !important;
    width: 100% !important;
    height: 150px !important;
    background: transparent !important;
    border: 0 !important;
}
.partners-grid .partner-logo-box img {
    max-width: 92% !important;
    max-height: 135px !important;
    object-fit: contain !important;
}


/* --- WaterPro Africa 2026.v2.2.1: correctif visuel page Équipe --- */
.team-section-title {
    display: inline-block;
    font-size: clamp(1.45rem, 2.15vw, 2rem) !important;
    line-height: 1.18;
    margin-bottom: .65rem;
}
.team-section-lead {
    max-width: 760px;
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.65;
}
.team-card {
    border-width: 2px !important;
    border-color: rgba(15,127,170,.18) !important;
}
.team-card-technical {
    border-top: 5px solid var(--wp-blue) !important;
}
.team-card-scientific {
    border-color: rgba(49,179,143,.34) !important;
    border-top: 5px solid var(--wp-green) !important;
}
.team-card:hover {
    border-color: rgba(15,127,170,.32) !important;
}
.team-card-scientific:hover {
    border-color: rgba(49,179,143,.46) !important;
}
.team-photo-wrap {
    height: 190px !important;
    padding-top: 1.35rem !important;
    padding-bottom: 1.1rem !important;
    background:
        radial-gradient(circle at 50% 35%, rgba(255,255,255,.95), rgba(216,243,251,.55) 56%, rgba(15,127,170,.10) 100%),
        linear-gradient(135deg, #f3fcff, #ffffff) !important;
}
.team-photo {
    width: 146px !important;
    height: 146px !important;
    max-width: 146px !important;
    max-height: 146px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center top !important;
    box-shadow: 0 18px 44px rgba(7,95,134,.16) !important;
    border: 5px solid rgba(255,255,255,.94) !important;
}
.team-card-scientific .team-photo {
    box-shadow: 0 18px 44px rgba(49,179,143,.17) !important;
}
.team-photo-placeholder {
    width: 126px !important;
    height: 126px !important;
    border-radius: 50% !important;
    font-size: 3.4rem !important;
    border: 5px solid rgba(255,255,255,.9) !important;
}
.team-linkedin {
    right: calc(50% - 84px) !important;
    bottom: 22px !important;
    width: 40px !important;
    height: 40px !important;
    border: 3px solid #fff !important;
}
.team-group-badge {
    display: none !important;
}
.team-card-body {
    padding-top: 1.15rem !important;
}
@media (max-width: 991.98px) {
    .team-photo-wrap { height: 180px !important; }
    .team-photo { width: 132px !important; height: 132px !important; max-width: 132px !important; max-height: 132px !important; }
    .team-linkedin { right: calc(50% - 78px) !important; }
}
