/* mega-guide.css - Design "Bible du Scope 3" */

/* ============================================================
   POLICES AUTO-HÉBERGÉES (Firebase CDN - zéro dépendance externe)
   Généré depuis Google Fonts API - 2026-03-28
   ============================================================ */

/* Inter — normal — latin-ext & autres subsets */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-normal;-400-0.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-normal;-400-1.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-normal;-400-2.woff2') format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-normal;-400-3.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-normal;-400-4.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-normal;-400-5.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-normal;-400-6.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Inter — poids 500-800 (variable, mêmes fichiers) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-normal;-400-5.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-normal;-400-6.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-normal;-400-5.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-normal;-400-6.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Inter-normal;-400-5.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Inter-normal;-400-6.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/Inter-normal;-400-5.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/Inter-normal;-400-6.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Plus Jakarta Sans — italic — variable 300-800 */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: italic; font-weight: 300 800; font-display: swap; src: url('../fonts/PlusJakartaSans-italic;-300-800-7.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: italic; font-weight: 300 800; font-display: swap; src: url('../fonts/PlusJakartaSans-italic;-300-800-8.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: italic; font-weight: 300 800; font-display: swap; src: url('../fonts/PlusJakartaSans-italic;-300-800-9.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: italic; font-weight: 300 800; font-display: swap; src: url('../fonts/PlusJakartaSans-italic;-300-800-10.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Plus Jakarta Sans — normal — variable 300-800 */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/PlusJakartaSans-normal;-300-800-11.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/PlusJakartaSans-normal;-300-800-12.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/PlusJakartaSans-normal;-300-800-13.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/PlusJakartaSans-normal;-300-800-14.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }



:root {
  --brand-primary: #22C55E;
  --brand-primary-accessible: #22C55E;
  --brand-neutral: #1E293B;
  --border: #E2E8F0;
  --surface-1: #F8FAFC;
  --brand-primary-hover: #16A34A;
  --bg-main: #FDFDFD;
  --bg-card: #FFFFFF;
  --font-headings: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1400px;
  --sidebar-width: 280px;
  --text-main: #334155;
  --text-light: #64748B;
  --header-height: 70px;
  --mobile-menu-width: 300px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--font-body); background-color: var(--bg-main); color: var(--brand-neutral); line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; word-break: break-word; }

/* Reading Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--brand-primary);
  width: 0%;
  z-index: 10001; /* Above Header */
  transition: width 0.1s linear;
}

h1, h2, h3 { font-family: var(--font-headings); font-weight: 800; color: var(--brand-neutral); margin-bottom: 1.5rem; }
h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.25rem; border-bottom: 2px solid var(--brand-primary); display: inline-block; padding-bottom: 0.5rem; margin-top: 4rem; }
h3 { font-size: 1.5rem; margin-top: 2rem; color: var(--brand-primary); }

p { margin-bottom: 1.5rem; font-size: 1.1rem; opacity: 0.95; }

/* Layout - Sidebar + Content */
.main-wrapper {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 4rem;
  padding: 0 5%;
}

.sidebar {
  width: var(--sidebar-width);
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 1.5rem;
  border-right: 1px solid var(--border); /* Restored the border to match TVA */
}

/* Custom Scrollbar Configuration (Patterns extracted from TVA Project) */
.sidebar::-webkit-scrollbar {
    width: 3px !important;
}

.sidebar::-webkit-scrollbar-button {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent !important;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--brand-primary) !important;
    border-radius: 10px !important;
    border: none !important;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary-hover) !important;
}

.content-guide {
  flex: 1;
  padding-bottom: 10vh; /* Tampon de confort pour la lecture finale */
  min-width: 0;
}

