/* COMPONENTS.CSS - Source: index.css.bak (Massive Restore) */
.hero-bible {
    padding: 6rem 5% 4rem;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(26, 86, 219, 0.05), transparent);
}

.hero-description {
    max-width: 850px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* --- PREMIUM CALCULATOR (IMAGE MATCH) --- */
.calc-hero {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 1.75rem;
    margin: 2rem auto;
    background: var(--white);
    border-radius: var(--radius-calc);
    box-shadow: var(--calc-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Country Selector (Flags) */
.country-selector {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 0.2rem;
}

.country-item {
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-bottom: 5px;
}

.country-item:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.country-item.active {
    opacity: 1;
}

.country-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 3px;
    background: var(--calc-accent);
    border-radius: 10px;
}

.flag-icon {
    width: 28px;
    height: 18px;
    border-radius: 3px;
}

/* Rate Selector (Tabs) */
.rate-tabs {
    display: flex;
    background: var(--calc-bg-subtle);
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}

.rate-tab {
    flex: 1;
    padding: 0.75rem 0.4rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.rate-tab:hover {
    color: var(--calc-accent);
}

.rate-tab.active {
    background: var(--white);
    color: var(--calc-accent);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}

/* Dual Input Group */
.calc-inputs-sync {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.1rem;
}

.input-block {
    flex: 1;
}

.input-block-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

.input-container {
    position: relative;
    background: var(--calc-bg-subtle);
    border-radius: 12px;
    padding: 0.3rem 0.8rem;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.input-container:focus-within {
    background: var(--white);
    border-color: var(--calc-accent);
    box-shadow: 0 0 0 4px var(--calc-accent-soft);
}

.sync-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.75rem 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    outline: none;
}

.currency-symbol {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-light-dim);
    margin-left: 0.5rem;
}

.swap-action {
    flex-shrink: 0;
    color: var(--text-light-dim);
    margin-top: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-light-dim);
    transition: all 0.3s;
}

.swap-btn:hover {
    color: var(--calc-accent);
    transform: rotate(180deg);
}

/* Result Section */
.new-calc-result {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
}

.res-label {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.res-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.res-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--calc-accent);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: var(--calc-accent-soft);
    color: var(--calc-accent);
    border: none;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: var(--calc-accent);
    color: var(--white);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .calc-hero {
        padding: 1.5rem;
    }
    .country-selector {
        gap: 1rem;
        flex-wrap: wrap;
    }
    .calc-inputs-sync {
        flex-direction: column;
        gap: 1rem;
    }
    .swap-action {
        margin: 0;
        transform: rotate(90deg);
    }
    .res-amount {
        font-size: 2.5rem;
    }
    .res-flex {
        flex-direction: column;
        gap: 1rem;
    }
}

.uncertainty-tag {
    background: var(--surface-2);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-left: 0.5rem;
    border: 1px solid var(--border);
}



.table-wrapper {
    overflow-x: auto;
    margin: 3rem 0;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

code {
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    background: var(--surface-2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    table-layout: fixed;
}

.comparison-table th:nth-child(1),
.comparison-table td:nth-child(1),
.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
    width: 25%;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
    width: 50%;
}

.table-header {
    background: var(--surface-1);
    border-bottom: 2px solid var(--border);
}

.table-th {
    padding: 1.25rem;
    font-weight: 800;
    color: var(--brand-neutral);
}

.table-row {
    border-bottom: 1px solid var(--border);
}

.table-td {
    padding: 1.25rem;
}

.table-td-category {
    padding: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary-accessible);
}



/* Categories & FAQ */
.cat-h3,
.cat-h2 {
    display: flex;
    align-items: center;
    /* Centrage vertical classique pour l'équilibre global */
    gap: 1.5rem;
}

.cat-icon {
    flex-shrink: 0;
}

.faq-item {
    margin-top: 1.5rem;
}

.faq-question {
    font-size: 1.1rem;
    color: var(--brand-neutral);
}

