/* ============================================
   MOVE AND BREATHE PILATES STUDIO — Design System
   Palette inspirée du logo de Coralie Delahaye
   © 2026 Mapa Développement
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* ===== Palette officielle — Charte graphique Move & Breathe ===== */
  /* Fonds clairs (Cyan clair fond #F8F7F1) */
  --cream: #F8F7F1;
  --cream-soft: #FBFAF5;
  --beige: #D1CFC2;        /* Jaune grisé pastel */
  --beige-deep: #B3B1A4;   /* Jaune grisé assombri */

  /* Cyans grisés pastel (#A9C8C6) — déclinaison claire → moyenne */
  --sage-pale: #D3E2E0;
  --sage: #A9C8C6;         /* Cyan grisé pastel (charte) */
  --sage-deep: #7FA8A6;

  /* Cyans profonds — accents principaux */
  --teal: #327073;         /* Cyan Pilates Reformer (charte) */
  --teal-deep: #0C555B;    /* Cyan foncé logo (charte) */
  --teal-mid: #418184;
  --teal-light: #C2D9D7;
  --teal-soft: #E4EEED;

  /* Ink / textes */
  --ink: #1A2526;
  --ink-soft: #334344;
  --ink-mute: #5E6F6E;
  --ink-faint: #AAB7B5;

  --white: #FFFFFF;
  --black: #07292B;

  /* Typography — Charte : Playfair Display (titres) + Segoe (textes) */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Segoe, Tahoma, Geneva, Verdana, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(4rem, 9vw, 8rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  font-weight: 400;
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--teal); color: var(--cream); }

/* ============================================
   TYPOGRAPHY
   ============================================ */

.h-mega {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 8.5vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  color: var(--teal-deep);
}
.h-mega em { font-style: italic; color: var(--teal); font-weight: 400; }

.h-1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--teal-deep);
}
.h-1 em { font-style: italic; color: var(--teal); font-weight: 400; }

.h-2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.8vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.008em;
  color: var(--teal-deep);
}
.h-2 em { font-style: italic; color: var(--teal); font-weight: 400; }

.h-3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.25;
  color: var(--teal-deep);
}
.h-3 em { font-style: italic; color: var(--teal); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--teal);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.light { color: var(--cream); }
.eyebrow.light::before { background: var(--sage); }
.eyebrow.muted { color: var(--beige-deep); }
.eyebrow.muted::before { background: var(--beige-deep); }

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.35vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.body-text {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--ink-soft);
  font-weight: 400;
}

.caption {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 400;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: var(--section-y) 0; }

.section-head {
  max-width: 680px;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.5rem; }
.section-head .lede { margin-top: 1.5rem; }

/* ============================================
   LOGO MARK (3 cercles + text)
   ============================================ */

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.logo-img {
  height: 68px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: opacity 0.3s var(--ease);
}
.logo-mark:hover .logo-img { opacity: 0.82; }
.logo-img-footer {
  height: 92px;
  margin-bottom: 0.5rem;
}
.logo-mark-svg {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}
.logo-mark-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-mark-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--teal-deep);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.logo-mark-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal-mid);
  margin: 0 0.15em;
}
.logo-mark-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.7rem;
  color: var(--teal-mid);
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem var(--gutter);
  background: rgba(241, 237, 224, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(181, 176, 156, 0.18);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.scrolled {
  padding: 0.7rem var(--gutter);
  background: rgba(241, 237, 224, 0.95);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 0.5rem 0;
  font-weight: 400;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--teal);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--teal);
  color: var(--cream) !important;
  padding: 0.72rem 1.6rem !important;
  border-radius: 999px;
  font-size: 0.7rem !important;
  letter-spacing: 0.14em !important;
  font-weight: 500 !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(12, 85, 91, 0.18);
  transition: color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.3s var(--ease) !important;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal-deep);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s var(--ease);
  z-index: -1;
  border-radius: 999px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  color: var(--cream) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(12, 85, 91, 0.3);
}
.nav-cta:hover::before {
  transform: scaleX(1);
  transform-origin: left center;
}
.nav-cta:active { transform: translateY(0); }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  z-index: 110;
}
.nav-burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1px;
  background: var(--teal-deep);
  transition: all 0.3s var(--ease);
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-burger span:nth-child(3) { top: 26px; }
.nav-burger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 72, 71, 0.22);
}

