/* ==========================================================================
   LE CORANISME POUR LES NULS - DESIGN SYSTEM & CHARTE GRAPHIQUE
   Inspiré des fameux manuels "Pour les Nuls" (Dummies Guide)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Palette "Pour les Nuls" */
  --nuls-yellow: #FED100;
  --nuls-yellow-hover: #E5BC00;
  --nuls-yellow-light: #FFF9D2;
  --nuls-yellow-tint: #FFFDF0;
  
  --nuls-black: #161616;
  --nuls-black-secondary: #242424;
  --nuls-black-border: #111111;
  
  --nuls-red: #D9381E;
  --nuls-red-light: #FEECE9;
  
  --nuls-blue: #1A56DB;
  --nuls-blue-light: #EBF2FF;
  
  --nuls-green: #0E9F6E;
  --nuls-green-light: #E8F5E9;

  --bg-page: #FBFBFA;
  --bg-card: #FFFFFF;
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --text-inverse: #FFFFFF;

  --border-thick: 3px solid #161616;
  --border-medium: 2px solid #161616;
  --border-thin: 1px solid #E5E7EB;

  --shadow-hard: 4px 4px 0px #161616;
  --shadow-hard-lg: 6px 6px 0px #161616;
  --shadow-hard-sm: 2px 2px 0px #161616;
  --shadow-hover: 2px 2px 0px #161616;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  --header-height: 72px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img, svg {
  vertical-align: middle;
}

/* ==========================================================================
   TOP BAR "POUR LES NULS" (ICONIC HEADER)
   ========================================================================== */
.nuls-topbar {
  background-color: var(--nuls-yellow);
  border-bottom: var(--border-thick);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.topbar-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-badge {
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-hard-sm);
  display: inline-block;
  white-space: nowrap;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--nuls-black);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nuls-black);
  opacity: 0.85;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.desktop-only-text {
  display: inline;
}

@media (max-width: 720px) {
  .desktop-only-text {
    display: none;
  }
}

.btn-action-topbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--bg-card);
  border: var(--border-medium);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-hard-sm);
  transition: all 0.15s ease;
  color: var(--nuls-black);
}

.btn-action-topbar:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-hard);
  background-color: var(--nuls-yellow-tint);
}

.sadaqa-pill-btn {
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
}

.sadaqa-pill-btn:hover {
  background-color: var(--nuls-yellow);
  color: var(--nuls-black);
}

.btn-search-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-card);
  border: var(--border-medium);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-hard-sm);
  transition: all 0.15s ease;
  color: var(--nuls-black);
}

.btn-search-trigger:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-hard);
  background-color: var(--nuls-yellow-tint);
}

.btn-menu-drawer {
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-hard-sm);
  transition: all 0.15s ease;
}

@media (max-width: 1024px) {
  .btn-menu-drawer {
    display: flex;
  }
}

.btn-menu-drawer:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-hard);
}

/* ==========================================================================
   APP LAYOUT (DRAWER + MAIN CONTENT)
   ========================================================================== */
.app-container {
  display: flex;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem 1.25rem 4rem;
  gap: 2rem;
  flex: 1;
}

/* Sidebar Navigation */
.app-sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  height: calc(100vh - var(--header-height) - 3rem);
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  z-index: 100;
}

