/* Guides Kadowiz : pages statiques, mêmes couleurs que l'app (dégradé #667eea → #764ba2) */
:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-soft: #f5f3ff;
  --primary-border: #ede9fe;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --footer-bg: #0f172a;
  --radius: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; text-decoration: none; }
.brand img { border-radius: 9px; }
.header-nav { display: flex; align-items: center; gap: 18px; }
.header-nav a:not(.btn) { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.header-nav a:not(.btn):hover { color: var(--primary); }

/* Boutons */
.btn {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 14px;
  box-shadow: 0 8px 20px -8px rgba(118, 75, 162, 0.6);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(118, 75, 162, 0.7); }
.btn-small { padding: 8px 14px; font-size: 14px; border-radius: 11px; }

.chip {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
}

/* Page d'accueil des guides */
.hero { background: var(--gradient); color: #fff; padding: 56px 0 48px; margin-bottom: 40px; }
.hero h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; margin: 0 0 14px; }
.hero p { font-size: 18px; max-width: 640px; margin: 0 0 24px; opacity: 0.95; }
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.category-nav .chip { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.category-nav .chip:hover { background: rgba(255, 255, 255, 0.28); }

.category-nav button.chip { font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.category-nav .chip[aria-pressed="true"] { background: #fff; color: var(--primary-dark); border-color: #fff; }

/* Guide mis en avant */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 24px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.featured:hover { color: var(--text); transform: translateY(-2px); border-color: var(--primary-border); box-shadow: 0 16px 36px -18px rgba(15, 23, 42, 0.3); }
.featured img { display: block; width: 100%; height: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.featured-body { padding: 28px 36px; }
.featured-body h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; margin: 12px 0 10px; }
.featured-body p { color: var(--text-muted); margin: 0 0 16px; }
.featured-link { color: var(--primary); font-weight: 600; }

.cards-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 8px; }
.filter-empty { text-align: center; color: var(--text-soft); }
[data-category][hidden] { display: none; }

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured-body { padding: 22px; }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card-cover { display: block; width: calc(100% + 44px); height: auto; aspect-ratio: 1200 / 630; object-fit: cover; margin: -22px -22px 6px; border-radius: var(--radius) var(--radius) 0 0; background: var(--primary-soft); }
.card:hover { color: var(--text); transform: translateY(-2px); border-color: var(--primary-border); box-shadow: 0 12px 30px -16px rgba(15, 23, 42, 0.25); }
.card .chip { align-self: flex-start; }
.card h3 { font-size: 19px; line-height: 1.35; margin: 4px 0 0; }
.card p { color: var(--text-muted); font-size: 15px; line-height: 1.55; margin: 0; flex: 1; }
.card-meta { color: var(--text-soft); font-size: 13px; }

/* Page « Tirage au sort Secret Santa » */
.hero-santa { background: linear-gradient(135deg, #dc2626 0%, #7c2d12 100%); }
.hero-santa .chip { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3); color: #fff; margin-bottom: 14px; }
.hero-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.hero-illustration { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.5); }
.btn-light { background: #fff; color: #b91c1c; }
.btn-light:hover { color: #991b1b; }
.hero-note { font-size: 14px !important; opacity: 0.85; margin: 14px 0 0 !important; }
.landing section { margin-bottom: 48px; }
.landing h2 { font-size: 28px; line-height: 1.25; margin: 0 0 20px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li, .feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; font-size: 26px; background: #fef2f2; border-radius: 14px; }
.steps h3, .feature h3 { font-size: 18px; line-height: 1.35; margin: 12px 0 6px; }
.feature h3 { margin-top: 0; }
.steps p, .feature p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--text-muted); }
.landing-more { text-align: center; color: var(--text-muted); }
.cta.cta-santa { background: linear-gradient(135deg, #dc2626 0%, #7c2d12 100%); }
.cta.cta-santa .btn, .cta.cta-santa .btn:hover { color: #b91c1c; }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .steps, .features { grid-template-columns: 1fr; }
  .landing h2 { font-size: 24px; }
}

/* Article */
.article-layout { padding-top: 24px; padding-bottom: 48px; }
.breadcrumb { font-size: 14px; color: var(--text-soft); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

.article {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(22px, 5vw, 52px);
}
.article-cover { display: block; width: calc(100% + 2 * clamp(22px, 5vw, 52px)); max-width: none; height: auto; aspect-ratio: 1200 / 630; margin: calc(-1 * clamp(22px, 5vw, 52px)) calc(-1 * clamp(22px, 5vw, 52px)) 28px; border-radius: 27px 27px 0 0; background: var(--primary-soft); }
.article-header h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; margin: 14px 0 14px; letter-spacing: -0.01em; }
.lead { font-size: 19px; color: var(--text-muted); margin: 0 0 14px; }
.article-meta { font-size: 14px; color: var(--text-soft); margin: 0 0 8px; }

.toc { background: var(--primary-soft); border: 1px solid var(--primary-border); border-radius: 16px; padding: 18px 22px; margin: 28px 0 8px; }
.toc p { margin: 0 0 6px; font-weight: 700; }
.toc ul { margin: 0; padding-left: 0; list-style: none; }
.toc li { margin: 4px 0; }
.toc li::before { content: "→ "; color: var(--primary); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.prose h2 { font-size: 26px; line-height: 1.3; margin: 44px 0 12px; scroll-margin-top: 80px; }
.prose h3 { font-size: 20px; line-height: 1.35; margin: 30px 0 8px; scroll-margin-top: 80px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--primary); }
.prose strong { color: var(--text); }
.prose a { text-underline-offset: 3px; }

.table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--border); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--bg); font-weight: 600; }
.prose tr:last-child td { border-bottom: none; }

.article-disclosure { font-size: 13px; color: var(--text-soft); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 32px; }

.cta {
  margin: 36px 0 0;
  background: var(--gradient);
  color: #fff;
  border-radius: 24px;
  padding: 30px;
  text-align: center;
}
.cta h2 { margin: 0 0 8px; font-size: 24px; }
.cta p { margin: 0 auto 18px; max-width: 520px; opacity: 0.95; }
.cta .btn { background: #fff; color: var(--primary-dark); }
.cta .btn:hover { color: var(--primary-dark); }

.related { max-width: 1080px; margin: 48px auto 0; }
.related h2 { font-size: 24px; margin: 0 0 16px; }

/* Pied de page */
.site-footer { background: var(--footer-bg); color: #94a3b8; padding: 40px 0 32px; margin-top: 56px; font-size: 14px; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; }
.footer-links a, .footer-links button { color: #cbd5e1; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: #fff; }
.footer-secure a { color: #cbd5e1; }
.footer-disclosure { font-size: 12px; color: #64748b; max-width: 820px; }
.footer-copy { font-size: 13px; color: #64748b; margin-bottom: 0; }

/* Bandeau de consentement (mêmes choix que l'app web) */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.35);
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.consent p { margin: 0 0 12px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-actions button { font: inherit; font-weight: 600; border-radius: 12px; padding: 9px 12px; cursor: pointer; }
.consent-refuse { background: #fff; border: 1px solid var(--border); color: var(--text); }
.consent-refuse:hover { background: var(--bg); }
.consent-accept { background: var(--primary); border: 1px solid var(--primary); color: #fff; }
.consent-accept:hover { background: var(--primary-dark); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .header-nav { gap: 12px; }
  .hero { padding: 40px 0 36px; }
  .article { border-radius: 22px; }
  .article-cover { border-radius: 21px 21px 0 0; }
  .cta { padding: 24px 18px; }
}