.faq-answer {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.faq-cat-title {
    margin: 2.5rem 0 1rem 0;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-primary-accessible);
    border-bottom: 1px solid var(--surface-2);
    padding-bottom: 0.5rem;
}

/* Glossaire & Expertise */
.glossary-section {
    background: var(--surface-1);
    padding: 3rem;
    border-radius: 24px;
    margin-top: 4rem;
}

.glossary-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.expertise-section {
    margin-top: 4rem;
    text-align: center;
}

.expertise-text {
    max-width: 600px;
    margin: 1rem auto;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-main);
}

.expertise-link {
    color: var(--brand-primary-accessible);
    text-decoration: underline;
}

/* Figures & SVG */
.bible-figure {
    margin: 2.5rem 0;
}

.bible-svg {
    font-family: 'Inter', system-ui, sans-serif;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    /* Force la fluidité sur mobile */
    max-width: 1000px;
    height: auto;
    /* Correction PageSpeed et aspect ratio */
    display: block;
}



.scope4-section {
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.05) 0%, transparent 100%);
    padding: 3rem;
    border-radius: 24px;
    border: 1px dashed var(--brand-primary);
    margin-top: 5rem;
}


/* Expert Header V3 - Style "Clean Professional" (Alignement Sidebar Garanti) */
.cat-expert-header {
  margin-top: 5rem;
  margin-bottom: 2.5rem;
  border-left: none;
  padding-left: 0;
}

/* Align first section header with sidebar title */
.content-guide section:first-of-type .cat-expert-header {
  margin-top: 0;
}

.cat-badge-line {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.cat-expert-header .cat-h2 {
    font-size: 2.4rem !important;
    color: var(--brand-neutral);
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    /* Retour au centrage harmonieux */
    gap: 1.5rem !important;
    font-weight: 800;
    border: none !important;
    padding: 0 !important;
}

.cat-expert-header .cat-icon {
    color: var(--brand-primary);
    opacity: 0.9;
}

.cat-summary {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
}

/* Toutes les sections avec ID profitent du décalage de header */
section[id] {
    scroll-margin-top: 100px;
    margin-bottom: 6rem;
}

.expert-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(26, 86, 219, 0.05);
    color: var(--brand-primary-accessible);
    border: 1px solid rgba(21, 128, 61, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.calc-results-container {
    background-color: var(--brand-bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--brand-bg-soft);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    margin-top: 1.5rem;
}

.calc-results-container.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Badges E-E-A-T */
.badges-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.e-e-a-t-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800; /* Expertise & Accessibilité renforcée */
    color: var(--brand-neutral);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.e-e-a-t-badge span {
    color: var(--brand-primary);
}

/* MODULES EXPERTS (AUDIT 2026) */
.expert-focus-box {
    background: var(--surface-1);
    border-left: 4px solid var(--brand-primary);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
}

.expert-focus-box h4 {
    color: var(--brand-primary);
    margin-top: 0;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.expert-formula {
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--brand-primary);
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--brand-bg-soft);
    border-radius: var(--radius-md);
}

.expert-list-compact {
    font-size: 0.9rem !important;
}

/* --- COMPOSANT : CHECK-LIST EXPERT --- */
.expert-checklist {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.expert-checklist li {
    position: relative;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    margin-bottom: 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.expert-checklist li:hover {
    border-color: var(--brand-primary-alpha);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.08);
}

.expert-checklist li::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 1.35rem;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a56db' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* --- COMPOSANT : FILTRES PÉDAGOGIQUES (FORMULE FISCALE) --- */
.pedagogic-gates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.gate-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gate-card:hover {
    border-color: var(--brand-primary-alpha);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.gate-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--brand-bg-soft);
    color: var(--brand-primary);
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.gate-title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-neutral);
    margin-bottom: 0.75rem;
}

.gate-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.gate-formula-label {
    display: block;
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .pedagogic-gates {
        grid-template-columns: 1fr;
    }
}




/* Elite Audit List - Ultimate Mapping Component */