.sidebar-header {
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-count {
  background-color: var(--nuls-yellow);
  color: var(--nuls-black);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.sidebar-nav-list {
  list-style: none;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--nuls-black);
  transition: all 0.15s ease;
  position: relative;
}

.sidebar-nav-item:hover {
  background-color: var(--nuls-yellow-light);
  border-color: var(--nuls-yellow);
  transform: translateX(3px);
}

.sidebar-nav-item.active {
  background-color: var(--nuls-yellow);
  border: var(--border-medium);
  box-shadow: var(--shadow-hard-sm);
  font-weight: 800;
}

.sidebar-nav-num {
  font-family: var(--font-display);
  font-weight: 900;
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.sidebar-nav-item.active .sidebar-nav-num {
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
}

.sidebar-nav-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-sadaqa-box {
  background-color: var(--nuls-yellow-tint);
  border: 2px dashed var(--nuls-black);
  margin: 0.75rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.4;
}

.sadaqa-header {
  font-family: var(--font-display);
  font-weight: 900;
  color: #065F46;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.author-tag {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--nuls-black);
  border-top: 1px solid #E5E7EB;
  padding-top: 0.35rem;
}

.btn-sidebar-contact {
  background-color: var(--nuls-yellow);
  color: var(--nuls-black);
  border: var(--border-medium);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.btn-sidebar-contact:hover {
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
}

.sidebar-footer {
  padding: 0.85rem 1rem;
  background-color: var(--nuls-yellow-tint);
  border-top: var(--border-thin);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn-sidebar-home {
  background-color: var(--nuls-black);
  color: var(--text-inverse);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.btn-sidebar-home:hover {
  background-color: var(--nuls-yellow);
  color: var(--nuls-black);
  border: 1px solid var(--nuls-black);
}

/* Main View Container */
.app-main {
  flex: 1;
  min-width: 0;
}

/* ==========================================================================
   HERO & HUB HOME VIEW
   ========================================================================== */
.hero-nuls {
  background-color: var(--nuls-yellow);
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-hard-lg);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-nuls::after {
  content: "MANUEL PRATIQUE";
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.5rem;
  color: rgba(0, 0, 0, 0.05);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--nuls-black);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-title span {
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 0.3rem;
}

.hero-description {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--nuls-black);
  max-width: 800px;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-hero-primary {
  background-color: var(--nuls-black);
  color: var(--text-inverse);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-hard-sm);
  transition: all 0.15s ease;
}

.btn-hero-primary:hover {
  background-color: var(--nuls-black-secondary);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}

.btn-hero-secondary {
  background-color: var(--bg-card);
  color: var(--nuls-black);
  border: var(--border-medium);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-hard-sm);
  transition: all 0.15s ease;
}

.btn-hero-secondary:hover {
  background-color: var(--nuls-yellow-tint);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}

/* Home Section Titles */
.section-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: var(--border-thick);
  padding-bottom: 0.75rem;
}

.section-header-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--nuls-black);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-header-title::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 26px;
  background-color: var(--nuls-yellow);
  border: 2px solid var(--nuls-black);
}

/* Arguments Cards Grid */
.arguments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.argument-card {
  background-color: var(--bg-card);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
}

.argument-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hard-lg);
  border-color: var(--nuls-black);
}

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

.card-number-badge {
  background-color: var(--nuls-yellow);
  color: var(--nuls-black);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--nuls-black);
}

.card-theme-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--nuls-black);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.card-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-formula-box {
  background-color: var(--nuls-yellow-tint);
  border-left: 4px solid var(--nuls-yellow);
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--nuls-black);
  margin-bottom: 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.card-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: var(--border-thin);
  padding-top: 1rem;
}

.btn-read-arg {
  flex: 1;
  background-color: var(--nuls-black);
  color: var(--text-inverse);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.btn-read-arg:hover {
  background-color: var(--nuls-yellow);
  color: var(--nuls-black);
}

.btn-download-pdf-sm {
  background-color: var(--bg-page);
  border: var(--border-medium);
  color: var(--nuls-black);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.btn-download-pdf-sm:hover {
  background-color: var(--nuls-red-light);
  color: var(--nuls-red);
}

/* ==========================================================================
   DEDICATED ARGUMENT VIEW (POUR LES NULS BOOK PAGE STYLE)
   ========================================================================== */
.argument-detail-view {
  background-color: var(--bg-card);
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}

/* Header Bandeau */
.arg-header-bandeau {
  background-color: var(--nuls-yellow);
  border-bottom: var(--border-thick);
  padding: 2.25rem 2rem;
  position: relative;
}

.arg-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.arg-badge-giant {
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.arg-download-badge {
  background-color: var(--bg-card);
  border: var(--border-medium);
  color: var(--nuls-black);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-hard-sm);
  transition: all 0.15s ease;
}

.arg-download-badge:hover {
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
  transform: translate(-1px, -1px);
}

.arg-main-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--nuls-black);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.arg-subtitle-tagline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--nuls-black);
  opacity: 0.9;
}

