/* RESET OBLIGATOIRE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
body { font-family: 'Source Serif Pro', Georgia, serif; background: #F5F0E8; color: #1E2A35; line-height: 1.7; }

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Serif+Pro:ital,wght@0,400;0,600;1,400&display=swap');

/* VARIABLES */
:root {
  --basalte:    #1C2B3A;
  --lave:       #8B2252;
  --or-auvergne:#D4A017;
  --calcaire:   #F5F0E8;
  --foret:      #2D6A4F;
  --text:       #1E2A35;
  --text-light: #6B7A85;
  --border:     #D8CFC0;
}

/* TYPOGRAPHIE */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--basalte); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); border-left: 4px solid var(--or-auvergne); padding-left: 0.8rem; margin: 2rem 0 1rem; }
h3 { font-size: 1.2rem; color: var(--lave); }

/* NAVIGATION */
.site-header { background: var(--basalte); padding: 0 1.5rem; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-logo { color: var(--or-auvergne); font-family: 'Playfair Display', serif; font-size: 1.2rem; text-decoration: none; font-weight: 700; }
.site-logo span { color: #fff; font-size: 0.9rem; font-weight: 400; display: block; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: #E8E0D0; text-decoration: none; font-size: 0.9rem; font-family: 'Source Serif Pro', serif; transition: color 0.2s; }
.nav-links a:hover { color: var(--or-auvergne); }

/* HERO HOMEPAGE */
.hero { background: linear-gradient(135deg, var(--basalte) 0%, #0F1E2A 100%); color: #fff; padding: 5rem 1.5rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('/images/heroes/hero-homepage.webp') center/cover; opacity: 0.35; }
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.hero-desc { font-size: 1.15rem; color: #D0C8B8; margin-bottom: 2rem; }
.btn-primary { display: inline-block; background: var(--lave); color: #fff; padding: 0.85rem 2rem; border-radius: 4px; text-decoration: none; font-family: 'Source Serif Pro', serif; font-weight: 600; transition: background 0.2s; }
.btn-primary:hover { background: #6B1A3E; }

/* SECTION GUIDES PILIERS */
.guides-section { max-width: 1200px; margin: 4rem auto; padding: 0 1.5rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--basalte); margin-bottom: 2rem; text-align: center; }
.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.guide-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow 0.2s; }
.guide-card:hover { box-shadow: 0 4px 20px rgba(28,43,58,0.15); }
.guide-card-img { aspect-ratio: 3/2; overflow: hidden; }
.guide-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.guide-card-body { padding: 1.2rem; }
.guide-card-body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--basalte); }
.guide-card-body p { font-size: 0.9rem; color: var(--text-light); }
.guide-card a { text-decoration: none; color: inherit; }

/* SECTION THEMES HOMEPAGE */
.themes-section { max-width: 1200px; margin: 0 auto 4rem; padding: 0 1.5rem; }
.themes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.theme-card { border-radius: 8px; padding: 2rem 1.5rem; color: #fff; text-decoration: none; display: block; transition: transform 0.2s; }
.theme-card:hover { transform: translateY(-3px); }
.theme-card h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1.2rem; }
.theme-card p { font-size: 0.9rem; opacity: 0.85; }
.theme-card--lave { background: var(--lave); }
.theme-card--foret { background: var(--foret); }
.theme-card--basalte { background: var(--basalte); }

/* SECTION BLOG */
.blog-section { background: #EDE8DF; padding: 4rem 1.5rem; }
.blog-inner { max-width: 1200px; margin: 0 auto; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); transition: transform 0.2s; }
.blog-card:hover { transform: translateY(-3px); }
.blog-card-img { aspect-ratio: 3/2; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.blog-card-body { padding: 1.2rem; }
.blog-card-tag { display: inline-block; background: var(--foret); color: #fff; font-size: 0.72rem; font-family: 'Source Serif Pro', serif; padding: 0.2rem 0.6rem; border-radius: 3px; margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-card-body h3 { font-size: 1rem; color: var(--basalte); margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card-body p { font-size: 0.88rem; color: var(--text-light); line-height: 1.5; }
.blog-card a { text-decoration: none; color: inherit; }
.blog-card-date { font-size: 0.8rem; color: var(--text-light); margin-top: 0.8rem; }

/* FILTRE CATÉGORIES BLOG */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-btn { padding: 0.4rem 1rem; border: 2px solid var(--basalte); background: transparent; color: var(--basalte); border-radius: 20px; cursor: pointer; font-family: 'Source Serif Pro', serif; font-size: 0.85rem; transition: all 0.2s; }
.filter-btn.active, .filter-btn:hover { background: var(--basalte); color: #fff; }

/* ARTICLE LAYOUT */
.article-container { max-width: 800px; margin: 3rem auto; padding: 0 1.5rem; }
.article-header { margin-bottom: 2rem; }
.article-tag { display: inline-block; background: var(--foret); color: #fff; padding: 0.3rem 0.8rem; border-radius: 3px; font-size: 0.78rem; font-family: 'Source Serif Pro', serif; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.article-title { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--basalte); margin-bottom: 0.8rem; }
.article-meta { font-size: 0.85rem; color: var(--text-light); }
.article-hero { aspect-ratio: 3/2; overflow: hidden; border-radius: 8px; margin-bottom: 2rem; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* Hero portrait (interview) */
.article-hero-portrait { aspect-ratio: 1/1; overflow: hidden; border-radius: 50%; margin: 0 auto 2rem; max-width: 320px; }
.article-hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.article-body { font-size: 1.05rem; line-height: 1.75; }
.article-body p { margin-bottom: 1.4rem; }
.article-body img { border-radius: 8px; margin: 2rem auto; }
.img-body { aspect-ratio: 3/2; overflow: hidden; border-radius: 8px; margin: 2.5rem auto; }
.img-body img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.faq-section { background: #EDE8DF; border-radius: 8px; padding: 2rem; margin: 3rem 0; }
.faq-section h2 { border-left: none; margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--basalte); margin-bottom: 0.5rem; }
.faq-answer { color: var(--text); font-size: 0.95rem; }

/* ENCADRÉ SAVIEZ-VOUS */
.saviez-vous { background: linear-gradient(135deg, #E8F4EC, #F5F0E8); border-left: 4px solid var(--foret); padding: 1.5rem; border-radius: 0 8px 8px 0; margin: 2rem 0; }
.saviez-vous strong { color: var(--foret); font-family: 'Playfair Display', serif; }

/* ARTICLES LIÉS */
.article-nav-related { background: var(--basalte); color: #fff; padding: 2rem; border-radius: 8px; margin: 3rem 0; }
.article-nav-related h3 { color: var(--or-auvergne); font-size: 1rem; margin-bottom: 1rem; }
.article-nav-related ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; }
.article-nav-related a { color: #D0C8B8; text-decoration: none; font-size: 0.9rem; }
.article-nav-related a:hover { color: var(--or-auvergne); }

/* SOMMAIRE */
details.toc, nav.toc { background: #EDE8DF; border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.5rem; margin: 1.5rem 0; }
details.toc summary { font-family: 'Playfair Display', serif; font-weight: 700; cursor: pointer; color: var(--basalte); }
nav.toc .toc-title { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--basalte); margin: 0 0 0.6rem; }
details.toc ol, nav.toc ol { padding-left: 1.5rem; margin-top: 0.8rem; }
details.toc a, nav.toc a { color: var(--lave); text-decoration: none; }

/* EXPERT CARD (interviews) */
.expert-card { display: flex; gap: 1.2rem; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; margin: 2rem 0; }
.expert-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.expert-card-info h4 { font-family: 'Playfair Display', serif; color: var(--basalte); }
.expert-card-info p { font-size: 0.88rem; color: var(--text-light); }

/* INTERVIEW Q/R */
.interview-q { font-weight: 700; color: var(--lave); font-family: 'Playfair Display', serif; margin-top: 1.5rem; }
.interview-a { border-left: 3px solid var(--border); padding-left: 1rem; margin-top: 0.5rem; }

/* PAGES INDEX THÉMATIQUES */
.theme-page { max-width: 900px; margin: 3rem auto; padding: 0 1.5rem; }
.theme-hero { background: linear-gradient(135deg, var(--foret), var(--basalte)); color: #fff; padding: 4rem 2rem; border-radius: 12px; margin-bottom: 3rem; text-align: center; }
.theme-hero h1 { color: #fff; }

/* BREADCRUMB */
.breadcrumb { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; }
.breadcrumb a { color: var(--lave); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* BLOG PAGE HEADER */
.page-header { max-width: 1200px; margin: 3rem auto 2rem; padding: 0 1.5rem; }
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: var(--text-light); }

/* FOOTER */
.site-footer { background: var(--basalte); color: #A0B0BC; padding: 3rem 1.5rem 2rem; margin-top: 5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem; }
.footer-col h4 { color: var(--or-auvergne); font-family: 'Playfair Display', serif; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: #A0B0BC; text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--or-auvergne); }
.footer-bottom { border-top: 1px solid #2D4050; margin-top: 2rem; padding-top: 1.5rem; text-align: center; font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .guides-grid, .blog-grid { grid-template-columns: 1fr; }
  .themes-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .expert-card { flex-direction: column; }
}
