/* ============================================================
   SLIMFIT — goslimfit.fr
   Brand : Playfair Display (titres) · Inter (texte) ·
           Fraunces bold italique (accent)
   Couleurs : #ffe305 · #0a0a0a · #ffffff · #fbfaf6 · #06b67a
   ============================================================ */

:root {
  --jaune: #ffe305;
  --noir: #0a0a0a;
  --blanc: #ffffff;
  --creme: #fbfaf6;
  --vert: #06b67a;
  --gris-doux: rgba(10, 10, 10, .62);
  --blanc-doux: rgba(255, 255, 255, .72);
  --font-titre: "Playfair Display", Georgia, serif;
  --font-texte: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Fraunces", Georgia, serif;
  --radius: 18px;
  --conteneur: 84%;          /* largeur principale : menu, footer, sections */
  --conteneur-texte: 75.6%;  /* variante resserrée pour les blocs de texte */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-texte);
  font-weight: 400;
  color: var(--noir);
  background: var(--creme);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* le footer reste en bas de l'écran */
.page-vide { flex: 1; }
footer { margin-top: auto; }

img { max-width: 100%; display: block; }

/* conteneur fluide : garde les mêmes proportions sur tous les écrans */
.wrap { width: var(--conteneur); margin: 0 auto; }
.wrap-texte { width: var(--conteneur-texte); margin: 0 auto; }

h1, h2, h3 { font-family: var(--font-titre); font-weight: 400; line-height: 1.12; }

.accent {
  font-family: var(--font-accent);
  font-weight: 700;
  font-style: italic;
}

.surligne {
  background: linear-gradient(transparent 62%, var(--jaune) 62%, var(--jaune) 96%, transparent 96%);
  padding: 0 .08em;
}

/* ---------- boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-texte);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
/* icône en tracé, alignée au texte du bouton */
.btn .ico {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -.22em;
  margin-right: .5em;
}
.btn-jaune { background: var(--jaune); color: var(--noir); }
.btn-jaune:hover { background: #f5d900; }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .35); color: var(--blanc); }
.btn-ghost:hover { border-color: var(--blanc); }
.btn-noir { background: var(--noir); color: var(--blanc); }
.btn-noir:hover { background: #1c1c1c; }

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--noir);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
/* grille 3 colonnes : les liens restent vraiment centrés,
   quelle que soit la largeur du logo et du bouton */
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.nav .logo { justify-self: start; }
.nav .nav-links { justify-self: center; }
.nav .btn { justify-self: end; }
/* sur grand écran les enveloppes s'effacent : liens et bouton
   deviennent directement les colonnes de la grille */
.nav-panneau,
.nav-panneau-int { display: contents; }
.nav .logo img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 44px; list-style: none; }
.nav-links a {
  position: relative;
  color: var(--blanc-doux);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: color .15s ease;
}
/* soulignage détaché du mot, sans décaler la mise en page */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 2px;
  background: var(--jaune);
  opacity: 0;
  transition: opacity .15s ease;
}
.nav-links a:hover { color: var(--blanc); }
.nav-links a:hover::after { opacity: 1; }
/* page en cours : le soulignage reste affiché */
.nav-links a[aria-current="page"] { color: var(--blanc); }
.nav-links a[aria-current="page"]::after { opacity: 1; }
.nav .btn { padding: 11px 22px; font-size: .92rem; }

/* bouton hamburger : trois barres qui se croisent à l'ouverture.
   La zone tactile fait 44 px (confort du pouce) mais les barres
   restent alignées sur le bord du conteneur, comme le logo. */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .25s ease;
}
.nav.ouvert .burger { background: rgba(255, 227, 5, .16); }
.burger span {
  position: absolute;
  left: 50%;
  width: 24px;
  margin-left: -12px;
  height: 2px;
  border-radius: 2px;
  background: var(--blanc);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), opacity .2s ease;
}
.burger span:nth-child(1) { top: 50%; margin-top: -8px; }
.burger span:nth-child(2) { top: 50%; margin-top: -1px; }
.burger span:nth-child(3) { top: 50%; margin-top: 6px; }
.nav.ouvert .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.ouvert .burger span:nth-child(2) { opacity: 0; }
.nav.ouvert .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* focus : pas de cadre bleu du navigateur, un liseré jaune
   uniquement pour la navigation au clavier */
