/* =========================================================
   Biodanza Bordeaux — feuille de style
   Mobile d'abord : les règles de base valent pour le mobile,
   le bloc @media (min-width: 768px) en bas ajuste le bureau.
   Une classe = une règle (par breakpoint) pour l'éditeur visuel.
   ========================================================= */

:root {
  --ink: #1F2A1A;        /* texte principal */
  --body: #45503F;       /* texte courant */
  --muted: #5D6756;      /* texte discret (pied de page) */
  --leaf: #4F7A26;       /* vert des liens et sur-titres */
  --leaf-dark: #36561A;  /* vert au survol */
  --forest: #2E4A17;     /* vert foncé des étiquettes */
  --lime: #C7E89E;       /* vert clair sur fond sombre */
  --lime-bright: #B5E07F;
  --rule: #A9D27E;       /* filet de la citation */
  --mint: #EEF4E3;       /* fonds des encarts */
  --sage: #CEE5B2;       /* fond de la section professeur */
  --line: #E3E6DB;       /* bordures */
  --cream: #FBF9F4;      /* fond de page */
  --bark: #3A2418;       /* fond du hero */
  --night: #140C06;      /* menu mobile */
  --moss: #24361A;       /* fond de la section contact */
  --white: #FFFFFF;
  --font-sans: Figtree, sans-serif;
  --font-serif: Fraunces, Georgia, serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.nav-locked { overflow: hidden; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-sans); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
img { max-width: 100%; }
/* Les ancres s'arrêtent sous la barre de navigation fixe */
:target, section[id], header[id] { scroll-margin-top: calc(var(--nav-h, 104px) + 16px); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--lime-bright); outline-offset: 3px; }

/* ---------- Typographie partagée ---------- */
.eyebrow { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf); }
.eyebrow--light { color: var(--lime); }
.title-2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -.01em; color: var(--ink); }
.title-2--light { color: var(--white); }
.title-3 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: var(--ink); }
.lead { font-size: 19px; line-height: 1.65; color: var(--body); }
.text { font-size: 17px; line-height: 1.7; color: var(--body); }
.link { color: var(--leaf); text-decoration: underline; }
.link:hover { color: var(--leaf-dark); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; background: var(--white); color: var(--ink); font-family: var(--font-sans); font-size: 16px; font-weight: 600; text-decoration: none; }
.btn--small { min-height: 44px; padding: 0 22px; font-size: 14px; letter-spacing: .04em; }

/* ---------- Mise en page ---------- */
.container { max-width: 1200px; margin-inline: auto; padding-inline: 32px; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.panel { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: clamp(28px, 5vw, 64px); border-radius: 28px; background: var(--mint); }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; min-height: 680px; padding-top: var(--nav-h, 104px); overflow: hidden; background: var(--bark); }
.hero__photo { position: absolute; inset: 0; background-image: url(public/biodanza-bordeaux-christine.jpeg); background-position: center; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; }
.hero__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .2); }
.hero__gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 6, .55) 0%, rgba(20, 12, 6, .25) 40%, rgba(20, 12, 6, .7) 100%); }
.hero__content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 48px 24px 96px; text-align: center; }
.hero__title { width: 100%; max-width: 860px; font-family: var(--font-serif); font-size: clamp(44px, 7vw, 92px); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; color: var(--white); }
.hero__accent { color: var(--lime-bright); }
.hero__lead { max-width: 560px; font-size: 20px; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }

