/* =====================================================================
   instant-present.fr — Design System "Aube & Sauge"
   Mindfulness laïque · Présence au quotidien
   Polices : Playfair Display (titres) + Inter (corps) + Lora (citations)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@400;500;600&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* ---- 1. RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ---- 2. TOKENS ---- */
:root {
  --sauge:       #4A7C59;
  --sauge-clair: #7FA98B;
  --terracotta:  #C8925A;
  --lin:         #F8F7F2;
  --mousse:      #EFF0E8;
  --encre:       #1E1D1B;
  --gris-doux:   #3D3B39;
  --muet:        #8A8880;

  --sauge-80:    rgba(74, 124, 89, 0.8);
  --sauge-40:    rgba(74, 124, 89, 0.4);
  --sauge-10:    rgba(74, 124, 89, 0.1);
  --encre-10:    rgba(30, 29, 27, 0.10);
  --encre-06:    rgba(30, 29, 27, 0.06);
  --lin-95:      rgba(248, 247, 242, 0.95);

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;
  --ff-quote:   'Lora', Georgia, serif;

  --measure-article: 700px;
  --measure-wide:   1280px;
  --gutter:         clamp(1rem, 4vw, 2rem);
  --ease:           cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:       250ms;
  --dur:            450ms;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.09);
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
}

/* ---- 3. TYPOGRAPHIE ---- */
body {
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gris-doux);
  background: var(--lin);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  line-height: 1.2;
  color: var(--encre);
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-top: 1.75rem; margin-bottom: .75rem; }
p { margin-bottom: 1.25rem; }

/* Filet sauge animé sous H2 dans les articles */
.article-body h2 {
  position: relative;
  padding-bottom: .5rem;
}
.article-body h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--sauge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.article-body h2.visible::after { transform: scaleX(1); }

/* Kickers */
.kicker {
  font-family: var(--ff-body);
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--sauge-clair);
  display: block;
  margin-bottom: .5rem;
}

/* Lettrine */
.article-body > p:first-of-type::first-letter {
  font-family: var(--ff-display);
  font-size: 3.5em;
  font-weight: 700;
  line-height: 0.85;
  float: left;
  margin: .05em .12em 0 0;
  color: var(--sauge);
}

/* Pull quote */
.pull-quote {
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--encre);
  border-left: 3px solid var(--terracotta);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--mousse);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Summary chapeau */
.article-summary {
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gris-doux);
  border-left: 3px solid var(--sauge);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0 2rem;
  background: var(--sauge-10);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ---- 4. LAYOUT ---- */
.container { max-width: var(--measure-wide); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--measure-article); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }

/* ---- 5. HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--lin-95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--encre-06);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-logo {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--encre);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.site-logo svg { width: 28px; height: 28px; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav-link {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gris-doux);
  transition: color var(--dur-fast);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--sauge); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px;
  width: 100%;
  background: var(--sauge);
  transform: scaleX(0);
  transition: transform var(--dur-fast);
}
.nav-link:hover::after { transform: scaleX(1); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--encre); transition: all var(--dur-fast); border-radius: 2px; }

@media (max-width: 768px) {
  .hamburger { display: flex; margin-left: auto; }
  .site-nav {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--lin);
    border-bottom: 1px solid var(--encre-10);
    padding: 1.5rem var(--gutter) 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-open .site-nav { display: flex; }
}

/* ---- 6. HERO ---- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--encre);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,29,27,.72) 0%, rgba(74,124,89,.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--lin);
  padding: var(--gutter);
  max-width: 760px;
}
.hero-content h1 {
  color: var(--lin);
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-content p { font-size: 1.125rem; opacity: .9; margin-bottom: 1.5rem; }
.hero-compact { min-height: 40vh; }
.hero-compact .hero-content { max-width: 900px; text-align: left; }
.hero-breadcrumb {
  font-size: .8125rem;
  opacity: .75;
  margin-bottom: 1rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}
.hero-breadcrumb a { color: inherit; opacity: .8; }
.hero-breadcrumb a:hover { opacity: 1; }
.hero-breadcrumb span { opacity: .5; }
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--lin);
  font-family: var(--ff-body);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: .7;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator::after { content: '↓'; font-size: 1rem; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ---- 7. BOUTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  border: 2px solid transparent;
}
.btn-primary { background: var(--sauge); color: var(--lin); }
.btn-primary:hover { background: var(--encre); }
.btn-outline { background: transparent; color: var(--lin); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--lin); }
.btn-sauge { background: var(--sauge); color: var(--lin); }
.btn-sauge:hover { background: var(--encre); }

/* ---- 8. CARDS GUIDES ---- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.guide-card {
  background: white;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast);
  display: flex;
  flex-direction: column;
  position: relative;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.guide-card-num {
  position: absolute;
  top: .75rem;
  right: 1rem;
  font-family: var(--ff-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--sauge);
  opacity: .05;
  line-height: 1;
  pointer-events: none;
}
.img-guide { aspect-ratio: 3/2; overflow: hidden; }
.img-guide img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s var(--ease); }
.guide-card:hover .img-guide img { transform: scale(1.04); }
.guide-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.guide-card-body h3 { font-size: 1.05rem; margin: .5rem 0; }
.guide-card-body p { font-size: .9rem; color: var(--muet); flex: 1; margin-bottom: 1rem; }
.guide-card-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--sauge);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap var(--dur-fast);
}
.guide-card-link:hover { gap: .6rem; }

/* ---- 9. CARDS BLOG ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.blog-card {
  background: white;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.img-card { aspect-ratio: 3/2; overflow: hidden; }
.img-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s var(--ease); }
.blog-card:hover .img-card img { transform: scale(1.04); }
.blog-card-body { padding: 1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--sauge-clair);
  margin-bottom: .5rem;
}
.blog-card-body h3 { font-size: .975rem; margin-bottom: .5rem; line-height: 1.35; }
.blog-card-body p { font-size: .875rem; color: var(--muet); flex: 1; margin-bottom: .75rem; }
.blog-card-meta { font-size: .8rem; color: var(--muet); }

/* ---- 10. TOC STICKY ---- */
.article-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; max-width: 1100px; margin: 0 auto; padding: 2rem var(--gutter); }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .toc-sidebar { display: none; } }
.article-toc, .toc-sidebar {
  position: sticky;
  top: 80px;
  background: var(--mousse);
  border-radius: var(--r-md);
  padding: 1.25rem;
  font-size: .875rem;
}
.toc-sidebar h4 {
  font-family: var(--ff-body);
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--sauge);
  margin-bottom: 1rem;
}
.toc-sidebar ol { list-style: decimal; padding-left: 1.1rem; }
.toc-sidebar li { margin-bottom: .5rem; }
.toc-sidebar a { color: var(--gris-doux); transition: color var(--dur-fast); }
.toc-sidebar a:hover { color: var(--sauge); }

/* ---- 11. ARTICLE BODY ---- */
.article-main { min-width: 0; }
.article-body { font-size: 1.0625rem; line-height: 1.82; color: var(--gris-doux); }
.article-body img { border-radius: var(--r-md); margin: 2rem 0; }
.img-body { aspect-ratio: 3/2; overflow: hidden; border-radius: var(--r-md); margin: 2rem 0; }
.img-body img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.img-portrait { aspect-ratio: 1/1; overflow: hidden; border-radius: 50%; }
.img-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.img-hero { aspect-ratio: 3/2; overflow: hidden; border-radius: var(--r-md); margin-bottom: 2rem; }
.img-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ---- 12. FAQ ACCORDÉON ---- */
.faq-section { background: var(--mousse); padding: 3rem 0; margin: 3rem 0; }
.faq-section h2 { text-align: center; margin-bottom: 2rem; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--encre-10); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--encre);
  gap: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-toggle {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--sauge);
  transition: transform var(--dur-fast);
  flex-shrink: 0;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 0 1.25rem; color: var(--gris-doux); line-height: 1.7; font-size: .9625rem; }
.faq-item.open .faq-answer { display: block; }

/* ---- 13. SECTION IMMERSIVE ---- */
.immersive-section {
  background: var(--sauge);
  padding: 4rem var(--gutter);
  text-align: center;
  color: var(--lin);
}
.immersive-section blockquote {
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  line-height: 1.5;
  color: var(--lin);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  border: none;
  padding: 0;
}
.immersive-section cite {
  font-family: var(--ff-body);
  font-style: normal;
  font-size: .875rem;
  opacity: .75;
  display: block;
  margin-bottom: 2rem;
}

