/* === RESET ANTI-DISTORSION (REGLE CRITIQUE RÉSEAU) === */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

.img-hero     { width: 100%; height: 420px; overflow: hidden; }
.img-card     { aspect-ratio: 3/2;  overflow: hidden; }
.img-body     { aspect-ratio: 3/2;  overflow: hidden; }
.img-portrait { aspect-ratio: 1/1;  overflow: hidden; border-radius: 50%; }

.img-hero img,
.img-card img,
.img-body img,
.img-portrait img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}

/* === VARIABLES "LETTRE D'AMOUR" === */
:root {
  --creme:        #FAF3E8;
  --rouge:        #8B1A1A;
  --or:           #C4956A;
  --rose:         #F5E6E0;
  --encre:        #1A0A0A;
  --parchemin:    #EDE0CC;
  --rouge-vif:    #C0392B;

  --rouge-20:     rgba(139,26,26,0.20);
  --rouge-08:     rgba(139,26,26,0.08);
  --or-30:        rgba(196,149,106,0.30);
  --creme-90:     rgba(250,243,232,0.92);
  --encre-70:     rgba(26,10,10,0.70);
  --parchemin-80: rgba(237,224,204,0.80);

  --ff-display:  'Cormorant Garamond', Georgia, serif;
  --ff-body:     'EB Garamond', Georgia, serif;
  --ff-accent:   'Pinyon Script', cursive;

  --measure-article: 680px;
  --measure-wide:    1280px;
  --radius:          6px;
  --radius-lg:       12px;

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:  180ms;
  --dur:       320ms;
  --dur-slow:  500ms;
}

/* === BASE === */
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--encre);
  background: var(--creme);
  margin: 0;
}
a { color: var(--rouge); text-decoration: underline; text-decoration-color: var(--or-30); transition: color var(--dur-fast); }
a:hover { color: var(--rouge-vif); text-decoration-color: var(--rouge-vif); }

/* === TYPOGRAPHIES === */
h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--rouge);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}
h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--encre);
  font-weight: 600;
  border-left: 3px solid var(--rouge);
  padding-left: 0.75rem;
  margin-top: 2.5rem;
}
h3 {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: var(--rouge);
  font-weight: 600;
  font-style: italic;
}
h4, h5, h6 {
  font-family: var(--ff-display);
  color: var(--encre);
  font-weight: 600;
}
.ff-accent { font-family: var(--ff-accent); font-size: 1.6em; color: var(--rouge); }

/* === BLOCKQUOTE / PULL-QUOTE === */
blockquote {
  background: var(--parchemin);
  border-left: 4px solid var(--rouge);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--encre);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* === SÉPARATEUR FIL DORÉ === */
.separator {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--or), transparent);
  margin: 3rem auto;
  max-width: 300px;
}
hr { border: none; height: 1px; background: var(--or-30); margin: 2rem 0; }

/* === HEADER === */
.site-header {
  background: var(--creme-90);
  border-bottom: 1px solid var(--or-30);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  font-family: var(--ff-accent);
  font-size: 1.8rem;
  color: var(--rouge);
  text-decoration: none;
  white-space: nowrap;
}
.site-logo:hover { color: var(--rouge-vif); }

/* NAV */
.main-nav { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav > li > a, .main-nav > li > button {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--dur-fast), color var(--dur-fast);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav > li > a:hover, .main-nav > li > button:hover {
  background: var(--rouge-08);
  color: var(--rouge);
}
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--creme);
  border: 1px solid var(--or-30);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(26,10,10,0.12);
  min-width: 280px;
  padding: 0.5rem;
  z-index: 200;
}
.main-nav .dropdown.two-cols {
  display: none;
  grid-template-columns: 1fr 1fr;
  min-width: 400px;
}
.main-nav li:hover > .dropdown,
.main-nav li:focus-within > .dropdown {
  display: block;
}
.main-nav li:hover > .dropdown.two-cols,
.main-nav li:focus-within > .dropdown.two-cols {
  display: grid;
}
.dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-family: var(--ff-display);
  font-size: 0.9rem;
  color: var(--encre);
  text-decoration: none;
  transition: background var(--dur-fast);
}
.dropdown a:hover { background: var(--rouge-08); color: var(--rouge); }

/* Hamburger */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--encre);
}
.menu-btn svg { width: 24px; height: 24px; }

