/* ─────────────────────────────────────────────────────────
   Tania — styles dédiés aux pages "article" (pilier SEO)
   Aligné sur les tokens de css/site.css (DA unifiée)
   ───────────────────────────────────────────────────────── */

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

.article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
  margin: 3rem 0 1rem;
  scroll-margin-top: 90px;
}

.article h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
  margin: 2rem 0 0.65rem;
}

.article p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}

.article p strong, .article li strong { color: var(--ink); font-weight: 600; }

.article ul, .article ol {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: 0.4rem; }

.article a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.article a:hover { color: var(--ink-soft); text-decoration-thickness: 2px; }

/* Boutons CTA — pas de soulignement, texte blanc le cas échéant */
.article a.hero-cta-primary,
.article a.hub-btn-primary,
.article a.cta-button { text-decoration: none; }
.article a.hero-cta-primary,
.article a.hero-cta-primary:hover,
.article a.hub-btn-primary,
.article a.hub-btn-primary:hover { color: #fff; }
.article a.cta-button,
.article a.cta-button:hover { color: var(--emerald-deep); }
.article a.hero-cta-secondary,
.article a.hub-btn-secondary { color: var(--emerald-deep); }
.article a.hero-cta-secondary:hover,
.article a.hub-btn-secondary:hover { color: var(--forest); }

/* Lede / chapeau */
.article .lede { font-size: 18.5px; line-height: 1.65; color: var(--ink-soft); }

/* ─── Callouts ─── */
.callout {
  border-left: 4px solid var(--line);
  background: var(--mint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
}
.callout-title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-deep);
  margin: 0 0 0.6rem;
}
.callout p, .callout ul { margin-bottom: 0.5rem; font-size: 16px; color: var(--ink-soft); }
.callout ul { padding-left: 1.25rem; }
.callout li { margin-bottom: 0.3rem; }

.callout-info {
  border-left-color: var(--line);
  background: var(--mist);
}
.callout-info .callout-title { color: var(--emerald-deep); }

.callout-light {
  border-left-color: var(--line);
  background: var(--mist);
}
.callout-light .callout-title { color: var(--ink-faint); }

/* ─── Table of contents ─── */
.toc {
  background: var(--mist);
  border: 2.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.4rem 1.6rem;
  margin: 2.5rem 0;
}
.toc-title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.85rem;
}
.toc ol {
  list-style: decimal;
  padding-left: 1.4rem;
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
}
.toc li { margin-bottom: 0.4rem; }
.toc a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--rowline);
}
.toc a:hover { color: var(--emerald-deep); border-bottom-color: var(--emerald-deep); }

/* ─── Tables ─── */
.article-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--paper);
  border: 2.5px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.article-table th, .article-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--rowline);
  vertical-align: top;
  color: var(--ink-soft);
}
.article-table th {
  background: var(--mist);
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.article-table tr:last-child td { border-bottom: none; }
.article-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ─── Bloc réponse FAQ ─── */
.answer-block {
  background: var(--mist);
  border: 2.5px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0 2rem;
}
.answer-block .answer-q {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.5rem;
  font-size: 16.5px;
  letter-spacing: 0;
}
.answer-block .answer-r {
  color: var(--ink-soft);
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* ─── Source ─── */
.source-line {
  font-size: 14px;
  color: var(--ink-faint);
  margin-top: 0.5rem;
}

/* ─── Checklist ─── */
.checklist {
  list-style: none;
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: var(--mist);
  border: 2.5px solid var(--line);
  border-radius: var(--r-md);
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.55rem 0;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 2px solid var(--rowline);
}
.checklist li:last-child { border-bottom: none; }
.checklist input[type="checkbox"] {
  margin-top: 0.35rem;
  width: 18px;
  height: 18px;
  accent-color: #25D366;
  flex-shrink: 0;
}

/* ─── FAQ accordéons ─── */
.faq-list { margin: 1.5rem 0 2rem; }
.faq-item {
  border: 2.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.75rem;
  background: var(--paper);
  transition: .12s;
}
.faq-item[open] {
  border-color: var(--line);
  box-shadow: 3px 3px 0 var(--shg);
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  font-size: 16.5px;
  letter-spacing: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: #25D366;
  font-weight: 400;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}
.faq-item .faq-answer p { margin: 0; font-size: 16px; color: var(--ink-soft); }

/* ─── CTA section ─── */
.article-cta {
  background: var(--wa);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0 2rem;
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.article-cta h2 {
  font-family: var(--font-display);
  color: var(--wat);
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  letter-spacing: 0;
  font-weight: 400;
}
.article-cta p { color: var(--wap); margin: 0 0 1.5rem; font-size: 17px; line-height: 1.6; }
.article-cta .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--grad);
  color: var(--gradink);
  border: 2.5px solid var(--line);
  box-shadow: 3px 3px 0 var(--shg);
  font-family: var(--font-body);
  font-weight: 700;
  padding: 1rem 1.8rem;
  border-radius: var(--r-md);
  text-decoration: none;
  font-size: 16px;
  box-shadow: 3px 3px 0 var(--sh);
  transition: .12s;
}
.article-cta .cta-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--shg);
  color: var(--gradink);
}
.article-cta .cta-fine { font-size: 13px; color: var(--wap); margin-top: 1rem; }

