/* Nav transparente sur index */
nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
nav.scrolled { background: rgba(10,10,10,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.05); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; background: url('../images/salle.jpg') center / cover no-repeat; filter: contrast(1.1) saturate(0.8); transform: scale(1.05); animation: heroZoom 12s ease-out forwards; pointer-events: none; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,10,10,0.92) 40%, rgba(10,10,10,0.3) 100%), linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 60%); z-index: 1; pointer-events: none; }
.hero-grain { position: absolute; inset: 0; z-index: 2; opacity: 0.04; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); pointer-events: none; }
.hero-line { position: absolute; top: 0; bottom: 0; left: 46%; width: 1px; background: rgba(255,255,255,0.04); z-index: 2; pointer-events: none; }
.hero-content { position: relative; z-index: 3; padding: 0 48px 80px; max-width: 800px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 20px; opacity: 0; animation: fadeUp 0.6s 0.3s ease forwards; }
.hero-tag::before { content: ''; display: block; width: 28px; height: 1px; background: var(--red); }
.hero-title { font-family: 'Teko', sans-serif; font-size: clamp(72px, 10vw, 130px); line-height: 0.9; letter-spacing: 0.02em; color: var(--white); margin-bottom: 28px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: block; opacity: 0; transform: translateY(100%); animation: slideUp 0.7s ease forwards; }
.hero-title .line:nth-child(1) span { animation-delay: 0.5s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.65s; color: var(--red); }
.hero-title .line:nth-child(3) span { animation-delay: 0.8s; }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.65); max-width: 420px; line-height: 1.6; margin-bottom: 36px; opacity: 0; animation: fadeUp 0.6s 1.1s ease forwards; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.6s 1.3s ease forwards; }
.hero-scroll { position: absolute; bottom: 36px; right: 48px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; animation: fadeIn 0.6s 1.8s ease forwards; }
.hero-scroll-text { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); writing-mode: vertical-rl; }
.hero-scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%, 100% { transform: scaleY(1) translateY(0); opacity: 1; } 50% { transform: scaleY(0.5) translateY(10px); opacity: 0.4; } }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: var(--white); padding: 14px 28px; border-radius: 2px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; transition: all 0.25s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-secondary { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; transition: color 0.2s; cursor: pointer; }
.btn-secondary:hover { color: var(--white); }
.btn-arrow { width: 36px; height: 36px; min-width: 36px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; transition: all 0.2s; }
.btn-secondary:hover .btn-arrow { border-color: var(--white); transform: translateX(4px); }

/* ============================================================
   BARRE DE STATS
   ============================================================ */
.stats-bar { background: var(--red); display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 10; }
.stat-item { padding: 28px 32px; border-right: 1px solid rgba(255,255,255,0.15); opacity: 0; transition: opacity 0.5s ease; }
.stat-item:last-child { border-right: none; }
.stat-item.visible { opacity: 1; }
.stat-num { font-family: 'Teko', sans-serif; font-size: 60px; line-height: 1; color: var(--white); letter-spacing: 0.03em; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }

/* ============================================================
   SECTIONS BASE
   ============================================================ */
section { padding: 100px 48px; }
.section-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--red); }
.section-title { font-family: 'Teko', sans-serif; font-size: clamp(48px, 5vw, 72px); line-height: 0.95; letter-spacing: 0.02em; color: var(--white); margin-bottom: 24px; }
.section-body { font-size: 16px; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 480px; }

/* ============================================================
   SECTION COURS (index)
   ============================================================ */