/* Formula Banner */
.formula-banner {
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
  padding: 1rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Quick Bar Navigation / Sticky TOC */
.arg-sticky-bar {
  background-color: #FAF9F5;
  border-bottom: var(--border-medium);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow-x: auto;
}

.arg-toc-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.arg-toc-link {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--nuls-black);
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.arg-toc-link:hover {
  background-color: var(--nuls-yellow);
  border-color: var(--nuls-black);
}

/* Main Detail Content Padding */
.arg-body-content {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ==========================================================================
   CALLOUT BOXES "POUR LES NULS" (THE ICONIC STYLES)
   ========================================================================== */

/* Generic Callout */
.nuls-callout {
  border: var(--border-thick);
  border-radius: var(--radius-md);
  position: relative;
  padding: 1.75rem;
  box-shadow: var(--shadow-hard);
  background-color: var(--bg-card);
}

.callout-header {
  position: absolute;
  top: -14px;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid var(--nuls-black);
  box-shadow: var(--shadow-hard-sm);
}

/* 1. Box : LEUR ARGUMENT (Adverse) */
.callout-adverse {
  border-color: #1F2937;
  background-color: #FAFAFA;
}

.callout-adverse .callout-header {
  background-color: #1F2937;
  color: #FFFFFF;
}

.adverse-thesis {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* 2. Box : À RETENIR (Iconic Yellow) */
.callout-retenir {
  border-color: var(--nuls-black);
  background-color: var(--nuls-yellow-tint);
}

.callout-retenir .callout-header {
  background-color: var(--nuls-yellow);
  color: var(--nuls-black);
}

/* 3. Box : PIÈGE / ERREUR À ÉVITER (Red alert) */
.callout-piege {
  border-color: var(--nuls-red);
  background-color: var(--nuls-red-light);
}

.callout-piege .callout-header {
  background-color: var(--nuls-red);
  color: #FFFFFF;
  border-color: var(--nuls-red);
}

/* 4. Box : L'ANALOGIE (Black & Yellow) */
.callout-analogie {
  border-color: var(--nuls-black);
  background-color: #FFFFFF;
}

.callout-analogie .callout-header {
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
}

/* 5. Box : EN 30 SECONDES (Speed debate) */
.callout-chrono {
  border-color: var(--nuls-yellow);
  border-width: 4px;
  background-color: #FFFFFF;
}

.callout-chrono .callout-header {
  background-color: var(--nuls-yellow);
  color: var(--nuls-black);
}

/* 6. Box : QUESTIONS DE CADRAGE */
.callout-cadrage {
  border-color: var(--nuls-blue);
  background-color: var(--nuls-blue-light);
}

.callout-cadrage .callout-header {
  background-color: var(--nuls-blue);
  color: #FFFFFF;
  border-color: var(--nuls-blue);
}

/* ==========================================================================
   VERSES & CALLIGRAPHY CARDS
   ========================================================================== */
.verses-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.verse-item {
  background-color: #FFFFFF;
  border: var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-hard-sm);
}

.verse-header-ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.verse-ref-badge {
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.verse-arabic {
  font-family: var(--font-arabic);
  font-size: 1.85rem;
  font-weight: 700;
  color: #111827;
  text-align: right;
  direction: rtl;
  line-height: 1.8;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.25rem;
}

.verse-translation {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  font-style: italic;
  line-height: 1.5;
  border-left: 3px solid var(--nuls-yellow);
  padding-left: 0.85rem;
}

/* ==========================================================================
   ANALOGIES CARDS & MATRICES
   ========================================================================== */
.analogies-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.analogie-card {
  background-color: #FAFAFA;
  border: var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.analogie-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--nuls-black);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.analogie-scenario {
  font-size: 0.95rem;
  color: #374151;
}

.analogie-logic-box {
  background-color: var(--nuls-yellow-tint);
  border-left: 3px solid var(--nuls-black);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.analogie-lesson {
  font-size: 0.85rem;
  color: var(--nuls-red);
  font-weight: 700;
}

/* Distinction Table / Grid */
.distinction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.distinction-card {
  border: var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background-color: #FFFFFF;
}

.distinction-term {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--nuls-black);
  border-bottom: 2px solid var(--nuls-yellow);
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
}

.distinction-desc {
  font-size: 0.9rem;
  color: #4B5563;
}

/* ==========================================================================
   30-SECOND COPY BOX & TOAST NOTIFICATION
   ========================================================================== */
.quick-response-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-response-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.6;
  background-color: var(--nuls-yellow-tint);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--nuls-black);
}

.btn-copy-fast {
  align-self: flex-start;
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
  border: var(--border-medium);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-hard-sm);
  transition: all 0.15s ease;
}