/* Sidebar Nav */
.sidebar nav ul { list-style: none; }
.sidebar nav li { margin-bottom: 0.75rem; }
.sidebar nav a { 
  text-decoration: none; 
  color: #475569; 
  font-size: 0.9rem; 
  font-weight: 500; 
  transition: all 0.2s ease; 
  display: block;
  padding-left: 1.25rem;
}
.sidebar nav a:hover { 
  color: var(--brand-primary-accessible); 
  font-weight: 700; 
  transform: translateX(4px);
}
.sidebar nav a.active {
  color: var(--brand-primary-accessible); 
  font-weight: 700; 
}
/* Hero & Calculator */
.hero-bible {
  padding: 6rem 5% 4rem;
  text-align: center;
  background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.05), transparent);
}

.hero-description {
  margin: 0 auto 3rem;
}

.calc-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 650px;
  padding: 2.5rem;
  margin: 3rem auto;
  text-align: center;
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  min-height: 440px;
  contain: layout paint;
}

.calc-title {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--brand-neutral);
  margin-bottom: 2rem;
}

.calc-form-row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  text-align: left;
  margin-bottom: 1.5rem;
  width: 100%;
}

.calc-field {
  flex: 1;
}

.calc-label {
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.85rem;
}

.calc-select, .calc-input {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: white;
  outline: none;
  transition: border-color 0.2s;
}

.calc-select {
  cursor: pointer;
}

.calc-input:focus, .calc-select:focus {
  border-color: var(--brand-primary);
}

.calc-submit {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.05rem;
  border-radius: 8px;
  background: var(--brand-primary-accessible);
  color: white;
  border: none;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(21, 128, 61, 0.3);
}

.calc-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.calc-loader-overlay {
  display: none;
  margin-top: 2rem;
  width: 100%;
  text-align: center;
}

.loader-track {
  width: 100%;
  max-width: 250px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto 0.75rem;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: var(--brand-primary);
  transition: width 0.8s ease-in-out;
}

.loader-status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--brand-primary);
  display: block;
  width: 100%;
  text-align: center;
}

.calc-results-wrapper {
  display: none;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  width: 100%;
}

.results-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand-neutral);
  line-height: 1;
}

.impact-description {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
  text-align: left;
  line-height: 1.3;
  border-left: 3px solid var(--brand-primary);
  padding-left: 1.25rem;
  width: auto;
}

.impact-accent {
  color: var(--brand-primary);
  font-weight: 800;
}

.calc-disclaimer {
  font-size: 0.75rem;
  color: #475569;
  margin-top: 2rem;
  line-height: 1.5;
  font-weight: 600;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.uncertainty-tag {
  background: #f1f5f9;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  color: #64748b;
  margin-left: 0.5rem;
  border: 1px solid #e2e8f0;
}

/* Sidebar */
.sidebar-title {
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1rem;
  color: #334155;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.sidebar nav ul.sidebar-list {
  font-size: 0.83rem;
  line-height: 1.4;
  list-style: none;
}

.sidebar-heading {
  margin-top: 1.25rem;
  font-weight: 800;
  font-size: 0.75rem;
  color: #475569;
}

.sidebar-link-sbti {
  font-weight: 700;
}

.sidebar-link-scope4 {
  color: var(--brand-primary);
  font-weight: 800;
}

/* Tables */
.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: #f1f5f9;
  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;
  gap: 0.75rem;
}

.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;
}

/* 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: left;
}

.expertise-text {
  max-width: 800px;
  margin: 1rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
}

.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;
}

/* Footer */
.main-footer {
  padding: 6rem 5%;
  background: var(--brand-neutral);
  color: white;
  text-align: center;
}

.scope4-section {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, transparent 100%);
  padding: 3rem;
  border-radius: 24px;
  border: 1px dashed var(--brand-primary);
  margin-top: 5rem;
}

/* Expert Header V3 - Style "Business Premium" */
.cat-expert-header {
  margin-top: 5rem;
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--brand-primary);
  padding-left: 1.5rem;
}

