/* ==========================================================================
   Amélie Riendeau, ostéopathe : feuille de style
   ========================================================================== */

/* ---------- Jetons ---------- */
:root {
  /* Couleurs de marque */
  --c-bg: #F5F7F1;            /* fond principal */
  --c-mint: #D6E8DC;          /* sections menthe */
  --c-mint-soft: #E4EFE7;     /* carte Adultes */
  --c-mint-line: #A9C8B4;     /* filets section Approche */
  --c-sage: #7FA890;
  --c-sage-line: #9DBBA8;     /* bordure bouton secondaire */
  --c-eucalyptus: #36604F;    /* boutons, liens */
  --c-eucalyptus-dark: #2C5143;
  --c-forest: #4F7D69;        /* pied de page, galet */
  --c-peach: #EFB892;
  --c-peach-accent: #E9A97F;  /* soulignement du menu */
  --c-peach-line: #E2A57E;
  --c-peach-blob: #F6CBA9;
  --c-peach-bg: #FBE3D2;
  --c-peach-card: #FBE6D7;
  --c-peach-paper: #FFF6EF;
  --c-yellow: #E8CF8A;
  --c-yellow-card: #F7EDCF;
  --c-white: #FFFFFF;

  /* Texte */
  --c-text: #22302A;
  --c-text-nav: #3E4D46;
  --c-text-lead: #3B4842;
  --c-text-body: #34433C;
  --c-text-muted: #56645D;
  --c-text-peach: #4A3A30;
  --c-text-peach-muted: #6B4E3C;
  --c-text-peach-badge: #6B3E22;
  --c-text-yellow: #4A4330;

  /* Typographie */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Figtree', system-ui, sans-serif;
  --fs-base: 18px;
  --fs-small: 15px;
  --fs-ui: 16px;
  --fs-btn: 17px;
  --fs-h1: clamp(44px, 6vw, 78px);
  --fs-h2: clamp(34px, 4vw, 52px);
  --fs-lead: clamp(18px, 1.6vw, 21px);

  /* Espacements */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 84px;
  --radius-card: 28px;
  --radius-pill: 999px;
  --tap: 44px;

  /* Mouvement */
  --ease-out: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; }

a { color: var(--c-eucalyptus); text-underline-offset: 3px; }
a:hover { color: var(--c-text); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-eucalyptus);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

section { scroll-margin-top: var(--header-h); }

.serif {
  font-family: var(--font-serif);
  font-variation-settings: 'SOFT' 100, 'WONK' 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--c-eucalyptus);
  color: var(--c-white);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--c-white); }

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

.section--mint { background: var(--c-mint); }

.section-title {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.section-intro { margin: 20px 0 0; color: var(--c-text-lead); }
.section-intro--body { color: var(--c-text-body); }

/* ---------- Boutons ---------- */
.btn,
.btn-ghost,
.nav__link,
.menu-toggle,
.tap-link { box-sizing: border-box; }

.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: var(--fs-btn);
}

.btn {
  padding: 0 30px;
  background: var(--c-eucalyptus);
  color: var(--c-white);
  font-weight: 500;
  transition: background-color .4s ease, transform .4s ease, box-shadow .4s ease;
}
.btn:hover {
  background-color: var(--c-eucalyptus-dark);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(44, 81, 67, .6);
}

.btn-ghost {
  padding: 0 24px;
  border: 1.5px solid var(--c-sage-line);
  color: var(--c-text);
  transition: background-color .4s ease, border-color .4s ease;
}
.btn-ghost:hover {
  background-color: var(--c-peach-bg);
  border-color: var(--c-peach-accent);
  color: var(--c-text);
}

.btn-ghost--peach {
  border-color: var(--c-peach-line);
  background: var(--c-peach-paper);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 241, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(127, 168, 144, 0.3);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  color: var(--c-text);
  text-decoration: none;
}
.brand img { width: 32px; height: 38px; display: block; }
.brand__name { font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  font-size: var(--fs-ui);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 10px 4px;
  color: var(--c-text-nav);
  text-decoration: none;
  background-image: linear-gradient(var(--c-peach-accent), var(--c-peach-accent));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 82%;
  transition: background-size .5s ease, color .3s ease;
}
.nav__link:hover { color: var(--c-text); background-size: 100% 2px; }

.nav__cta {
  min-height: var(--tap);
  padding: 10px 20px;
  font-size: var(--fs-ui);
}

.menu-toggle { display: none; }

