/* fisc-dep-notice.css - Styles spécifiques pour le guide fiscal */

:root {
  --primary: #10b981;
  --secondary: #3b82f6;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #1f2937;
  --light: #f3f4f6;
  --border: #e5e7eb;
  --text: #374151;
  --success: #10b981;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:
    0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
}

/* ========== CONTENEUR PRINCIPAL ========== */
.doc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== TABLE DES MATIÈRES ========== */
.toc {
  background: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  margin-bottom: 50px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary);
}

.toc h2 {
  color: var(--dark);
  margin-bottom: 20px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.toc-item {
  padding: 12px 15px;
  background: var(--light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.toc-item:hover {
  background: white;
  border-left-color: var(--primary);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.toc-item a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.toc-item a:hover {
  color: var(--primary);
}

/* ========== SECTIONS ========== */
.doc-section {
  background: white;
  padding: 50px;
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  scroll-margin-top: 100px;
  animation: fadeIn 0.5s ease-out;
}

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

.doc-section h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.doc-section h3 {
  color: var(--dark);
  font-size: 1.4rem;
  margin-top: 35px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-section h4 {
  color: var(--text);
  font-size: 1.1rem;
  margin-top: 20px;
  margin-bottom: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-divider {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--secondary),
    transparent
  );
  margin-bottom: 30px;
}

/* ========== CARTES ========== */
.card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-left: 4px solid var(--primary);
  padding: 25px;
  margin: 20px 0;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card.info {
  border-left-color: var(--secondary);
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.card.warning {
  border-left-color: var(--warning);
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.card.success {
  border-left-color: var(--primary);
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.card.danger {
  border-left-color: var(--danger);
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--dark);
  font-size: 1.05rem;
}

/* ========== GRILLE 2 COLONNES ========== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

/* ========== LISTE DE FEATURES ========== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: var(--light);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
  min-width: 24px;
}

.feature-item div h4 {
  margin: 0 0 8px 0;
  color: var(--dark);
  font-size: 1rem;
}

.feature-item div p {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ========== BLOCS DE CODE ET MOCKUPS ========== */
.code-block, .mockup {
  background: var(--dark);
  color: #e5e7eb;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 20px 0;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.mockup {
  background: #f5f5f5;
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 4px solid var(--warning);
}

/* ========== TABLEAUX ========== */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: white;
}

.doc-table thead {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.doc-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doc-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.doc-table tbody tr {
  transition: all 0.3s ease;
}

.doc-table tbody tr:hover {
  background: var(--light);
  box-shadow: inset 3px 0 0 var(--primary);
}

.doc-table tbody tr:last-child td {
  border-bottom: none;
}

/* ========== FAQ ========== */
.faq-item {
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  background: var(--light);
  padding: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--dark);
  transition: background 0.3s ease;
  user-select: none;
}

.faq-question:hover {
  background: #e5e7eb;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--primary);
  font-size: 1.1rem;
}

.faq-item.active .faq-question {
  background: white;
  border-bottom: 2px solid var(--primary);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 20px;
  background: white;
  display: none;
  border-top: 1px solid var(--border);
  line-height: 1.7;
  color: var(--text);
}

.faq-answer strong {
  color: var(--dark);
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* ========== CASE STUDIES ========== */
.case-study {
  background: linear-gradient(135deg, var(--light) 0%, white 100%);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 30px 0;
  box-shadow: var(--shadow-md);
}

.case-study h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 15px;
  margin-top: 0;
}

.case-study ul {
  margin: 10px 0 0 20px;
  line-height: 1.8;
  color: var(--text);
}

.case-study li {
  margin-bottom: 8px;
}

.case-study-result {
  margin-top: 20px !important;
}

.case-study-box {
  background: var(--light);
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
  line-height: 1.8;
  color: var(--text);
}

/* ========== HIGHLIGHT ========== */
.highlight {
  background: linear-gradient(
    120deg,
    rgba(16, 185, 129, 0.2),
    rgba(59, 130, 246, 0.2)
  );
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  margin: 20px 0;
  line-height: 1.7;
  color: var(--text);
}

.highlight strong {
  color: var(--dark);
  font-size: 1.05rem;
}

/* ========== STAT CARDS ========== */
.stat-card {
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-card-primary {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border-left-color: var(--primary);
}

.stat-card-primary .stat-value {
  color: var(--primary);
}

.stat-card-secondary {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-left-color: var(--secondary);
}

.stat-card-secondary .stat-value {
  color: var(--secondary);
}

.stat-card-warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-left-color: var(--warning);
}

.stat-card-warning .stat-value {
  color: var(--warning);
}

.stat-card-success {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-left-color: var(--primary);
}

.stat-card-success .stat-value {
  color: var(--primary);
}

/* ========== TABLE WRAPPER ========== */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-md);
}

/* ========== FOOTER ========== */
.doc-footer {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 60px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary);
}

.doc-footer h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.doc-footer p {
  margin: 15px 0;
  color: #6b7280;
  line-height: 1.6;
}

.doc-footer strong {
  color: var(--dark);
}

/* ========== LISTES ========== */
.doc-section ul {
  margin: 15px 0 15px 20px;
  line-height: 1.8;
  color: var(--text);
}

.doc-section li {
  margin-bottom: 8px;
}

.doc-section li strong {
  color: var(--dark);
}

.guide-list {
  margin: 15px 0 0 20px;
  line-height: 1.8;
  color: var(--text);
}

.guide-list li {
  margin-bottom: 8px;
}

.guide-list li strong {
  color: var(--dark);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .doc-container {
    padding: 0 15px;
  }

  .doc-section {
    padding: 30px 20px;
    margin-bottom: 30px;
  }

  .doc-section h2 {
    font-size: 1.6rem;
  }

  .doc-section h3 {
    font-size: 1.2rem;
    margin-top: 25px;
  }

  .toc-list {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .toc {
    padding: 20px;
  }

  .case-study {
    padding: 20px;
  }

  .doc-table {
    font-size: 0.85rem;
  }

  .doc-table th,
  .doc-table td {
    padding: 10px 8px;
  }

  .main-header {
    padding: 40px 20px;
    flex-direction: column;
    text-align: center;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .doc-section {
    padding: 20px;
  }

  .doc-section h2 {
    font-size: 1.4rem;
  }

  .doc-section h3 {
    font-size: 1.1rem;
  }

  .toc {
    padding: 15px;
  }

  .toc h2 {
    font-size: 1.1rem;
  }

  .code-block,
  .mockup {
    padding: 15px;
    font-size: 0.85rem;
    overflow-x: auto;
  }

  .doc-table {
    font-size: 0.8rem;
  }

  .main-header {
    padding: 30px 15px;
  }

  .page-title {
    font-size: 1.5rem;
  }
}

/* ========== SMOOTH SCROLL ========== */
html {
  scroll-behavior: smooth;
}

/* ========== LIENS ANCHOR ========== */
a[href^="#"] {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a[href^="#"]:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.text-primary {
  color: var(--primary);
}
.text-dark {
  color: var(--dark);
}
.card-spaced {
  margin: 20px 0;
}
.list-indented {
  margin: 10px 0 0 20px;
}
.footer-meta {
  margin-top: 30px;
  font-size: 0.9em;
}
/* Animation de surbrillance pour la table des matières */
@keyframes highlight {
  0% {
    background-color: rgba(16, 185, 129, 0.2);
  }
  100% {
    background-color: transparent;
  }
}

.section-highlight {
  animation: highlight 0.6s ease-out;
}

/* Style pour l'item FAQ actif (déjà géré par votre JS) */
.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* WORKFLOW */
.workflow {
  background: var(--light);
  padding: 30px;
  border-radius: 8px;
  margin: 20px 0;
}

.workflow-step {
  display: flex;
  align-items: center;
  margin: 15px 0;
  gap: 20px;
}

.workflow-step-number {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.workflow-step-content {
  flex: 1;
  font-size: 0.95em;
}

.workflow-step-content strong {
  color: var(--dark);
}

.workflow-arrow {
  text-align: center;
  color: var(--primary);
  font-size: 1.5em;
  margin: -5px 0;
}