/* ---- 14. FOOTER ---- */
.site-footer {
  background: var(--encre);
  color: var(--lin);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { }
.footer-logo { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 700; margin-bottom: .75rem; }
.footer-slogan { font-family: var(--ff-quote); font-style: italic; font-size: .9rem; opacity: .7; }
.footer-col h4 { font-family: var(--ff-body); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--sauge-clair); margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col a { font-size: .875rem; opacity: .75; transition: opacity var(--dur-fast); }
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  max-width: var(--measure-wide);
  margin: 2.5rem auto 0;
  padding: 1.5rem var(--gutter) 0;
  border-top: 1px solid rgba(248,247,242,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  opacity: .6;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ---- 15. FILTRES BLOG ---- */
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: .45rem 1rem;
  border-radius: var(--r-sm);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--encre-10);
  background: white;
  color: var(--gris-doux);
  transition: all var(--dur-fast);
}
.filter-btn:hover, .filter-btn.active { background: var(--sauge); color: var(--lin); border-color: var(--sauge); }

/* ---- 16. INTERVIEW ---- */
.interview-expert-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--mousse);
  border-radius: var(--r-md);
  padding: 1.25rem;
  margin: 2rem 0;
}
.interview-expert-card .img-portrait { width: 80px; height: 80px; flex-shrink: 0; }
.expert-info h3 { font-size: 1rem; margin: 0 0 .25rem; }
.expert-info p { font-size: .875rem; color: var(--muet); margin: 0; }

blockquote.journalist-question {
  background: var(--sauge-10);
  border-left: 3px solid var(--sauge);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 1.5rem 0 .5rem;
  font-style: italic;
  font-family: var(--ff-quote);
  color: var(--encre);
}
blockquote.expert-answer {
  padding: 1rem 1.5rem;
  margin: .5rem 0 1.5rem;
  border-left: 3px solid var(--terracotta);
  background: white;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ---- 17. RELATED NAV ---- */
.article-nav-related {
  border-top: 1px solid var(--encre-10);
  padding-top: 2rem;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.related-link {
  background: var(--mousse);
  border-radius: var(--r-sm);
  padding: 1rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--encre);
  transition: background var(--dur-fast);
  display: block;
}
.related-link:hover { background: var(--sauge-10); color: var(--sauge); }
.related-link small { display: block; font-size: .75rem; color: var(--muet); font-weight: 400; margin-bottom: .25rem; }

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

/* ---- 19. SECTION TITLES ---- */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.section-header p { color: var(--muet); font-size: 1.025rem; max-width: 600px; margin: 0 auto; }
.section-rule { width: 2.5rem; height: 3px; background: var(--terracotta); border: none; margin: 0 auto 1.25rem; }

/* ---- 20. PAGES THÈMES ---- */
.theme-hero { background: var(--sauge); color: var(--lin); padding: 3.5rem var(--gutter); text-align: center; }
.theme-hero h1 { color: var(--lin); font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.theme-hero p { opacity: .85; max-width: 600px; margin: 1rem auto 0; }

/* ---- 21. PAGES UTILITAIRES ---- */
.page-content { max-width: 760px; margin: 0 auto; padding: 3rem var(--gutter); }
.page-content h1 { margin-bottom: 1.5rem; }
.page-content h2 { font-size: 1.3rem; margin-top: 2rem; }
.page-content p, .page-content li { line-height: 1.8; margin-bottom: 1rem; }
.page-content ul, .page-content ol { padding-left: 1.5rem; list-style: initial; }

/* ---- 22. CONTACT FORM ---- */
.contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 560px; margin: 2rem 0; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--encre); }
.form-group input, .form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--encre-10);
  border-radius: var(--r-sm);
  background: white;
  font-size: 1rem;
  transition: border-color var(--dur-fast);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--sauge); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---- 23. 404 ---- */
.page-404 { text-align: center; padding: 5rem var(--gutter); }
.page-404 h1 { font-size: clamp(4rem, 10vw, 8rem); color: var(--sauge-40); margin-bottom: 1rem; }

/* ---- 24. PROGRESS BAR ---- */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--terracotta); z-index: 1000; width: 0%; transition: width .1s linear; }

/* ---- 25. BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sauge);
  color: var(--lin);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--dur-fast);
  z-index: 90;
  font-size: 1rem;
}
.back-to-top.visible { opacity: 1; transform: none; }
.back-to-top:hover { background: var(--encre); }
