/* ==============================================================
   PIKS — pages editoriales longues (pilier SEO, atterrissages, articles)
   A charger APRES css/piks-design.css.
   Une seule feuille pour toutes les pages de contenu : meme rythme,
   memes composants (hero, sommaire, sections, FAQ, encadre, CTA).
   ============================================================== */

.pg-hero { padding: 140px 0 56px; }
.pg-hero .container { max-width: 860px; }
.pg-hero h1 {
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 500;
  margin: 0 0 20px;
}
.pg-hero h1 em { font-style: italic; color: var(--accent); }
.pg-hero .lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--stone);
  margin: 0;
  max-width: 680px;
}
.pg-hero .hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-top: 30px;
}
.pg-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 18px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--stone);
}
.pg-meta .tag { background: var(--accent-tint); color: var(--accent); padding: 4px 10px; border-radius: 999px; }

/* fil d'Ariane */
.crumbs { font-size: 13px; color: var(--stone); margin-bottom: 22px; }
.crumbs a { color: var(--stone); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 8px; opacity: 0.6; }

/* corps */
.pg-body { padding: 8px 0 40px; }
.pg-body .container { max-width: 860px; }
.pg-body h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -0.02em;
  margin: 52px 0 16px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.pg-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.pg-body h3 { font-size: 19px; letter-spacing: -0.012em; margin: 28px 0 10px; }
.pg-body p, .pg-body li { color: var(--ink-soft); font-size: 16.5px; line-height: 1.75; }
.pg-body p { margin: 0 0 16px; }
.pg-body ul, .pg-body ol { padding-left: 22px; margin: 0 0 18px; }
.pg-body li { margin-bottom: 8px; }
.pg-body li::marker { color: var(--accent); }
.pg-body strong { color: var(--ink); font-weight: 600; }
.pg-body a { color: var(--accent); text-decoration: none; }
.pg-body a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pg-body blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
}
.pg-body blockquote p { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink); margin: 0; }

/* sommaire */
.toc {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 26px; margin: 36px 0 44px;
}
.toc .toc-title { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { font-size: 14.5px; padding: 4px 0; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* grilles de cartes */
.pg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0 30px; }
.pg-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.pg-card .n { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent); margin-bottom: 12px; }
.pg-card h3 { margin: 0 0 8px; font-size: 18px; }
.pg-card p { font-size: 14.5px; line-height: 1.6; color: var(--stone); margin: 0; }

/* tableau */
.pg-table { width: 100%; border-collapse: collapse; margin: 20px 0 30px; font-size: 15px; }
.pg-table th, .pg-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pg-table th { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); font-weight: 600; }
.pg-table td { color: var(--ink-soft); line-height: 1.55; }
.pg-table td:first-child { color: var(--ink); font-weight: 600; }
.pg-table-wrap { overflow-x: auto; }

/* encadre */
.pg-note {
  background: var(--lin); border-radius: 12px; padding: 20px 24px; margin: 26px 0;
  font-size: 15px; line-height: 1.65; color: var(--ink-soft);
}
.pg-note strong { color: var(--ink); }

/* chiffres */
.pg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 26px 0 32px; }
.pg-stat { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: #fff; }
.pg-stat .v { font-family: var(--serif); font-size: 40px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.pg-stat .v span { color: var(--accent); }
.pg-stat .l { font-size: 13px; color: var(--stone); margin-top: 8px; line-height: 1.45; }

/* FAQ */
.pg-faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.pg-faq details:last-child { border-bottom: 1px solid var(--line); }
.pg-faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: center;
  font-family: var(--serif); font-size: 19px; color: var(--ink); font-weight: 500;
}
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; flex: 0 0 auto; }
.pg-faq details[open] summary::after { content: "−"; }
.pg-faq details p { margin: 12px 0 0; font-size: 15.5px; }

/* CTA final */
.pg-cta { padding: 20px 0 10px; }
.pg-cta .container { max-width: 1000px; }
.pg-cta .box {
  background: var(--ink); color: var(--cream); border-radius: 18px;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px); text-align: center; position: relative; overflow: hidden;
}
.pg-cta .box::before { content: ""; position: absolute; left: 50%; top: 26px; transform: translateX(-50%); width: 9px; height: 9px; background: var(--accent); border-radius: 2px; }
.pg-cta h2 { color: var(--cream); font-size: clamp(26px, 3.4vw, 40px); margin: 24px auto 14px; max-width: 20ch; letter-spacing: -0.02em; }
.pg-cta p { color: rgba(244,242,236,0.72); max-width: 54ch; margin: 0 auto 28px; font-size: 16px; line-height: 1.6; }
.pg-cta .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.pg-cta .btn-cta-secondary { color: var(--cream); }

/* liens "a lire aussi" */
.pg-related { padding: 30px 0 0; }
.pg-related .container { max-width: 1000px; }
.pg-related h2 { font-size: 22px; margin: 0 0 18px; }
.pg-related .list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.pg-related a {
  display: block; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px;
  text-decoration: none; color: inherit; transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pg-related a:hover { transform: translateY(-2px); border-color: var(--accent-ring); }
.pg-related a .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.pg-related a .t { font-family: var(--serif); font-size: 18px; line-height: 1.3; color: var(--ink); }

@media (max-width: 768px) {
  .pg-hero { padding: 118px 0 40px; }
  .pg-body h2 { margin-top: 40px; }
}

/* Sur telephone, un tableau a 4 ou 5 colonnes devient illisible (une colonne de
   quelques lettres de large) : chaque ligne devient une fiche empilee, la 1re
   cellule (en gras) sert de titre. */
@media (max-width: 640px) {
  .pg-table, .pg-table tbody, .pg-table tr, .pg-table td { display: block; width: 100%; }
  .pg-table thead { display: none; }
  .pg-table tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .pg-table td { border: none; padding: 3px 0; font-size: 14.5px; }
  .pg-table td:first-child { font-family: var(--serif); font-size: 18px; padding-bottom: 6px; }
}