.btn-copy-fast:hover {
  background-color: var(--nuls-yellow);
  color: var(--nuls-black);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}

.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
  border: 2px solid var(--nuls-yellow);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow-hard-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 9999;
  transform: translateY(150%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   OBJECTIONS ACCORDION
   ========================================================================== */
.objections-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.objection-item {
  border: var(--border-medium);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  overflow: hidden;
}

.objection-title-btn {
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: #F9FAFB;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1rem;
  color: var(--nuls-black);
  transition: background-color 0.15s ease;
}

.objection-title-btn:hover {
  background-color: var(--nuls-yellow-tint);
}

.objection-content {
  padding: 1.25rem;
  border-top: var(--border-thin);
  background-color: #FFFFFF;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
}

/* ==========================================================================
   INTERACTIVE QUIZ COMPONENT
   ========================================================================== */
.quiz-section-wrap {
  background-color: #FFFFFF;
  border: var(--border-thick);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-hard);
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: var(--border-medium);
  padding-bottom: 0.75rem;
}

.quiz-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed #E5E7EB;
}

.quiz-question {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--nuls-black);
  margin-bottom: 0.85rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-option-btn {
  padding: 0.65rem 1rem;
  border: var(--border-medium);
  border-radius: var(--radius-sm);
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  background-color: #FAFAFA;
  transition: all 0.15s ease;
}

.quiz-option-btn:hover:not(:disabled) {
  background-color: var(--nuls-yellow-light);
  border-color: var(--nuls-black);
}

.quiz-option-btn.correct {
  background-color: var(--nuls-green-light) !important;
  border-color: var(--nuls-green) !important;
  color: #065F46 !important;
  font-weight: 800;
}

.quiz-option-btn.wrong {
  background-color: var(--nuls-red-light) !important;
  border-color: var(--nuls-red) !important;
  color: #991B1B !important;
}

.quiz-feedback {
  margin-top: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  display: none;
}

.quiz-feedback.show {
  display: block;
}

.quiz-feedback.correct {
  background-color: var(--nuls-green-light);
  color: #065F46;
}

.quiz-feedback.wrong {
  background-color: var(--nuls-red-light);
  color: #991B1B;
}

/* ==========================================================================
   PREV / NEXT NAVIGATION BAR
   ========================================================================== */
.arg-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: var(--border-thick);
}

.btn-pag-nav {
  background-color: var(--nuls-black);
  color: var(--text-inverse);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-hard-sm);
  transition: all 0.15s ease;
}

.btn-pag-nav:hover {
  background-color: var(--nuls-yellow);
  color: var(--nuls-black);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}

.btn-pag-nav:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ==========================================================================
   MODAL SEARCH & PDF PREVIEW
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-card);
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-hard-lg);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-header {
  background-color: var(--nuls-yellow);
  border-bottom: var(--border-thick);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
}

.btn-close-modal {
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  border: var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  margin-bottom: 1rem;
  background-color: #FAFAFA;
}

.search-input {
  width: 100%;
  border: none;
  background: none;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  font-weight: 600;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-result-item {
  padding: 0.85rem;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-result-item:hover {
  background-color: var(--nuls-yellow-tint);
  border-color: var(--nuls-yellow);
}

.search-result-item h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--nuls-black);
  margin-bottom: 0.25rem;
}

.search-result-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER "POUR LES NULS"
   ========================================================================== */
.nuls-footer {
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
  border-top: var(--border-thick);
  padding: 3rem 1.25rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid #333;
  padding-bottom: 1.5rem;
}

.footer-middle {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  border-bottom: 1px solid #333;
  padding-bottom: 1.5rem;
}

