/* ═══════════════════════════════════════════════════
   Y GYM TANGER – styles.css
   Premium Gym Website – Black / Red / White
   Mobile-first, bilingual FR/AR
═══════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --black: #000000;
  --red: #e10600;
  --red-dark: #b80500;
  --red-light: rgba(225,6,0,0.12);
  --white: #ffffff;
  --gray-900: #111111;
  --gray-800: #1a1a1a;
  --gray-700: #2a2a2a;
  --gray-600: #3d3d3d;
  --gray-400: #888888;
  --gray-200: #d0d0d0;
  --gray-100: #f4f4f4;
  --femme: #c8860a;
  --femme-light: rgba(200,134,10,0.12);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-arabic: 'Noto Kufi Arabic', sans-serif;
  --radius: 4px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-red: 0 8px 32px rgba(225,6,0,0.3);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --nav-h: 64px;
}

/* ── Reset ── */
*, *::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(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* Arabic RTL support */
body.lang-ar {
  font-family: var(--font-arabic);
  direction: rtl;
}
body.lang-ar .nav-links { flex-direction: row-reverse; }
body.lang-ar .hero-actions { flex-direction: row-reverse; }
body.lang-ar .hero-stats { flex-direction: row-reverse; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
}
.lang-ar h1, .lang-ar h2, .lang-ar h3, .lang-ar h4 {
  font-family: var(--font-arabic);
  text-transform: none;
  letter-spacing: 0;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ══════════════════════════════════════
   FLOATING WHATSAPP
══════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  color: white;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.6); }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(0,0,0,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
  border-bottom: 1px solid rgba(225,6,0,0.3);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo { display: flex; align-items: center; }
.logo-svg { height: 40px; width: auto; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}
.lang-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  padding: 2px 4px;
  transition: color var(--transition);
}
.lang-btn.active, .lang-btn:hover { color: var(--red); }
.lang-sep { color: var(--gray-600); font-size: 12px; }

.nav-links {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--gray-900);
  padding: 24px 20px;
  border-top: 2px solid var(--red);
  gap: 0;
}
.nav-links.open { display: flex; }
.nav-link {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-200);
  border-bottom: 1px solid var(--gray-700);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--red); }
.nav-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--red-dark); }

.hamburger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .hamburger { display: none; }
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    border-top: none;
    padding: 0;
    margin-left: auto;
    gap: 4px;
    align-items: center;
  }
  .nav-link {
    padding: 8px 12px;
    font-size: 13px;
    border-bottom: none;
  }
  .nav-cta { margin-top: 0; padding: 9px 22px; font-size: 13px; }
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 20px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(225,6,0,0.18) 0%, transparent 65%),
    linear-gradient(160deg, #000 0%, #1a0000 40%, #000 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Crect width='80' height='80' fill='none'/%3E%3Ccircle cx='40' cy='40' r='0.8' fill='%23e10600' opacity='0.25'/%3E%3C/svg%3E");
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(225,6,0,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(225,6,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Animated vertical lines */
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-lines span {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(225,6,0,0.5), transparent);
  animation: scanline 8s linear infinite;
  opacity: 0;
}
.hero-lines span:nth-child(1) { left: 15%; animation-delay: 0s; }
.hero-lines span:nth-child(2) { left: 40%; animation-delay: 2s; }
.hero-lines span:nth-child(3) { left: 65%; animation-delay: 4s; }
.hero-lines span:nth-child(4) { left: 85%; animation-delay: 6s; }
@keyframes scanline { 0%{opacity:0;transform:scaleY(0) translateY(-100%)} 20%{opacity:1} 80%{opacity:1} 100%{opacity:0;transform:scaleY(1) translateY(0)} }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
  text-align: center;
  animation: heroIn 1s ease both;
}
@keyframes heroIn { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225,6,0,0.15);
  border: 1px solid rgba(225,6,0,0.4);
  border-radius: 50px;
  padding: 6px 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
  animation: heroIn 1s 0.2s ease both;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  animation: heroIn 1s 0.35s ease both;
}
.hero-title-main {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(72px, 18vw, 160px);
  line-height: 0.9;
  color: var(--white);
  text-shadow: 0 0 80px rgba(225,6,0,0.4);
  letter-spacing: -0.02em;
}
.hero-title-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 4.5vw, 36px);
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-ar .hero-title-main, .lang-ar .hero-title-sub { font-family: var(--font-arabic); }

