/* ==========================================================================
   SuivX - Page Ressources & Académie (ressources.html) Stylesheet
   Mobile-First Architecture, Touch Targets >= 44px, Anti-Zoom iOS, CWV
   ========================================================================== */

:root {
  /* Palette SuivX */
  --suivx-forest-deep: #0D3D2C;
  --suivx-forest: #134E38;
  --suivx-forest-hover: #0A2F22;
  --suivx-forest-light: #E8F5EF;
  --suivx-emerald: #10B981;
  --suivx-emerald-hover: #059669;
  --suivx-emerald-soft: rgba(16, 185, 129, 0.12);
  
  /* Dark Theme */
  --dark-card: #091712;
  --dark-border: #18382C;
  
  /* Neutres */
  --bg-page: #F8FAF9;
  --bg-surface: #FFFFFF;
  --bg-secondary: #F1F5F3;
  --text-main: #1E293B;
  --text-heading: #09261B;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  --border-color: #E2E8F0;
  
  /* Badges */
  --badge-success-bg: #DCFCE7;
  --badge-success-text: #166534;
  --badge-amber-bg: #FEF3C7;
  --badge-amber-text: #92400E;
  --badge-indigo-bg: #EDE9FE;
  --badge-indigo-text: #5B21B6;
  --badge-blue-bg: #E0F2FE;
  --badge-blue-text: #075985;
  
  /* Rayons & Ombres */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(13, 61, 44, 0.06);
  --shadow-lg: 0 16px 36px rgba(13, 61, 44, 0.1);

  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Règle Google Mobile : Anti-zoom automatique forcé iOS Safari */
input, select, textarea, input[type="range"], input[type="number"], input[type="text"], input[type="email"] {
  font-size: 16px !important;
}

/* ==========================================================================
   BUTTONS & COMMON COMPONENTS
   ========================================================================== */
.btn-ghost {
  font-size: 14px;
  font-weight: 500;
  color: var(--suivx-forest);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.2s;
  touch-action: manipulation;
}

.btn-ghost:hover {
  background: rgba(19, 78, 56, 0.08);
}

.btn-primary {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--suivx-forest-deep);
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.btn-primary:hover {
  background: var(--suivx-forest);
}

/* ==========================================================================
   MAIN CONTAINER & HERO
   ========================================================================== */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 1.5rem) clamp(3rem, 6vw, 5rem);
  box-sizing: border-box;
  width: 100%;
}

.hero-section {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
  box-sizing: border-box;
  width: 100%;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--suivx-forest-light);
  color: var(--suivx-forest-deep);
  border: 1px solid rgba(13, 61, 44, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: clamp(0.75rem, 2vw, 0.825rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.2px;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--suivx-forest);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Search Bar */
.search-wrapper {
  position: relative;
  max-width: 580px;
  margin: 0 auto 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 16px !important;
  font-family: var(--font-body);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.search-input:focus {
  border-color: var(--suivx-forest);
  box-shadow: 0 0 0 4px rgba(19, 78, 56, 0.1);
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  width: 20px;
  height: 20px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
  width: 100%;
  box-sizing: border-box;
}

.filter-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  touch-action: manipulation;
  box-sizing: border-box;
}

.filter-btn .count-badge {
  background: var(--bg-secondary);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.filter-btn:hover {
  border-color: var(--suivx-forest);
  color: var(--suivx-forest-deep);
}

.filter-btn.active {
  background: var(--suivx-forest-deep);
  border-color: var(--suivx-forest-deep);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(13, 61, 44, 0.2);
}

.filter-btn.active .count-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* ==========================================================================
   FEATURED SPOTLIGHT GUIDE (Réforme 2026)
   ========================================================================== */
.featured-container {
  margin-bottom: 4rem;
  width: 100%;
  box-sizing: border-box;
}

.featured-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  transition: all 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 961px) {
  .featured-card {
    grid-template-columns: 1.15fr 1fr;
  }
}

.featured-card:hover {
  border-color: rgba(19, 78, 56, 0.35);
  box-shadow: var(--shadow-lg);
}

.featured-content {
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.meta-tag-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.badge-pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.4px;
}

.featured-desc {
  color: var(--text-muted);
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Dark Cockpit Preview */
.featured-preview-box {
  background: linear-gradient(145deg, #091712 0%, #0D281E 100%);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-top: 1px solid var(--dark-border);
  box-sizing: border-box;
  width: 100%;
}

@media (min-width: 961px) {
  .featured-preview-box {
    border-top: none;
    border-left: 1px solid var(--dark-border);
  }
}

.featured-preview-box::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.ui-mock-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  width: 100%;
}

.ui-mock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 8px;
  flex-wrap: wrap;
}

.ui-mock-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #A7F3D0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ui-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.ui-kpi-block {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.ui-kpi-lbl {
  font-size: 0.7rem;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
}