.audit-list {
    margin: 2.5rem 0;
    border: 1px solid var(--surface-2);
    border-radius: 12px;
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.audit-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: center;
    border-bottom: 1px solid var(--surface-1);
    padding: 0.75rem 1.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    contain: layout style;
}

.audit-row:last-child {
    border-bottom: none;
}

.audit-row:hover {
    background: #fcfdfe;
    z-index: 10;
}

.audit-row::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: var(--accent-blue);
    opacity: 0;
    transition: opacity 0.2s;
}

.audit-row:hover::after {
    opacity: 1;
}

.audit-col-ademe {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.audit-ademe-id {
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 50px;
    text-align: center;
}

.audit-ademe-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--brand-neutral);
}

.audit-col-ghgp {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.audit-ghg-item {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-primary);
    background: rgba(26, 86, 219, 0.05);
    border: 1px solid rgba(26, 86, 219, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.audit-ghg-item:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-1px);
}

.audit-col-type {
    text-align: right;
}

.audit-type-pill {
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--text-light);
    background: var(--surface-1);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Row variations deprecated - now unified bleu */

@media (max-width: 768px) {
    .audit-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.25rem;
    }

    .audit-col-type {
        text-align: left;
        margin-top: 0.25rem;
    }
}


/* Expert Pillar Component (Hybrid 3-Zone) */
.expert-pillar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 4rem 0;
    border-radius: 24px;
}

.pillar-zone {
    padding: 3rem;
    position: relative;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-zone:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.pillar-label {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Zone 1: Methodology (Expert/Blue) */
.pillar-zone.methodology {
    background: var(--surface-1);
}

.pillar-zone.methodology .pillar-label {
    background: #e0f2fe;
    color: #0c4a6e;
}

/* Zone 2: Business (Decision-maker/Gold) */
.pillar-zone.business {
    background: #fffbeb;
}

.pillar-zone.business .pillar-label {
    background: #fef3c7;
    color: #78350f;
}

/* Zone 3: Practice (Action/Green) */
.pillar-zone.practice {
    background: rgba(26, 86, 219, 0.05);
}

.pillar-zone.practice .pillar-label {
    background: #dcfce7;
    color: var(--brand-primary-accessible);
}

/* Zone 4: Data Reference (Expert/Slate) */
.pillar-zone.data {
    background: var(--surface-1);
    border: 1px dashed var(--border-muted);
}

.pillar-zone.data .pillar-label {
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* Data Table (Specific for FE) */
.fe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Mini-Navigation (Pills) */
.fe-nav {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin: 1.5rem 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.fe-pill {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.fe-pill:hover {
    background: var(--border);
    border-color: var(--border-muted);
    color: var(--brand-neutral);
}

.fe-pill.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* Base Data Table */
.fe-table-container {
    overflow-x: auto;
    margin: 1rem 0 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    max-height: 800px;
    /* Ajout d'une limite de scroll pour le grand tableau */
    overflow-y: auto;
}

.fe-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.fe-table th {
    background: var(--surface-1);
    padding: 1rem;
    font-weight: 800;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    /* Toujours au-dessus des lignes */
}

.fe-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--surface-2);
}

.fe-table .category-row {
    background: var(--surface-2);
    font-weight: 800;
    color: var(--brand-neutral);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    scroll-margin-top: 100px;
    /* Pour que l'ancre soit visible sous le header */
}

.fe-table tr:nth-child(even):not(.category-row) {
    background: #fafafa;
}

.fe-table tr:hover:not(.category-row) {
    background: rgba(26, 86, 219, 0.03);
}

.fe-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--surface-2);
    color: var(--text-light);
}

.fe-value-cell {
    font-family: 'Inter', monospace;
    font-weight: 700;
    color: var(--brand-neutral);
}

/* Export Button */
.data-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-export:hover {
    background: var(--surface-1);
    border-color: var(--brand-primary);
    color: var(--brand-primary-accessible);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-export svg {
    color: var(--brand-primary);
}

.fe-card {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fe-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.fe-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--brand-neutral);
}

.fe-unit {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light-dim);
}