.hero-desc {
  font-family: var(--font-display);
  font-size: clamp(14px, 3vw, 20px);
  font-weight: 400;
  color: var(--gray-200);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 40px;
  animation: heroIn 1s 0.45s ease both;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 56px;
  animation: heroIn 1s 0.55s ease both;
}
@media (min-width: 600px) {
  .hero-actions { flex-direction: row; justify-content: center; }
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  animation: heroIn 1s 0.65s ease both;
}
.hero-stat { text-align: center; padding: 0 28px; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--red);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-top: 4px;
}
.hero-stat-divider { width: 1px; height: 40px; background: var(--gray-700); flex-shrink: 0; }

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-indicator span {
  display: block;
  width: 20px;
  height: 30px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  position: relative;
}
.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--red);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); border: 2px solid var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-red); }
.btn-whatsapp { background: #25D366; color: var(--white); border: 2px solid #25D366; }
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-outline-dark { background: transparent; color: var(--white); border: 2px solid var(--gray-600); }
.btn-outline-dark:hover { border-color: var(--red); color: var(--red); }
.btn-outline-sm { padding: 8px 18px; font-size: 12px; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; transition: all var(--transition); }
.btn-outline-sm:hover { border-color: var(--red); color: var(--red); }
.btn-class { display: inline-flex; align-items: center; justify-content: center; margin-top: 20px; padding: 11px 22px; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; background: transparent; color: var(--red); border: 2px solid var(--red); border-radius: var(--radius); transition: all var(--transition); }
.btn-class:hover { background: var(--red); color: var(--white); }
.btn-full { width: 100%; padding: 16px; font-size: 15px; }

/* ══════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  position: relative;
  padding: 0 20px;
}
.section-tag::before, .section-tag::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--red);
  opacity: 0.5;
}
.section-tag::before { right: 100%; margin-right: -16px; }
.section-tag::after { left: 100%; margin-left: -16px; }
.section-header h2 { font-size: clamp(32px, 7vw, 60px); color: var(--white); }
.section-header p { margin-top: 14px; color: var(--gray-400); font-size: 15px; max-width: 560px; margin-left: auto; margin-right: auto; }
.section-header.light h2 { color: var(--white); }

/* ══════════════════════════════════════
   ESPACES SECTION
══════════════════════════════════════ */
.espaces-section { padding: 100px 0; background: var(--gray-900); }
.espaces-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media(min-width: 700px) { .espaces-grid { grid-template-columns: 1fr 1fr; } }

.espace-card {
  position: relative;
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  padding: 36px 28px 32px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.espace-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-red); border-color: var(--red); }
.espace-card:focus { outline: 2px solid var(--red); outline-offset: 2px; }

