/**
 * DESIGN MINIMALISTE & PROFESSIONNEL
 * Épuré, élégant, scannable
 */

/* ============================================
   INDICATEUR DE PROGRESSION (Haut de page)
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 9999;
}

.reading-progress-bar {
  height: 100%;
  background: #111827;
  transition: width 0.2s ease;
}

/* ============================================
   NAVIGATION MINIMALE (Dots sur le côté)
   ============================================ */
.minimal-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
}

.minimal-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-dot {
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  background: #d1d5db;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-dot::after {
  content: attr(data-title);
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.375rem 0.75rem;
  background: #111827;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-dot:hover {
  background: #6b7280;
  transform: scale(1.3);
}

.nav-dot:hover::after {
  opacity: 1;
}

.nav-dot.active {
  background: #111827;
  width: 12px;
  height: 12px;
}

@media (max-width: 1024px) {
  .minimal-nav {
    display: none;
  }
}

/* ============================================
   SECTIONS AVEC TEASER VISIBLE
   ============================================ */
.clean-section {
  margin: 3rem 0;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 3rem;
}

.clean-section:last-child {
  border-bottom: none;
}

/* Titre de section (non cliquable) */
.clean-header-static {
  padding: 0 0 1rem 0;
  margin-bottom: 1rem;
}

.clean-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Teaser (toujours visible) */
.clean-teaser {
  padding-left: 0;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 1rem;
}

.clean-teaser p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.clean-teaser ul,
.clean-teaser ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.clean-teaser li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.clean-teaser strong {
  color: #111827;
  font-weight: 600;
}

/* Bouton "Lire la suite" */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1.5rem 0;
  padding: 0.625rem 1.25rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.read-more-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #111827;
}

.read-more-btn span::after {
  content: ' →';
  transition: transform 0.2s ease;
  display: inline-block;
}

.read-more-btn:hover span::after {
  transform: translateX(2px);
}

/* Contenu restant (masqué/visible) */
.clean-remaining {
  padding-left: 0;
  line-height: 1.8;
  color: #374151;
}

.clean-remaining p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.clean-remaining ul,
.clean-remaining ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.clean-remaining li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.clean-remaining strong {
  color: #111827;
  font-weight: 600;
}

.clean-remaining h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

/* ============================================
   LISTES ÉLÉGANTES
   ============================================ */
.clean-content ul li::marker {
  color: #d1d5db;
}

.show-more-btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.show-more-btn:hover {
  color: #111827;
}

/* ============================================
   FAQ MINIMALISTES
   ============================================ */
.faq-item {
  margin: 1.5rem 0 !important;
  padding: 1.5rem 0 !important;
  border-bottom: 1px solid #f3f4f6 !important;
  border-left: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.faq-item:last-child {
  border-bottom: none !important;
}

.faq-item.open {
  border-bottom-color: #e5e7eb !important;
}

.faq-clean {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: #111827 !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
}

.faq-toggle-clean {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #f3f4f6;
  border-radius: 4px;
  font-size: 1.125rem;
  color: #6b7280;
  font-weight: 400;
  transition: all 0.2s ease;
}

.faq-item:hover .faq-toggle-clean {
  background: #e5e7eb;
  color: #111827;
}

.faq-answer-clean {
  margin-top: 1rem !important;
  padding-left: 0 !important;
  color: #6b7280 !important;
  line-height: 1.7 !important;
  font-size: 1rem !important;
}

/* ============================================
   TABLEAUX MINIMALISTES
   ============================================ */
.table-clean-wrapper {
  margin: 2rem 0;
  overflow-x: auto;
  border: 1px solid #f3f4f6;
  border-radius: 0;
}

.table-clean {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.table-clean thead {
  background: #fafafa;
  border-bottom: 2px solid #e5e7eb;
}

.table-clean th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #111827;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.table-clean td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

.table-clean tbody tr:last-child td {
  border-bottom: none;
}

.table-clean tbody tr {
  transition: background 0.15s ease;
}

.table-clean tbody tr:hover {
  background: #fafafa;
}

/* ============================================
   ESPACEMENT & TYPOGRAPHIE GLOBALE
   ============================================ */
.prose {
  max-width: 75ch;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.prose h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.25rem;
  color: #374151;
  line-height: 1.8;
}

.prose .lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #111827;
  margin-bottom: 2rem;
}

/* Amélioration des blocs colorés existants */
.prose .bg-blue-50,
.prose .bg-brand-50 {
  background: #fafafa !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  border-left: 3px solid #111827 !important;
  padding: 1.5rem !important;
  margin: 2rem 0 !important;
}

.prose .bg-blue-50 h3,
.prose .bg-brand-50 h3 {
  margin-top: 0 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #111827 !important;
  letter-spacing: 0 !important;
}

/* ============================================
   GRILLES SIMPLIFIÉES
   ============================================ */
.prose .grid {
  gap: 1.5rem;
}

.prose .grid > div {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.prose .grid > div:hover {
  border-color: #d1d5db;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .clean-section {
    margin: 2rem 0;
    padding-bottom: 2rem;
  }

  .clean-title {
    font-size: 1.375rem;
  }

  .read-more-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .prose h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
  }
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */
.read-more-btn:focus,
.show-more-btn:focus,
.faq-clean:focus,
.nav-dot:focus {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* ============================================
   REMOVED: Problematic white text forcing code
   This was causing white text on light backgrounds (bg-*-50)
   If you need white text on dark backgrounds, use Tailwind's
   text-white class directly in your HTML
   ============================================ */

/* ============================================
   SECTION-CONTENT: Styles pour city-page.php
   Applique les mêmes styles que .prose
   ============================================ */
.section-content {
  max-width: 75ch;
  margin: 0 auto;
}

.section-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.section-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
}

.section-content p {
  margin-bottom: 1rem;
  color: #374151;
  line-height: 1.75;
}

.section-content ul,
.section-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.section-content ul {
  list-style-type: disc;
}

.section-content ol {
  list-style-type: decimal;
}

.section-content li {
  margin-bottom: 0.5rem;
  color: #374151;
  line-height: 1.6;
}

.section-content strong {
  color: #111827;
  font-weight: 600;
}

.section-content a {
  color: var(--brand-600, #2563eb);
  text-decoration: underline;
}

.section-content a:hover {
  color: var(--brand-700, #1d4ed8);
}

@media (max-width: 768px) {
  .section-content h2 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }

  .section-content h3 {
    font-size: 1.125rem;
    margin-top: 1rem;
  }
}