.data-source-tag {
    font-size: 0.7rem;
    font-style: italic;
    color: var(--text-light-dim);
    margin-top: 1.5rem;
    display: block;
}


/* Typography inside pillar */
.pillar-zone h3 {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-neutral);
    margin-bottom: 1.5rem;
}

.pillar-zone ul {
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.pillar-zone li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-main);
}

.pillar-zone p {
    max-width: 100%;
    /* Wider reading area inside pillars */
}

.pillar-zone strong {
    color: var(--brand-neutral);
}

/* FAQ Modern Accordion */
.faq-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-group {
    margin-bottom: 3rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 20px rgba(26, 86, 219, 0.08);
}

.faq-item summary {
    list-style: none;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--brand-neutral);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    font-family: var(--font-heading);
    outline: none;
    position: relative;
    /* Pour positionnement précis */
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--brand-primary);
    transition: transform 0.3s ease;
    font-weight: 400;
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--surface-2);
    color: var(--brand-primary);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 1.5rem;
    /* Valeur unifiée */
    padding-top: 0.5rem;
    /* Réduire l'espace sous le titre car le padding du summary est déjà là */
    padding-bottom: 2rem;
    /* Plus d'air en bas du bloc ouvert */
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
    background: var(--surface-soft);
}

.faq-answer p {
    margin: 0;
}

.faq-answer strong {
    color: var(--brand-primary);
}

.faq-category-header {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 3rem 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    letter-spacing: 0.05em;
}

.faq-category-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.faq-category-icon {
    font-size: 1.4rem;
    filter: grayscale(1);
    opacity: 0.7;
}




/* --- Author Box (E-E-A-T) --- */
.author-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.author-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-primary);
    box-shadow: 0 8px 16px rgba(26, 86, 219, 0.15);
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    display: block;
    font-weight: 800;
    color: var(--brand-neutral);
    font-size: 1.4rem;
    font-family: var(--font-headings);
    margin-bottom: 0.25rem;
}

.author-title {
    display: block;
    font-size: 0.85rem;
    color: var(--brand-primary-accessible);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.author-bio {
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    font-size: 1.05rem;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #0077B5;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.linkedin-link:hover {
    transform: translateX(5px);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .author-card {
        flex-direction: column;
        padding: 2rem 1.5rem;
        text-align: center;
        gap: 1.5rem;
    }

    .author-photo {
        width: 80px;
        height: 80px;
    }
}


.cat-v2-badge {
    background: rgba(26, 86, 219, 0.1);
    color: var(--brand-primary);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(26, 86, 219, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.ademe-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.2);
}

.cat-v2-seo-tag {
    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.mapping-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border-bottom: 1px dashed transparent;
}

.mapping-link:hover {
    border-bottom-color: var(--brand-primary);
    opacity: 0.8;
}

/* sidebar-link-mapping removed from here to avoid duplication */
.mapping-table .table-td-category {
    color: var(--accent-blue);
}


/* ============================================================
   BLOCS D'ALERTE (RISK-BOX)
   ============================================================ */
.risk-box {
    background: var(--brand-warning-soft);
    border-left: 4px solid var(--brand-warning);
    padding: 1.5rem 1.75rem;
    border-radius: 0 12px 12px 0;
    margin: 2.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.risk-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="rgba(245,158,11,0.05)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>') no-repeat right 1rem bottom 1rem;
    background-size: 80px;
    pointer-events: none;
    opacity: 0.8;
}

.risk-header {
    font-weight: 800;
    color: #b45309;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.risk-box p {
    margin: 0;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}



/* ============================================================
   BLOCS SOURCES ET DOCTRINE
   ============================================================ */
.expert-sources {
    margin: 3.5rem 0 2rem 0;
    padding: 2.5rem;
    background: var(--surface-2);
    /* Gris plus institutionnel */
    border-radius: 16px;
    border: 1px dashed var(--border-muted);
    /* Aspect documentaire */
    position: relative;
    box-shadow: none;
}

.expert-sources h4 {
    margin-top: 0;
    font-size: 1.05rem;
    color: var(--dark-bg);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expert-sources h4::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
}

.source-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.source-list li {
    display: flex;
    align-items: center;
}

.source-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.source-list a svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.source-list a:hover {
    color: var(--brand-primary-hover);
    border-color: var(--border-muted);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.source-list a:hover svg {
    transform: translateX(2px) translateY(-2px);
    opacity: 1;
}

/* ============================================================


   ============================================================ */
.content-guide p a,
.expert-pillar a {
    color: #1e40af;
    /* Bleu institutionnel profond, plus discret que le bleu standard */
    text-decoration: none;
    border-bottom: 1px solid rgba(30, 64, 175, 0.15);
    /* Soulignement ultra-léger par défaut */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1px;
}

.content-guide p a:hover,
.expert-pillar a:hover {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
    background-color: rgba(26, 86, 219, 0.04);
    /* Effet "focus" léger au survol */
}

.content-guide strong a {
    font-weight: 600;
}

/* ============================================================


   BLOCS DE CITATION ET DOCTRINE (LEGAL-BOX)
   ============================================================ */
.legal-box {
    margin: 3.5rem 0;
    padding: 2.5rem 2.5rem 2.5rem 4rem;
    background: rgba(26, 86, 219, 0.03);
    /* Bleu expert ultra léger */
    border-radius: 4px 24px 24px 4px;
    /* Asymétrie "Expert Note" */
    border: none;
    border-left: 5px solid var(--brand-primary);
    /* Signature visuelle */
    position: relative;
    overflow: hidden;
}

.legal-box::before {
    content: '“';
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-family: 'Inter', Georgia, serif;
    font-size: 8rem;
    color: var(--brand-primary);
    opacity: 0.08;
    line-height: 1;
    user-select: none;
}

.legal-cite {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--brand-neutral);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.cite-source {
    display: block;
    margin-top: 1.75rem;
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    opacity: 0.8;
}

.cite-source::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--brand-primary);
    vertical-align: middle;
    margin-right: 12px;
    opacity: 0.4;
}



