/* ————————————————————————————————————————————————
   Terre & Ciel Yoga — refonte chaleureuse (esprit « trouve ce qui te fait du bien »)
   ———————————————————————————————————————————————— */
:root {
  --creme: #F8F5EF;
  --creme-warm: #F2E8DA;
  --sauge: #A9B49C;
  --sauge-deep: #74806A;
  --terre: #B96E4C;
  --terre-deep: #985334;
  --sable: #DCC4A2;
  --or: #C6A15A;
  --encre: #433E35;
  --encre-soft: #8A8173;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
  --font-script: 'Ephesis', cursive;

  --veil: .22;          /* douceur appliquée aux photos (réglable) */
  --photo-sat: .92;
  --finale-p: 0;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--creme);
  color: var(--encre);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.85;
  overflow-x: hidden;
}
::selection { background: rgba(220, 196, 162, .6); }
img { display: block; max-width: 100%; }

/* ————— Le logo qui se reconstitue et voyage ————— */
#scene {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  will-change: opacity;
}
#scene .emblem {
  position: relative;
  width: min(78vh, 52vw);
  aspect-ratio: 910 / 663;
  will-change: transform;
}
#scene.breathing .emblem-breathe {
  animation: breathe 9s ease-in-out infinite;
  transform-origin: 50% 60%;
}
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.016); } }
.emblem-breathe { position: absolute; inset: 0; }
.emblem .tc-layer, .emblem .tc-ridge, .emblem .tc-glow {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.emblem .tc-glow {
  background: radial-gradient(ellipse 48% 52% at 50% 34%, rgba(198,161,90,.55), rgba(198,161,90,.16) 46%, rgba(198,161,90,0) 72%);
  opacity: 0;
}
.emblem .tc-ridge { overflow: visible; }
.emblem .tc-sky { will-change: opacity, transform; }
.emblem .tc-branches { transform-origin: 50% 70%; will-change: opacity, transform; }
.emblem .tc-clip { position: absolute; overflow: hidden; }
.emblem .tc-clip-h { top: 0; left: 0; height: 100%; width: 0; }
.emblem .tc-clip-h img { position: absolute; top: 0; left: 0; }
.emblem .tc-clip-f { left: 0; bottom: 0; width: 100%; height: 0; }
.emblem .tc-clip-f img { position: absolute; left: 0; bottom: 0; }
.emblem.tc-crisp .tc-sky, .emblem.tc-crisp .tc-branches { filter: saturate(1.05) contrast(1.04); }
@media (prefers-reduced-motion: reduce) {
  #scene.breathing .emblem-breathe { animation: none; }
  html { scroll-behavior: auto; }
}

/* ————— Header ————— */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px clamp(22px, 5vw, 60px);
  transition: background .7s ease, box-shadow .7s ease, padding .7s ease;
}
header.scrolled {
  background: rgba(248, 245, 239, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding-top: 14px; padding-bottom: 14px;
  box-shadow: 0 1px 0 rgba(67, 62, 53, .07);
}
.brand { font-family: var(--font-script); font-size: 2rem; color: var(--terre); text-decoration: none; line-height: 1; }
nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); }
nav a {
  font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--encre-soft); transition: color .4s ease;
}
nav a:hover { color: var(--terre); }
nav a.nav-cta {
  color: var(--terre); border: 1px solid rgba(185,110,76,.45);
  border-radius: 999px; padding: .6em 1.5em; transition: background .4s ease, color .4s ease;
}
nav a.nav-cta:hover { background: var(--terre); color: var(--creme); }
@media (max-width: 860px) { nav a:not(.nav-cta) { display: none; } }

/* ————— Layout & typo ————— */
main { position: relative; z-index: 1; }
section { position: relative; padding: clamp(96px, 14vh, 168px) clamp(22px, 6vw, 78px); }
.inner { max-width: var(--maxw); margin: 0 auto; }

.kicker {
  font-size: .72rem; letter-spacing: .36em; text-transform: uppercase;
  color: var(--sauge-deep); margin-bottom: 22px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--encre); text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); line-height: 1.05; font-weight: 300; }
h2 { font-size: clamp(2rem, 4.1vw, 3.2rem); line-height: 1.14; margin-bottom: 24px; }
.lead {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.6;
  color: var(--terre-deep); text-wrap: pretty;
}
p.body { color: var(--encre-soft); max-width: 56ch; text-wrap: pretty; }
.signature { font-family: var(--font-script); font-size: 1.9rem; color: var(--terre); }

.halo { position: relative; }
.halo::before {
  content: ""; position: absolute; inset: -12% -16%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(248,245,239,.92) 34%, rgba(248,245,239,0) 76%);
}

.fade-up { opacity: 0; transform: translateY(32px); transition: opacity 1.4s cubic-bezier(.22,.6,.25,1), transform 1.4s cubic-bezier(.22,.6,.25,1); }
.fade-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; transition: none; } }