/* === HERO === */
.hero-section {
  position: relative;
  overflow: hidden;
}
.hero-section .img-hero {
  height: 520px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--encre-70) 0%, rgba(26,10,10,0.4) 60%, transparent 100%);
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--creme);
  padding: 1rem;
  width: 90%;
  max-width: 720px;
}
.hero-content h1 { color: var(--creme); text-shadow: 0 2px 8px rgba(26,10,10,0.5); }
.hero-subtitle {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(250,243,232,0.9);
  margin: 0.5rem 0 1.5rem;
}
.btn-hero {
  display: inline-block;
  background: var(--rouge);
  color: var(--creme);
  font-family: var(--ff-display);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.btn-hero:hover { background: var(--rouge-vif); color: var(--creme); transform: translateY(-2px); }

/* Hero placeholder (sans image) */
.hero-placeholder {
  background: linear-gradient(135deg, var(--rouge) 0%, var(--encre) 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === LAYOUT GENERAL === */
.container {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.article-body {
  max-width: var(--measure-article);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* === CARDS ARTICLES === */
.article-card {
  background: var(--parchemin);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  text-decoration: none;
  color: var(--encre);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--rouge-20);
  color: var(--encre);
}
.article-card .card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-category {
  font-family: var(--ff-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rouge);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.card-title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--encre);
  line-height: 1.3;
  margin: 0 0 0.5rem;
}
.card-excerpt {
  font-size: 0.9rem;
  color: rgba(26,10,10,0.7);
  line-height: 1.5;
  flex: 1;
}

/* GRID ARTICLES */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* === TOC STICKY === */
.article-body .toc { position: static; max-height: none; margin-bottom: 2rem; }
.toc-wrapper {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
}
.toc {
  position: sticky;
  top: 5rem;
  background: var(--creme-90);
  border: 1px solid var(--rouge-20);
  border-radius: var(--radius);
  padding: 1.25rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
}
.toc h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  padding: 0;
  margin: 0 0 0.75rem;
  color: var(--rouge);
}
.toc ol { padding-left: 1rem; margin: 0; }
.toc li { font-size: 0.88rem; margin-bottom: 0.35rem; }
.toc a { text-decoration: none; color: var(--encre); }
.toc a:hover { color: var(--rouge); }

/* === FAQ ACCORDION === */
.faq-section { margin-top: 3rem; }
.faq-item {
  border-bottom: 1px solid var(--or-30);
  margin-bottom: 0.25rem;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--encre);
  text-align: left;
  gap: 1rem;
}
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--rouge); flex-shrink: 0; transition: transform var(--dur-fast); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 0 1rem;
  font-size: 0.97rem;
  color: rgba(26,10,10,0.85);
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* === BLOG FILTER === */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
}
.filter-btn {
  background: var(--parchemin);
  color: var(--encre);
  border: 1px solid var(--or-30);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  cursor: pointer;
  font-family: var(--ff-display);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--dur-fast);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--rouge);
  color: var(--creme);
  border-color: var(--rouge);
}

/* === EXPERT BLOCK === */
.expert-block {
  background: var(--parchemin);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 2rem 0;
}
.expert-block .img-portrait { width: 72px; height: 72px; flex-shrink: 0; }
.expert-name { font-family: var(--ff-display); font-weight: 700; font-size: 1.05rem; margin: 0 0 0.2rem; }
.expert-title { font-size: 0.85rem; color: rgba(26,10,10,0.65); margin: 0 0 0.5rem; }
.expert-bio { font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* === RELATED PAGES === */
.related-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--or-30); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.related-card {
  background: var(--parchemin);
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  color: var(--encre);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--dur-fast);
}
.related-card:hover { background: var(--rouge-08); color: var(--rouge); }

/* === SECTION INTRO HOMEPAGE === */
.intro-section {
  background: var(--rose);
  padding: 4rem 1.5rem;
  text-align: center;
}
.intro-section p {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  font-size: 1.15rem;
  line-height: 1.75;
}