/* ============================================================
   TABLEAUX D'EXPERTISE (PRÉMIUM)
   ============================================================ */
.expert-table-wrapper {
    overflow-x: auto;
    margin: 2.5rem 0;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.expert-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 600px;
}

.expert-table thead tr {
    background: var(--brand-neutral);
    color: white;
}

.expert-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    border-bottom: 2px solid var(--text-main);
}

.expert-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--surface-2);
    color: var(--text-muted);
    line-height: 1.6;
    vertical-align: middle;
}

.expert-table tbody tr:last-child td {
    border-bottom: none;
}

.expert-table tbody tr:hover {
    background: var(--surface-soft);
}

.expert-table strong {
    color: var(--brand-neutral);
    font-weight: 700;
}

@media (max-width: 768px) {

    .expert-table th,
    .expert-table td {
        padding: 1rem;
        font-size: 0.85rem;
    }
}



/* CLASSES DE SUBSTITUTION POUR LE NETTOYAGE INLINE */
.calc-options {
    margin-top: 1rem;
    justify-content: center;
    gap: 2rem;
}

.calc-radio-group {
    flex: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-radio-input {
    width: auto !important;
}

.calc-radio-label {
    margin-bottom: 0 !important;
}

.calc-submit-margin {
    margin-top: 1.5rem;
}

.calc-results-init {
    display: block;
    opacity: 0.5;
}

.sidebar-title-offset {
    margin-top: 1.75rem !important;
}

.glossary-section {
    margin-top: 4rem;
    background: var(--surface-1);
    padding: 4rem;
    border-radius: 20px;
}

.glossary-list {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* --- MODULES SEO : POSITION ZÉRO (Featured Snippets) --- */
.seo-formula-box {
    background: var(--brand-bg-soft);
    border: 1px solid var(--brand-bg-soft);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
}

.seo-formula-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.formula-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.formula-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-neutral);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.formula-math {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-primary);
}


@media (max-width: 768px) {
    .seo-formula-grid {
        grid-template-columns: 1fr;
    }
}

