/* Scoped Title Banner Overrides */
.page-header-section {
    padding: clamp(1.2rem, 3vw, 2rem) 0 !important;
}
.page-header-section h1 {
    margin-bottom: 16px !important;
}

.sectors-selection-section {
    padding: 32px 0 80px 0;
    background-color: var(--white);
}

.sectors-v2-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}

/* Interactive Sectors Pill Navigation Bar */
.sectors-pills-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
    padding: 0;
    background: transparent;
    border: none;
}

@media (max-width: 768px) {
    .sectors-pills-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 4px 0 12px 0;
        gap: 8px;
        margin-top: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .sectors-pills-nav::-webkit-scrollbar {
        display: none;
    }
}



.sector-pill-icon-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: rgba(116, 167, 201, 0.15);
    color: var(--primary-color);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.sector-pill-icon-v2 svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    transition: all 0.25s ease;
}

.sector-pill-v2:hover .sector-pill-icon-v2 {
    background-color: rgba(116, 167, 201, 0.25);
    color: var(--primary-color);
}

.sector-pill-v2.active .sector-pill-icon-v2 {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.sector-pill-v2.active .sector-pill-icon-v2 svg {
    stroke: var(--white);
}

@media (max-width: 1100px) {
    .sectors-v2-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sectors-v2-grid {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 270px; /* clean cards width on mobile */
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 8px 4px 20px 4px;
        margin-top: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;  /* Firefox */
        -ms-overflow-style: none;  /* IE/Edge */
    }

    .sectors-v2-grid::-webkit-scrollbar {
        display: none; /* Safari/Chrome */
    }

    .sector-card-v2 {
        width: 100%;
        min-height: 140px;
        scroll-snap-align: center;
        padding: 20px 16px;
    }
}

/* Card Styling */
.sector-card-v2 {
    background-color: var(--white);
    border: 1px solid rgba(19, 52, 84, 0.08);
    border-radius: var(--radius-md); /* 8px according to AGENTS.md */
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 160px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    outline: none;
}

.sector-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(116, 167, 201, 0.4);
}

/* Active State matching user mock-up */
.sector-card-v2.active {
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(19, 52, 84, 0.1);
}

/* Individual Pill Button Overrides */
.sector-pill-v2 {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 10px 18px !important;
    min-height: unset !important;
    height: auto !important;
    width: auto !important;
    background-color: var(--white) !important;
    border: 1px solid rgba(19, 52, 84, 0.1) !important;
    border-radius: 50px !important;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap;
    user-select: none;
    outline: none;
    box-shadow: 0 2px 8px rgba(19, 52, 84, 0.04) !important;
}

.sector-pill-v2:hover {
    background-color: var(--white) !important;
    border-color: var(--primary-light) !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(19, 52, 84, 0.1) !important;
}

.sector-pill-v2:focus-visible {
    box-shadow: 0 0 0 3px rgba(116, 167, 201, 0.4) !important;
}

/* Active Pill State */
.sector-pill-v2.active {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 6px 20px rgba(19, 52, 84, 0.25) !important;
    transform: scale(1.03) !important;
}

/* Card Elements */
.sector-card-top-v2 {
    width: 100%;
}

.sector-card-icon-v2 {
    width: 40px;
    height: 40px;
    background-color: rgba(116, 167, 201, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-md); /* 8px */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    margin-bottom: 12px;
}

.sector-card-icon-v2 svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: var(--transition-smooth);
}

/* Icon changes when card is hovered */
.sector-card-v2:hover .sector-card-icon-v2 {
    background-color: rgba(116, 167, 201, 0.2);
    color: var(--primary-color);
}

/* Active Icon background: Solid dark-blue, white icon as shown in mock-up */
.sector-card-v2.active .sector-card-icon-v2 {
    background-color: var(--primary-color);
    color: var(--white);
}

.sector-card-title-v2 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 4px;
    line-height: 1.3;
}

.sector-card-subtitle-v2 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 8px;
}

/* Card Link */
.sector-card-link-v2 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: var(--transition-fast);
    margin-top: auto;
}

.sector-card-link-v2 svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    transition: var(--transition-smooth);
}

.sector-card-v2:hover .sector-card-link-v2 {
    color: var(--primary-color);
}

.sector-card-v2:hover .sector-card-link-v2 svg {
    transform: translateX(4px);
}

.sector-card-v2.active .sector-card-link-v2 {
    color: var(--primary-color);
}

/* ==========================================================================
   Detail Panel Layout
   ========================================================================== */

.sectors-detail-wrapper-v2 {
    max-width: 100%;
    margin: 56px auto 0 auto;
    padding: 0;
}

@media (max-width: 768px) {
    .sectors-detail-wrapper-v2 {
        margin-top: 24px;
    }
}

.sector-detail-panel-v2 {
    display: none;
}

.sector-detail-panel-v2.active {
    display: block;
    animation: fadeInSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-content-card-v2 {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); /* 16px */
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .detail-content-card-v2 {
        padding: 32px 20px;
    }

    .detail-sector-title-v2 {
        font-size: 1.5rem;
    }

    .detail-sector-catchphrase-v2 {
        font-size: 1.15rem;
    }
}

/* Detail Elements */
.detail-sector-header-v2 {
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.detail-sector-title-v2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 12px;
}

.detail-sector-catchphrase-v2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 16px;
}

.detail-sector-desc-v2 {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    max-width: 1000px;
}

/* Two Columns */
.detail-sector-columns-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

@media (max-width: 820px) {
    .detail-sector-columns-v2 {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.detail-column-v2 {
    display: flex;
    flex-direction: column;
}

.detail-column-title-v2 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0;
    margin-bottom: 24px;
    padding-left: 14px;
    position: relative;
    line-height: 1.2;
}

.detail-column-title-v2.enjeux-title {
    color: var(--primary-color);
    border-left: 3px solid var(--secondary-color); /* Crimson Red for pain points */
}

.detail-column-title-v2.reponse-title {
    color: var(--primary-color);
    border-left: 3px solid var(--primary-light); /* Accent Medium Blue for solutions */
}

/* Lists styling */
.detail-list-v2 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item-v2 {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.detail-item-icon-v2 {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-item-icon-v2.enjeux-bullet {
    color: var(--secondary-color); /* Crimson Red */
}

.detail-item-icon-v2.reponse-bullet {
    color: var(--primary-light); /* Medium blue */
}

.detail-item-icon-v2 svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

/* Detail Footer Action */
.detail-sector-footer-v2 {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.detail-footer-text-v2 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.detail-footer-text-v2 strong {
    color: var(--primary-color);
}

.detail-sector-footer-v2 .btn {
    align-self: flex-start;
}

@media (max-width: 768px) {
    .detail-sector-footer-v2 {
        align-items: center;
        text-align: center;
    }

    .detail-footer-text-v2 {
        text-align: center;
        width: 100%;
    }

    .detail-sector-footer-v2 .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   Notre Méthode Section (Reused from secteurs.css)
   ========================================================================== */
.method-section {
    padding: 80px 0;
    background-color: var(--bg-beige);
}

.method-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.method-header {
    text-align: center;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .method-header {
        text-align: left;
    }
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .method-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .method-grid {
        grid-template-columns: 1fr;
    }
}

.method-card {
    background-color: transparent;
    border: none;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: none;
    text-align: left;
}

.method-icon {
    width: 36px;
    height: 36px;
    color: var(--primary-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.method-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.method-card:hover .method-icon {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.method-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.3;
}

.method-desc {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.ux-safety-net {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