/* FEATURED THEMES */
.themes-section { padding: 4rem 1.5rem; }
.themes-section h2 {
  text-align: center;
  border: none;
  padding: 0;
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ANTHOLOGIE SECTION */
.anthologie-section {
  background: var(--parchemin-80);
  padding: 4rem 1.5rem;
}
.anthologie-section h2 {
  text-align: center;
  border: none;
  padding: 0;
  margin-bottom: 2rem;
}

/* === REVEAL ANIMATION === */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* === BREADCRUMB === */
.breadcrumb { font-size: 0.85rem; color: rgba(26,10,10,0.6); margin-bottom: 1.5rem; }
.breadcrumb a { color: rgba(26,10,10,0.6); }
.breadcrumb a:hover { color: var(--rouge); }
.breadcrumb span { margin: 0 0.35rem; }

/* === PAGE HEADER (guides, fiches) === */
.page-header { padding: 3rem 1.5rem 0; }

/* === FOOTER === */
.site-footer {
  background: var(--encre);
  color: var(--creme);
  padding: 4rem 1.5rem 2rem;
  margin-top: 5rem;
}
.site-footer a { color: var(--or); text-decoration: none; }
.site-footer a:hover { color: var(--rose); }
.footer-inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-brand .site-logo { font-size: 2rem; display: block; margin-bottom: 0.75rem; color: var(--or); }
.footer-brand p { font-size: 0.9rem; opacity: 0.75; max-width: 260px; }
.footer-col h4 {
  font-family: var(--ff-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--or);
  margin: 0 0 1rem;
  border: none;
  padding: 0;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { font-size: 0.9rem; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: var(--rose); }
.footer-bottom {
  max-width: var(--measure-wide);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250,243,232,0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  opacity: 0.65;
}

/* === ARTICLE BODY CONTENT === */
.prose { max-width: var(--measure-article); margin: 0 auto; }
.prose p { margin-bottom: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { font-weight: 700; color: var(--encre); }

/* === BLOG HERO + META === */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(26,10,10,0.65);
  margin-bottom: 2rem;
}
.blog-meta .meta-cat {
  background: var(--rouge-08);
  color: var(--rouge);
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.8rem;
}

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* === CONTACT FORM === */
.contact-form { max-width: 560px; margin: 2rem auto; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--ff-display);
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--or-30);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 1rem;
  background: var(--creme);
  color: var(--encre);
  transition: border-color var(--dur-fast);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--rouge);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.btn-submit {
  background: var(--rouge);
  color: var(--creme);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background var(--dur-fast);
}
.btn-submit:hover { background: var(--rouge-vif); }

/* === PLAN DU SITE === */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.sitemap-section h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--or-30);
}
.sitemap-section ul { list-style: none; padding: 0; margin: 0; }
.sitemap-section li { margin-bottom: 0.35rem; }
.sitemap-section a { font-size: 0.92rem; }

/* === ARTICLE COMPONENTS === */
.article-toc {
  background: var(--or-30, #f5e9d0);
  border-left: 4px solid var(--rouge, #8B1A1A);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}
.article-toc h2 { font-size: 1rem; margin: 0 0 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.article-toc ul, .article-toc ol { margin: 0; padding-left: 1.25rem; }
.article-toc li { margin-bottom: 0.35rem; font-size: 0.95rem; }
.article-toc a { color: var(--rouge, #8B1A1A); }
.article-toc a:hover { text-decoration: underline; }

blockquote.journalist-question, blockquote.expert-answer {
  font-size: 1rem !important;
  font-style: normal !important;
  font-family: inherit !important;
  line-height: 1.7 !important;
}
.journalist-question {
  background: var(--creme, #FAF3E8);
  border-left: 3px solid var(--or, #C4956A);
  margin: 1.75rem 0 0.5rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-radius: 0 4px 4px 0;
}
.expert-answer {
  background: #fff;
  border-left: 3px solid var(--rouge, #8B1A1A);
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0 4px 4px 0;
}

.article-nav-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
  padding: 1.25rem;
  background: var(--or-30, #f5e9d0);
  border-radius: 8px;
}
.article-nav-related a {
  display: block;
  padding: 0.6rem 0.9rem;
  background: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rouge, #8B1A1A);
  text-decoration: none;
  border: 1px solid var(--or-30, #f5e9d0);
  transition: border-color 0.2s;
}
.article-nav-related a:hover { border-color: var(--rouge, #8B1A1A); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: fixed; inset: 0; background: var(--creme); z-index: 999; padding: 5rem 2rem 2rem; overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav .dropdown { display: none !important; }
  .main-nav li { width: 100%; }
  .main-nav > li > a, .main-nav > li > button { padding: 1rem 0; font-size: 1.2rem; border-bottom: 1px solid var(--or-30); width: 100%; justify-content: flex-start; }
  .menu-btn { display: block; }
  .toc-wrapper { grid-template-columns: 1fr; }
  .toc { display: none; }
  .hero-section .img-hero { height: 280px; }
  .img-hero { height: 240px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
}