.btn-outline {
  background: transparent;
  border-color: var(--teal-deep);
  color: var(--teal-deep);
}
.btn-outline:hover {
  background: var(--teal-deep);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 0.6rem 0;
  border-radius: 0;
  border-bottom: 1px solid var(--beige-deep);
}
.btn-ghost:hover { color: var(--teal); border-color: var(--teal); }
.btn-ghost .arrow { transition: transform 0.3s var(--ease); }
.btn-ghost:hover .arrow { transform: translateX(6px); }

.btn-light {
  background: var(--cream);
  color: var(--teal-deep);
}
.btn-light:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
  padding: clamp(8rem, 16vw, 12rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(58, 110, 108, 0.10) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}
/* Logo circles backdrop on page headers */
.page-header::after {
  content: '';
  position: absolute;
  top: 50%; right: -140px;
  transform: translateY(-50%);
  width: 480px; height: 480px;
  background:
    radial-gradient(circle at 50% 30%, var(--sage-deep) 0%, transparent 26%),
    radial-gradient(circle at 32% 65%, var(--sage) 0%, transparent 26%),
    radial-gradient(circle at 68% 65%, var(--sage-pale) 0%, transparent 26%);
  opacity: 0.5;
  pointer-events: none;
  filter: blur(1px);
}
.page-header .container { position: relative; z-index: 1; }
.page-header-inner { max-width: 880px; }
.page-header .eyebrow { margin-bottom: 1.5rem; }
.page-header h1 { margin-bottom: 1.25rem; }
.page-header .lede { max-width: 620px; }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--ink-mute); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb-sep { color: var(--beige-deep); }

/* ============================================
   THREE CIRCLES MOTIF (echoing the logo)
   ============================================ */

.circles-motif {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
}
.circles-motif .circle {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
.circles-motif .circle-1 { top: 0; left: 19%; background: var(--sage-deep); opacity: 0.85; }
.circles-motif .circle-2 { bottom: 0; left: 0; background: var(--sage); opacity: 0.85; }
.circles-motif .circle-3 { bottom: 0; right: 0; background: var(--sage-pale); opacity: 0.95; }

/* ============================================
   MARQUEE
   ============================================ */

.marquee {
  background: var(--teal-deep);
  padding: 1.1rem 0;
  overflow: hidden;
  display: flex;
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--teal-deep), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--teal-deep), transparent); }
.marquee-track {
  display: flex;
  gap: 3.5rem;
  animation: marquee 32s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: rgba(241, 237, 224, 0.88);
  display: flex;
  align-items: center;
  gap: 3.5rem;
}
.marquee-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   IMAGE PANELS
   ============================================ */

.img-panel {
  position: relative;
  overflow: hidden;
  background: var(--sage);
  border-radius: 2px;
}
.img-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-panel-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--teal-deep) 0%, var(--teal) 50%, var(--teal-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-panel-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(220, 227, 214, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0,0,0,0.18) 0%, transparent 60%);
}
.img-panel-label {
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241, 237, 224, 0.6);
  background: rgba(18, 46, 45, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.silhouette-yoga,
.silhouette-pilates,
.silhouette-meditation {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.silhouette-yoga svg,
.silhouette-pilates svg,
.silhouette-meditation svg {
  width: 60%;
  height: auto;
  opacity: 0.3;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--teal-deep);
  color: var(--sage-pale);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
  opacity: 0.4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.footer-brand span {
  font-style: italic;
  color: var(--sage);
  margin: 0 0.1em;
}
.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(241, 237, 224, 0.65);
  max-width: 280px;
  margin-top: 0.85rem;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(191, 213, 207, 0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-pale);
  transition: all 0.3s var(--ease);
}
.footer-social a:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--teal-deep);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-col-title {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.25rem;
  font-weight: 400;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-links a {
  font-size: 0.86rem;
  color: rgba(241, 237, 224, 0.55);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--sage); }

.footer-bottom {
  border-top: 1px solid rgba(241, 237, 224, 0.08);
  padding-top: 2rem;
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  font-size: 0.75rem;
  color: rgba(241, 237, 224, 0.4);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom a:hover { color: var(--sage); }
.footer-credit {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(241, 237, 224, 0.4);
}
.footer-credit a {
  color: rgba(241, 237, 224, 0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(241, 237, 224, 0.2);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-credit a:hover { color: var(--sage); border-color: var(--sage); }

footer .logo-mark-title { color: var(--cream); }
footer .logo-mark-title em { color: var(--sage); }
footer .logo-mark-sub { color: var(--sage); }

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--cream-soft);
  border: 1px solid var(--beige);
  border-radius: 4px;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--sage-deep);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(30, 72, 71, 0.18);
}