/* ————— Boutons ————— */
.btn {
  display: inline-block; font-family: var(--font-body); font-size: .76rem;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; padding: 1.02em 2.3em;
  transition: background .5s ease, color .5s ease, border-color .5s ease, transform .35s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terre); color: var(--creme); border: 1px solid var(--terre); }
.btn-primary:hover { background: var(--terre-deep); border-color: var(--terre-deep); }
.btn-ghost { color: var(--terre-deep); border: 1px solid rgba(185,110,76,.4); }
.btn-ghost:hover { background: rgba(185,110,76,.08); }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ————— Photos harmonisées ————— */
.ph { position: relative; overflow: hidden; background: var(--creme-warm); }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(var(--photo-sat)); transition: transform 1.4s cubic-bezier(.2,.6,.2,1); }
.ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(152,83,52,calc(var(--veil) * .35)), rgba(116,128,106,calc(var(--veil) * .5))),
    radial-gradient(ellipse at 50% 120%, rgba(67,62,53,calc(var(--veil) * .6)), transparent 70%);
  mix-blend-mode: multiply;
}

/* ————— Hero ————— */
#hero {
  min-height: 100vh; display: grid; align-items: center;
  grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 80px);
  padding-top: 19vh; padding-bottom: 12vh;
}
#hero .hero-copy { max-width: 600px; }
#hero h1 { margin-bottom: 26px; }
#hero .lead { max-width: 32ch; margin-bottom: 40px; }
#hero .hero-photo {
  width: 100%; aspect-ratio: 4 / 5; border-radius: 280px 280px 18px 18px;
  box-shadow: 0 30px 70px -30px rgba(67,62,53,.4); align-self: center;
}
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--encre-soft); font-size: .66rem; letter-spacing: .32em; text-transform: uppercase;
}
.scroll-hint .thread {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, rgba(67,62,53,0), var(--sable));
  animation: thread 4.5s ease-in-out infinite;
}
@keyframes thread { 0%,100% { transform: scaleY(.6); opacity: .5; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } }
@media (max-width: 920px) {
  #hero { grid-template-columns: 1fr; text-align: center; padding-top: 16vh; gap: 44px; }
  #hero .hero-copy { max-width: 560px; margin: 0 auto; }
  #hero .lead { margin-left: auto; margin-right: auto; }
  #hero .cta-row { justify-content: center; }
  #hero .hero-photo { max-width: 380px; margin: 0 auto; order: -1; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .scroll-hint .thread { animation: none; } }

/* ————— Manifeste ————— */
#manifeste { text-align: center; }
#manifeste .inner { max-width: 760px; }
#manifeste .lead { margin: 0 auto 28px; max-width: 30ch; }
#manifeste p.body { margin: 0 auto; }
#manifeste .signature { margin-top: 30px; display: inline-block; }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 64px; }
.section-head .kicker { margin-bottom: 18px; }
.section-head p.body { margin: 0 auto; }

/* ————— Bibliothèque de pratiques ————— */
.practice-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.practice {
  background: rgba(255,255,255,.6); border: 1px solid rgba(185,110,76,.12);
  border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .5s cubic-bezier(.2,.6,.2,1), box-shadow .5s ease, border-color .5s ease;
}
.practice:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(67,62,53,.45); border-color: rgba(185,110,76,.25); }
.practice .thumb { aspect-ratio: 16 / 10; position: relative; }
.practice:hover .thumb img { transform: scale(1.06); }
.practice .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(248,245,239,.9); display: grid; place-items: center;
  box-shadow: 0 8px 24px -8px rgba(67,62,53,.5); transition: transform .4s ease, background .4s ease;
}
.practice:hover .play { transform: translate(-50%,-50%) scale(1.08); background: var(--creme); }
.practice .play::before { content: ""; width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--terre); }
.practice .pbody { padding: 24px 26px 28px; }
.practice .tag { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sauge-deep); }
.practice h3 { font-size: 1.5rem; font-weight: 500; margin: 8px 0 8px; line-height: 1.15; }
.practice p { font-size: .94rem; color: var(--encre-soft); text-wrap: pretty; }
.practice .meta { display: flex; gap: 14px; margin-top: 18px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sauge-deep); }
.practice .meta span { display: inline-flex; align-items: center; gap: 7px; }
.practice .meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sable); }

/* ————— Enseignante ————— */
#enseignante .inner { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: clamp(40px, 7vw, 92px); align-items: center; }
#enseignante image-slot { width: 100%; aspect-ratio: 3 / 4; display: block; }
#enseignante .lead { margin-bottom: 26px; }
#enseignante .signature { margin-top: 28px; display: inline-block; }
@media (max-width: 920px) {
  #enseignante .inner { grid-template-columns: 1fr; text-align: center; }
  #enseignante image-slot { max-width: 360px; margin: 0 auto; }
  #enseignante p.body { margin: 0 auto; }
}

