/* =============================================
   FARE — Studio Pilates Reformer
   styles.css
   ============================================= */

/* =====================
   VARIABLES
   ===================== */
:root {
  --ivory:       #F5F0E9;
  --brown-dark:  #2E2620;
  --brown-mid:   #7A6E66;
  --terracotta:  #8B6B4F;
  --terracotta-hover: #7A5E44;
  --white:       #FFFFFF;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;

  --max-width:   1200px;
  --radius-card: 10px;
  --radius-btn:  8px;
}

/* =====================
   RESET
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--ivory);
  color: var(--brown-dark);
  font-family: var(--font-sans);
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* =====================
   BOUTONS
   ===================== */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background-color 150ms ease;
}

.btn--primary {
  background-color: var(--terracotta);
  color: var(--white);
  font-size: 13px;
  padding: 16px 44px;
  border-radius: var(--radius-btn);
}

.btn--primary:hover {
  background-color: var(--terracotta-hover);
}

.btn--nav {
  background-color: var(--terracotta);
  color: var(--white);
  font-size: 12px;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
}

.btn--nav:hover {
  background-color: var(--terracotta-hover);
}

/* =====================
   NAVIGATION
   ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--ivory);
  transition: box-shadow 200ms ease;
}

.nav--scrolled {
  box-shadow: 0 1px 16px rgba(46, 38, 32, 0.07);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

.nav__logo {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--brown-dark);
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.nav__links a {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--brown-dark);
  transition: color 150ms ease;
}

.nav__links a:hover {
  color: var(--terracotta);
}

.nav__link--active {
  color: var(--terracotta) !important;
}

/* Drawer caché par défaut — visible uniquement sur mobile via .is-open */
.nav-drawer {
  display: none;
}

/* =====================
   HERO
   ===================== */
.hero {
  width: 100%;
}

/* Image */
.hero__image-wrap {
  width: 100%;
  height: 56vh;
  min-height: 340px;
  max-height: 600px;
  overflow: hidden;
  background-color: #D4C5B5; /* visible tant que l'image charge */
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Contenu sous l'image */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px 64px;
}

.hero__label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: 60px;
  line-height: 1.1;
  color: var(--brown-dark);
  margin-bottom: 18px;
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--brown-mid);
  margin-bottom: 20px;
}

.hero__price {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 20px;
}

.hero__discover {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--brown-mid);
  margin-bottom: 28px;
  transition: opacity 150ms ease;
}

.hero__discover:hover {
  opacity: 0.65;
}

/* =====================
   CARDS
   ===================== */
.cards {
  padding: 0 24px 72px;
}

.cards__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__image-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: #D4C5B5; /* placeholder couleur */
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.card:hover .card__image,
.card__inner-link:hover .card__image {
  transform: scale(1.03);
}

.card__inner-link {
  display: block;
}

.card__sublink {
  display: block;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--brown-mid);
  margin-top: 4px;
  transition: opacity 150ms ease;
}

.card__sublink:hover {
  opacity: 0.65;
}

.card__label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown-dark);
  text-align: center;
}

/* =====================
   TAGLINE
   ===================== */
.tagline {
  padding: 8px 24px 48px;
  text-align: center;
}

.tagline__text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  color: var(--brown-mid);
}

/* =====================
   PILIERS
   ===================== */
.piliers {
  padding: 80px 48px;
  border-top: 1px solid rgba(46, 38, 32, 0.1);
  border-bottom: 1px solid rgba(46, 38, 32, 0.1);
}

.piliers__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pilier__num {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.pilier__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  color: var(--brown-dark);
  margin-bottom: 10px;
}

.pilier__text {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--brown-mid);
}

/* =====================
   POURQUOI LE REFORMER
   ===================== */
.reformer {
  padding: 80px 48px;
}

.reformer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.reformer__image-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #D4C5B5;
}

.reformer__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reformer__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: 44px;
  line-height: 1.15;
  color: var(--brown-dark);
  margin-bottom: 28px;
}