.espace-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.espace-hommes .espace-card-bg { background: linear-gradient(135deg, #0d0d0d 0%, #1a0000 100%); }
.espace-femmes .espace-card-bg { background: linear-gradient(135deg, #0d0d0d 0%, #1a1000 100%); }

.espace-icon {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
}
.espace-hommes .espace-icon { color: var(--red); }
.espace-femmes .espace-icon { color: var(--femme); }
.espace-icon svg { width: 100%; height: 100%; }

.espace-content { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }
.espace-content h3 { font-size: 28px; color: var(--white); margin-bottom: 4px; }
.espace-ar { font-family: var(--font-arabic); color: var(--gray-400); font-size: 14px; margin-bottom: 20px; direction: rtl; }

.espace-features { flex: 1; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.espace-features li {
  font-size: 14px;
  color: var(--gray-200);
  padding-left: 16px;
  position: relative;
}
.espace-features li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; }
.espace-hommes .espace-features li::before { background: var(--red); }
.espace-femmes .espace-features li::before { background: var(--femme); }

.espace-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: gap var(--transition);
}
.espace-hommes .espace-cta { color: var(--red); }
.espace-femmes .espace-cta { color: var(--femme); }
.espace-card:hover .espace-cta { gap: 14px; }
.espace-cta::after { content: '→'; }

.espace-detail {
  margin-top: 32px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}
.espace-detail.open { max-height: 400px; }
.espace-detail-inner {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* ══════════════════════════════════════
   HORAIRES
══════════════════════════════════════ */
.horaires-section { padding: 100px 0; background: var(--black); }

.horaires-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 36px;
  background: var(--gray-900);
  padding: 6px;
  border-radius: var(--radius-lg);
  width: fit-content;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  border-radius: 8px;
  transition: all var(--transition);
}
.tab-btn.active { background: var(--red); color: var(--white); }
.tab-btn:hover:not(.active) { color: var(--white); background: var(--gray-700); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

.schedule-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media(min-width:600px) { .schedule-grid { grid-template-columns: repeat(3,1fr); } }

.schedule-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: border-color var(--transition);
}
.schedule-card:hover { border-color: var(--red); }
.femmes-card:hover { border-color: var(--femme); }

.schedule-day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-700);
}

.schedule-times { display: flex; flex-direction: column; gap: 10px; }
.time-block {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.time-block.open { color: var(--white); }
.time-block.open svg { color: var(--red); }
.time-block.open.femme svg { color: var(--femme); }
.time-block.closed { color: var(--gray-600); }
.time-block.closed svg { color: var(--gray-600); }

/* ══════════════════════════════════════
   RESERVATION
══════════════════════════════════════ */
.reservation-section { padding: 100px 0; background: var(--gray-900); }

.reservation-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.reservation-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}

.reservation-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media(min-width:600px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.form-group input, .form-group select {
  background: var(--gray-900);
  border: 1px solid var(--gray-600);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--white);
  font-size: 15px;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225,6,0,0.1);
}
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(0.5); }

.availability-bar {
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius);
  padding: 16px;
}
.avail-slots { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.avail-slot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.avail-slot.available .avail-dot { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.6); }
.avail-slot.available { color: #22c55e; }
.avail-slot.occupied .avail-dot { background: var(--red); }
.avail-slot.occupied { color: var(--red); }
.avail-note { font-size: 11px; color: var(--gray-400); }

.form-note {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   CLASSES
══════════════════════════════════════ */
.classes-section { padding: 100px 0; background: var(--black); }
.classes-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media(min-width:700px) { .classes-grid { grid-template-columns: repeat(3,1fr); } }

.class-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.class-card:hover { transform: translateY(-6px); border-color: var(--red); box-shadow: var(--shadow-red); }

.class-icon-wrap {
  padding: 32px 28px 24px;
  background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
  border-bottom: 1px solid var(--gray-700);
}
.class-icon-wrap svg { width: 64px; height: 64px; color: var(--red); }

.class-body { padding: 24px 24px 28px; }
.class-level {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.level-all { background: rgba(225,6,0,0.12); color: var(--red); }
.level-inter { background: rgba(200,134,10,0.12); color: var(--femme); }

.class-body h3 { font-size: 26px; margin-bottom: 10px; }
.class-body p { font-size: 14px; color: var(--gray-400); line-height: 1.7; margin-bottom: 16px; }

.class-meta { display: flex; flex-direction: column; gap: 8px; }
.class-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-400);
}
.class-meta svg { color: var(--red); flex-shrink: 0; }

/* ══════════════════════════════════════
   SERVICES
══════════════════════════════════════ */
.services-section { padding: 100px 0; background: var(--gray-900); }
.services-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
@media(min-width:900px) { .services-grid { grid-template-columns: repeat(3,1fr); } }

.service-item {
  text-align: center;
  padding: 36px 20px;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.service-item:hover { border-color: var(--red); transform: translateY(-4px); }
.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  color: var(--red);
}
.service-icon svg { width: 100%; height: 100%; }
.service-item h3 { font-size: 18px; margin-bottom: 6px; }
.service-item p { font-size: 13px; color: var(--gray-400); }

/* ══════════════════════════════════════
   GALERIE
══════════════════════════════════════ */
.galerie-section { padding: 100px 0; background: var(--black); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  gap: 12px;
  margin-bottom: 32px;
}
@media(min-width:700px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 220px 220px;
  }
  .gallery-large { grid-row: 1 / 3; }
  .gallery-wide { grid-column: 2 / 4; }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}