.footer-btn-link {
  color: var(--nuls-yellow);
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.footer-btn-link:hover {
  opacity: 0.8;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-quote {
  font-style: italic;
  font-size: 0.95rem;
  color: #D1D5DB;
  max-width: 600px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #9CA3AF;
}

/* ==========================================================================
   RESPONSIVE DESIGN & OPTIMISATIONS MOBILES
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.btn-close-drawer-mobile {
  background-color: var(--nuls-yellow);
  color: var(--nuls-black);
  border: 2px solid var(--nuls-yellow);
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .btn-close-drawer-mobile {
    display: flex;
  }

  .app-sidebar {
    display: flex;
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    z-index: 10000;
    box-shadow: 8px 0 25px rgba(0, 0, 0, 0.4);
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-left: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(0);
  }

  .app-sidebar.drawer-open {
    transform: translateX(320px);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .app-container {
    padding: 0.85rem 0.65rem 2.5rem;
  }

  /* TOPBAR HEADER */
  .nuls-topbar {
    border-bottom-width: 2px;
  }

  .topbar-container {
    padding: 0 0.65rem;
    gap: 0.4rem;
    height: var(--header-height);
  }

  .brand-logo a {
    gap: 0.4rem !important;
  }

  .brand-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
    letter-spacing: 0px;
  }

  .brand-title {
    font-size: 0.9rem;
    letter-spacing: -0.3px;
  }

  .brand-subtitle {
    display: none;
  }

  .topbar-actions {
    gap: 0.35rem;
  }

  .btn-action-topbar,
  .btn-search-trigger {
    padding: 0.35rem 0.55rem;
    font-size: 0.8rem;
    border-width: 2px;
  }

  .btn-menu-drawer {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  /* HERO SECTION */
  .hero-nuls {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    border-width: 2px;
  }

  .hero-title {
    font-size: 1.55rem;
    line-height: 1.15;
    margin-bottom: 0.4rem;
  }

  .hero-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .hero-actions .btn-hero-primary,
  .hero-actions .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  /* SOMMAIRE & CARTES ARGUMENTS */
  .section-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 1rem;
  }

  .section-header-title {
    font-size: 1.25rem;
  }

  .arguments-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .argument-card {
    padding: 1rem 0.85rem;
    border-width: 2px;
    border-radius: var(--radius-sm);
  }

  .card-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.4rem;
  }

  .card-tagline {
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
  }

  .card-formula-box {
    font-size: 0.8rem;
    padding: 0.55rem 0.7rem;
    line-height: 1.4;
  }

  .card-footer-actions {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
  }

  .btn-read-arg {
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
  }

  /* FICHE ARGUMENT DÉTAIL */
  .argument-detail-view {
    border-radius: var(--radius-sm);
    border-width: 2px;
  }

  .arg-header-bandeau {
    padding: 1.25rem 0.85rem;
  }

  .arg-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .arg-header-top > div {
    width: 100%;
    display: flex;
    gap: 0.35rem;
  }

  .arg-badge-giant {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
  }

  .arg-download-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.55rem;
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .arg-main-title {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .arg-subtitle-tagline {
    font-size: 0.85rem;
    margin-top: 0.35rem;
  }

  .formula-banner {
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  /* BARRE STICKY HORIZONTALE SCROLLABLE */
  .arg-sticky-bar {
    padding: 0.4rem 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .arg-toc-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    width: max-content;
  }

  .arg-toc-link {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
    white-space: nowrap;
  }

  /* SECTIONS & ENCADRÉS PÉDAGOGIQUES */
  .arg-body-content {
    padding: 1.25rem 0.65rem;
    gap: 1.35rem;
  }

  .nuls-callout {
    padding: 1.15rem 0.75rem 0.85rem;
    border-width: 2px;
    border-radius: var(--radius-sm);
    margin: 0.85rem 0;
  }

  .callout-header {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    top: -10px;
    left: 0.65rem;
  }

  .adverse-thesis {
    font-size: 1rem;
    line-height: 1.5;
  }

  .distinction-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .distinction-card {
    padding: 0.75rem 0.65rem;
  }

  .distinction-term {
    font-size: 0.85rem;
  }

  .distinction-desc {
    font-size: 0.8rem;
  }

  .verse-item {
    padding: 0.75rem 0.65rem;
  }

  .verse-arabic {
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 0.65rem;
  }

  .verse-translation {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .analogie-card {
    padding: 0.85rem 0.75rem;
    gap: 0.4rem;
  }

  .analogie-title {
    font-size: 0.95rem;
  }

  .analogie-scenario,
  .analogie-logic-box,
  .analogie-lesson {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .quick-response-container {
    padding: 0.85rem 0.65rem;
  }

  .quick-response-text {
    font-size: 0.9rem;
    padding: 0.75rem;
    line-height: 1.5;
  }

  .btn-copy-fast {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.65rem;
  }

  .objection-item {
    margin-bottom: 0.6rem;
  }

  .objection-title-btn {
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
  }

  .objection-content {
    font-size: 0.82rem;
    padding: 0.65rem 0.75rem;
    line-height: 1.45;
  }

  .quiz-section-wrap {
    padding: 1.15rem 0.75rem;
    border-width: 2px;
  }

  .quiz-header h3 {
    font-size: 1rem;
  }

  .quiz-question {
    font-size: 0.9rem;
  }

  .quiz-option-btn {
    font-size: 0.82rem;
    padding: 0.6rem 0.75rem;
  }

  .arg-pagination-bar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-pag-nav {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
    text-align: center;
  }

  /* FOOTER */
  .nuls-footer {
    padding: 1.75rem 0.85rem 1.25rem;
    border-top-width: 2px;
  }

  .footer-container {
    gap: 1.25rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1rem;
  }

  .footer-brand {
    font-size: 1.2rem;
  }

  .footer-quote {
    font-size: 0.8rem;
    line-height: 1.45;
    max-width: 100%;
  }

  .footer-middle {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1rem;
  }

  .footer-middle > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 0.5rem !important;
    width: 100%;
  }

  .footer-btn-link {
    font-size: 0.85rem;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
  }
}

/* SMARTPHONES COMPACTS (<= 420px) */
@media (max-width: 420px) {
  :root {
    --header-height: 56px;
  }

  .app-container {
    padding: 0.5rem 0.4rem 2rem;
  }

  .topbar-container {
    padding: 0 0.45rem;
    gap: 0.25rem;
  }

  .brand-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
  }

  .brand-title {
    font-size: 0.8rem;
  }

  .btn-action-topbar,
  .btn-search-trigger {
    padding: 0.3rem 0.45rem;
    font-size: 0.75rem;
  }

  .hero-nuls {
    padding: 1rem 0.65rem;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .hero-description {
    font-size: 0.85rem;
  }

  .arg-header-bandeau {
    padding: 1rem 0.65rem;
  }

  .arg-main-title {
    font-size: 1.2rem;
  }

  .arg-body-content {
    padding: 1rem 0.45rem;
    gap: 1.15rem;
  }

  .nuls-callout {
    padding: 1rem 0.6rem 0.75rem;
  }

  .verse-arabic {
    font-size: 1.1rem;
    line-height: 1.55;
    padding: 0.5rem;
  }

  .portal-card {
    width: 96vw;
    margin: 0.5rem auto;
  }

  .portal-header h2 {
    font-size: 1rem;
  }

  .portal-arabic-quote {
    font-size: 1.1rem;
    padding: 0.55rem;
  }

  .portal-fr-quote {
    font-size: 0.82rem;
    padding: 0.55rem;
  }
}

/* ==========================================================================
   PORTAIL D'ENTRÉE / SPLASH GATE (CITATION AL-BARBAHARI - TAILLE COMPACTE)
   ========================================================================== */
.portal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
}

.portal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.portal-card {
  background-color: #FFFFFF;
  border: var(--border-thick);
  border-radius: var(--radius-md);
  max-width: 720px;
  width: 100%;
  max-height: 94vh;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), var(--shadow-hard-lg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: portalPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: auto;
}

@keyframes portalPopIn {
  0% { transform: scale(0.95) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.portal-header {
  background-color: var(--nuls-yellow);
  border-bottom: var(--border-thick);
  padding: 0.85rem 1.25rem;
  text-align: center;
}

.portal-warning-badge {
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  box-shadow: var(--shadow-hard-sm);
}

.portal-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--nuls-black);
  text-transform: uppercase;
  line-height: 1.2;
}

.portal-body {
  padding: 1.15rem 1.5rem;
  background-color: #FFFDF5;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.portal-arabic-quote {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  direction: rtl;
  line-height: 1.65;
  background: #FFFFFF;
  border: var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  box-shadow: var(--shadow-hard-sm);
}

.portal-fr-quote {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.5;
  text-align: center;
  background: var(--nuls-red-light);
  border-left: 4px solid var(--nuls-red);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.portal-author-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px dashed #D1D5DB;
  padding-top: 0.65rem;
}

.portal-author-badge {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--nuls-black);
}

