/* ==========================================================================
   Thot Advisory — grammaire v2 pour les pages intérieures
   Rhabille les gabarits existants (page-hero, article, note, timeline, faq,
   sources, article-cta, pdv-item) dans le langage de la home claire.
   Se charge APRÈS v2.css (palette et composants de base).
   ========================================================================== */

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--nuit); color: var(--blanc); padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
.scroll-progress, .page-transition { display: none; }

/* ---------- hero de page ---------- */
.page-hero { padding: 140px 0 40px; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--royal); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 2px; }

.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--hair); border-radius: 999px;
  padding: 6px 14px; background: var(--blanc); margin-bottom: 18px;
}
.page-hero__eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--jaspe); }

.page-hero__title {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.025em;
  max-width: 760px; margin-bottom: 18px;
}
.page-hero__lead { font-size: 1.1rem; line-height: 1.6; color: var(--muted); max-width: 720px; }
.page-hero__lead strong { color: var(--ink); }
.page-hero__meta { font-size: 0.84rem; color: var(--muted); margin-top: 16px; opacity: 0.85; }

/* ---------- corps d'article ---------- */
.article { padding: 24px 0 56px; }
.article h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800; letter-spacing: -0.015em; line-height: 1.2;
  margin: 44px 0 16px;
}
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.12rem; font-weight: 700; margin: 28px 0 10px; }
.article p { font-size: 1rem; line-height: 1.7; margin-bottom: 14px; color: rgba(0, 9, 48, 0.82); }
.article p strong { color: var(--ink); }
.article > .container--narrow > ul, .article ul:not(.pts) { margin: 0 0 16px; padding-left: 2px; }
.article ul li {
  font-size: 0.98rem; line-height: 1.65; color: rgba(0, 9, 48, 0.82);
  padding-left: 18px; position: relative; margin-bottom: 9px; list-style: none;
}
.article ul li::before {
  content: ''; position: absolute; left: 2px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--jaspe);
}
.article li strong { color: var(--ink); }
.article a:not(.btn) { color: var(--royal); font-weight: 600; }
.article a:not(.btn):hover { text-decoration: underline; text-underline-offset: 3px; }
.link-underline { color: var(--royal); font-weight: 600; }

/* ---------- encadrés ---------- */
.note {
  background: var(--blanc); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: 24px 28px; margin: 26px 0;
}
.note--alert { border-left: 4px solid var(--jaspe); }
.note__title {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--jaspe); margin-bottom: 10px;
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

/* ---------- timeline -> cartes numérotées ---------- */
.timeline { display: grid; gap: 14px; margin: 24px 0; counter-reset: step; }
.timeline__item {
  background: var(--blanc); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: 20px 24px;
  display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start;
}
.timeline__date { font-size: 0.95rem; font-weight: 800; color: var(--jaspe); letter-spacing: -0.01em; line-height: 1.35; }
.timeline__what { font-size: 0.95rem; line-height: 1.6; color: rgba(0, 9, 48, 0.82); }
.timeline__what strong { color: var(--ink); }
@media (max-width: 640px) { .timeline__item { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- FAQ ---------- */
.faq { margin: 20px 0 8px; }
.faq__item { border-top: 1px solid var(--hair-soft); padding: 20px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--hair-soft); }
.faq__q { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.faq__a { font-size: 0.96rem; line-height: 1.65; color: rgba(0, 9, 48, 0.8); margin: 0; }

/* ---------- sources ---------- */
.sources {
  margin-top: 36px; padding: 20px 24px;
  background: var(--royal-pale); border-radius: var(--radius);
  font-size: 0.86rem; color: var(--muted);
}
.sources p { font-size: 0.86rem; color: var(--muted); margin-bottom: 8px; }
.sources ul li { font-size: 0.86rem; margin-bottom: 5px; }
.sources a { color: var(--royal); }

/* ---------- CTA de fin d'article : carte bleu nuit ---------- */
.article-cta { padding: 8px 0 64px; }
.article-cta .container--narrow {
  background: var(--nuit); border-radius: var(--radius);
  padding: 44px 48px; text-align: left; color: var(--blanc);
  position: relative; overflow: hidden;
}
.article-cta h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 10px; }
.article-cta p { font-size: 0.98rem; line-height: 1.6; color: var(--royal-400); max-width: 560px; margin-bottom: 22px; }
.article-cta .btn, .article-cta .btn-primary {
  display: inline-flex; align-items: center; white-space: nowrap;
  background: var(--jaspe); color: var(--blanc); font-weight: 700; font-size: 0.98rem;
  padding: 15px 28px; border-radius: 999px; border: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.article-cta .btn:hover, .article-cta .btn-primary:hover { background: var(--jaspe-dark); transform: translateY(-1px); }

/* anciens boutons (classes v1 encore présentes dans le contenu) */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  background: var(--jaspe); color: var(--blanc); font-weight: 700; font-size: 0.95rem;
  padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover { background: var(--jaspe-dark); transform: translateY(-1px); color: var(--blanc); text-decoration: none !important; }

/* ---------- liste Points de vue ---------- */
.pdv-item {
  background: var(--blanc); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: 28px 32px; margin-bottom: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pdv-item:hover { border-color: rgba(0, 9, 48, 0.25); box-shadow: 0 12px 36px rgba(0, 9, 48, 0.07); }
.pdv-item__meta { font-size: 0.8rem; font-weight: 600; color: var(--royal); margin-bottom: 8px; }
.article .pdv-item__title, .pdv-item__title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 8px; }
.pdv-item__title a { color: var(--ink) !important; font-weight: 800; }
.pdv-item__title a:hover { color: var(--royal) !important; text-decoration: none !important; }
.pdv-item__excerpt { font-size: 0.95rem; color: var(--muted); margin-bottom: 12px; }
.pdv-item__more { font-size: 0.92rem; font-weight: 700; color: var(--jaspe) !important; }
.pdv-item__more:hover { text-decoration: underline !important; text-underline-offset: 3px; }


/* ---------- pages légales ---------- */
.page-hero h1 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 10px; }
.page-hero .container > p { font-size: 1.02rem; color: var(--muted); }
.mentions-content, .policy-content { padding-top: 16px; }
.mentions-info-block {
  background: var(--blanc); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: 20px 26px; margin: 14px 0 20px;
}
.mentions-info-block p { margin-bottom: 6px; font-size: 0.95rem; }
.mentions-info-block p:last-child { margin-bottom: 0; }
.last-updated { font-size: 0.84rem; color: var(--muted); opacity: 0.85; }
.back-link, .mentions-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 28px; font-weight: 700; font-size: 0.95rem; color: var(--jaspe) !important;
}
.back-link:hover, .mentions-back-link:hover { text-decoration: underline !important; text-underline-offset: 3px; }
