/* ============================================
   Elite Fitness Equipements — reconstructed site
   ============================================ */

:root {
  --navy: #0f1b3c;
  --navy-deep: #0a1330;
  --purple: #8f2fd6;
  --purple-hover: #7a26b8;
  --white: #ffffff;
  --off-white: #f6f6fb;
  --ink: #12162b;
  --muted: #5c6178;
  --border: #e7e7f0;

  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 14px;
  --max-width: 1180px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--navy);
}

p { margin: 0 0 16px; color: var(--muted); }

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(143, 47, 214, 0.35);
}
.btn-primary:hover { background: var(--purple-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Header */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding: 24px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
header.site-header.scrolled {
  background: rgba(10, 19, 48, 0.94);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { height: 76px; width: auto; transition: height 0.3s ease; }
header.site-header.scrolled .logo img { height: 58px; }
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
nav.main-nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a.active,
nav.main-nav a:hover { border-bottom-color: var(--white); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 26px; cursor: pointer; }

@media (max-width: 900px) {
  nav.main-nav {
    position: fixed;
    inset: 0;
    background: var(--navy-deep);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  nav.main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,19,48,0.75) 0%, rgba(10,19,48,0.55) 45%, rgba(10,19,48,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  max-width: 720px;
}
.hero-content { animation: heroFade 0.9s ease both; }
@keyframes heroFade {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 { color: var(--white); font-size: clamp(32px, 5vw, 52px); }
.hero p.lead { color: rgba(255,255,255,0.85); font-size: 18px; max-width: 560px; }
.stars { color: #ffb400; letter-spacing: 2px; margin-bottom: 6px; }
.rating-line { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 24px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* Sections */
section { padding: 90px 0; }
section.soft { background: var(--off-white); }
section.navy { background: var(--navy); color: var(--white); }
section.navy h2, section.navy h3 { color: var(--white); }
section.navy p { color: rgba(255,255,255,0.7); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }

/* Problem list */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.problem-item {
  display: flex;
  gap: 14px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.problem-item .x { color: #e5484d; font-size: 20px; flex-shrink: 0; }
@media (max-width: 720px) { .problem-grid { grid-template-columns: 1fr; } }

/* Two column feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
.feature-list li { display: flex; gap: 12px; margin-bottom: 16px; color: var(--ink); }
.feature-list li .dot { color: var(--purple); font-weight: 700; flex-shrink: 0; }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* Stats / why trust */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(15,27,60,0.14); }
.stat-card img { width: 100%; height: 190px; object-fit: cover; }
.stat-card .body { padding: 22px; }
.stat-card h4 { font-size: 15px; letter-spacing: 0.02em; margin-bottom: 8px; color: var(--purple); text-transform: uppercase; }
.stat-card p { margin: 0; font-size: 15px; }
@media (max-width: 860px) { .stat-cards { grid-template-columns: 1fr; } }

/* Method steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.step { text-align: left; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--purple); color: var(--white);
  font-family: var(--font-display); font-weight: 700; margin-bottom: 16px;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(15,27,60,0.12); }
.testimonial .stars { margin-bottom: 14px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-person .name { font-weight: 600; color: var(--ink); font-size: 14px; }
.testimonial-person .role { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.service-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(15,27,60,0.14); }
.service-card img { height: 170px; width: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover img { transform: scale(1.06); }
.service-card .body { padding: 20px; }
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } }

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(15,27,60,0.14); }
.product-card img { height: 220px; width: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover img { transform: scale(1.06); }
.product-card .body { padding: 20px; }
.product-card h4 { font-size: 17px; margin-bottom: 8px; }
@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--purple); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 14px; }

/* Final CTA */
.final-cta {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 70px 40px;
  text-align: center;
  color: var(--white);
}
.final-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.final-cta::after { content: ""; position: absolute; inset: 0; background: rgba(10,19,48,0.78); z-index: 1; }
.final-cta > * { position: relative; z-index: 2; }
.final-cta h2 { color: var(--white); }
.final-cta p { color: rgba(255,255,255,0.8); max-width: 560px; margin-left: auto; margin-right: auto; }

/* Footer */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer h5 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
footer p { color: rgba(255,255,255,0.65); font-size: 14px; }
.footer-contact div { margin-bottom: 10px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Simple page header for sub-pages */
.page-header {
  position: relative;
  background: var(--navy);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 170px 0 80px;
  text-align: center;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,19,48,0.75) 0%, rgba(10,19,48,0.6) 100%);
}
.page-header .wrap { position: relative; z-index: 1; }
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto; }

/* Content blocks reused on services/produits/a-propos */
.content-block { padding: 70px 0; }
.content-block:nth-child(even) { background: var(--off-white); }
.icon-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 0; }
.icon-split.reverse .icon-media { order: 2; }
.icon-split img { border-radius: var(--radius); }
.benefit-tag {
  display: inline-block;
  background: rgba(143,47,214,0.1);
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
@media (max-width: 860px) {
  .icon-split, .icon-split.reverse { grid-template-columns: 1fr; }
  .icon-split.reverse .icon-media { order: 0; }
}

/* Product gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0 30px;
}
.gallery-grid img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Values grid (a-propos) */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.value-card { padding: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.value-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(15,27,60,0.12); }
.value-card h4 { font-size: 16px; margin-bottom: 8px; }
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-info-card { background: var(--off-white); border-radius: var(--radius); padding: 30px; }
.contact-info-card h4 { font-size: 15px; margin: 20px 0 6px; color: var(--purple); }
.contact-info-card h4:first-child { margin-top: 0; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

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

/* stagger grid children slightly */
.problem-grid .reveal:nth-child(2), .stat-cards .reveal:nth-child(2),
.services-grid .reveal:nth-child(2), .product-grid .reveal:nth-child(2),
.testimonial-grid .reveal:nth-child(2), .steps .reveal:nth-child(2),
.values-grid .reveal:nth-child(2) { transition-delay: 0.1s; }

.problem-grid .reveal:nth-child(3), .stat-cards .reveal:nth-child(3),
.services-grid .reveal:nth-child(3), .product-grid .reveal:nth-child(3),
.testimonial-grid .reveal:nth-child(3), .steps .reveal:nth-child(3),
.values-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.problem-grid .reveal:nth-child(4), .values-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.problem-grid .reveal:nth-child(5) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-content, .btn, .stat-card, .service-card, .product-card, .testimonial, .value-card, .service-card img, .product-card img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