.portal-source-ref {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nuls-red);
  background-color: #FFFFFF;
  border: 1px solid var(--nuls-red);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.portal-footer {
  background-color: #FAF9F5;
  border-top: var(--border-thick);
  padding: 0.9rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.btn-enter-site {
  background-color: var(--nuls-black);
  color: var(--nuls-yellow);
  border: var(--border-thick);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-hard);
  transition: all 0.15s ease;
  width: 100%;
  justify-content: center;
}

.btn-enter-site:hover {
  background-color: var(--nuls-yellow);
  color: var(--nuls-black);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-lg);
}

.portal-disclaimer {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

@media (max-height: 700px) {
  .portal-header {
    padding: 0.6rem 1rem;
  }
  .portal-header h2 {
    font-size: 1.1rem;
  }
  .portal-body {
    padding: 0.85rem 1rem;
    gap: 0.6rem;
  }
  .portal-arabic-quote {
    font-size: 1.2rem;
    padding: 0.6rem 0.85rem;
  }
  .portal-fr-quote {
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
  }
  .portal-footer {
    padding: 0.65rem 1rem;
  }
  .btn-enter-site {
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   STYLES D'IMPRESSION & EXPORT PDF (@media print)
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 15mm 15mm 15mm 15mm;
  }

  /* Masquer tous les éléments interactifs et de navigation */
  .nuls-topbar,
  .app-sidebar,
  .portal-overlay,
  .arg-sticky-bar,
  .btn-print-page,
  .btn-copy-fast,
  .arg-pagination-bar,
  .modal-backdrop,
  .toast-notification,
  .drawer-backdrop,
  .nuls-footer,
  .btn-submit-quiz,
  .quiz-options-group,
  .hero-actions,
  .btn-download-pdf-sm {
    display: none !important;
  }

  body {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    font-size: 11pt;
    line-height: 1.5;
  }

  .app-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    display: block !important;
  }

  .app-main {
    padding: 0 !important;
  }

  .argument-detail-view {
    border: none !important;
    box-shadow: none !important;
  }

  .arg-header-bandeau {
    background-color: var(--nuls-yellow) !important;
    border: 2px solid #000000 !important;
    border-radius: 4px !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 1rem !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  .arg-main-title {
    font-size: 18pt !important;
    color: #000000 !important;
  }

  .formula-banner {
    background-color: #000000 !important;
    color: var(--nuls-yellow) !important;
    border: 2px solid #000000 !important;
    padding: 0.6rem 1rem !important;
    margin-bottom: 1rem !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  .arg-body-content {
    padding: 0 !important;
    gap: 1rem !important;
  }

  .nuls-callout {
    border: 2px solid #333333 !important;
    border-radius: 4px !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .callout-header {
    border: 1px solid #000000 !important;
    font-size: 9pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .verse-item {
    page-break-inside: avoid;
    break-inside: avoid;
    border: 1px solid #CCCCCC !important;
    padding: 0.75rem !important;
  }

  .verse-arabic {
    font-size: 16pt !important;
    line-height: 1.8 !important;
    color: #000000 !important;
  }

  .distinction-card,
  .analogie-card {
    page-break-inside: avoid;
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #CCCCCC !important;
    margin-bottom: 0.5rem !important;
  }

  .quick-response-text {
    border: 2px solid #000000 !important;
    background-color: #F9F9F9 !important;
    page-break-inside: avoid;
    break-inside: avoid;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Pied de page d'impression discret */
  .argument-detail-view::after {
    content: "Réfutation du Coranisme — Manuel pratique • Par Salah Eddine Ahmed • ideoise@gmail.com";
    display: block;
    text-align: center;
    font-size: 8pt;
    font-weight: bold;
    color: #666666;
    border-top: 1px solid #CCCCCC;
    padding-top: 0.5rem;
    margin-top: 1.5rem;
  }
}


