/*
 * Vigilus Groupe — sectors editorial system.
 * Aligns the industry-sector index and detail pages on the services catalogue
 * design (detail-editorial-2026 / ui-polish-2026) while reusing the shared
 * .vg-* building blocks from clear.css and editorial.css.
 * Opt-in only: core/sectors.html and core/sector_detail.html.
 */
.vg-sectors-page,
.vg-sector-detail-page {
    --s-red: #b81d38;
    --s-navy: #0b1826;
    --s-line: #dce5eb;
    --s-soft: #f5f7f9;
    --s-muted: #465f70;
    color: var(--vg-ink);
}

/* Feature hero — full-bleed photographic introduction (same rhythm as services). */
.vg-sectors-page .vg-feature-hero,
.vg-sector-detail-page .vg-feature-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--s-navy);
    color: #fff;
    padding: 0;
}
.vg-sectors-page .vg-feature-hero::after,
.vg-sector-detail-page .vg-feature-hero::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(8, 22, 35, .97) 0%, rgba(8, 22, 35, .91) 42%, rgba(8, 22, 35, .42) 100%);
}
.vg-sectors-page .vg-feature-grid,
.vg-sector-detail-page .vg-feature-grid {
    position: static;
    display: block;
    min-height: 500px;
    padding-block: 70px 82px;
}
.vg-sectors-page .vg-feature-photo,
.vg-sector-detail-page .vg-feature-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center 45%;
    opacity: 1;
    filter: none;
}
.vg-sectors-page .vg-feature-content,
.vg-sector-detail-page .vg-feature-content {
    width: min(780px, 82%);
    max-width: 780px;
}
.vg-sectors-page .vg-feature-hero h1,
.vg-sector-detail-page .vg-feature-hero h1 {
    color: #fff;
    font-size: clamp(38px, 4.6vw, 64px);
    line-height: 1.07;
    max-width: 780px;
    letter-spacing: -.045em;
    margin: 0;
}
.vg-sectors-page .vg-feature-hero .vg-hero-accent,
.vg-sector-detail-page .vg-feature-hero .vg-hero-accent {
    display: block;
    color: #9bd4ef;
}
.vg-sectors-page .vg-feature-hero .vg-kicker,
.vg-sector-detail-page .vg-feature-hero .vg-kicker {
    color: #ffabbc;
    font-size: 11px;
    letter-spacing: .17em;
    margin-bottom: 20px;
}
.vg-sectors-page .vg-feature-hero .vg-lead,
.vg-sector-detail-page .vg-feature-hero .vg-lead {
    max-width: 660px;
    font-size: 17px;
    line-height: 1.75;
    color: #dce6ec;
    margin-top: 24px;
}
.vg-sectors-page .vg-feature-hero .vg-breadcrumb,
.vg-sector-detail-page .vg-feature-hero .vg-breadcrumb {
    color: #cdd8df;
    margin-bottom: 30px;
    font-size: 12px;
    line-height: 1.7;
}
.vg-sectors-page .vg-feature-hero .vg-breadcrumb a,
.vg-sector-detail-page .vg-feature-hero .vg-breadcrumb a {
    color: #eef3f6;
    text-decoration: none;
}
.vg-sectors-page .vg-feature-hero .vg-breadcrumb a:hover,
.vg-sector-detail-page .vg-feature-hero .vg-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.vg-sectors-page .vg-feature-hero .vg-actions,
.vg-sector-detail-page .vg-feature-hero .vg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}
.vg-sectors-page .vg-feature-hero .vg-btn,
.vg-sector-detail-page .vg-feature-hero .vg-btn {
    background: var(--s-red);
    border-color: var(--s-red);
    color: #fff;
    border-radius: 7px;
}
.vg-sectors-page .vg-feature-hero .vg-btn-outline,
.vg-sector-detail-page .vg-feature-hero .vg-btn-outline {
    background: transparent;
    border-color: #ffffff99;
    color: #fff;
}
.vg-sectors-page .vg-feature-hero .vg-btn-outline:hover,
.vg-sector-detail-page .vg-feature-hero .vg-btn-outline:hover {
    background: #fff;
    color: #0b2639;
    border-color: #fff;
}

/* Sector proof point shown inside the hero (kept from the previous design). */
.vg-sectors-page .vg-hero-stat,
.vg-sector-detail-page .vg-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding: 10px 16px;
    border: 1px solid #ffffff45;
    border-radius: 999px;
    background: #ffffff14;
    font-size: 12px;
    line-height: 1.5;
    color: #dce6ec;
}
.vg-hero-stat strong {
    color: #ffc3cf;
    font: 800 16px/1 "Bricolage Grotesque", sans-serif;
    letter-spacing: .01em;
}

/* Explorer switcher (Expertises / Secteurs / Pays). */
.vg-explorer-switcher {
    background: #fff;
    border-bottom: 1px solid var(--s-line);
}
.vg-explorer-switcher .vg-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-block: 12px;
}
.vg-explorer-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 800;
    color: #345369;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.vg-explorer-switcher a:hover {
    background: #f1f6f8;
    color: var(--s-red);
}
.vg-explorer-switcher a[aria-current="page"] {
    background: #102f42;
    color: #fff;
}