/* ---------- Barre de navigation (mobile : logo + menu plein écran) ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: transparent; transition: background-color .3s ease; }
.topbar.is-scrolled { background: rgba(0, 0, 0, .3); }
.nav { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 1280px; margin: 0 auto; padding: 20px 32px; }
.nav__logo { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.nav__logo-img { display: block; height: 64px; width: auto; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); }
.menu-toggle { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 48px; height: 48px; margin: 0; padding: 12px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.menu-toggle__bar { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .3s ease, opacity .2s ease; }
.nav-open .menu-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .menu-toggle__bar:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav__links { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100vh; height: 100dvh; padding: 120px 32px 48px; overflow-y: auto; background: var(--night); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.nav-open .nav__links { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.nav__link { padding: 10px 4px; color: var(--white); font-family: var(--font-sans); font-size: 26px; font-weight: 600; text-decoration: none; }
.nav__link:hover { color: var(--lime); }
.nav__link--current { color: var(--lime); }
.nav__cta { margin-top: 16px; }

/* ---------- Qu'est-ce que la Biodanza ---------- */
.intro { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 112px; padding-bottom: 0; text-align: center; }
.intro__icon { width: 64px; height: auto; }
.intro__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.pill { padding: 12px 20px; border-radius: 999px; background: var(--mint); color: var(--ink); font-size: 17px; }
.intro__motto { margin-top: 4px; font-family: var(--font-serif); font-size: 26px; font-style: italic; color: var(--leaf); }

/* ---------- Origine ---------- */
.origine { padding-block: 48px; }
.origine__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.origine__figure { position: relative; flex: 1 1 380px; }
.origine__img { display: block; width: 100%; aspect-ratio: 720 / 506; object-fit: cover; border-radius: 18px; }
.origine__caption { position: absolute; top: 100%; left: 0; right: 0; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--body); }

/* ---------- Définition ---------- */
.definition { padding-block: 112px; }
.definition__grid { display: flex; flex-wrap: wrap; gap: 56px; }
.definition__aside { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; }
.definition__eyebrow { margin-bottom: 10px; }
.definition__quote { margin-top: 12px; padding-top: 34px; border-top: 1px solid var(--rule); font-family: var(--font-serif); font-size: 22px; line-height: 1.4; color: var(--ink); }
.definition__body { flex: 2 1 480px; display: flex; flex-direction: column; gap: 18px; }

/* ---------- Bandeau photos ---------- */
.photos { padding-top: 24px; padding-bottom: 48px; }
.photos__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.photos__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.photos__img--top { object-position: center 30%; }

/* ---------- Applications ---------- */
.applications { padding-top: 48px; padding-bottom: 72px; }
.applications__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 24px; }
.applications__list { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; }
.applications__intro { padding-bottom: 16px; font-size: 17px; font-weight: 600; color: var(--ink); }
.benefit { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--white); }
.benefit__icon { flex: none; margin-top: 2px; }
.benefit__text { font-size: 17px; line-height: 1.7; color: var(--ink); }

/* ---------- Logo rond ---------- */
.badge { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 56px; }
.badge__circle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 280px; height: 280px; border-radius: 999px; background: var(--white); }
.badge__img { display: block; width: 240px; height: auto; aspect-ratio: 300 / 298; object-fit: cover; border-radius: 999px; }