/* ─── Related articles ─── */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
@media (min-width: 720px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}
.related-card {
  display: block;
  background: var(--paper);
  border: 2.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  transition: .12s;
}
.related-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--sh);
}
.related-card .related-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  font-size: 16.5px;
  letter-spacing: 0;
  margin: 0 0 0.35rem;
}
.related-card .related-sub {
  font-size: 14.5px;
  color: var(--ink-faint);
  margin: 0;
  line-height: 1.55;
}

/* ─── Cartes "à venir" (non cliquables) ─── */
.related-card--upcoming {
  background: var(--mist);
  border-color: var(--line);
  cursor: default;
  opacity: 0.92;
  transform: none !important;
  box-shadow: none !important;
}
.related-card--upcoming:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}
.related-card--upcoming .related-title {
  color: var(--ink-faint);
  margin-top: 0.6rem;
}
.related-card--upcoming .related-sub {
  color: var(--ink-faint);
}
.upcoming-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 0 0 1.5rem;
}
.breadcrumb a {
  color: var(--ink-faint);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--emerald-deep); }
.breadcrumb-sep { margin: 0 0.4rem; color: var(--line-strong); }

/* ─── Updated date ─── */
.article-meta {
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--rowline);
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
  .article-container { padding: 40px 20px 64px; }
  .article h1 { font-size: 1.75rem; }
  .article h2 { font-size: 1.4rem; margin-top: 2.5rem; }
  .article h3 { font-size: 1.1rem; }
  .article p, .article ul, .article ol { font-size: 16px; }
  .toc { padding: 1.1rem 1.2rem; }
  .article-cta { padding: 2rem 1.25rem; }
  .article-cta h2 { font-size: 1.35rem; }
  .article-table { font-size: 14px; }
  .article-table th, .article-table td { padding: 0.65rem 0.75rem; }
}

/* ─── Encarts factorisés (ex-styles inline) ─── */
.inline-cta {
  text-align: center;
  margin: 1.75rem 0 2.25rem;
  padding: 1rem 1.25rem;
  background: var(--tagok);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  font-size: 1.02rem;
}
.disclaimer {
  margin-top: 2rem;
  background: var(--mist);
  border: 2.5px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* ══ MOTION PASS — entrée douce des pages articles ══ */
@keyframes article-in{from{opacity:0;transform:translateY(14px);}to{opacity:1;transform:none;}}
.article-container > div:first-child{animation:article-in .5s cubic-bezier(.22,.61,.36,1) both;}
.article-container .article{animation:article-in .6s .1s cubic-bezier(.22,.61,.36,1) both;}
@media (prefers-reduced-motion:reduce){
  .article-container > div:first-child,.article-container .article{animation:none;}
}
