/* ============ Tokens ============ */
:root {
  --cream: #FAEBD2;
  --cream-soft: #F4E2C2;
  --green-deep: #1F3D2B;
  --green-deep-soft: #2A4F38;
  --ocre: #E8A845;
  --ocre-dark: #D6922C;
  --ink: #2B2620;
  --white: #FFFDF8;

  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Mulish", system-ui, sans-serif;

  --container: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 40px -22px rgba(31, 61, 43, 0.35);
  --transition: 0.6s cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-title); color: var(--green-deep); margin: 0 0 .5em; line-height: 1.15; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-deep);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  cursor: pointer;
  border: none;
}
.btn--accent {
  background: var(--ocre);
  color: var(--green-deep);
  box-shadow: inset 0 0 0 2px #FFFDF8, 0 10px 24px -10px rgba(232, 168, 69, 0.7);
}
.btn--accent:hover { background: var(--ocre-dark); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--green-deep);
  padding: 16px 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn--ghost:hover { color: var(--ocre-dark); }
.btn--outline-ocre {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ocre);
  box-shadow: none;
}
.btn--outline-ocre:hover { background: var(--ocre); color: var(--green-deep); transform: translateY(-2px); }
.btn--large { padding: 18px 40px; font-size: 1.05rem; }
.btn--small { padding: 10px 22px; font-size: .9rem; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 235, 210, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31,61,43,0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}
.nav__logo {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-deep);
}
.nav__links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav__links a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--green-deep-soft);
  position: relative;
}
.nav__links a:hover { color: var(--ocre-dark); }
.nav__cta { white-space: nowrap; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--green-deep);
  display: block;
}

@media (max-width: 880px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    display: none;
    border-bottom: 1px solid rgba(31,61,43,0.08);
  }
  .nav__links.is-open { display: flex; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Section titles ============ */
.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  text-align: center;
}
.section-subtitle {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  color: var(--green-deep-soft);
  font-size: 1.05rem;
}

section { padding: 100px 0; }

/* ============ Hero ============ */
.hero { padding-top: 70px; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: .2em;
}
.hero__subtitle {
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--ocre-dark);
  font-style: italic;
  margin-bottom: 1.2em;
}
.hero__body {
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2em;
  color: var(--green-deep-soft);
}
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero__visual {
  position: relative;
  min-height: 420px;
}
.hero__img-wrap {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero__img-wrap--main {
  width: 78%;
  top: 0;
  right: 0;
  aspect-ratio: 4/5;
}
.hero__img-wrap--accent {
  width: 48%;
  bottom: -40px;
  left: 0;
  aspect-ratio: 1/1;
  border: 6px solid #FFFDF8;
}
.hero__img-wrap img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 360px; order: -1; }
}

/* ============ Reconnaissez-vous ============ */
.recognize { background: var(--white); }
.recognize__list {
  max-width: 700px;
  margin: 0 auto 36px;
  display: grid;
  gap: 18px;
}
.recognize__list li {
  position: relative;
  padding: 16px 24px 16px 52px;
  background: var(--cream-soft);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-deep);
}
.recognize__list li::before {
  content: "🌿";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  line-height: 1;
}
.recognize__transition {
  text-align: center;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ocre-dark);
  font-weight: 700;
}

/* ============ Vision ============ */
.vision__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.vision__visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.section-title--left { text-align: left; }
.vision__grid {
  display: grid;
  gap: 22px;
}
.vision__col {
  background: var(--white);
  padding: 28px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.vision__col h3 { font-size: 1.2rem; }
.vision__col p { color: var(--green-deep-soft); margin: 0; font-size: .96rem; }

@media (max-width: 880px) {
  .vision__inner { grid-template-columns: 1fr; }
  .section-title--left { text-align: center; }
}

/* ============ Offer ============ */
.offer { background: var(--green-deep); }
.offer .section-title, .offer .section-subtitle { color: var(--cream); }
.offer .section-subtitle { color: rgba(250,235,210,0.75); }

.offer__cards {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: start;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-soft);
}
.card--programme {
  border: 3px solid var(--ocre);
  transform: translateY(-10px);
}
@media (max-width: 880px) {
  .offer__cards { grid-template-columns: 1fr; }
  .card--programme { transform: none; }
}