/* 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: #1e293b;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem;
  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: #475569;
  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: #f0fdf4;
  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;
}

/* 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.5rem 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  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);
}

/* Badges E-E-A-T */
/* Header */
.main-header {
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

/* Base Design System Badges */
.cat-v2-badge { 
    background: rgba(34, 197, 94, 0.1); 
    color: var(--brand-primary); 
    padding: 3px 10px; 
    border-radius: 4px; 
    font-size: 10px; 
    font-weight: 800; 
    border: 1px solid rgba(34, 197, 94, 0.2); 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    display: inline-block;
}
.ademe-badge { 
    background: rgba(59, 130, 246, 0.1); 
    color: #3b82f6; 
    border-color: rgba(59, 130, 246, 0.2); 
}


.sidebar-link-mapping { 
    font-weight: 500; 
    color: #475569; 
}

/* Elite Audit List - Ultimate Mapping Component */

.audit-list {
    margin: 2.5rem 0;
    border: 1px solid #f1f5f9;
    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 #f8fafc;
    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: #3b82f6;
    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: #3b82f6;
    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(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 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: #64748b;
    background: #f8fafc;
    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;
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10001;
    flex-direction: column;
    gap: 6px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--brand-neutral);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--brand-primary); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--brand-primary); }

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 10000;
    padding: 2.5rem 2rem 5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    contain: layout style;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-item {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 1.1rem 0; /* Aération tactile pour éviter les miss-clicks */
    text-decoration: none;
    color: var(--brand-neutral);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: color 0.2s;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--brand-primary-accessible);
}


.mobile-nav-heading {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-primary-accessible);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-nav-heading:first-child {
    margin-top: 0;
}

.menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--brand-neutral);
    padding: 0.5rem;
    z-index: 10001;
    transition: color 0.2s;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.menu-close:hover {
    color: var(--brand-primary);
    background: rgba(34, 197, 94, 0.05);
}


.logo-link {
  text-decoration: none;
  color: var(--brand-neutral);
  font-weight: 800;
  font-size: 1.5rem;
}

.logo-accent {
  color: var(--brand-primary);
}

.nav-menu {
  font-weight: 600;
  display: flex;
  gap: 2rem;
}

.nav-item {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.nav-item:hover {
  color: var(--brand-primary);
}
/* 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: #f8fafc;
}
.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: #f0fdf4;
}
.pillar-zone.practice .pillar-label {
  background: #dcfce7;
  color: var(--brand-primary-accessible);
}

/* Zone 4: Data Reference (Expert/Slate) */
.pillar-zone.data {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}
.pillar-zone.data .pillar-label {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* 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: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}

.fe-pill:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    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: #f8fafc;
  padding: 1rem;
  font-weight: 800;
  color: #475569;
  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 #f1f5f9;
}

.fe-table .category-row {
  background: #f1f5f9;
  font-weight: 800;
  color: #1e293b;
  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(34, 197, 94, 0.03);
}

.fe-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
}

.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: 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: #f8fafc;
    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 #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fe-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  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: #94a3b8;
}

.data-source-tag {
    font-size: 0.7rem;
    font-style: italic;
    color: #94a3b8;
    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 #e2e8f0;
    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(34, 197, 94, 0.08);
}

.faq-item summary {
    list-style: none;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    font-family: var(--font-heading);
    outline: none;
}

.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 #f1f5f9;
    color: var(--brand-primary);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 1.25rem 1.5rem;
    color: #475569;
    line-height: 1.7;
    font-size: 0.98rem;
    background: #fcfdfc;
}

.faq-answer strong {
    color: var(--brand-primary);
}

.faq-category-header {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    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: #e2e8f0;
}

.faq-category-icon {
    font-size: 1.4rem;
    filter: grayscale(1);
    opacity: 0.7;
}

/* Footer Section */
.main-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3.5rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    font-size: 0.85rem;
    max-width: 300px;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 0.5rem;
    display: block;
}


.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--brand-primary);
}

.footer-credits {
    font-size: 0.8rem;
    color: #94a3b8;
}

