/* =========================================================
   Bambou541 by Passalaction.fr — feuille de style unique
   Charte : Organique · Humain · Inspiration estampe japonaise
   Titres : Cormorant Garamond · Texte : Aptos · Accent : Noto Serif Display
   Notes manuscrites : Kaushan Script
   Fond : #f1efef · Title : #092406 · Text : #2c3c01 · Accent : #5e663a · Decorative : #82865b
   ========================================================= */

:root {
  --bg: #f1efef;
  --bg-raised: #e9e5dd;
  --bg-card: #fbfaf8;
  --title: #092406;
  --text: #2c3c01;
  --text-muted: #4c5a35;
  --text-faint: #82865b;
  --accent: #5e663a;
  --accent-soft: rgba(94, 102, 58, 0.12);
  --deep: #092406;
  --deep-soft: rgba(9, 36, 6, 0.06);
  --cream: #f1efef;
  --border: rgba(9, 36, 6, 0.14);
  --radius: 16px;
  --max-width: 1120px;

  --font-title: "Cormorant Garamond", Garamond, Georgia, serif;
  --font-text: Aptos, "Segoe UI", Arial, sans-serif;
  --font-accent: "Noto Serif Display", Georgia, "Times New Roman", serif;
  --font-script: "Kaushan Script", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* grain de papier, très discret, sur tout le site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.55  0 0 0 0 0.53  0 0 0 0 0.47  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Décor bambou (SVG en filet, discret) ---------- */
.bamboo-decor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  pointer-events: none;
  opacity: 0.16;
  z-index: 0;
  background-image: url("/assets/img/bamboo-pattern.svg");
  background-repeat: repeat-y;
  background-size: 140px auto;
}
@media (max-width: 960px) { .bamboo-decor { display: none; } }
.bamboo-decor--left { left: 0; }
.bamboo-decor--right { right: 0; transform: scaleX(-1); }

/* illustration encre, utilisée comme visuel éditorial (hero, parcours...) */
.ink-illustration { max-width: 100%; filter: drop-shadow(0 18px 30px rgba(9,36,6,0.14)); }

/* ---------- Typo ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--title);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.55em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 4.8vw, 3.8rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1.1em; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
}
.signature {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--accent);
  display: inline-block;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--deep);
  color: var(--cream);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(9,36,6,0.45); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--title);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sub {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- Header / Nav (menu mobile en pur CSS, sans JS) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 239, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { font-family: var(--font-title); font-weight: 700; font-size: 1.4rem; text-decoration: none; color: var(--title); letter-spacing: -0.01em; }
.logo span { color: var(--accent); }
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  width: 28px; height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 60;
}
.nav-toggle-label span, .nav-toggle-label::before, .nav-toggle-label::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--title); transition: 0.2s;
}
.nav-toggle-label::before { top: 0; }
.nav-toggle-label span { top: 10px; }
.nav-toggle-label::after { bottom: 0; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a:not(.btn) { text-decoration: none; color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.main-nav a:not(.btn):hover, .main-nav a:not(.btn)[aria-current="page"] { color: var(--title); }
.main-nav .btn { margin-left: 6px; }

@media (max-width: 860px) {
  .nav-toggle-label { display: block; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--bg-raised);
    flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 40px 32px; gap: 22px;
    transform: translateX(100%); transition: transform 0.25s ease;
    box-shadow: -20px 0 40px rgba(9,36,6,0.12);
  }
  .nav-toggle:checked ~ .main-nav { transform: translateX(0); }
  .main-nav .btn { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 70px;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 620px; }
.hero-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.hero-stats { display: flex; gap: 34px; margin-top: 56px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-title); font-size: 2.1rem; color: var(--title); }
.hero-stat span { color: var(--text-muted); font-size: 0.9rem; }

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .badge-stamp { position: absolute; left: -18px; bottom: -18px; }
@media (max-width: 640px) { .hero-visual .badge-stamp { width: 110px; left: 4px; bottom: 4px; } }

/* ---------- Badge / tampon décoratif (cliquable) ---------- */
.badge-stamp {
  display: block;
  width: 170px; height: 170px;
  filter: drop-shadow(0 10px 18px rgba(9,36,6,0.25));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.badge-stamp:hover, .badge-stamp:focus-visible {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 14px 22px rgba(9,36,6,0.35));
}
.badge-stamp img { width: 100%; height: 100%; }