/* ————— Bande nature (bienfaits) ————— */
.band { position: relative; padding: 0; }
.band .ph { position: absolute; inset: 0; }
.band .band-inner {
  position: relative; z-index: 1; max-width: 880px; margin: 0 auto;
  padding: clamp(120px, 20vh, 220px) clamp(22px, 6vw, 78px); text-align: center; color: var(--creme);
}
.band .kicker { color: rgba(248,245,239,.82); }
.band h2 { color: var(--creme); }
.band .band-lead { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.5; color: var(--creme); text-wrap: balance; }
.benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }
.benefits span {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--creme); border: 1px solid rgba(248,245,239,.45);
  border-radius: 999px; padding: .7em 1.5em; backdrop-filter: blur(2px);
}

/* ————— Tarifs ————— */
.price-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.price {
  background: rgba(255,255,255,.55); border: 1px solid rgba(185,110,76,.14);
  border-radius: 16px; padding: 42px 34px; display: flex; flex-direction: column;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .5s ease, box-shadow .5s ease;
}
.price:hover { transform: translateY(-5px); box-shadow: 0 24px 46px -28px rgba(67,62,53,.4); }
.price.featured { background: var(--creme-warm); border-color: rgba(185,110,76,.35); }
.price .pname { font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; margin-bottom: 6px; }
.price .pnote { font-size: .82rem; color: var(--encre-soft); margin-bottom: 26px; }
.price .amount { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--terre); }
.price .amount small { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-soft); display: block; margin-top: 8px; }
.price ul { list-style: none; margin: 28px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.price li { font-size: .94rem; color: var(--encre-soft); padding-left: 22px; position: relative; }
.price li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-bottom: 1.5px solid var(--sauge-deep); border-left: 1.5px solid var(--sauge-deep); transform: rotate(-45deg); }
.price .btn { margin-top: auto; text-align: center; }
.price .badge { align-self: flex-start; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terre); border: 1px solid rgba(185,110,76,.4); border-radius: 999px; padding: .4em 1em; margin-bottom: 16px; }

/* ————— Retraites ————— */
.retreat-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.retreat { position: relative; border-radius: 18px; overflow: hidden; min-height: 440px; display: flex; align-items: flex-end; text-decoration: none; color: var(--creme); }
.retreat .ph { position: absolute; inset: 0; }
.retreat:hover .ph img { transform: scale(1.06); }
.retreat .rbody { position: relative; z-index: 1; padding: 34px 32px; }
.retreat .rtag { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(248,245,239,.85); }
.retreat h3 { color: var(--creme); font-size: 1.7rem; font-weight: 500; margin: 8px 0 8px; }
.retreat p { font-size: .92rem; color: rgba(248,245,239,.88); text-wrap: pretty; }
.retreat .when { margin-top: 16px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(248,245,239,.78); }

/* ————— Témoignages ————— */
.quote-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.quote-card { text-align: center; padding: 46px 36px; background: rgba(255,255,255,.5); border: 1px solid rgba(185,110,76,.1); border-radius: 16px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.quote-card .q { font-family: var(--font-display); font-style: italic; font-size: 1.32rem; line-height: 1.6; color: var(--encre); margin-bottom: 22px; text-wrap: balance; }
.quote-card .who { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sauge-deep); }

/* ————— Planning ————— */
.planning { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid rgba(67,62,53,.12); border-bottom: 1px solid rgba(67,62,53,.12); }
.day { padding: 28px 20px 36px; border-left: 1px solid rgba(67,62,53,.08); }
.day:first-child { border-left: none; }
.day h4 { font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 400; color: var(--terre-deep); margin-bottom: 22px; }
.slot { margin-bottom: 20px; }
.slot .time { font-size: .78rem; letter-spacing: .12em; color: var(--encre-soft); margin-bottom: 2px; }
.slot .name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; line-height: 1.3; }
.planning-note { text-align: center; margin-top: 44px; color: var(--encre-soft); font-size: .94rem; }
.planning-note .btn { margin-top: 24px; }

/* ————— Finale ————— */
#finale { min-height: 150vh; display: flex; align-items: center; text-align: center; }
#finale .inner { max-width: 720px; opacity: calc(var(--finale-p) * 1.25 - .1); transform: translateY(calc((1 - var(--finale-p)) * 56px)) scale(calc(.96 + var(--finale-p) * .04)); }
#finale img.logo-full { width: min(420px, 72vw); margin: 0 auto 26px; }
#finale h2 { margin-bottom: 16px; }
#finale .lead { margin: 0 auto 42px; max-width: 34ch; }

/* ————— Footer ————— */
footer { position: relative; z-index: 1; background: var(--creme-warm); padding: 84px clamp(22px, 6vw, 78px) 48px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto 64px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 46px; align-items: start; }
footer img.logo-foot { width: 176px; }
footer .f-tag { margin-top: 18px; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--encre-soft); max-width: 30ch; }
footer h5 { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 400; color: var(--terre-deep); margin-bottom: 18px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
footer a, footer li { color: var(--encre-soft); font-size: .94rem; text-decoration: none; }
footer a:hover { color: var(--terre); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid rgba(67,62,53,.1); font-size: .8rem; color: var(--encre-soft); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