@media(min-width:700px) {
  .gallery-item { aspect-ratio: auto; }
  .gallery-large { aspect-ratio: auto; }
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-placeholder { transform: scale(1.05); }

/* Placeholder visual gym images using CSS gradients with SVG patterns */
.gp-main { background: linear-gradient(135deg, #1a0000 0%, #2d0000 50%, #1a0000 100%); position: relative; }
.gp-main::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect width='20' height='80' x='20' y='60' rx='3' fill='%23e10600' opacity='0.3'/%3E%3Crect width='20' height='100' x='50' y='50' rx='3' fill='%23e10600' opacity='0.4'/%3E%3Crect width='20' height='120' x='80' y='40' rx='3' fill='%23e10600' opacity='0.5'/%3E%3Crect width='20' height='100' x='110' y='50' rx='3' fill='%23e10600' opacity='0.4'/%3E%3Crect width='20' height='80' x='140' y='60' rx='3' fill='%23e10600' opacity='0.3'/%3E%3C/svg%3E") center/cover; }
.gp-kick { background: linear-gradient(135deg, #0d0d0d, #1a0a00); }
.gp-kick::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='30' r='15' stroke='%23e10600' stroke-width='3' fill='none' opacity='0.5'/%3E%3Cline x1='60' y1='45' x2='60' y2='80' stroke='%23e10600' stroke-width='3' opacity='0.5'/%3E%3Cline x1='60' y1='60' x2='30' y2='50' stroke='%23e10600' stroke-width='3' opacity='0.5'/%3E%3Cline x1='30' y1='50' x2='15' y2='60' stroke='%23e10600' stroke-width='3' opacity='0.5'/%3E%3Cline x1='60' y1='80' x2='45' y2='100' stroke='%23e10600' stroke-width='3' opacity='0.5'/%3E%3Cline x1='60' y1='80' x2='75' y2='100' stroke='%23e10600' stroke-width='3' opacity='0.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.gp-cardio { background: linear-gradient(135deg, #0a0a1a, #0d0d0d); }
.gp-cardio::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80' viewBox='0 0 160 80'%3E%3Cpolyline points='0,50 30,50 45,20 60,60 75,10 90,50 120,50 135,35 160,50' stroke='%23e10600' stroke-width='3' fill='none' opacity='0.6'/%3E%3C/svg%3E") center/contain no-repeat; }
.gp-spa { background: linear-gradient(135deg, #0a0a0a, #001010); }
.gp-spa::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='50' cy='40' r='25' stroke='%2300c0c0' stroke-width='2' fill='none' opacity='0.35'/%3E%3Ccircle cx='50' cy='40' r='15' stroke='%2300c0c0' stroke-width='2' fill='none' opacity='0.25'/%3E%3Ccircle cx='50' cy='40' r='5' fill='%2300c0c0' opacity='0.3'/%3E%3C/svg%3E") center/contain no-repeat; }
.gp-muscu { background: linear-gradient(135deg, #1a0000, #0d0d0d); }
.gp-muscu::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='100'%3E%3Crect x='5' y='40' width='15' height='20' rx='3' stroke='%23e10600' stroke-width='2' fill='none' opacity='0.5'/%3E%3Crect x='25' y='30' width='15' height='40' rx='3' stroke='%23e10600' stroke-width='2' fill='none' opacity='0.5'/%3E%3Cline x1='40' y1='50' x2='160' y2='50' stroke='%23e10600' stroke-width='3' opacity='0.5'/%3E%3Crect x='160' y='30' width='15' height='40' rx='3' stroke='%23e10600' stroke-width='2' fill='none' opacity='0.5'/%3E%3Crect x='180' y='40' width='15' height='20' rx='3' stroke='%23e10600' stroke-width='2' fill='none' opacity='0.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.gp-coach { background: linear-gradient(135deg, #0d0d0d, #1a0a00); }
.gp-coach::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='100'%3E%3Ccircle cx='40' cy='20' r='14' stroke='%23e10600' stroke-width='2' fill='none' opacity='0.5'/%3E%3Cpath d='M20 70 C20 48 60 48 60 70' stroke='%23e10600' stroke-width='2' fill='none' opacity='0.5'/%3E%3Cline x1='40' y1='34' x2='40' y2='58' stroke='%23e10600' stroke-width='2' opacity='0.5'/%3E%3Cline x1='25' y1='44' x2='55' y2='44' stroke='%23e10600' stroke-width='2' opacity='0.5'/%3E%3C/svg%3E") center/contain no-repeat; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.instagram-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray-400);
  font-size: 14px;
}

/* ══════════════════════════════════════
   TARIFS
══════════════════════════════════════ */
.tarifs-section { padding: 100px 0; background: var(--gray-900); }
.tarifs-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media(min-width:700px) { .tarifs-grid { grid-template-columns: repeat(3,1fr); } }

.tarif-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: all var(--transition);
}
.tarif-card:hover { border-color: var(--red); transform: translateY(-4px); }
.tarif-featured {
  background: linear-gradient(135deg, var(--gray-800), #1a0000);
  border-color: var(--red);
  box-shadow: var(--shadow-red);
  transform: scale(1.02);
}
.tarif-featured:hover { transform: scale(1.02) translateY(-4px); }

.tarif-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  white-space: nowrap;
}

.tarif-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tarif-header svg { color: var(--red); flex-shrink: 0; }
.tarif-header h3 { font-size: 22px; }

.tarif-price { display: flex; align-items: baseline; gap: 6px; }
.price-amount { font-family: var(--font-display); font-weight: 900; font-size: 52px; color: var(--red); line-height: 1; }
.price-currency { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--gray-400); }
.price-period { font-size: 14px; color: var(--gray-400); }

.tarif-features { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tarif-features li {
  font-size: 14px;
  color: var(--gray-200);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.tarif-features li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--red); border-radius: 1px; transform: rotate(45deg); }

.tarifs-note { text-align: center; color: var(--gray-400); font-size: 13px; margin-top: 36px; }

/* ══════════════════════════════════════
   LOCATION
══════════════════════════════════════ */
.location-section { padding: 100px 0; background: var(--black); }
.location-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media(min-width:800px) { .location-grid { grid-template-columns: 380px 1fr; align-items: stretch; } }

.location-info { display: flex; flex-direction: column; gap: 24px; }
.location-detail { display: flex; align-items: flex-start; gap: 16px; }
.location-icon { width: 44px; height: 44px; padding: 10px; background: var(--red-light); border-radius: var(--radius); flex-shrink: 0; color: var(--red); }
.location-icon svg { width: 100%; height: 100%; }
.location-detail strong { display: block; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 6px; }
.location-detail p { font-size: 15px; color: var(--white); line-height: 1.6; }
.ar-address { font-family: var(--font-arabic); font-size: 13px; color: var(--gray-400); direction: rtl; margin-top: 4px; }
.location-phone { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--red); }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.map-container {
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-700);
}
@media(min-width:800px) { .map-container { height: 100%; min-height: 360px; } }
.map-container iframe { width: 100%; height: 100%; }

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact-section { padding: 100px 0; background: var(--gray-900); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media(min-width:600px) { .contact-grid { grid-template-columns: repeat(3,1fr); } }

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 20px;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}
.contact-card:hover { border-color: var(--red); transform: translateY(-4px); }
.contact-wa:hover { border-color: #25D366; }

.contact-card-icon { width: 52px; height: 52px; padding: 12px; background: var(--red-light); border-radius: 50%; color: var(--red); }
.contact-wa .contact-card-icon { background: rgba(37,211,102,0.1); color: #25D366; }
.contact-card-icon svg { width: 100%; height: 100%; }
.contact-card strong { font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.contact-card span { font-size: 13px; color: var(--gray-400); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer { background: var(--gray-900); border-top: 1px solid var(--gray-700); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 48px; }
@media(min-width:700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand .logo-svg { height: 36px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--gray-400); line-height: 1.7; max-width: 260px; }

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--gray-400); transition: color var(--transition); }
.footer-links a:hover { color: var(--red); }

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact p { font-size: 14px; color: var(--gray-400); line-height: 1.6; }
.footer-contact a { font-size: 14px; color: var(--gray-400); transition: color var(--transition); }
.footer-contact a:hover { color: var(--red); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--gray-700);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: var(--gray-600); }
.footer-seo { font-size: 11px; color: var(--gray-700); letter-spacing: 0.06em; }

/* ══════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════════════
   UTILITY
══════════════════════════════════════ */
.ar-text { font-family: var(--font-arabic); direction: rtl; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }
