/* ============================================================
   JachèteOuPas — Styles partagés pages SEO
   Crème / Encre / Rouge — Playfair + Outfit
   ============================================================ */

:root {
  --creme:      #F5F0E8;
  --encre:      #1A1A2E;
  --rouge:      #C0392B;
  --rouge-doux: #E74C3C;
  --or:         #D4A843;
  --gris:       #6B7280;
  --gris-clair: #E8E4DC;
  --blanc:      #FFFFFF;

  --font-titre: 'Playfair Display', Georgia, serif;
  --font-corps: 'Outfit', system-ui, sans-serif;

  --max-w: 780px;
  --max-w-wide: 1100px;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(26,26,46,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--creme);
  color: var(--encre);
  font-family: var(--font-corps);
  font-size: 17px;
  line-height: 1.75;
}

/* ── Navigation ── */
nav.site-nav {
  background: var(--encre);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--rouge);
}
.nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--font-titre);
  font-size: 1.25rem;
  color: var(--creme);
  text-decoration: none;
  font-weight: 700;
}
.nav-logo span { color: var(--rouge); }
.nav-cta {
  background: var(--rouge);
  color: var(--blanc);
  padding: 0.45rem 1.2rem;
  border-radius: 4px;
  font-family: var(--font-corps);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}
.nav-cta:hover { background: var(--rouge-doux); }

/* ── Layout : grille unique, sidebar en row-span ── */
/*
   Structure HTML attendue :
   <div class="page-grid">
     <div class="page-main">
       <!-- hero (meta + h1 + intro) -->
       <!-- article-content -->
     </div>
     <aside class="sidebar"> … </aside>
   </div>
*/
.page-grid {
  max-width: var(--max-w-wide);
  margin: 2.5rem auto 4rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0 3rem;
  align-items: start;
}
@media (max-width: 860px) {
  .page-grid { grid-template-columns: 1fr; }
  .page-grid .sidebar { order: -1; margin-bottom: 2rem; }
}

/* ── Méta article ── */
.article-meta {
  font-size: 0.8rem;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}
.pilier-badge {
  background: var(--rouge);
  color: var(--blanc);
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-main h1 {
  font-family: var(--font-titre);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: var(--encre);
  margin-bottom: 1rem;
}
.article-intro {
  font-size: 1.1rem;
  color: #3A3A5C;
  line-height: 1.8;
  border-left: 3px solid var(--rouge);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}

/* ── Sidebar ── */
.sidebar {
  position: sticky;
  top: 80px;
}
.sidebar-box {
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.sidebar-box h3 {
  font-family: var(--font-titre);
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--encre);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--rouge);
}
.sidebar-cta {
  background: var(--rouge);
  color: var(--blanc);
  border: none;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-corps);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 1rem;
  text-align: center;
  display: block;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.sidebar-cta:hover { background: var(--rouge-doux); }
.sidebar-price {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gris);
  margin-top: 0.6rem;
}
.toc { list-style: none; }
.toc li { margin-bottom: 0.5rem; }
.toc a {
  color: var(--gris);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  transition: color 0.2s;
}
.toc a:hover { color: var(--rouge); }
.toc a::before { content: "→"; font-size: 0.7rem; color: var(--rouge); }

/* ── Corps article ── */
.article-content h2 {
  font-family: var(--font-titre);
  font-size: 1.7rem;
  color: var(--encre);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
}
.article-content h3 {
  font-family: var(--font-titre);
  font-size: 1.2rem;
  color: var(--encre);
  margin: 1.8rem 0 0.8rem;
}
.article-content p { margin-bottom: 1.2rem; }
.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.article-content li { margin-bottom: 0.5rem; }
.article-content strong { color: var(--encre); font-weight: 700; }
.article-content a { color: var(--rouge); }

/* ── Blocs spéciaux ── */
.alerte-box {
  background: #FFF5F5;
  border: 1px solid #FECACA;
  border-left: 4px solid var(--rouge);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
}
.alerte-box .alerte-titre {
  font-weight: 700;
  color: var(--rouge);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.conseil-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-left: 4px solid #22C55E;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
}
.conseil-box .conseil-titre {
  font-weight: 700;
  color: #16A34A;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.verdict-box {
  background: var(--encre);
  color: var(--creme);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.verdict-box h3 {
  font-family: var(--font-titre);
  font-size: 1.4rem;
  color: var(--creme);
  margin-bottom: 0.8rem;
}
.verdict-box p { color: var(--gris-clair); margin-bottom: 1.2rem; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.checklist li {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--gris-clair);
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "✓";
  color: #22C55E;
  font-weight: 700;
  flex-shrink: 0;
}
.checklist.danger li::before {
  content: "✗";
  color: var(--rouge);
}

/* ── Section CTA bas de page ── */
.cta-section {
  background: var(--encre);
  color: var(--creme);
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 0;
}
.cta-section h2 {
  font-family: var(--font-titre);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.cta-section p {
  color: var(--gris-clair);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.cta-btn {
  display: inline-block;
  background: var(--rouge);
  color: var(--blanc);
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-family: var(--font-corps);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.cta-btn:hover { background: var(--rouge-doux); }

/* ── Footer ── */
footer {
  background: #0F0F1A;
  color: var(--gris);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}
footer a { color: var(--gris); text-decoration: underline; }

/* ── Articles liés ── */
.articles-lies {
  max-width: var(--max-w-wide);
  margin: 0 auto 4rem;
  padding: 0 2rem;
}
.articles-lies h2 {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gris-clair);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--encre);
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
}
.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.article-card .card-pilier {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rouge);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.article-card h3 {
  font-family: var(--font-titre);
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.article-card p { font-size: 0.88rem; color: var(--gris); }