a:focus, button:focus { outline: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--jaune);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ---------- hero ---------- */
.hero {
  background: var(--noir);
  color: var(--blanc);
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -60px;
  width: 480px;
  height: 640px;
  background: var(--jaune);
  opacity: .07;
  transform: skewX(-14deg);
}
.hero .wrap { position: relative; }
.hero .kicker {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jaune);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  max-width: 13em;
}
.hero h1 .accent { color: var(--jaune); }
.hero p.sous-titre {
  margin: 28px 0 40px;
  font-size: 1.18rem;
  color: var(--blanc-doux);
  max-width: 34em;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* bandeau chiffres */
.chiffres {
  background: var(--jaune);
  color: var(--noir);
}
.chiffres .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.chiffres .c { text-align: center; }
.chiffres .c strong {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.1;
}
.chiffres .c span { font-size: .88rem; font-weight: 500; }

/* ---------- sections communes ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .kicker {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vert);
  display: block;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-head p { margin-top: 16px; color: var(--gris-doux); font-size: 1.05rem; }

/* ---------- méthode ---------- */
.methode-grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.carte {
  background: var(--blanc);
  border: 1px solid rgba(10, 10, 10, .07);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.carte .num {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--vert);
  display: block;
  margin-bottom: 14px;
}
.carte h3 { font-size: 1.32rem; margin-bottom: 10px; }
.carte p { font-size: .95rem; color: var(--gris-doux); }

/* ---------- tarifs ---------- */
.tarifs { background: var(--noir); color: var(--blanc); }
.tarifs .section-head .kicker { color: var(--jaune); }
.tarifs .section-head p { color: var(--blanc-doux); }
.tarifs-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.formule {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
}
.formule.star {
  background: rgba(255, 227, 5, .06);
  border: 2px solid var(--jaune);
  position: relative;
}
.formule .badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--jaune);
  color: var(--noir);
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.formule h3 { font-size: 1.5rem; }
.formule .engagement { font-size: .88rem; color: var(--blanc-doux); margin: 4px 0 20px; }
.formule .prix {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--jaune);
  line-height: 1;
}
.formule .prix small {
  font-family: var(--font-texte);
  font-style: normal;
  font-weight: 500;
  font-size: .95rem;
  color: var(--blanc-doux);
}
.formule .offre {
  margin: 14px 0 22px;
  font-size: .9rem;
  color: var(--vert);
  font-weight: 600;
}
.formule ul { list-style: none; margin-bottom: 28px; flex: 1; }
.formule li {
  padding: 9px 0 9px 30px;
  font-size: .94rem;
  color: var(--blanc-doux);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.formule li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--vert);
  font-weight: 700;
}
.formule .btn { text-align: center; }
.tarifs .mentions {
  margin-top: 34px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .45);
  max-width: 70em;
}

/* ---------- club ---------- */
.club-grille {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.club-bloc {
  background: var(--noir);
  color: var(--blanc);
  border-radius: var(--radius);
  padding: 44px 40px;
}
.club-bloc h3 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.club-bloc h3 .accent { color: var(--jaune); }
.club-bloc p { color: var(--blanc-doux); margin-bottom: 12px; }
.club-bloc .ligne { display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.club-bloc .ligne strong { color: var(--jaune); min-width: 96px; font-weight: 600; }
.club-liste { list-style: none; }
.club-liste li {
  padding: 14px 0 14px 34px;
  position: relative;
  border-bottom: 1px solid rgba(10, 10, 10, .08);
  font-size: 1.02rem;
}
.club-liste li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--vert);
  font-weight: 700;
}

/* ---------- CTA final ---------- */
.cta-final { background: var(--jaune); padding: 90px 0; }
.cta-final .inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-final h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 18px; }
.cta-final p { color: rgba(10, 10, 10, .75); font-size: 1.1rem; margin-bottom: 34px; }
.cta-final .btn { margin: 0 8px 12px; }

/* ---------- footer ---------- */
footer { background: var(--noir); color: var(--blanc-doux); padding: 64px 0 40px; }
.foot-grille {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.foot-grille .logo-footer { height: 34px; width: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 26px; list-style: none; }
.foot-nav a { color: var(--blanc-doux); text-decoration: none; font-size: .93rem; }
.foot-nav a:hover { color: var(--jaune); }
.foot-nav a[aria-current="page"] { color: var(--jaune); }
.foot-bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .45);
}
.foot-bas a { color: inherit; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  :root { --conteneur: 90%; --conteneur-texte: 90%; }
}

@media (max-width: 960px) {
  .methode-grille { grid-template-columns: repeat(2, 1fr); }
  .tarifs-grille { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .formule.star { order: -1; }
  .club-grille { grid-template-columns: 1fr; }
  .chiffres .wrap { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  section { padding: 68px 0; }
  .hero { padding: 64px 0 78px; }
  .nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 14px;
    row-gap: 0;            /* sinon le panneau replié ajoute une ligne vide */
    padding: 16px 0;
  }
  .nav .logo img { height: 26px; }
  .burger { display: block; }

  /* le menu s'ouvre en fenêtre flottante, détachée de la barre,
     par-dessus la page — elle ne pousse rien vers le bas */
  .nav-panneau {
    position: absolute;
    top: calc(100% + 10px);
    left: 14px;
    right: 14px;
    width: auto;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.98);
    transform-origin: top right;
    transition: opacity .3s cubic-bezier(.22, 1, .36, 1),
                transform .3s cubic-bezier(.22, 1, .36, 1),
                visibility 0s linear .3s;
  }
  .nav.ouvert .nav-panneau {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .nav-panneau-int {
    display: block;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    box-shadow: 0 26px 60px -20px rgba(10, 10, 10, .75);
    padding: 24px 22px 22px;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-self: stretch;   /* annule le centrage prévu pour le grand écran */
    width: 100%;
    gap: 20px;
    margin-bottom: 20px;
  }
  .nav-links a { font-size: 1.05rem; }
  .nav-links a::after { bottom: -6px; }

  .nav-panneau .btn {
    display: block;
    justify-self: stretch;
    width: 100%;
    text-align: center;
    padding: 13px 20px;
    font-size: .95rem;
  }
  .methode-grille { grid-template-columns: 1fr; }
  .foot-grille { grid-template-columns: 1fr; text-align: left; }
}