/* card content built in JS but styled here */
.card__badge {
  display: inline-block;
  background: var(--ocre);
  color: var(--green-deep);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.card__name { font-size: 1.4rem; margin-bottom: .3em; }
.card__price-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: .1em;
}
.card__price-original {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: #aaa;
  text-decoration: line-through;
  text-decoration-color: #aaa;
}
.card__price {
  font-family: var(--font-title);
  font-size: 2.4rem;
  color: var(--ocre-dark);
  margin-bottom: 0;
}
.card__price-sub { color: var(--green-deep-soft); font-size: .92rem; margin-bottom: 1.4em; }
.card__format { color: var(--green-deep-soft); font-weight: 600; margin-bottom: 1.4em; }
.card__list { display: grid; gap: 12px; margin-bottom: 1.6em; }
.card__list li {
  position: relative;
  padding-left: 30px;
  font-size: .98rem;
}
.card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-deep);
  background: var(--cream-soft);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: .72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.card__note { font-size: .85rem; color: var(--green-deep-soft); font-style: italic; margin-bottom: 1.6em; }

/* ============ Process ============ */
.process { background: var(--ocre); }
.process .section-title { color: var(--green-deep); }
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.process__steps li {
  position: relative;
  padding-top: 60px;
  text-align: center;
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
}
.process__steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 880px) {
  .process__steps { grid-template-columns: 1fr; gap: 40px; }
}

/* ============ Results ============ */
.results { background: var(--white); }
.results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.results__col {
  background: var(--cream-soft);
  padding: 32px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.results__col h3 { font-size: 1.2rem; }
.results__col ul { display: grid; gap: 10px; }
.results__col li {
  position: relative;
  padding-left: 26px;
  font-size: .95rem;
}
.results__col li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ocre-dark);
  font-weight: 900;
}
@media (max-width: 880px) {
  .results__grid { grid-template-columns: 1fr; }
}

/* ============ Story ============ */
.story__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.story__visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.story__text p {
  margin: 0 0 1.2em;
  color: var(--green-deep-soft);
  font-size: 1.05rem;
}
@media (max-width: 880px) {
  .story__inner { grid-template-columns: 1fr; }
}

/* ============ FAQ ============ */
.faq { background: var(--white); }
.faq__list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item {
  background: var(--cream-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq__question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--ocre-dark);
  transition: transform .3s ease;
}
.faq__item.is-open .faq__question::after { transform: rotate(45deg); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px;
  color: var(--green-deep-soft);
  font-size: .95rem;
}
.faq__item.is-open .faq__answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ============ Testimonials ============ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
/* quand le nombre de témoignages n'est pas multiple de 3, centrer les orphelins */
.testimonials__grid .testimonial:nth-child(3n+2):last-child {
  grid-column: 2;
}
.testimonials__grid .testimonial:nth-child(3n+1):last-child {
  grid-column: 2;
}
.testimonial {
  background: var(--white);
  padding: 30px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.testimonial__stars { color: var(--ocre); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial__text { font-style: italic; color: var(--green-deep-soft); margin-bottom: 16px; }
.testimonial__name { font-weight: 800; color: var(--green-deep); }
.testimonial__program { font-size: .82rem; color: var(--ocre-dark); font-weight: 600; }
@media (max-width: 880px) {
  .testimonials__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }
  .testimonials__grid::-webkit-scrollbar { display: none; }
  .testimonials__grid .testimonial {
    flex: 0 0 80vw;
    max-width: 320px;
    scroll-snap-align: start;
  }
  /* annuler les règles d'orphelins inutiles sur mobile */
  .testimonials__grid .testimonial:nth-child(3n+2):last-child,
  .testimonials__grid .testimonial:nth-child(3n+1):last-child { grid-column: auto; }
}

/* ============ Final CTA ============ */
.final-cta {
  background: var(--green-deep);
  color: var(--cream);
}
.final-cta__inner { text-align: center; max-width: 640px; }
.final-cta h2 { color: var(--cream); font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.final-cta p { font-size: 1.1rem; color: rgba(250,235,210,0.8); margin-bottom: 2em; }

/* ============ Footer ============ */
.footer { background: var(--green-deep); color: rgba(250,235,210,0.85); padding-top: 70px; }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(250,235,210,0.15);
}
.footer__col h3 {
  color: var(--cream);
  font-size: 1.05rem;
  margin-bottom: .8em;
}
.footer__col p { margin: 0 0 .5em; font-size: .92rem; }
.footer__nav { display: grid; gap: 10px; }
.footer__nav a, .footer__social a { font-size: .92rem; }
.footer__nav a:hover, .footer__social a:hover, .footer__col a:hover { color: var(--ocre); }
.footer__social { display: grid; gap: 10px; }
.footer__cta { margin-top: 12px; }
.footer__bottom {
  padding: 24px;
  text-align: center;
  font-size: .82rem;
  color: rgba(250,235,210,0.6);
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  section { padding: 70px 0; }
}