.reformer__text {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--brown-mid);
  margin-bottom: 16px;
}

.reformer__link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--terracotta);
  transition: opacity 150ms ease;
}

.reformer__link:hover {
  opacity: 0.75;
}

/* =====================
   FANNY
   ===================== */
.fanny {
  padding: 0 48px 80px;
  border-top: 1px solid rgba(46, 38, 32, 0.1);
}

.fanny__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 80px;
}

.fanny__eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.fanny__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: 44px;
  line-height: 1.15;
  color: var(--brown-dark);
  margin-bottom: 28px;
}

.fanny__text {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--brown-mid);
  margin-bottom: 16px;
}

.fanny__link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--terracotta);
  transition: opacity 150ms ease;
}

.fanny__link:hover {
  opacity: 0.75;
}

.fanny__image-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #D4C5B5;
}

.fanny__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* =====================
   PREUVES
   ===================== */
.preuves {
  background-color: #EDE8E0;
  padding: 80px 48px;
}

.preuves__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.preuves__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: 44px;
  color: var(--brown-dark);
  text-align: center;
}

.preuves__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.preuve {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.preuve__num {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  color: var(--brown-dark);
}

.preuve__label {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--brown-mid);
  max-width: 140px;
}

.preuve__sep {
  width: 1px;
  height: 56px;
  background-color: rgba(46, 38, 32, 0.15);
  flex-shrink: 0;
}

/* =====================
   CTA FINAL
   ===================== */
.cta-final {
  padding: 80px 48px;
  border-top: 1px solid rgba(46, 38, 32, 0.1);
}

.cta-final__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.cta-final__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: 48px;
  line-height: 1.15;
  color: var(--brown-dark);
  margin-bottom: 32px;
}

.cta-final__reassurance {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.cta-final__reassurance li {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--brown-mid);
}

.cta-final__reassurance li::before {
  content: "✓  ";
  color: var(--terracotta);
}

.cta-final__location {
  margin-top: 32px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--brown-mid);
  letter-spacing: 0.04em;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background-color: var(--brown-dark);
  padding: 64px 48px 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto 48px;
}

.footer__logo {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  color: rgba(245, 240, 233, 0.95);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.footer__brand-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(245, 240, 233, 0.5);
}

.footer__nav,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 233, 0.35);
  margin-bottom: 4px;
}

.footer__nav a,
.footer__contact a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(245, 240, 233, 0.65);
  transition: color 150ms ease;
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: rgba(245, 240, 233, 0.95);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 240, 233, 0.1);
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(245, 240, 233, 0.35);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  color: rgba(245, 240, 233, 0.35);
  transition: color 150ms ease;
}

.footer__legal a:hover {
  color: rgba(245, 240, 233, 0.7);
}

/* =====================
   STICKY CTA MOBILE
   ===================== */
.sticky-cta {
  display: none; /* masqué sur desktop */
}

/* =====================
   RESPONSIVE — TABLETTE
   ===================== */
@media (max-width: 900px) {

  .nav__inner {
    padding: 0 32px;
  }

  .hero__title {
    font-size: 48px;
  }

  .cards {
    padding: 0 16px 56px;
  }

  .cards__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .piliers {
    padding: 64px 32px;
  }

  .reformer {
    padding: 64px 32px;
  }

  .reformer__inner {
    gap: 48px;
  }

  .fanny {
    padding: 0 32px 64px;
  }

  .fanny__inner {
    gap: 48px;
    padding-top: 64px;
  }

  .preuves {
    padding: 64px 32px;
  }

  .cta-final {
    padding: 64px 32px;
  }

  .footer {
    padding: 56px 32px 28px;
  }

}

/* =====================
   RESPONSIVE — MOBILE
   ===================== */