/* ---------- Les objectifs (5 lignes) ---------- */
.objectifs { padding-block: 112px; background: var(--white); }
.objectifs__inner { display: flex; flex-direction: column; gap: 72px; }
.objectifs__lead { max-width: 640px; }
.ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.ligne--reverse { flex-direction: row-reverse; }
.ligne__img { display: block; flex: 1 1 420px; min-width: 0; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 24px; }
.ligne__img--low { object-position: center 62%; }
.ligne__img--mid { object-position: center 45%; }
.ligne__text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.ligne__num { font-family: var(--font-serif); font-size: 18px; color: var(--leaf); }
.objectifs__closing { max-width: 720px; margin: 88px auto 0; font-family: var(--font-serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.4; text-align: center; color: var(--ink); }

/* ---------- Le professeur ---------- */
.professeur { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 50px; padding-block: 72px; background: var(--sage); }
.professeur__wrap { width: 100%; }
.profile { display: flex; flex-wrap: wrap; width: 100%; overflow: hidden; border-radius: 28px; background: var(--white); }
.profile__photo { display: block; flex: 1 1 400px; width: 100%; min-width: 0; min-height: 420px; object-fit: cover; object-position: center 40%; }
.profile__body { flex: 1 1 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; width: 100%; min-width: 0; padding: clamp(24px, 3.5vw, 44px) clamp(24px, 3.5vw, 48px); }
.profile__intro { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.profile__name { margin-bottom: 2px; font-family: var(--font-serif); font-size: clamp(32px, 4vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); }
.profile__tagline { max-width: 420px; margin-bottom: 4px; font-size: 18px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.profile__bio { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.profile__text { font-size: 15px; line-height: 1.6; color: var(--body); }
.extensions { display: flex; flex-direction: column; gap: 26px; width: 100%; max-width: 879px; padding: 0 24px; }
.extensions__intro { margin-top: 6px; font-size: 14px; font-weight: 600; text-align: center; color: var(--ink); }
.extensions__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--white); color: var(--forest); font-size: 13px; font-weight: 500; }

/* ---------- Horaires (mobile : une colonne Lundi, Mardi, Dimanche, Maisons de retraite) ---------- */
.horaires { padding-top: 92px; padding-bottom: 64px; }
.horaires__head { margin-bottom: 56px; }
.horaires__title { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
.horaires__icon { display: block; width: 48px; height: auto; aspect-ratio: 1; object-fit: cover; }
.horaires__label { display: flex; flex-direction: column; gap: 12px; }
.horaires__eyebrow { line-height: normal; }
.schedule { display: flex; flex-direction: column; gap: 24px; }
.schedule__col { display: contents; }
.slot { display: flex; flex-direction: column; gap: 10px; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.slot--lundi { order: 1; }
.slot--mardi { order: 2; }
.slot--dimanche { order: 3; }
.slot--retraite { order: 4; }
.slot__img { display: block; width: 100%; height: 210px; object-fit: cover; }
.slot__body { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.slot__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.slot__time { font-size: 20px; font-weight: 700; color: var(--ink); }
.tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--mint); color: var(--forest); font-size: 14px; font-weight: 600; }
.slot__place { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; }
.slot__icon { flex: none; margin-top: 2px; }
.slot__note { font-size: 16px; line-height: 1.7; color: var(--body); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; background: var(--moss); }
.contact__photo { position: absolute; inset: 0; background-image: url(images/contact-fougere.jpg); background-position: center; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; }
.contact__shade { position: absolute; inset: 0; background: rgba(20, 34, 12, .62); }
.contact__inner { position: relative; display: flex; flex-direction: column; gap: 48px; padding-block: 112px; }
.contact__head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.contact__email { margin-top: 8px; }
.maps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.map-card { overflow: hidden; border-radius: 24px; background: var(--white); }
.map-card__map { display: block; width: 100%; height: 260px; border: 0; }
.map-card__info { padding: 20px 24px; }
.map-card__name { font-weight: 600; }
.map-card__address { font-size: 15px; line-height: 1.7; color: var(--body); }

/* ---------- Pied de page ---------- */
.footer { padding: 72px 0 40px; background: var(--cream); }
.footer__inner { display: flex; flex-direction: column; gap: 48px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__logo { display: block; height: 88px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.footer__link { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- Bureau (768px et plus) ---------- */
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav__links { position: static; z-index: auto; flex-direction: row; flex-wrap: wrap; gap: 4px 28px; height: auto; padding: 0; overflow: visible; background: none; opacity: 1; visibility: visible; transition: none; }
  .nav__link { padding: 12px 4px; font-size: 16px; }
  .nav__cta { margin-top: 0; }
  .intro { padding-bottom: 48px; }
  .schedule { flex-direction: row; flex-wrap: wrap; }
  .schedule__col { display: flex; flex: 1 1 340px; flex-direction: column; gap: 24px; min-width: 0; }
}

/* ---------- Écrans tactiles : pas d'image fixe (non supporté) ---------- */
@media (hover: none) {
  .hero__photo { background-attachment: scroll; }
  .contact__photo { background-attachment: scroll; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Apparition douce au défilement ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    section > *:not(.no-reveal), footer > * { animation: fadeUp linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
/* Solution de secours (navigateurs sans animation-timeline, ex. Firefox) */
.js-io section > *:not(.no-reveal), .js-io footer > * { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js-io .is-visible { opacity: 1 !important; transform: none !important; }