/* ---------- Calendly : indicateur de chargement ---------- */
.calendly-loading-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.9rem;
  margin: 0 0 10px;
  overflow: hidden;
  animation: calendly-hint-fade 0.5s ease 2.4s forwards;
}
.calendly-loading-hint::before {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: calendly-spin 0.8s linear infinite;
}
@keyframes calendly-spin { to { transform: rotate(360deg); } }
@keyframes calendly-hint-fade { to { opacity: 0; height: 0; margin: 0; } }
.calendly-inline-widget--loading {
  background-image: linear-gradient(100deg, var(--bg) 40%, var(--bg-raised) 50%, var(--bg) 60%);
  background-size: 250% 100%;
  animation: calendly-shimmer 1.6s ease-in-out infinite;
}
@keyframes calendly-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .calendly-loading-hint::before, .calendly-inline-widget--loading { animation: none; }
}

/* ---------- Rangée d'icônes (façon board) ---------- */
.feature-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 720px) { .feature-icons { grid-template-columns: repeat(2, 1fr); } }
.feature-icon { text-align: center; }
.feature-icon .icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.feature-icon .icon-circle svg { width: 28px; height: 28px; stroke: var(--cream); fill: none; stroke-width: 1.8; }
.feature-icon strong { display: block; font-family: var(--font-title); color: var(--title); font-size: 1.05rem; margin-bottom: 4px; }
.feature-icon span { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- Portraits ---------- */
.portrait-circle {
  width: 260px; height: 260px; border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--bg-card);
  box-shadow: 0 18px 34px -12px rgba(9,36,6,0.35);
}
.portrait-full { max-width: 340px; }

/* ---------- Sections génériques ---------- */
section { position: relative; padding: 76px 0; }
.section-alt { background: var(--bg-raised); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cartes / grilles ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 10px 26px -18px rgba(9,36,6,0.35);
}

/* ---------- Méthode : timeline en 4 étapes ---------- */
.method-steps { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
@media (max-width: 960px) { .method-steps { grid-template-columns: 1fr; } }
.method-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 10px 26px -18px rgba(9,36,6,0.3);
}
.method-step .step-num {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent-soft);
  -webkit-text-stroke: 1.4px var(--accent);
  display: block;
  margin-bottom: 10px;
}
.method-step .step-weeks {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.method-step p { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 0; }

/* ---------- FAQ (details/summary natifs, sans JS) ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 26px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--title);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); padding-bottom: 22px; margin: 0; }

/* ---------- Blog ---------- */
.blog-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.blog-filters .tag { font-size: 0.82rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); text-decoration: none; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 10px 26px -18px rgba(9,36,6,0.3);
}
.post-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.post-card .tag { color: var(--accent); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.post-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.post-card p { color: var(--text-muted); font-size: 0.94rem; flex-grow: 1; }
.post-card .meta { color: var(--text-faint); font-size: 0.82rem; margin-top: 14px; }

/* ---------- Article ---------- */
.article-header { max-width: 740px; margin: 0 auto; text-align: center; padding-bottom: 8px; }
.article-meta { color: var(--text-faint); font-size: 0.88rem; margin-bottom: 18px; }
.article-meta .tag { color: var(--accent); font-weight: 700; }
.article-body { max-width: 700px; margin: 0 auto; }
.article-body p { color: var(--text-muted); font-size: 1.1rem; }
.article-body p.lead-quote {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--title);
  font-size: 1.4rem;
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 34px 0;
}
.article-cta {
  max-width: 700px;
  margin: 56px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: 0 10px 26px -18px rgba(9,36,6,0.3);
}
.related-posts { max-width: 900px; margin: 60px auto 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 22px; }
.breadcrumb a { color: var(--text-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- CTA bandeau ---------- */
.cta-band {
  text-align: center;
  padding: 90px 0;
  background: linear-gradient(180deg, var(--bg-raised), var(--bg));
}
.cta-band h2 { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 34px; background: var(--bg-raised); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-text); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 16px; }
.footer-grid a { display: block; color: var(--text-muted); text-decoration: none; font-size: 0.94rem; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--title); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; font-size: 0.82rem; color: var(--text-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Utilitaires ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--deep); color: var(--cream); padding: 10px 18px; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