@media (max-width: 1024px) {
  .sidebar { display: none; }
  .main-wrapper { padding: 0 2rem; }
  h1 { font-size: 2.8rem; }
  .nav-menu { display: none !important; }
  .menu-toggle { display: flex !important; }
  .logo-link { font-size: 1.3rem; }
}

@media (max-width: 768px) {
  body { padding-top: var(--header-height) !important; overflow-x: hidden; }
  .main-wrapper { padding: 0 15px !important; }
  .main-header { 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important; 
    padding: 0 15px !important; 
    transform: translateZ(0); 
    -webkit-transform: translateZ(0);
  }
  .hero-bible { padding: 3rem 15px 2rem; }
  
  h1 { font-size: 1.8rem; line-height: 1.2; margin-bottom: 1.5rem; overflow-wrap: anywhere; }
  h2 { font-size: 1.5rem; display: block; line-height: 1.3; white-space: normal !important; overflow-wrap: anywhere; }
  h3 { font-size: 1.3rem; overflow-wrap: anywhere; }

  .calc-hero { 
    padding: 1.5rem; 
    border-radius: 16px; 
    margin: 2rem 0;
  }
  .calc-form-row { flex-direction: column; gap: 1rem; }
  .calc-title { font-size: 1.1rem; margin-bottom: 1.2rem; }
  
  .results-flex { flex-direction: column; gap: 1rem; }
  .impact-description { 
    border-left: none; border-top: 2px solid var(--brand-primary); 
    padding: 1rem 0 0; width: 100%; text-align: center; 
  }

  .footer-grid { flex-direction: column; text-align: center; gap: 1.5rem; }
  .footer-links { justify-content: center; width: 100%; }
  
  .pillar-zone { padding: 1.5rem !important; }
  
  .comparison-table { 
    min-width: 700px; 
    width: 100%;
  }
  
  .table-td, .table-th, .table-td-category {
    padding: 0.75rem !important;
    font-size: 0.85rem;
  }
  
  .table-td-category {
    min-width: 140px;
  }
}

/* --- Author Box (E-E-A-T) --- */
.author-card { background: var(--bg-card, #FFFFFF); border: 1px solid var(--border, #E2E8F0); border-radius: 24px; padding: 2.5rem; margin: 3rem 0; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05); text-align: left; }
.author-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.author-photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--brand-primary); box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2); }
.author-meta h3 { margin: 0; font-size: 1.5rem; color: var(--brand-neutral); font-family: var(--font-headings); border-bottom: none !important; padding-bottom: 0 !important; }
.author-role { margin: 0.25rem 0 0; color: var(--brand-primary-accessible); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.author-body p { color: var(--text-main, #334155); line-height: 1.6; margin-bottom: 1.25rem; font-size: 1.05rem; }
.linkedin-link { display: inline-flex; align-items: center; gap: 0.5rem; 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 { padding: 1.5rem; } .author-header { flex-direction: column; align-items: center; text-align: center; } .author-body { text-align: center; } }

/* Mapping & ADEME Badges */
.cat-v2-badge { 
    background: rgba(34, 197, 94, 0.1); 
    color: var(--brand-primary); 
    padding: 4px 12px; 
    border-radius: 6px; 
    font-size: 11px; 
    font-weight: 700; 
    border: 1px solid rgba(34, 197, 94, 0.2); 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    display: inline-block;
}
.ademe-badge { 
    background: rgba(59, 130, 246, 0.1); 
    color: #3b82f6; 
    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: #3b82f6;
}

/* Expert Validation Section Styling */
.expert-validation {
    margin-top: 2.5rem;
    padding: 1.25rem;
    background: rgba(34, 197, 94, 0.04);
    border-radius: 8px; /* Plus doux que 4px */
    font-size: 0.95rem; /* Un peu plus grand pour lisibilité expert */
    color: var(--text-main, #4b5563);
    line-height: 1.6;
    border: 1px solid rgba(34, 197, 94, 0.08); /* Ajout d'une bordure subtile globale au lieu d'une barre gauche */
}