/* ========================================
   STYLES ARTICLE - INSPIRÉ DE HOSMAN
   AVEC COULEURS QORIDOR
   ======================================== */

/* Chargement de Bebas Neue depuis le dossier local */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/BebasNeue-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  --qoridor-primary: #141414;
  --qoridor-secondary: #F6F5F0;
  --qoridor-accent: #2c2c2c;
  --qoridor-border: #E7E7E7;
  --qoridor-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  --qoridor-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   BARRE DE PROGRESSION STICKY
   ======================================== */

.sticky-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
}

.progress-container-article {
  position: relative;
  width: 100%;
  height: 100%;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--qoridor-primary);
  width: 0%;
  transition: width 0.1s ease-out;
}

/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */

.article-page-container {
  padding-top: 120px; /* Espace pour le header fixe */
  min-height: 100vh;
  background: white;
}

.article-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.article-main-container {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
}

.article-sidebar-desktop {
  display: none;
  width: 300px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .article-sidebar-desktop {
    display: block;
  }
}

/* ========================================
   EN-TÊTE ARTICLE
   ======================================== */

.article-header {
  margin-bottom: 40px;
}

.article-title {
  font-family: 'SweetSans-Bold', system-ui, sans-serif;
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--qoridor-primary);
  text-align: center;
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
  padding: 0 20px;
  text-transform: uppercase;
}

.article-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--qoridor-primary);
  text-align: center;
  margin: 0 0 40px 0;
  opacity: 0.8;
  font-weight: 400;
  padding: 0 20px;
}

/* ========================================
   BANNIÈRE
   ======================================== */

.article-banner {
  margin: 0 0 40px 0;
  text-align: center;
}

.article-banner-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 2 / 1; /* Force le ratio 1200x600 */
  max-width: 1200px;
  margin: 0 auto;
  display: block;
}

.article-banner-desktop {
  display: block;
}

.article-banner-mobile {
  display: none;
}

@media (max-width: 768px) {
  .article-banner-desktop {
    display: none;
  }
  
  .article-banner-mobile {
    display: block;
  }
}

.article-banner-caption {
  font-size: 0.875rem;
  color: var(--qoridor-primary);
  opacity: 0.6;
  margin-top: 10px;
  text-align: center;
}

/* ========================================
   MÉTADONNÉES
   ======================================== */

.article-meta-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--qoridor-border);
}

.article-meta-left {
  display: flex;
  align-items: center;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.article-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.article-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-author-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--qoridor-primary);
  margin: 0;
}

.article-author-role {
  font-size: 0.875rem;
  color: var(--qoridor-primary);
  opacity: 0.6;
  margin: 0;
}

.article-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.article-reading-time {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--qoridor-primary);
  margin: 0;
}

.article-date {
  font-size: 0.875rem;
  color: var(--qoridor-primary);
  opacity: 0.6;
  margin: 0;
}

@media (max-width: 768px) {
  .article-meta-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .article-meta-right {
    align-items: flex-start;
  }
  
  .article-title {
    font-size: 2.5rem;
  }
  
  .article-subtitle {
    font-size: 1.125rem;
  }
}

/* ========================================
   BOUTON CTA
   ======================================== */

.article-cta-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.article-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--qoridor-primary);
  color: white;
  padding: 14px 24px;
  border-radius: 0;
  text-decoration: none;
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  transition: var(--qoridor-transition);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.article-cta-button:hover {
  background: var(--qoridor-accent);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 20, 20, 0.15);
}

.article-cta-button svg {
  flex-shrink: 0;
}

/* ========================================
   CORPS DE L'ARTICLE
   ======================================== */

.article-body {
  color: #333333;
  font-weight: 400;
}

.article-content {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem; /* 16px comme Hosman */
  line-height: 1.6; /* Modéré comme Hosman */
  color: #333333;
  font-weight: 400;
}

/* ========================================
   SOMMAIRE
   ======================================== */

.article-body > aside {
  background: var(--qoridor-secondary);
  border: 1px solid var(--qoridor-border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 40px;
}

.article-body > aside h2 {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--qoridor-primary);
  margin: 0 0 16px 0;
  text-transform: uppercase;
}

.article-body > aside ul {
  list-style: disc;
  padding-left: 24px;
  margin: 0;
}

.article-body > aside ul li {
  margin-bottom: 8px;
}

.article-body > aside ul li a {
  color: var(--qoridor-primary);
  text-decoration: underline;
  transition: var(--qoridor-transition);
}

.article-body > aside ul li a:hover {
  color: var(--qoridor-accent);
}

/* ========================================
   SECTIONS
   ======================================== */

.article-section {
  margin-bottom: 48px; /* Espacement modéré */
  scroll-margin-top: 100px;
}

.article-section-title {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.75rem; /* 28px comme Hosman */
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 24px 0;
  margin-top: 48px; /* Espacement modéré */
  line-height: 1.3;
  text-transform: none;
  letter-spacing: -0.01em;
}