/* Menu mobile : actif seulement si le JavaScript est chargé (classe .js) */
@media (max-width: 1160px) {
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: var(--tap);
    min-width: var(--tap);
    padding: 0 18px;
    border: 1.5px solid var(--c-sage-line);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--c-text);
    font: 500 var(--fs-ui) / 1 var(--font-sans);
    cursor: pointer;
    transition: background-color .3s ease, border-color .3s ease;
  }
  .js .menu-toggle:hover { background: var(--c-peach-bg); border-color: var(--c-peach-accent); }

  .menu-toggle__icon {
    position: relative;
    width: 18px; height: 12px;
  }
  .menu-toggle__icon::before,
  .menu-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s ease, top .3s ease;
  }
  .menu-toggle__icon::before { top: 1px; }
  .menu-toggle__icon::after { top: 9px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 5px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 5px; transform: rotate(-45deg); }

  .js .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    font-size: var(--fs-base);
  }
  .js .nav.is-open { display: flex; }
  .js .nav__link {
    min-height: 52px;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(127, 168, 144, 0.3);
    background-position: 4px 78%;
  }
  .js .nav__link:hover { background-size: 3em 2px; }
  .js .nav__cta {
    justify-content: center;
    min-height: 54px;
    margin-top: 18px;
    font-size: var(--fs-btn);
  }
}

/* Téléphone : nom et bouton menu sur une seule ligne */
@media (max-width: 560px) {
  .site-header__inner { column-gap: 12px; flex-wrap: wrap; }
  .brand { flex: 1 1 0; min-width: 0; gap: 10px; }
  .brand__name { font-size: 17px; }
  .js .menu-toggle { justify-content: center; width: var(--tap); padding: 0; }
  .js .menu-toggle__label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) var(--gutter) clamp(64px, 8vw, 120px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 64px;
}

.hero__text { flex: 1 1 460px; min-width: 0; max-width: 620px; }

.badge {
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 8px;
  border-radius: var(--radius-pill);
  background: var(--c-peach-bg);
  font-size: var(--fs-small);
  color: var(--c-text-peach-badge);
}
.badge__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c-peach); }

.hero__title {
  margin: 0;
  font-size: var(--fs-h1);
  line-height: 1.03;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.hero__lead {
  margin: 28px 0 0;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--c-text-lead);
  max-width: 34em;
}

.hero .btn-row { margin-top: 40px; }

.hero__note { margin: 16px 0 0; font-size: var(--fs-small); color: var(--c-text-muted); }

.hero__media {
  position: relative;
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  transform-origin: 50% 100%;
  animation: appear 1.6s var(--ease-out) .2s both, breathe 9s ease-in-out 2s infinite;
}

/* ---------- Approche ---------- */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 80px;
}

.approach__intro { flex: 1 1 320px; min-width: 0; max-width: 420px; }
.approach__list { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; }

.pillar {
  display: flex;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--c-mint-line);
}
.pillar:last-child { border-bottom: 1px solid var(--c-mint-line); }

.pillar__dot {
  flex: none;
  width: 44px; height: 30px;
  margin-top: 2px;
  border-radius: 50%;
}

.pillar__title { margin: 0; font-size: 25px; font-weight: 400; }
.pillar__text { margin: 8px 0 0; color: var(--c-text-body); max-width: 36em; }

/* ---------- Pour qui ---------- */
.audience__intro { max-width: 640px; }