@media (max-width: 600px) {

  /* Nav */
  .nav__inner {
    height: 56px;
    padding: 0 20px;
  }

  .nav__logo {
    font-size: 20px;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 11px 4px;
    background: none;
    border: none;
  }

  .btn--nav {
    display: none;
  }

  .nav__hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--brown-dark);
    transition: transform 200ms ease, opacity 200ms ease;
  }

  /* Menu mobile ouvert */
  .nav-mobile-open .nav__hamburger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-mobile-open .nav__hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-mobile-open .nav__hamburger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  /* Drawer mobile */
  .nav-drawer {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    background-color: var(--ivory);
    border-top: 1px solid rgba(46, 38, 32, 0.1);
    padding: 32px 20px 40px;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(46, 38, 32, 0.08);
  }

  .nav-drawer.is-open {
    display: flex;
  }

  .nav-drawer a {
    font-family: var(--font-sans);
    font-size: 18px;
    color: var(--brown-dark);
    padding: 16px 0;
    border-bottom: 1px solid rgba(46, 38, 32, 0.08);
  }

  .nav-drawer a:last-child {
    border-bottom: none;
  }

  .nav-drawer .btn--primary {
    margin-top: 24px;
    text-align: center;
    padding: 16px 24px;
  }

  /* Hero image */
  .hero__image-wrap {
    height: 54vw;
    min-height: 260px;
    max-height: 360px;
  }

  /* Hero content */
  .hero__content {
    padding: 32px 20px 52px;
  }

  .hero__label {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .hero__title {
    font-size: 38px;
    margin-bottom: 14px;
  }

  .hero__subtitle {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .hero__discover {
    padding: 10px 0;
    margin-bottom: 18px;
  }

  .btn--primary {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    font-size: 13px;
  }

  /* Cards */
  .cards {
    padding: 0 16px 56px;
  }

  .cards__inner {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .card__image-wrap {
    aspect-ratio: 4 / 5;
    border-radius: 8px;
  }

  .card__label {
    font-size: 11px;
  }

  .card__sublink {
    font-size: 12px;
  }

  /* Tagline */
  .tagline {
    padding: 0 20px 72px;
  }

  .tagline__text {
    font-size: 15px;
  }

  /* Piliers */
  .piliers {
    padding: 56px 20px;
  }

  .piliers__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pilier {
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(46, 38, 32, 0.1);
  }

  .pilier:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  /* Reformer */
  .reformer {
    padding: 64px 20px;
  }

  .reformer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .reformer__image-wrap {
    aspect-ratio: 16 / 9;
  }

  .reformer__title {
    font-size: 36px;
  }

  /* Fanny */
  .fanny {
    padding: 0 20px 64px;
  }

  .fanny__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 64px;
  }

  /* Remettre image en premier sur mobile */
  .fanny__content { order: 2; }
  .fanny__image-wrap {
    order: 1;
    aspect-ratio: 4 / 3;
  }

  .fanny__title {
    font-size: 36px;
  }

  /* Preuves */
  .preuves {
    padding: 56px 20px;
  }

  .preuves__title {
    font-size: 36px;
  }

  .preuves__stats {
    flex-direction: column;
    gap: 32px;
  }

  .preuve__sep {
    width: 40px;
    height: 1px;
  }

  .preuve__num {
    font-size: 48px;
  }

  /* CTA final */
  .cta-final {
    padding: 72px 20px;
  }

  .cta-final__title {
    font-size: 36px;
  }

  .btn--primary {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    font-size: 13px;
  }

  /* Footer */
  .footer {
    padding: 48px 20px 24px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Sticky CTA */
  .sticky-cta {
    display: block;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    padding: 8px 16px;
    background-color: var(--ivory);
    border-bottom: 1px solid rgba(46, 38, 32, 0.08);
    box-shadow: 0 4px 16px rgba(46, 38, 32, 0.07);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
  }

  .sticky-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .sticky-cta__btn {
    display: block;
    width: 100%;
    background-color: var(--terracotta);
    color: var(--white);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    padding: 14px 24px;
    border-radius: var(--radius-btn);
    transition: background-color 150ms ease;
  }

  .sticky-cta__btn:active {
    background-color: var(--terracotta-hover);
  }

}