.article-section:first-child .article-section-title {
  margin-top: 0;
}

.article-section-content {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem; /* 16px comme Hosman */
  line-height: 1.6; /* Modéré comme Hosman */
  color: #333333;
  font-weight: 400;
}

.article-section-content p {
  margin-bottom: 1.25em; /* Espacement modéré */
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
}

.article-section-content strong,
.article-section-content b {
  font-weight: 700;
  color: #333333;
}

.article-section-content em,
.article-section-content i {
  font-style: italic;
  font-weight: 400;
}

.article-section-content a {
  color: var(--qoridor-primary);
  text-decoration: underline;
  transition: var(--qoridor-transition);
}

.article-section-content a:hover {
  color: var(--qoridor-accent);
}

.article-section-content ul,
.article-section-content ol {
  margin: 1.25em 0; /* Espacement modéré */
  padding-left: 1.5em;
  font-weight: 400; /* IMPORTANT: pas de gras */
  font-size: 1rem; /* 16px comme le texte */
  line-height: 1.6;
}

.article-section-content li {
  margin-bottom: 0.5em; /* Espacement réduit */
  font-weight: 400 !important; /* IMPORTANT: force le normal, pas de gras */
  line-height: 1.6;
  font-size: 1rem; /* 16px comme le texte */
}

.article-section-content h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem; /* 18px - plus petit */
  font-weight: 700;
  color: #333333;
  margin: 1.25em 0 0.5em 0; /* Espacement réduit */
  line-height: 1.4;
}

.article-section-content h4 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem; /* 16px - même taille que le texte */
  font-weight: 700;
  color: #333333;
  margin: 1em 0 0.5em 0; /* Espacement réduit */
  line-height: 1.4;
}

.article-section-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.25em 0; /* Espacement modéré */
}

/* S'assurer que les éléments dans les listes ne sont pas en gras par défaut */
.article-section-content li strong,
.article-section-content li b {
  font-weight: 700; /* Seulement les mots en <strong> ou <b> */
}

/* ========================================
   FAQ
   ======================================== */

.article-faq {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--qoridor-border);
}

.article-faq-title {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--qoridor-primary);
  margin: 0 0 24px 0;
  text-transform: none;
  letter-spacing: -0.01em;
}

.article-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-faq-item {
  background: white;
  border: 1px solid var(--qoridor-border);
  border-radius: 8px;
  padding: 20px;
}

.article-faq-question {
  font-weight: 700;
  font-size: 1.125rem;
  color: #333333;
  margin: 0 0 12px 0;
}

.article-faq-answer {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  font-weight: 400;
  margin: 0;
}

/* ========================================
   BREADCRUMB (EN BAS)
   ======================================== */

.article-breadcrumb {
  max-width: 1200px;
  margin: 60px auto 40px;
  padding: 0 20px;
}

.article-breadcrumb.hidden-xs {
  display: none; /* Caché par défaut sur mobile comme Hosman */
}

@media (min-width: 768px) {
  .article-breadcrumb.hidden-xs {
    display: block;
  }
}

.article-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--qoridor-primary);
  opacity: 0.7;
}

.article-breadcrumb-list li {
  display: flex;
  align-items: center;
}

.article-breadcrumb-list a {
  color: var(--qoridor-primary);
  text-decoration: none;
  transition: var(--qoridor-transition);
}

.article-breadcrumb-list a:hover {
  text-decoration: underline;
  opacity: 1;
}

.article-breadcrumb-list span {
  margin: 0 4px;
  opacity: 0.5;
}

.article-breadcrumb-current {
  opacity: 1;
  font-weight: 500;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .article-page-container {
    padding-top: 100px;
  }
  
  .article-content-wrapper {
    padding: 0 16px;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .article-section-title {
    font-size: 1.5rem;
    margin-top: 40px;
  }
  
  .article-section:first-child .article-section-title {
    margin-top: 0;
  }
  
  .article-content,
  .article-section-content {
    font-size: 0.9375rem; /* 15px sur mobile */
    line-height: 1.5;
  }
  
  .article-section-content p {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 1em;
  }
  
  .article-section-content li {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 0.4em;
  }
  
  .article-section-content ul,
  .article-section-content ol {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 1em 0;
  }
  
  .article-section-title {
    font-size: 1.5rem; /* 24px sur mobile */
    margin-top: 40px;
  }
  
  .article-cta-button {
    font-size: 0.875rem;
    padding: 12px 20px;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

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

.article-section:nth-child(1) { animation-delay: 0.1s; }
.article-section:nth-child(2) { animation-delay: 0.2s; }
.article-section:nth-child(3) { animation-delay: 0.3s; }
.article-section:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   UTILITAIRES
   ======================================== */

.scroll-mt-20 {
  scroll-margin-top: 80px;
}

@media (max-width: 768px) {
  .scroll-mt-20 {
    scroll-margin-top: 60px;
  }
}