.cours-section { background: var(--dark); }
.cours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 56px; }
.cours-card { position: relative; overflow: hidden; background: var(--dark2); cursor: pointer; }
.cours-card::before { content: attr(data-num); position: absolute; top: 16px; right: 20px; font-family: 'Teko', sans-serif; font-size: 96px; color: rgba(255,255,255,0.03); line-height: 1; z-index: 1; pointer-events: none; }
.cours-card:nth-child(1) .cours-card-bg { background: linear-gradient(135deg, #633a0b 0%, #271704 100%); }
.cours-card:nth-child(2) .cours-card-bg { background: linear-gradient(135deg, #272713 0%, #33320c 100%); }
.cours-card:nth-child(3) .cours-card-bg { background: linear-gradient(135deg, #3d3f2e 0%, #0a0a06 100%); }
.cours-card:nth-child(4) .cours-card-bg { background: linear-gradient(135deg, #4e4639 0%, #251f15 100%); }
.cours-card:nth-child(5) .cours-card-bg { background: linear-gradient(135deg, #473101 0%, #0c0901 100%); }
.cours-card:nth-child(6) .cours-card-bg { background: linear-gradient(135deg, #1c2349 0%, #04050e 100%); }
.cours-card-bg { position: absolute; inset: 0; transition: transform 0.6s ease; }
.cours-card:hover .cours-card-bg { transform: scale(1.08); }
.cours-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); z-index: 2; transition: opacity 0.3s; }
.cours-card:hover .cours-card-overlay { opacity: 0.7; }
.cours-card-content { position: relative; padding: 28px 24px; z-index: 3; }
.cours-card-icon { font-size: 28px; margin-bottom: 10px; transform: translateY(8px); transition: transform 0.3s ease; }
.cours-card:hover .cours-card-icon { transform: translateY(0); }
.cours-card-name { font-family: 'Teko', sans-serif; font-size: 26px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); margin-bottom: 6px; }
.cours-card-desc { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease; opacity: 0; }
.cours-card:hover .cours-card-desc { max-height: 60px; opacity: 1; }
.cours-card-tag { display: inline-block; margin-top: 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); border: 1px solid var(--red-dark); padding: 3px 10px; border-radius: 2px; }

/* ============================================================
   SECTION À PROPOS
   ============================================================ */
.about-section { background: var(--black); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.about-img { width: 100%; height: 100%; background: url('../images/open_gym.jpg') center / cover no-repeat; filter: contrast(1.1) saturate(0.7); transition: transform 0.8s ease; }
.about-img-wrap:hover .about-img { transform: scale(1.04); }
.about-img-badge { position: absolute; bottom: -20px; right: -20px; width: 120px; height: 120px; background: var(--red); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'Teko', sans-serif; }
.about-img-badge .n { font-size: 36px; line-height: 1; }
.about-img-badge .t { font-size: 13px; letter-spacing: 0.05em; opacity: 0.8; }
.about-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.about-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.12); border-radius: 2px; padding: 6px 14px; color: rgba(255,255,255,0.5); transition: all 0.2s; cursor: default; }
.about-tag:hover { border-color: var(--red); color: var(--red); }

/* ============================================================
   SECTION AVIS GOOGLE
   ============================================================ */
.reviews-section { background: var(--dark); padding: 80px 48px 120px; }
.reviews-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; }
.reviews-score-block { text-align: right; text-decoration: none; flex-shrink: 0; transition: opacity 0.2s; }
.reviews-score-block:hover { opacity: 0.8; }
.reviews-score-num { font-family: 'Teko', sans-serif; font-size: 88px; line-height: 1; color: var(--white); letter-spacing: 0.02em; }
.reviews-score-stars { display: inline-flex; align-items: center; gap: 3px; margin: 4px 0; line-height: 1; }
.star-i { font-size: 22px; line-height: 1; }
.star-i--full  { color: #FBBF24; }
.star-i--empty { color: rgba(255,255,255,0.15); }
.star-i--partial {
  background: linear-gradient(to right, #FBBF24 var(--p), rgba(255,255,255,0.15) var(--p));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.reviews-score-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); }

.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-bottom: 24px; transition: opacity 0.25s ease; }
.reviews-grid.fading { opacity: 0; }

.reviews-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 32px; flex-wrap: nowrap; }
.reviews-arrow { background: none; border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.4); width: 36px; height: 36px; min-width: 36px; border-radius: 2px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.reviews-arrow svg { display: block; flex-shrink: 0; }
.reviews-arrow:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.reviews-arrow:disabled { opacity: 0.2; cursor: default; }
.reviews-dots { display: flex; gap: 6px; align-items: center; flex-shrink: 1; min-width: 0; }
.reviews-dot { width: 6px; height: 6px; min-width: 6px; border-radius: 50%; background: rgba(255,255,255,0.15); cursor: pointer; transition: all 0.2s; border: none; padding: 0; flex-shrink: 0; }
.reviews-dot.active { background: var(--red); width: 20px; border-radius: 3px; }

.review-card { background: var(--dark2); padding: 28px 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-height: 260px; max-height: 260px; transition: max-height 0.45s ease; }
.review-card:hover { max-height: 800px; }
.review-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.review-card:hover::after { transform: scaleX(1); }
.review-card-top { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-family: 'Teko', sans-serif; font-size: 18px; color: var(--white); flex-shrink: 0; letter-spacing: 0; }
.review-author { font-size: 14px; font-weight: 600; color: var(--white); }
.review-date { font-size: 11px; color: rgba(255,255,255,0.28); margin-top: 2px; }
.review-g { margin-left: auto; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-family: 'Teko', sans-serif; font-size: 16px; color: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.08); border-radius: 50%; flex-shrink: 0; }
.review-stars { display: inline-flex; align-items: center; gap: 2px; }
.review-stars .star-i { font-size: 15px; }
.review-text { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; transition: all 0.4s ease; flex: 1; }
.review-card:hover .review-text { -webkit-line-clamp: unset; color: rgba(255,255,255,0.65); }

.reviews-more { text-align: center; }
.btn-reviews-more { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.45); padding: 13px 28px; border-radius: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; transition: all 0.2s; cursor: pointer; }
.btn-reviews-more::after { content: '↗'; font-size: 14px; }
.btn-reviews-more:hover { border-color: var(--white); color: var(--white); }

/* ============================================================
   RESPONSIVE INDEX
   ============================================================ */
@media (max-width: 900px) {
  section { padding: 64px 24px; }
  .hero-content { padding: 0 24px 64px; }
  .hero-line { display: none; }
  .hero-scroll { display: none; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .cours-grid { grid-template-columns: 1fr 1fr; }
  .about-section { grid-template-columns: 1fr; gap: 40px; padding: 64px 24px; }
  .reviews-section { padding: 64px 24px 80px; }
  .reviews-header { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
  .reviews-score-block { text-align: left; }
  .reviews-score-num { font-size: 64px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cours-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-wrap: nowrap; gap: 8px; }
  .hero-actions > * { flex: 1; min-width: 0; justify-content: center; }
  .btn-primary { padding: 10px 8px; white-space: normal; text-align: center; }
  .btn-secondary { gap: 4px; }
  .btn-arrow { width: 30px; height: 30px; min-width: 30px; font-size: 12px; }
  .btn-label { white-space: normal; text-align: center; word-break: normal; overflow-wrap: normal; min-width: 0; font-size: 11px; letter-spacing: 0; }
}
