/*
Theme Name: BEgym
Theme URI: https://begym.fr
Author: BEgym
Description: Thème landing page BEgym - SOLID'PARENTS
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: begym
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --c-bg:        #FAFAF8;
  --c-bg-alt:    #F2F0EB;
  --c-dark:      #263338;
  --c-muted:     #6B6B68;
  --c-accent:    #08b0a0;
  --c-accent2:   #8ec89a;
  --c-card:      #FFFFFF;
  --c-border:    #E4E2DC;
  --c-nav:       rgba(250,250,248,0.92);
  --font-display: Georgia, serif;
  --font-body:    sans-serif;
  --radius-card:  16px;
  --shadow-card:  0 4px 24px rgba(0,0,0,0.07);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.13);
  --ease: cubic-bezier(0.22,1,0.36,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--c-bg); color: var(--c-dark); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   UTILITAIRES
   ============================================================ */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-dark { background: var(--c-dark); color: var(--c-bg); }

.tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c-accent);
  background: rgba(8,176,160,0.1); border-radius: 100px;
  padding: 5px 14px; margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--c-muted); line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  padding: 14px 28px; border-radius: 10px; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--c-accent); color: #fff; box-shadow: 0 4px 16px rgba(8,176,160,0.3); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(8,176,160,0.4); }
.btn-secondary { background: transparent; color: var(--c-dark); border: 1.5px solid var(--c-border); }
.btn-secondary:hover { border-color: var(--c-dark); }
.btn-accent2 { background: var(--c-accent2); color: #fff; box-shadow: 0 4px 16px rgba(142,200,154,0.3); }
.btn-white { background: #fff; color: var(--c-dark); }
.btn-white:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* Cartes */
.card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-card); padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.card-sub { font-size: 0.88rem; color: var(--c-muted); line-height: 1.6; }

/* Icônes */
.card-icon, .card-dark .card-icon {
  font-size: unset;
  height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg, .card-dark .card-icon svg {
  width: 75%; height: 75%;
  stroke: var(--c-accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-dark .card-icon svg { stroke: rgba(255,255,255,0.85); }

/* Animations reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.d1{transition-delay:.08s} .d2{transition-delay:.17s} .d3{transition-delay:.26s}
.d4{transition-delay:.35s} .d5{transition-delay:.44s} .d6{transition-delay:.53s}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 68px; background: var(--c-nav);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.08); }
.nav-inner {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 2rem;
}
.nav-logo {
  display: flex; align-items: center; height: 100%; padding: 8px 0;
}
.nav-logo img { height: 100%; width: auto; display: block; }
.nav-links { display: flex; gap: 0.25rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--c-muted);
  padding: 8px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--c-dark); background: rgba(0,0,0,0.04); }
.nav-cta { background: var(--c-accent) !important; color: #fff !important; font-weight: 600 !important; border-radius: 8px !important; }
.nav-cta:hover { background: #069e90 !important; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--c-dark); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--c-border);
  padding: 1.5rem 24px; z-index: 899; flex-direction: column; gap: 0.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; padding: 0.75rem 0; border-bottom: 1px solid var(--c-border); color: var(--c-dark); }

/* ============================================================
   S1 — HERO
   ============================================================ */
#s1 {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 68px; background: var(--c-bg);
  position: relative; overflow: hidden;
}
#s1::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(8,176,160,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }
.hero-title {
  font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900; line-height: 1.0; letter-spacing: -0.03em;
}
.hero-title .hl { color: var(--c-accent); }
.hero-sub { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--c-muted); line-height: 1.75; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   S2 — CARTES PROBLÈMES
   ============================================================ */
#s2 { background: var(--c-bg-alt); }
.cards-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; text-align: center; }
.s2-quote-texte { margin-top: 2.5rem; font-size: 1.2rem; color: var(--c-accent); line-height: 1.8; text-align: center; }
.s2-text { margin-top: 2.5rem; font-size: 1rem; color: var(--c-muted); line-height: 1.8; text-align: center; }

/* ============================================================
   S3 — PHOTO
   ============================================================ */
#s3 { background: var(--c-bg); }
.s3-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center; }
.photo-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--c-bg-alt), #e8e4dc);
  border-radius: 20px; border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.photo-placeholder img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

/* ============================================================
   S4 — 4 CARTES
   ============================================================ */
#s4 { background: var(--c-bg-alt); }
.cards-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; margin-top: 3rem; text-align: center; }
.s4-text { margin-top: 3rem; font-size: 1.2rem; color: var(--c-muted); line-height: 1.8; text-align: center; }
.s4-img-wrap { display: flex; justify-content: center; margin-top: 2rem; }
.s4-img-wrap img { max-width: 900px; width: 100%; border-radius: 12px; }

/* ============================================================
   S5 — MÉTHODE
   ============================================================ */