.cards {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  padding: 36px 32px 40px;
  border-radius: var(--radius-card);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.card--mint { background: var(--c-mint-soft); --card-text: var(--c-text-body); }
.card--peach { background: var(--c-peach-card); --card-text: var(--c-text-peach); }
.card--yellow { background: var(--c-yellow-card); --card-text: var(--c-text-yellow); }

.card__blob { width: 72px; height: 60px; }
.card__title { margin: 26px 0 10px; font-size: 27px; font-weight: 400; line-height: 1.2; }
.card__text { margin: 0; color: var(--card-text); }

/* ---------- À propos ---------- */
.about { align-items: center; gap: 48px 80px; }

.portrait {
  position: relative;
  flex: 0 1 320px;
  min-width: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.portrait__blob {
  position: absolute;
  width: 112%;
  aspect-ratio: 1 / 1.1;
  left: -10%;
  top: 6%;
  background: var(--c-peach);
  opacity: 0.55;
}

.portrait__frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 218 / 307;
  border-radius: 160px 160px 28px 28px;
  overflow: hidden;
  background: var(--c-bg);
  box-shadow: 0 0 0 8px var(--c-bg);
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about__text { flex: 1 1 440px; min-width: 0; max-width: 640px; }
.about__text p { margin: 16px 0 0; color: var(--c-text-body); }
.about__text .section-intro { margin-top: 20px; }

.credentials {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: var(--fs-ui);
}
.credentials li { display: flex; gap: 14px; align-items: baseline; }
.credentials__dot {
  flex: none;
  width: 12px; height: 9px;
  border-radius: 50%;
  transform: translateY(-1px);
}

/* ---------- Formations ---------- */
.training__intro { flex: 1 1 300px; min-width: 0; max-width: 400px; }

.timeline {
  flex: 2 1 520px;
  min-width: 0;
  margin: 0;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--c-mint);
  list-style: none;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0 24px;
  padding: 20px 0;
}

.timeline__dot {
  position: absolute;
  left: -38px; top: 30px;
  width: 18px; height: 14px;
  border-radius: 50%;
}

.timeline__year { margin: 0; font-size: 23px; color: var(--c-eucalyptus); }

.timeline__topics {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 560px) {
  .timeline { padding-left: 24px; }
  .timeline__item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .timeline__dot { left: -34px; top: 32px; }
  .timeline__topics { overflow-wrap: break-word; }
}

/* ---------- Questions fréquentes ---------- */
.faq__intro { flex: 1 1 300px; min-width: 0; max-width: 400px; }
.faq__list { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; }

.faq__item { border-top: 1px solid var(--c-mint-line); }
.faq__item:last-child { border-bottom: 1px solid var(--c-mint-line); }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--tap);
  padding: 20px 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  margin-right: 6px;
  border-right: 2px solid var(--c-eucalyptus);
  border-bottom: 2px solid var(--c-eucalyptus);
  transform: translateY(-4px) rotate(45deg);
  transition: transform .3s ease;
}
.faq__item[open] .faq__question::after { transform: translateY(3px) rotate(-135deg); }
.faq__question:hover { color: var(--c-eucalyptus); }
.faq__question:focus-visible {
  outline: 2px solid var(--c-eucalyptus);
  outline-offset: 3px;
  border-radius: 8px;
}

.faq__answer { margin: 0; padding: 0 0 24px; color: var(--c-text-body); max-width: 36em; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  background: var(--c-peach-bg);
  overflow: hidden;
}

.contact__blob-1 {
  position: absolute;
  width: 420px; height: 380px;
  right: -120px; top: -140px;
  background: var(--c-peach-blob);
  opacity: 0.7;
}
.contact__blob-2 {
  position: absolute;
  width: 220px; height: 200px;
  left: -80px; bottom: -90px;
  background: var(--c-mint);
}

.contact .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 80px;
  align-items: flex-start;
}

.contact__text { flex: 1 1 380px; min-width: 0; max-width: 560px; }
.contact__text .section-intro { color: var(--c-text-peach); }
.contact .btn-row { margin-top: 36px; }

.address {
  flex: 1 1 320px;
  min-width: 0;
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--c-peach-paper);
}
.address p { margin: 0; }
.address__name { margin-bottom: 4px !important; font-size: 27px; font-weight: 400; }
.address__muted { color: var(--c-text-peach-muted); font-size: var(--fs-ui); }
.address__street { margin-top: 16px !important; }
.address__links { margin-top: 10px !important; display: flex; flex-wrap: wrap; gap: 0 20px; }
.address__links--social { margin-top: 0 !important; font-size: var(--fs-ui); }

.tap-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--c-forest); color: var(--c-white); }

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--fs-small);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--c-white); }
.site-footer a:hover { color: var(--c-peach-bg); }
.site-footer a:focus-visible { outline-color: var(--c-white); }

/* ---------- Pastilles de couleur ---------- */
.bg-peach { background: var(--c-peach); }
.bg-yellow { background: var(--c-yellow); }
.bg-sage { background: var(--c-sage); }
.bg-forest { background: var(--c-forest); }

/* ---------- Formes organiques ---------- */
.blob {
  border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%;
  animation: morph 16s ease-in-out infinite alternate;
}
.blob2 { animation-duration: 21s; animation-direction: alternate-reverse; }

/* ---------- Animations ---------- */
@keyframes morph {
  0%   { border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; }
  50%  { border-radius: 44% 56% 46% 54% / 58% 44% 56% 42%; }
  100% { border-radius: 52% 48% 38% 62% / 44% 52% 48% 56%; }
}
@keyframes appear {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes breathe {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(1.02) translateY(-2px); }
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 45%;
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .blob, .hero-img { animation: none !important; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
