/* BREADCRUMB */
.breadcrumb {
  max-width: 760px;
  margin: 88px auto 0;
  padding: 16px 24px 0;
  font-size: 0.82rem;
  color: var(--gray-400);
}
.breadcrumb a {
  color: var(--gray-400);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--blue);
}
.breadcrumb span {
  margin: 0 6px;
}

/* ARTICLE */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 100px;
}
.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--teal-light);
  color: var(--teal);
}
.article-date,
.reading-time {
  font-size: 0.78rem;
  color: var(--gray-400);
}
h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 20px;
}
.intro {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.75;
  border-left: 3px solid var(--teal);
  padding-left: 16px;
  margin-bottom: 36px;
}
.article-thumb {
  height: 200px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-light) 0%, #e0f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  margin-bottom: 40px;
}
h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 40px 0 12px;
}
h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 28px 0 10px;
}
p {
  font-size: 0.97rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}
ul,
ol {
  margin: 0 0 16px 22px;
}
li {
  font-size: 0.97rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 8px;
}
strong {
  color: var(--gray-800);
}

/* TABLE DES MATIÈRES — bloc isolé dans le flux normal de l’article */
.logiverif-article-toc {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  width: 100%;
  max-width: 100%;
  margin: 32px 0 44px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  clear: both;
}
.logiverif-article-toc h2 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: var(--gray-900);
  font-size: 1.05rem;
  line-height: 1.25;
}
.logiverif-article-toc p {
  margin: 0 0 16px;
  color: var(--gray-500);
  font-size: 0.92rem;
  line-height: 1.6;
}
.logiverif-article-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 0;
  padding-left: 20px;
}
.logiverif-article-toc li {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.94rem;
  line-height: 1.45;
}
.logiverif-article-toc a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.logiverif-article-toc a:hover {
  text-decoration: underline;
}

/* HERO STATS */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 40px;
}
.hero-stat {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
}
.hero-stat .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat .desc {
  font-size: 0.78rem;
  color: var(--gray-400);
  line-height: 1.35;
}

/* QUARTIER CARD */
.quartier-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.quartier-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.quartier-emoji {
  font-size: 2.4rem;
  flex-shrink: 0;
}
.quartier-header-text h2 {
  font-size: 1.15rem;
  margin: 0 0 4px;
}
.quartier-header-text .tagline {
  font-size: 0.83rem;
  color: var(--gray-400);
  margin: 0;
  font-style: italic;
}
.quartier-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--gray-200);
}
.stat {
  padding: 14px 12px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}
.stat:last-child {
  border-right: none;
}
.stat .label {
  font-size: 0.7rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.stat .value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-900);
}
.scores {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 24px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.score-label {
  font-size: 0.78rem;
  color: var(--gray-600);
  width: 130px;
  flex-shrink: 0;
}
.score-bar-wrap {
  flex: 1;
  height: 7px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}
.score-bar {
  height: 100%;
  border-radius: 4px;
  background: var(--blue);
}
.score-bar.green {
  background: var(--green);
}
.score-bar.orange {
  background: var(--orange);
}
.score-bar.red {
  background: var(--red);
}
.score-bar.teal {
  background: var(--teal);
}
.quartier-body {
  padding: 18px 24px;
}
.quartier-body p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tag {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--gray-100);
  color: var(--gray-700);
}
.tag.green {
  background: var(--green-light);
  color: var(--green);
}
.tag.blue {
  background: var(--blue-light);
  color: var(--blue);
}
.tag.orange {
  background: #fffbeb;
  color: #92400e;
}
.tag.red {
  background: #fef2f2;
  color: var(--red);
}
.tag.teal {
  background: var(--teal-light);
  color: var(--teal);
}

/* CALLOUTS */
.callout {
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--blue-light);
}
.callout p {
  color: var(--gray-700) !important;
  margin: 0 !important;
  font-size: 0.92rem !important;
}
.callout.warning {
  background: #fffbeb;
  border-color: var(--orange);
}
.callout.danger {
  background: #fef2f2;
  border-color: var(--red);
}
.callout.success {
  background: var(--green-light);
  border-color: var(--green);
}
.callout.teal {
  background: var(--teal-light);
  border-color: var(--teal);
}

/* COMPARE TABLE */
.compare-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  min-width: 520px;
}
th {
  background: var(--gray-900);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
}
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: none;
}
tr:nth-child(even) td {
  background: var(--gray-50);
}
td:first-child {
  font-weight: 700;
  color: var(--gray-900);
}
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
}
.badge.green {
  background: var(--green-light);
  color: var(--green);
}
.badge.orange {
  background: #fffbeb;
  color: #92400e;
}
.badge.red {
  background: #fef2f2;
  color: var(--red);
}

/* CHECKLIST */
.checklist {
  list-style: none;
  margin: 0 0 24px;
}
.checklist li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 10px;
}
.checklist li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

/* TIP BOX */
.tip-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.tip-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-800);
}
.tip-box ul {
  margin: 0 0 0 16px;
}
.tip-box ul li {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 6px;
}

/* FAQ */
.faq-section {
  margin: 48px 0;
}
.faq-section h2 {
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 12px;
  margin-bottom: 24px;
}
details {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 12px;
}
summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-800);
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--teal);
}
details[open] summary::after {
  content: "−";
}
details p {
  padding: 0 20px 16px;
  font-size: 0.93rem;
  color: var(--gray-600);
}

/* RELATED */
.related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--gray-200);
}
.related h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.related-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  display: block;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.related-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.related-card .emoji {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.related-card h4 {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
}

@media (max-width: 768px) {
  .logiverif-article-toc ol {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats .hero-stat:last-child {
    grid-column: 1 / -1;
  }
  .quartier-header {
    flex-direction: column;
  }
  .quartier-image {
    width: 100%;
  }
  .quartier-image img {
    height: 200px;
  }
  .quartier-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .quartier-stats .stat:nth-child(2) {
    border-right: none;
  }
  .quartier-stats .stat:nth-child(3) {
    border-top: 1px solid var(--gray-200);
    grid-column: 1 / -1;
  }
}