.ui-kpi-val {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 2px;
}

.ui-status-strip {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #34D399;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   GUIDES GRID
   ========================================================================== */
.section-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  gap: 12px;
  flex-wrap: wrap;
}

.section-headline h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 800;
  color: var(--text-heading);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.75rem;
  margin-bottom: 4.5rem;
  width: 100%;
  box-sizing: border-box;
}

.guide-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(19, 78, 56, 0.3);
}

.guide-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.guide-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.guide-card-desc {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.mini-feature-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  gap: 8px;
  flex-wrap: wrap;
}

.hpc-score-pill {
  font-weight: 800;
  color: #059669;
  background: var(--badge-success-bg);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.guide-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
  font-size: 0.85rem;
  color: var(--text-dim);
  gap: 8px;
  flex-wrap: wrap;
}

.link-arrow {
  color: var(--suivx-forest-deep);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  min-width: 44px;
  transition: gap 0.2s ease;
  touch-action: manipulation;
}

.guide-card:hover .link-arrow {
  gap: 8px;
  color: var(--suivx-emerald-hover);
}

/* ==========================================================================
   DOUBLE WIDGET INTERACTIF (Calculateur Marge & Scoring HPC)
   ========================================================================== */
.interactive-hub-section {
  background: var(--bg-surface);
  border: 2px solid var(--suivx-forest-light);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 4.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

.hub-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.hub-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.hub-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.875rem, 2vw, 0.95rem);
}

.sim-mode-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.sim-tab-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1.5rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  touch-action: manipulation;
  box-sizing: border-box;
}

.sim-tab-btn.active {
  background: var(--suivx-forest-deep);
  border-color: var(--suivx-forest-deep);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(13, 61, 44, 0.2);
}

.sim-panel { display: none; }
.sim-panel.active { display: block; }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr 1fr 1.35fr;
  }
}

.input-grp {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-grp label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
}

.input-val-box {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 16px !important;
  font-weight: 800;
  color: var(--text-heading);
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.input-val-box:focus {
  border-color: var(--suivx-forest);
  background: #FFFFFF;
}

.calc-result-badge {
  background: linear-gradient(135deg, var(--suivx-forest-deep) 0%, var(--suivx-forest) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.calc-result-badge .lbl {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #A7F3D0;
}

.calc-result-badge .num {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  font-weight: 800;
  margin-top: 4px;
  color: #FFFFFF;
}

/* Scoring Sliders */
.hpc-sliders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  .hpc-sliders-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .hpc-sliders-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.slider-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  box-sizing: border-box;
}

.slider-box label {
  font-size: 0.8rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.slider-box input[type=range] {
  width: 100%;
  accent-color: var(--suivx-forest);
  cursor: pointer;
  min-height: 28px;
  font-size: 16px !important;
}

.slider-val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--suivx-forest-deep);
  margin-top: 4px;
}

.hpc-result-banner {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .hpc-result-banner {
    flex-direction: row;
    text-align: left;
  }
}

.hub-bottom-cta {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .hub-bottom-cta {
    flex-direction: row;
    text-align: left;
  }
}

/* ==========================================================================
   CONVERSION FINALE BANNER
   ========================================================================== */
.cta-conversion-box {
  background: linear-gradient(145deg, #091C14 0%, #133E2B 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.cta-conversion-box::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-main-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.cta-main-subtitle {
  color: #CBD5E1;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.cta-features-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.cta-feature-item {
  font-size: 0.875rem;
  font-weight: 600;
  color: #F1F5F9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-cta-white {
  background: #FFFFFF;
  color: var(--suivx-forest-deep);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  min-height: 48px;
  min-width: 44px;
  padding: 0.95rem 2.25rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  touch-action: manipulation;
  box-sizing: border-box;
}

.btn-cta-white:hover {
  background: #F8FAF9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   MODAL DE LECTURE DU GUIDE & SUGGESTION
   ========================================================================== */
.guide-reader-overlay, .suggestion-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  box-sizing: border-box;
}

.guide-reader-overlay.active, .suggestion-overlay.active {
  opacity: 1;
  visibility: visible;
}

.guide-reader-modal, .suggestion-modal {
  background: #FFFFFF;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.guide-reader-overlay.active .guide-reader-modal, .suggestion-overlay.active .suggestion-modal {
  transform: scale(1) translateY(0);
}

.reader-header, .modal-header-sug {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: #FAFCFA;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.reader-body {
  padding: clamp(16px, 4vw, 28px);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  box-sizing: border-box;
}

.reader-body h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 1.5rem 0 0.5rem;
}

.reader-body h4:first-child { margin-top: 0; }
.reader-body p { margin-bottom: 1rem; }
.reader-body ul { margin-left: 1.25rem; margin-bottom: 1.25rem; }
.reader-body li { margin-bottom: 0.4rem; }

.callout-box {
  background: #F0FDF4;
  border-left: 4px solid var(--suivx-emerald);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  font-size: 0.925rem;
  color: #065F46;
}

/* Modal Form Styles */
.sug-form-group { margin-bottom: 16px; }
.sug-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-heading); margin-bottom: 6px; }
.sug-input, .sug-select, .sug-textarea {
  width: 100%; padding: 10px 14px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-family: inherit; font-size: 16px !important; outline: none; transition: border-color 0.2s; box-sizing: border-box;
}
.sug-input:focus, .sug-select:focus, .sug-textarea:focus { border-color: var(--suivx-forest); background: #FFFFFF; }

.modal-close-btn {
  background: rgba(0,0,0,0.05); border: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); touch-action: manipulation; flex-shrink: 0;
}