/* Section rhythm matches the services catalogue. */
.vg-sectors-page .vg-section,
.vg-sector-detail-page .vg-section {
    padding-block: clamp(56px, 6vw, 88px);
}
.vg-sectors-page #liste-secteurs,
.vg-sector-detail-page #solutions-sectorielles,
.vg-sector-detail-page #services-recommandes {
    background: var(--s-soft);
}

/* Offer cards — reuse .vg-offer-card, add sector-specific proof content. */
.vg-sectors-page .vg-offer-card,
.vg-sector-detail-page .vg-offer-card {
    border-radius: 14px;
}
.vg-offer-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(9, 26, 39, .84);
    color: #fff;
    font-size: 11px;
    line-height: 1.45;
}
.vg-offer-badge strong {
    font: 800 18px/1.15 "Bricolage Grotesque", sans-serif;
    color: #ffc3cf;
}
.vg-offer-kicker {
    margin: 0 0 6px;
    color: var(--s-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.vg-offer-points-label {
    margin: 0 0 8px;
    color: #647989;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.vg-offer-points {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}
.vg-offer-points li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--s-muted);
}
.vg-offer-points li::before {
    content: "•";
    color: var(--s-red);
    font-weight: 800;
}
.vg-offer-countries {
    margin: 0 0 18px;
    padding-top: 14px;
    border-top: 1px solid var(--s-line);
}
.vg-offer-countries > span {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #647989;
}
.vg-offer-countries ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.vg-offer-countries a {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--s-line);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 750;
    color: #254354;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}
.vg-offer-countries a img {
    width: 22px;
    height: 15px;
    flex: 0 0 22px;
    margin-inline-end: .4rem;
    border-radius: 2px;
    object-fit: cover;
}

.vg-offer-countries a:hover {
    border-color: var(--s-red);
    color: var(--s-red);
}

/* Solutions group headings inside the sector detail. */
.vg-sector-group {
    margin-top: 44px;
}
.vg-sector-group:first-child {
    margin-top: 0;
}
.vg-sector-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--s-line);
}
.vg-sector-group-head h3 {
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.25;
    margin: 0;
}
.vg-sector-group-head span {
    font-size: 12px;
    font-weight: 750;
    color: #647989;
}

/* Challenges and solutions: a calm two-column editorial band. */
.vg-sector-facts {
    background: #fff;
}
.vg-sector-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.vg-sector-fact h2 {
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.18;
    margin: 0 0 14px;
}
.vg-sector-fact .vg-lead {
    margin: 0 0 24px;
    font-size: 15px;
}
.vg-fact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}
.vg-fact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--s-line);
}
.vg-fact-list li > span {
    flex: 0 0 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #fbe8ec;
    color: var(--s-red);
    font: 800 13px/1 "Bricolage Grotesque", sans-serif;
}
.vg-fact-list li > p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--vg-muted);
}
.vg-fact-list-check li > span {
    background: #e7f2f6;
    color: #0d6c8f;
}

/* Featured / recommended services keep an icon when no photo is supplied. */
.vg-sector-detail-page #services-recommandes .vg-offer-card-media {
    height: 150px;
    flex-basis: 150px;
}

/* "Other sectors" navigation reuses the shared domain-card component. */
.vg-sector-detail-page #autres-secteurs {
    background: #fff;
}

@media (max-width: 1000px) {
    .vg-sector-facts-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .vg-sectors-page .vg-feature-content,
    .vg-sector-detail-page .vg-feature-content {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .vg-sectors-page .vg-feature-grid,
    .vg-sector-detail-page .vg-feature-grid {
        min-height: 0;
        padding-block: 38px 46px;
    }
    .vg-sectors-page .vg-feature-hero h1,
    .vg-sector-detail-page .vg-feature-hero h1 {
        font-size: clamp(34px, 8.6vw, 43px);
    }
    .vg-sectors-page .vg-feature-hero .vg-lead,
    .vg-sector-detail-page .vg-feature-hero .vg-lead {
        font-size: 15px;
    }
    .vg-sectors-page .vg-feature-hero .vg-actions,
    .vg-sector-detail-page .vg-feature-hero .vg-actions {
        display: grid;
    }
    .vg-sectors-page .vg-feature-hero .vg-actions .vg-btn,
    .vg-sector-detail-page .vg-feature-hero .vg-actions .vg-btn {
        width: 100%;
    }
    .vg-explorer-switcher .vg-wrap {
        grid-template-columns: 1fr;
    }
    .vg-offer-points {
        grid-template-columns: 1fr;
    }
    .vg-sector-group-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vg-sectors-page .vg-offer-card,
    .vg-sector-detail-page .vg-offer-card,
    .vg-explorer-switcher a {
        transition: none !important;
    }
}
