/* ===== Le monde de la Pachamama — feuille de style partagée ===== */
:root {
  --bg: #efe7d4; --bg-2: #f7f1e2; --wood: #f2ebd9; --wood-2: #e8dfc8;
  --copper: #b8692f; --amber: #b07a3c; --gold: #a07d55; --terracotta: #c96f43;
  --cream: #3d2f1e; --text: #4a3a28; --text-muted: #7c6a4f; --text-dim: #9a8460;
  --line: rgba(160, 125, 85, 0.55); --border: rgba(74, 54, 32, 0.14);
  --radius: 20px; --ease: cubic-bezier(0.16, 1, 0.3, 1); --maxw: 1120px;
  /* couleurs des espaces — assombries pour rester lisibles sur fond clair */
  --c-animale: #c07f34; --c-energie: #b78a3a; --c-creation: #b95a2f;
  --c-ateliers: #a8863f; --c-nature: #6f8a3f; --c-education: #a85f2e;
  --c-animaux: #c07f34; --c-vegetal: #6f8a3f; --c-invisible: #8b73c0; --c-eveil: #b78a3a; --c-apprentissage: #a85f2e;
  --mc: var(--amber);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1200px 820px at 50% -8%, #faf5e9, transparent 60%),
    radial-gradient(900px 700px at 90% 16%, color-mix(in srgb, var(--mc) 12%, transparent), transparent 55%),
    var(--bg);
  color: var(--text); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.12rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, .serif { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; }
::selection { background: var(--amber); color: #faf5e9; }
a { color: var(--copper); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--terracotta); }

.grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4;
  background-image: repeating-linear-gradient(90deg, rgba(120,90,55,0.05) 0 2px, transparent 2px 5px); mix-blend-mode: multiply; }

/* nav */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between;
  padding: 15px clamp(18px, 5vw, 48px); backdrop-filter: blur(12px); background: rgba(245, 238, 222, 0.55);
  border-bottom: 1px solid transparent; transition: border-color 0.4s var(--ease), background 0.4s var(--ease); }
nav.scrolled { border-bottom-color: var(--border); background: rgba(245, 238, 222, 0.9); box-shadow: 0 4px 20px rgba(74,54,32,0.06); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--cream); }
.brand:hover { color: var(--cream); }
.brand .mark { width: 34px; height: 34px; color: var(--gold); flex: none; }
.brand span { font-family: 'Cinzel', serif; font-size: 0.98rem; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 26px; font-size: 0.98rem; color: var(--text-muted); }
.nav-links a { color: inherit; font-weight: 500; }
.nav-links a:hover { color: var(--copper); }
@media (max-width: 820px) { .nav-links { display: none; } }
/* petit emblème (barre du haut) — statique */
.brand-mark { width: 40px; height: 40px; display: block; flex: none; }

section { position: relative; z-index: 1; padding: clamp(60px, 9vw, 120px) clamp(18px, 5vw, 48px); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.narrow { max-width: 720px; margin: 0 auto; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: 'Cinzel', serif; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--mc); margin-bottom: 20px; }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--line); }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.3rem); line-height: 1.1; letter-spacing: 0; color: var(--cream); }
h2 .accent { color: var(--mc); font-style: italic; }
.lede { font-size: clamp(1.14rem, 2.2vw, 1.34rem); color: var(--text-muted); margin-top: 18px; }
.quote { font-family: 'Spectral', serif; font-style: italic; font-weight: 300; font-size: clamp(1.35rem, 3vw, 1.9rem);
  color: var(--cream); margin-top: 28px; line-height: 1.4; }
.quote::first-letter { color: var(--mc); }

/* reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.09s; } .reveal.d2 { transition-delay: 0.18s; } .reveal.d3 { transition-delay: 0.27s; }

/* icons */
.ic { width: 28px; height: 28px; display: block; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 100px; font-weight: 700;
  font-family: inherit; font-size: 0.96rem; cursor: pointer; background: linear-gradient(120deg, var(--amber), var(--copper));
  color: #201509; border: none; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(198,123,63,0.4); color: #201509; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--mc); color: var(--mc); box-shadow: none; }

/* footer */
footer { padding: 66px clamp(18px,5vw,48px) 48px; border-top: 1px solid var(--border); position: relative; z-index: 1; text-align: center; }
footer .mark { width: 46px; height: 46px; color: var(--gold); opacity: 0.75; margin: 0 auto 18px; }
footer .name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--cream); }
footer .tag { color: var(--amber); font-style: italic; font-family: 'Cormorant Garamond', serif; margin-top: 6px; }
footer p { color: var(--text-dim); font-size: 0.84rem; margin-top: 16px; }

/* ============ MONDE PAGES ============ */
.page-hero { position: relative; z-index: 1; min-height: 74vh; display: grid;
  grid-template-columns: 0.92fr 1.08fr; align-items: center; gap: clamp(20px, 5vw, 64px);
  max-width: 1180px; margin: 0 auto; padding: 150px clamp(18px,5vw,48px) 56px; }
.page-hero .back { position: absolute; top: 92px; left: clamp(18px,5vw,48px); font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.page-hero .back:hover { color: var(--mc); }
/* médaillon zoomé, décentré vers la gauche */
.hero-med { width: min(44vw, 400px); aspect-ratio: 1; justify-self: center; margin-left: clamp(-44px, -3vw, 0px);
  opacity: 0; animation: rise 1.1s var(--ease) 0.1s forwards; }
.hero-med svg { width: 100%; height: 100%; display: block; }
.hero-copy { opacity: 0; animation: rise 1.05s var(--ease) 0.3s forwards; }
.hero-copy .eyebrow { justify-content: flex-start; }
.page-hero h1 { font-family: 'Cinzel', serif; font-weight: 500; font-size: clamp(2.1rem, 5.2vw, 3.7rem);
  line-height: 1.08; letter-spacing: 0.01em; color: var(--cream); }
.page-hero .lede { max-width: 540px; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .page-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 128px; }
  .hero-med { width: min(66vw, 300px); margin-left: 0; }
  .hero-copy .eyebrow { justify-content: center; }
  .page-hero .lede { margin-left: auto; margin-right: auto; }
}

.esprit { text-align: center; }

/* project placeholders */
.grid { display: grid; gap: 22px; margin-top: 52px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g3 { grid-template-columns: 1fr; } }
.project { border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 30px 26px;
  background: linear-gradient(160deg, #fbf6ea, transparent); transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.project:hover { border-color: color-mix(in srgb, var(--mc) 45%, transparent); transform: translateY(-4px); }
.project .tag { display: inline-flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--mc); margin-bottom: 14px; }
.project .tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mc); }
.project h3 { font-size: 1.2rem; color: var(--cream); margin-bottom: 8px; }
.project p { color: var(--text-muted); font-size: 0.94rem; }

/* mini navigator */
.autres { text-align: center; }
.mini-mondes { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }
.mini-monde { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 104px; padding: 18px 8px;
  border-radius: 16px; border: 1px solid transparent; transition: all 0.3s var(--ease); }
.mini-monde:hover { border-color: var(--border); background: rgba(74,54,32,0.045); }
.mini-monde .mm-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: var(--mm); border: 1.5px solid color-mix(in srgb, var(--mm) 55%, transparent); }
.mini-monde .mm-ico .ic { width: 24px; height: 24px; }
.mini-monde .mm-ico i { font-size: 1.4rem; line-height: 1; }
.mini-monde .mm-lbl { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); }
.mini-monde:hover .mm-lbl { color: var(--mm); }
.mini-monde.active { background: rgba(74,54,32,0.05); border-color: color-mix(in srgb, var(--mm) 40%, transparent); }
.mini-monde.active .mm-lbl { color: var(--mm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .page-hero .ph-ico, .page-hero .eyebrow, .page-hero h1, .page-hero .lede { opacity: 1 !important; }
}