/* ============================================
   ANIMATIONS — reveal on scroll
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ============================================
   ANIMATIONS — Premium motion
   ============================================ */

/* ---- Reveal with blur fade (upgrade of basic reveal) ---- */
.reveal-blur {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(36px);
  transition: opacity 1.1s var(--ease-out), filter 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.reveal-blur.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ---- Logo breathing (hero) ---- */
@keyframes breathe-1 {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 0.95; }
}
@keyframes breathe-2 {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.04); opacity: 0.95; }
}
@keyframes breathe-3 {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.05); opacity: 1; }
}
.hero-logo-c1 {
  animation: breathe-1 7s ease-in-out infinite;
  transform-origin: center;
}
.hero-logo-c2 {
  animation: breathe-2 7s ease-in-out infinite 1.5s;
  transform-origin: center;
}
.hero-logo-c3 {
  animation: breathe-3 7s ease-in-out infinite 3s;
  transform-origin: center;
}

/* Nav logo: subtle breathing */
@keyframes breathe-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.logo-mark-svg circle {
  animation: breathe-soft 6s ease-in-out infinite;
  transform-origin: center;
}
.logo-mark-svg circle:nth-child(2) { animation-delay: 1.2s; }
.logo-mark-svg circle:nth-child(3) { animation-delay: 2.4s; }

/* ---- Split word reveal ---- */
.split-text { display: inline; }
.split-text .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out), filter 0.85s var(--ease-out);
  will-change: transform, opacity, filter;
}
.split-text.lit .word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---- Scroll-driven text reveal (manifesto-style) ---- */
.scroll-reveal-text {
  position: relative;
}
.scroll-reveal-text .word {
  display: inline-block;
  margin-right: 0.22em;
  color: rgba(58, 110, 108, 0.18);
  transition: color 0.6s var(--ease-out);
  will-change: color;
}
.scroll-reveal-text .word.lit {
  color: var(--ink-soft);
}
.scroll-reveal-text.serif .word.lit {
  color: var(--teal-deep);
}
.scroll-reveal-text em {
  font-style: italic;
}
.scroll-reveal-text em .word.lit { color: var(--teal); }

/* ---- Magnetic interaction ---- */
.btn-magnetic,
[data-magnetic] {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

/* ---- Custom cursor ---- */
.custom-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s, width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: multiply;
}
.custom-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s, width 0.4s var(--ease), height 0.4s var(--ease), border-color 0.3s, background 0.3s;
  mix-blend-mode: multiply;
}
.custom-cursor-dot.visible,
.custom-cursor-ring.visible { opacity: 1; }
.custom-cursor-ring.hovering {
  width: 64px; height: 64px;
  background: rgba(30, 72, 71, 0.06);
  border-color: var(--teal);
}
.custom-cursor-ring.text-hovering {
  width: 4px; height: 26px;
  border-radius: 2px;
  background: var(--teal);
  border: none;
}
.custom-cursor-dot.text-hovering { opacity: 0; }

/* Hide custom cursor on touch devices */
@media (hover: none), (pointer: coarse) {
  .custom-cursor-dot, .custom-cursor-ring { display: none !important; }
}

/* ---- Stats counter ---- */
.counter-num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ---- Parallax helper ---- */
[data-parallax] {
  will-change: transform;
}

/* ---- Image card hover (practice cards) ---- */
.practice-card .practice-visual {
  overflow: hidden;
}
.practice-card .practice-circles {
  transition: transform 1.2s var(--ease-out);
}
.practice-card:hover .practice-circles {
  transform: scale(1.08) rotate(3deg);
}

/* ---- Marquee on hover : slow down ---- */
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* ---- Nav scroll progress ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--sage-deep));
  z-index: 101;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
  pointer-events: none;
}

/* ---- Smooth hover on links ---- */
.hover-shift {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: gap 0.4s var(--ease);
}
.hover-shift:hover { gap: 1rem; }

/* ---- Underline expand on links ---- */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---- Gentle float for decorative elements ---- */
@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-gentle { animation: float-gentle 6s ease-in-out infinite; }