.sug-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 500px) {
  .sug-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   DIRECT ANSWER & GEO / AI SYNTHESIS BOX
   ========================================================================== */
.direct-answer-box {
  background: rgba(16, 185, 129, 0.07);
  border-left: 4px solid var(--suivx-emerald);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.45rem;
  max-width: 780px;
  margin: 0 auto 2.25rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  width: 100%;
}

.direct-answer-box p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--suivx-forest-deep);
  margin: 0;
}

.direct-answer-box strong {
  color: var(--suivx-forest-deep);
  font-weight: 700;
}

/* ==========================================================================
   SECTION FAQ VISIBLE (Accordéons HTML natifs <details> / <summary>)
   ========================================================================== */
.faq-section {
  max-width: 900px;
  margin: 4.5rem auto 3.5rem;
  padding: 0 1rem;
  box-sizing: border-box;
  width: 100%;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  border-color: rgba(19, 78, 56, 0.3);
  box-shadow: var(--shadow-md);
}

.faq-item[open] {
  border-color: var(--suivx-forest);
  box-shadow: 0 4px 16px rgba(13, 61, 44, 0.08);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 700;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
  user-select: none;
  transition: color 0.2s ease;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--suivx-forest);
}

.faq-chevron {
  color: var(--suivx-forest);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.35rem;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   FOOTER STANDARD DU SITE
   ========================================================================== */
footer {
  background: var(--bg-surface-secondary, #F2F8F5);
  border-top: 1px solid var(--border-color, #C8E6D4);
  padding: 60px 40px 40px;
  box-sizing: border-box;
  width: 100%;
}

.f-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 48px;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .f-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }
}

.f-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--suivx-forest-deep, #1A4731);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.f-logo .f-logo-text {
  display: inline;
  white-space: nowrap;
  color: var(--suivx-forest-deep, #1A4731);
}

.f-logo .f-logo-text span,
.f-logo span {
  color: var(--suivx-emerald, #2D7A4F);
}

.f-desc {
  font-size: 14px;
  color: var(--text-muted, #6B7C72);
  line-height: 1.6;
  max-width: 280px;
}

.f-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--suivx-forest-deep, #1A4731);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.f-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  font-size: 14px;
  color: var(--text-muted, #6B7C72);
  text-decoration: none;
  margin-bottom: 2px;
  padding: 4px 0;
  transition: color 0.2s;
  box-sizing: border-box;
}

.f-col a:hover {
  color: var(--suivx-forest-deep, #1A4731);
}

.f-bottom {
  border-top: 1px solid var(--border-color, #C8E6D4);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--text-muted, #6B7C72);
  text-align: center;
}

@media (min-width: 768px) {
  .f-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.f-bottom a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 10px;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}