#s5 { background: var(--c-bg); }
.s5-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.8rem; font-size: 0.95rem; line-height: 1.5; }
.check-icon {
  flex-shrink: 0; width: 22px; height: 22px;
  background: rgba(8,176,160,0.12); color: var(--c-accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; margin-top: 1px;
}

/* ============================================================
   S6 — 6 CARTES DARK
   ============================================================ */
#s6 { background: var(--c-accent2); }
#s6 .section-title { color: #fff; }
#s6 .section-sub { color: rgba(255,255,255,0.55); }
#s6 .tag { background: rgba(8,176,160,0.2); color: #fff; }
.cards-8 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 3rem; }
.card-dark {
  background: rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card); padding: 1.8rem;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.card-dark:hover { background: rgba(255,255,255,0.09); transform: translateY(-4px); }
.card-dark .card-title { color: #fff; font-size: 1.05rem; margin-bottom: 0.4rem; text-align: center; }
.card-dark .card-sub { color: rgba(255,255,255,0.5); font-size: 0.83rem; text-align: center; }

/* ============================================================
   S7 — TÉMOIGNAGES
   ============================================================ */
#s7 { background: var(--c-bg-alt); }
.reviews-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.review-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-card); padding: 2rem; }
.review-stars { color: #F5A623; font-size: 1rem; letter-spacing: 2px; margin-bottom: 1rem; }
.review-text { font-size: 0.95rem; line-height: 1.7; font-style: italic; color: var(--c-dark); margin-bottom: 1.5rem; }
.review-author { display: flex; align-items: center; gap: 0.75rem; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), #7BE8E0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.85rem;
}
.review-name { font-weight: 600; font-size: 0.875rem; }
.review-role { font-size: 0.75rem; color: var(--c-muted); }

/* ============================================================
   S8 — TARIFS
   ============================================================ */
#s8 { background: var(--c-bg); }
.product-card {
  max-width: 680px; margin: 3rem auto 2rem;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: 24px; padding: 3rem; box-shadow: var(--shadow-card);
  text-align: center;
}
.product-name { font-family: var(--font-display); font-size: 2rem; font-weight: 900; margin-bottom: 0.5rem; }
.product-desc { color: var(--c-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.8rem; max-width: 440px; margin-left: auto; margin-right: auto; }
.product-price { font-family: var(--font-display); font-size: 3.2rem; font-weight: 900; color: var(--c-accent); margin-bottom: 0.3rem; }
.product2-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.5rem; text-align: left; }
.product2-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.92rem; color: var(--c-muted); }
.product2-list li::before { content: '✓'; flex-shrink: 0; width: 20px; height: 20px; background: rgba(8,176,160,0.1); color: var(--c-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; }

/* ============================================================
   S9b — BRAND
   ============================================================ */
#s9b {
  background: var(--c-accent2);
  display: flex; align-items: center; justify-content: center;
  padding: 100px 24px; text-align: center;
}
.brand-block { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.brand-logo-big {
  width: 400px; max-width: 90vw; height: 160px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
}
.brand-logo-big img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-title { font-family: var(--font-display); font-size: clamp(2rem,5vw,3.5rem); font-weight: 900; color: #fff; line-height: 1.05; }

/* ============================================================
   S10 — FAQ
   ============================================================ */
#s10 { background: var(--c-bg-alt); }
.faq-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 0; max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 0; font-size: 1rem; font-weight: 600;
  color: var(--c-dark); gap: 1rem;
}
.faq-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(8,176,160,0.1); color: var(--c-accent); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 300; transition: transform 0.3s, background 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--c-accent); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding-bottom: 1.4rem; font-size: 0.93rem; color: var(--c-muted); line-height: 1.75; }
.faq-item.open .faq-a { max-height: 400px; }

/* ============================================================
   S11 — CTA FINAL
   ============================================================ */
#s11 {
  background: linear-gradient(135deg, var(--c-accent2) 0%, var(--c-accent) 100%);
  color: #fff; text-align: center; padding: 100px 0;
}
#s11 .section-title { color: #fff; }
#s11 .section-sub { color: rgba(255,255,255,0.7); margin: 0 auto; }
.cta-box {
  margin-top: 3rem; display: inline-flex; flex-direction: column;
  align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 20px;
  padding: 2.5rem 3.5rem;
}
.cta-price { font-family: var(--font-display); font-size: 3.5rem; font-weight: 900; line-height: 1; }
.cta-price-sub { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-dark); color: rgba(255,255,255,0.4);
  padding: 2rem 24px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem;
}
.site-footer a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-logo { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; color: rgba(255,255,255,0.5); }
.footer-logo span { color: var(--c-accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cards-4, .cards-8 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .section { padding: 70px 0; }
  .cards-row, .reviews-row { grid-template-columns: 1fr; }
  .s3-layout, .s5-layout { grid-template-columns: 1fr; }
  .product-card { padding: 2rem 1.5rem; }
  .cta-box { padding: 2rem 1.5rem; }
}
@media (max-width: 580px) {
  .cards-4, .cards-8 { grid-template-columns: 1fr; }
}