/* ---- Stagger fade-in for grids ---- */
.stagger-fade > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.stagger-fade.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-fade.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.stagger-fade.visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: translateY(0); }
.stagger-fade.visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: translateY(0); }
.stagger-fade.visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: translateY(0); }
.stagger-fade.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }
.stagger-fade.visible > *:nth-child(n+7) { transition-delay: 0.47s; opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal-blur,
  .split-text .word,
  .scroll-reveal-text .word,
  .stagger-fade > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    color: var(--ink-soft) !important;
  }
  .hero-logo-c1, .hero-logo-c2, .hero-logo-c3,
  .logo-mark-svg circle,
  .float-gentle { animation: none !important; }
  .custom-cursor-dot, .custom-cursor-ring { display: none !important; }
}

/* ============================================
   DOT BACKGROUND
   ============================================ */

.dot-bg { position: relative; }
.dot-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(58, 110, 108, 0.14) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.6;
}
.dot-bg > * { position: relative; z-index: 1; }

/* ============================================
   STATS
   ============================================ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--beige-deep);
  padding-top: 1.75rem;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 400;
  color: var(--teal-deep);
  display: block;
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat-num em { font-style: italic; color: var(--teal); }
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-top: 0.6rem;
  font-weight: 400;
  line-height: 1.4;
}
.stats-row.light .stat-num { color: var(--cream); }
.stats-row.light .stat-label { color: rgba(241, 237, 224, 0.55); }
.stats-row.light { border-color: rgba(241, 237, 224, 0.15); }

/* ============================================
   FORM
   ============================================ */

.form-grid { display: grid; gap: 1.25rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  background: var(--cream-soft);
  border: 1px solid var(--beige);
  border-radius: 2px;
  padding: 0.95rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-weight: 300;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 72, 71, 0.08);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 1100px) {
  .nav-links {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--cream);
    background-color: #F8F7F1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.3rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
    padding: 5.5rem 2rem 3rem;
    overflow-y: auto;
    z-index: 90;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links a {
    font-family: var(--serif);
    font-size: 1.5rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
    color: var(--teal-deep);
  }
  .nav-cta {
    margin-top: 1rem;
    font-family: var(--sans) !important;
    font-size: 0.78rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
  }
  .nav-burger { display: block; position: relative; z-index: 95; }
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
  .footer-credit { position: static; transform: none; left: auto; padding-top: 0.75rem; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --gutter: 1.25rem; }
  .marquee-item { font-size: 0.95rem; gap: 2rem; }
  .marquee-track { gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-img { height: 44px; }
  .logo-img-footer { height: 76px; }
  .page-header::after { width: 320px; height: 320px; right: -100px; opacity: 0.4; }

  /* Boutons : autoriser le retour à la ligne sur petits écrans */
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
  .hero-actions .btn,
  .ent-cta .btn,
  .cta-final .btn { width: 100%; justify-content: center; }

  /* Titres méga un peu réduits pour éviter coupures */
  .h-mega { font-size: clamp(2.4rem, 11vw, 3.2rem); }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mt-4 { margin-top: 3rem; }
.mt-5 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2.25rem; }
.mb-4 { margin-bottom: 3rem; }
.mb-5 { margin-bottom: 4rem; }

/* ============================================
   FAQ — Accordéon
   ============================================ */

.faq-section { background: var(--cream); }
.faq-section.soft { background: var(--cream-soft); }
.faq-list {
  max-width: 820px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--beige);
}
.faq-item:first-child { border-top: 1px solid var(--beige); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.6rem 3rem 1.6rem 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  color: var(--teal-deep);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: color 0.3s var(--ease);
  line-height: 1.3;
}
.faq-q:hover { color: var(--teal); }
.faq-q-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.faq-q-icon::before,
.faq-q-icon::after {
  content: '';
  position: absolute;
  background: var(--teal);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.faq-q-icon::before {
  top: 50%; left: 0;
  width: 100%; height: 1.5px;
  transform: translateY(-50%);
}
.faq-q-icon::after {
  left: 50%; top: 0;
  width: 1.5px; height: 100%;
  transform: translateX(-50%);
}
.faq-item.open .faq-q-icon::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}
.faq-item.open .faq-q { color: var(--teal); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.faq-a-inner {
  padding: 0 3rem 1.7rem 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.faq-item.open .faq-a {
  max-height: 320px;
}

@media (prefers-reduced-motion: reduce) {
  .faq-a { transition: none; }
  .faq-q-icon::before, .faq-q-icon::after { transition: none; }
}

@media (max-width: 600px) {
  .faq-q { font-size: 1.05rem; padding-right: 2.5rem; }
  .faq-a-inner { padding-right: 1.5rem; }
}
