:root {
  --primary: #d97706;
  --primary-dark: #b45309;
  --primary-light: #fef3c7;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #fffbeb;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Reading progress */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--primary); width: 0%; z-index: 999; transition: width 0.1s; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 1.3rem; font-weight: 800; color: var(--text); text-decoration: none; }
.logo span { color: var(--primary); }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--text-light); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); transition: all 0.3s; display: block; }

/* Breadcrumb nav */
.breadcrumb-nav { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 0.6rem 0; font-size: 0.85rem; color: var(--text-light); }
.breadcrumb-nav a { color: var(--primary); text-decoration: none; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent) 100%); color: white; padding: 5rem 0 4rem; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.15rem; opacity: 0.92; max-width: 650px; margin: 0 auto 2rem; }
.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; display: block; }
.hero-stat .label { font-size: 0.85rem; opacity: 0.8; }
.btn-hero { display: inline-block; background: white; color: var(--primary-dark); padding: 0.9rem 2rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* Sections */
section { padding: 4rem 0; }
.section-title { font-size: 1.8rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; }
.section-sub { text-align: center; color: var(--text-light); margin-bottom: 2.5rem; }

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--text-light); }
.card-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }

/* Featured grid */
.featured-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.featured-main { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s; }
.featured-main:hover { box-shadow: var(--shadow-md); }
.featured-main img { width: 100%; height: 220px; object-fit: cover; }
.featured-main .content { padding: 1.5rem; }
.featured-side { display: flex; flex-direction: column; gap: 1rem; }
.side-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: flex; gap: 1rem; transition: box-shadow 0.2s; }
.side-card:hover { box-shadow: var(--shadow-md); }
.side-card img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.side-card .content { flex: 1; }
.side-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; }
.side-card p { font-size: 0.8rem; color: var(--text-light); }

/* Steps grid */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.step-card { text-align: center; padding: 1.5rem 1rem; }
.step-num { width: 48px; height: 48px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; margin: 0 auto 1rem; }
.step-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.step-card p { font-size: 0.85rem; color: var(--text-light); }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card .content { padding: 1.25rem; }
.blog-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.blog-card p { font-size: 0.875rem; color: var(--text-light); margin-bottom: 0.75rem; }
.read-more { color: var(--primary); font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.read-more:hover { text-decoration: underline; }

/* Badge */
.badge { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.5rem; }
.badge-orange { background: var(--primary-light); color: var(--primary-dark); }

/* Affiliate box */
.affiliate-box { background: linear-gradient(135deg, var(--primary-light), #fff7ed); border: 2px solid var(--accent); border-radius: 12px; padding: 2rem; margin: 2.5rem 0; text-align: center; }
.affiliate-box h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.affiliate-box p { color: var(--text-light); margin-bottom: 1.25rem; }
.btn-aff { display: inline-block; background: var(--primary); color: white; padding: 0.75rem 1.75rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; transition: background 0.2s, transform 0.2s; }
.btn-aff:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Guides populaires */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.guide-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; color: var(--text); transition: box-shadow 0.2s, transform 0.2s; display: block; }
.guide-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.guide-card .guide-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.guide-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; }
.guide-card p { font-size: 0.8rem; color: var(--text-light); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; }
.faq-question { width: 100%; background: var(--bg); border: none; padding: 1rem 1.25rem; text-align: left; font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.faq-question:hover { background: var(--bg-alt); }
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--primary); transition: transform 0.3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; }
.faq-answer p { padding: 0 1.25rem 1rem; color: var(--text-light); font-size: 0.95rem; }

/* Newsletter */
.newsletter-section { background: var(--primary); color: white; padding: 3rem 0; text-align: center; }
.newsletter-section h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.newsletter-section p { opacity: 0.9; margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: 0.75rem; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 220px; padding: 0.8rem 1rem; border-radius: var(--radius); border: none; font-size: 1rem; }
.newsletter-form button { background: white; color: var(--primary-dark); padding: 0.8rem 1.5rem; border: none; border-radius: var(--radius); font-weight: 700; cursor: pointer; transition: transform 0.2s; }
.newsletter-form button:hover { transform: scale(1.03); }
.form-success { display: none; color: white; font-weight: 600; margin-top: 0.5rem; }

/* Article header */
.article-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; padding: 3rem 0 2rem; }
.article-header h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.3; margin-bottom: 1rem; }
.article-meta { display: flex; gap: 1.5rem; font-size: 0.9rem; opacity: 0.85; flex-wrap: wrap; }

/* Article content */
.article-content { max-width: 780px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.article-content img { width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; }
.article-content h2 { font-size: 1.5rem; font-weight: 800; margin: 2rem 0 0.75rem; color: var(--text); }
.article-content h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--primary-dark); }
.article-content p { margin-bottom: 1rem; line-height: 1.75; }
.article-content ul, .article-content ol { margin: 0.5rem 0 1rem 1.5rem; }
.article-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-content strong { color: var(--text); }
.article-content a { color: var(--primary); }

/* TOC box */
.toc-box { background: var(--bg-alt); border-left: 4px solid var(--primary); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0 2rem; }
.toc-box h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-dark); margin-bottom: 0.75rem; }
.toc-box ol { margin-left: 1.25rem; }
.toc-box li { margin-bottom: 0.35rem; font-size: 0.9rem; }
.toc-box a { color: var(--primary); text-decoration: none; }
.toc-box a:hover { text-decoration: underline; }

/* Blog listing */
.blog-listing { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.blog-listing-header { margin-bottom: 2rem; }
.blog-listing-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.article-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; text-decoration: none; color: var(--text); display: block; }
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article-card img { width: 100%; height: 180px; object-fit: cover; }
.article-card-content { padding: 1.25rem; }
.article-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.4; }
.article-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.75rem; }
.article-card-meta { font-size: 0.8rem; color: var(--text-light); display: flex; gap: 1rem; }

/* Footer */
.site-footer { background: #1f2937; color: #d1d5db; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: white; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: #9ca3af; text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; }
.footer-bottom a { color: #9ca3af; text-decoration: none; }
.footer-bottom a:hover { color: white; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .featured-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 0 2.5rem; }
  section { padding: 2.5rem 0; }
}
