/* ===== Design tokens ===== */
:root {
  --color-cream: #FBF8F3;
  --color-cream-dark: #E1CCAD;
  --color-sage: #8A6B8D;
  --color-sage-dark: #5C4660;
  --color-terracotta: #764979;
  --color-terracotta-dark: #5C3960;
  --color-gold: #8A6D1B;
  --color-gold-dark: #6E5715;
  --color-charcoal: #242424;
  --color-charcoal-soft: #413625;
  --color-white: #FFFFFF;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Karla', sans-serif;

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --container-w: 1180px;
  --shadow-soft: 0 20px 50px -25px rgba(43, 39, 34, 0.35);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-y: scroll;
  /* Le header est en position: sticky (site-header) : sans ce décalage, sauter
     vers une ancre comme #home/#yoga/#abonnements aligne le haut de la section
     avec le haut du viewport, et le header sticky vient alors recouvrir le
     début de son contenu (obligeant à remonter pour le voir en entier). */
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-charcoal);
}

em {
  color: var(--color-terracotta);
  font-style: italic;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

.btn-primary {
  background: var(--color-cream-dark);
  color: var(--color-charcoal-soft);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: #D6B98F;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-charcoal);
  border-color: rgba(43, 39, 34, 0.25);
}
.btn-ghost:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
  border-color: var(--color-charcoal);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 39, 34, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.logo-dot { color: var(--color-terracotta); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-terracotta);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.nav-item { position: relative; display: flex; align-items: center; }
.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--color-charcoal);
  white-space: nowrap;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover { background: var(--color-cream); color: var(--color-terracotta); }

.nav-highlight {
  background: var(--color-gold);
  color: var(--color-white) !important;
  padding: 6px 14px !important;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.nav-highlight::after { display: none; }
.nav-highlight:hover { background: var(--color-gold-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
}

/* ===== Parallax (CSS-only, fixed attachment on the section itself) ===== */
.parallax-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
@media (max-width: 900px) {
  /* background-attachment: fixed is unreliable on mobile browsers — fall back to scroll */
  .parallax-section {
    background-attachment: scroll;
  }
}

/* ===== Hero shared bits ===== */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-sage-dark);
  margin-bottom: 14px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 48px;
}
/* ===== Hero slider ===== */
.hero-slider {
  background: #F2E6D3;
  overflow-anchor: none;
}
.slider {
  position: relative;
  overflow: hidden;
}
.slide {
  display: none;
  position: relative;
  min-height: 600px;
}
.slide.is-active {
  display: block;
  animation: slideFade 0.6s ease;
}
@keyframes slideFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.slide-grid {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 600px;
}
.slide-copy { max-width: 480px; }
.slide-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-charcoal-soft);
  margin-bottom: 22px;
}
.slide-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: rgba(43, 39, 34, 0.3);
}
.slide-copy h1,
.slide-copy h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 600;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  line-height: 1.18;
  margin-bottom: 24px;
}
.slide-text {
  color: var(--color-charcoal-soft);
  font-size: 1.02rem;
  max-width: 38ch;
  margin-bottom: 32px;
}
.slide-copy .btn { margin-top: 4px; }

.slide-media {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  overflow: hidden;
}
.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.slide-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #F2E6D3 0%,
    rgba(242, 230, 211, 0.88) 10%,
    rgba(242, 230, 211, 0.55) 18%,
    rgba(242, 230, 211, 0.22) 26%,
    transparent 36%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 16%, transparent 34%);
  mask-image: linear-gradient(90deg, #000 0%, #000 16%, transparent 34%);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(251, 248, 243, 0.85);
  border: 1px solid rgba(43, 39, 34, 0.15);
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.slider-arrow svg { width: 20px; height: 20px; }
.slider-arrow:hover { background: var(--color-white); transform: translateY(-50%) scale(1.06); }
.slider-arrow-prev { left: 24px; }
.slider-arrow-next { right: 24px; }

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(43, 39, 34, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.slider-dot.is-active {
  background: var(--color-terracotta);
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .slide { min-height: 0; }
  .slide-grid {
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .slide-copy { max-width: none; text-align: center; }
  .slide-eyebrow { justify-content: center; }
  .slide-eyebrow::after { display: none; }
  .slide-media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 4/3;
  }
  .slide-media::after { display: none; }
  .slider-arrow { width: 38px; height: 38px; }
  .slider-arrow-prev { left: 12px; }
  .slider-arrow-next { right: 12px; }
}

/* ===== Sections ===== */
.section {
  padding: 96px 0;
}
.section-alt {
  background: #FBF3E8;
}
.section-feature {
  background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
  color: var(--color-cream-dark);
}
.section-feature h2,
.section-feature .check-list li {
  color: var(--color-white);
}
.section-feature .section-lead,
.section-feature .check-list li {
  color: var(--color-cream-dark);
}
.section-feature .eyebrow {
  color: var(--color-cream-dark);
}
.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  max-width: 18ch;
}
.section-lead {
  max-width: 56ch;
  color: var(--color-charcoal-soft);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(118, 73, 121, 0.1);
  color: var(--color-terracotta);
}
.card-icon svg {
  width: 22px;
  height: 22px;
}
.card h3 { font-size: 1.25rem; }
.card p { color: var(--color-charcoal-soft); flex-grow: 1; }
.card-link {
  font-weight: 600;
  color: var(--color-terracotta);
  margin-top: 12px;
}
.card-link:hover { text-decoration: underline; }

.card-product {
  padding: 0;
  overflow: hidden;
}
.card-product h3, .card-product p {
  padding: 0 20px;
}
.card-product h3 { margin-top: 18px; font-size: 1.05rem; }
.card-product p { padding-bottom: 20px; color: var(--color-charcoal-soft); font-size: 0.9rem; }
.card-product-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-cream-dark);
}
.card-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card-product:hover .card-product-img img {
  transform: scale(1.06);
}

.card-article-img {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin: -32px -32px 20px;
}
.card-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-article .tag {
  display: inline-block;
  background: var(--color-cream-dark);
  color: var(--color-sage-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.card-article h3 { font-size: 1.1rem; }
.card-article h3 a { color: inherit; text-decoration: none; }
.card-article h3 a:hover { color: var(--color-terracotta); }
.card-article p { color: var(--color-charcoal-soft); }

.center-action {
  text-align: center;
  margin-top: 44px;
}

/* ===== Institut ===== */
.institut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.institut-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--color-cream-dark) 0%, var(--color-charcoal-soft) 100%);
  background-size: cover;
  background-position: center;
}
.institut-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15), transparent 45%);
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--color-charcoal-soft);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-cream-dark);
  font-weight: 700;
}

/* ===== À propos ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--color-cream-dark) 0%, var(--color-charcoal-soft) 100%);
  background-size: cover;
  background-position: center;
}
.about-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15), transparent 45%);
}
.about-content .check-list { margin-top: -8px; }
.about-quote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--color-terracotta);
  background: var(--color-cream-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-charcoal-soft);
  line-height: 1.6;
}

/* ===== Testimonial ===== */
.testimonial-section {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  isolation: isolate;
}
.testimonial-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(36,36,36,0.55), rgba(118,73,121,0.65));
}
.testimonial-section .container {
  position: relative;
  z-index: 1;
}
.testimonial {
  margin: 0 auto;
  text-align: center;
  max-width: 720px;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-style: italic;
  color: var(--color-white);
}
.testimonial cite {
  font-size: 0.9rem;
  color: var(--color-cream-dark);
  font-style: normal;
}

/* ===== CTA ===== */
.cta-section {
  padding: 80px 24px 96px;
}
.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr auto 1fr;
  gap: 56px;
  align-items: stretch;
  background:
    radial-gradient(circle at 110% -10%, rgba(225, 204, 173, 0.18), transparent 55%),
    radial-gradient(circle at -10% 110%, rgba(118, 73, 121, 0.35), transparent 55%),
    var(--color-charcoal);
  color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 64px;
  overflow: hidden;
}
.cta-card-main { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.eyebrow-on-dark { color: var(--color-cream-dark); }
.cta-section h2 {
  color: var(--color-cream);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  max-width: 16ch;
}
.cta-lead {
  color: rgba(251, 246, 239, 0.75);
  max-width: 42ch;
}
.cta-section .hero-actions { margin: 28px 0 0; margin-top: auto; }
.cta-section .btn-ghost { color: var(--color-cream); border-color: rgba(251,246,239,0.3); }
.cta-section .btn-ghost:hover { background: var(--color-cream); color: var(--color-charcoal); }
.btn-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
}

.cta-card-divider {
  align-self: stretch;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(251, 246, 239, 0.2), transparent);
}

.cta-card-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cta-side-label {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--color-white);
}
.cta-side-text {
  color: rgba(251, 246, 239, 0.65);
  font-size: 1rem;
  margin-bottom: 20px;
}

.newsletter { margin: 0; margin-top: auto; }
.newsletter label {
  display: block;
  font-size: 1rem;
  margin-bottom: 10px;
  color: rgba(251, 246, 239, 0.65);
}
.newsletter-row {
  display: flex;
  gap: 10px;
}
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(251, 246, 239, 0.25);
  background: rgba(251, 246, 239, 0.08);
  color: var(--color-cream);
  font-family: var(--font-body);
}
.newsletter input::placeholder { color: rgba(251, 246, 239, 0.5); }
.newsletter input:focus {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .cta-card {
    grid-template-columns: 1fr;
    padding: 48px 32px;
    gap: 32px;
    text-align: center;
  }
  .cta-card-divider { display: none; }
  .cta-section .hero-actions { justify-content: center; }
  .cta-lead { margin-inline: auto; }
}

/* ===== Footer ===== */
.site-footer {
  padding: 56px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(43, 39, 34, 0.1);
}
.logo-footer { display: inline-block; margin-bottom: 8px; }
.footer-inner p { color: var(--color-charcoal-soft); margin: 0; }
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(43, 39, 34, 0.18);
  color: var(--color-charcoal);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-social svg { width: 18px; height: 18px; }
.footer-social a:hover {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-white);
}
.footer-bottom {
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--color-charcoal-soft);
}

/* ===== Responsive ===== */
/* Nav switches to the hamburger menu earlier than the other breakpoints below:
   with 7 nav links + the Formations pill, the full nav no longer fits next to
   the logo and header actions once the viewport drops under ~1080px — it was
   overflowing and butting up against the logo with no gap. */
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .institut-grid { grid-template-columns: 1fr; }
  .institut-media { order: -1; aspect-ratio: 16/9; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; aspect-ratio: 16/9; }
}

@media (max-width: 600px) {
  .hero { padding: 90px 0 70px; }
  .section { padding: 64px 0; }
  .card-grid, .card-grid-4 { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .newsletter-row { flex-direction: column; }
  .cta-section { margin: 0 12px; }
  .header-actions .btn-sm { display: none; }
}

/* ===== Mobile nav (open state) ===== */
.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-cream);
  padding: 24px;
  gap: 18px;
  border-bottom: 1px solid rgba(43, 39, 34, 0.08);
}
.nav.is-open .nav-dropdown {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  background: transparent;
  min-width: 0;
  padding: 10px 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav.is-open .nav-dropdown a { padding: 6px 0; }
