/* ============================================
   PIERRE B COACHING — Design System
   ============================================ */

@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/BebasNeue-Regular.woff2') format('woff2'),
       url('../fonts/BebasNeue-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geomanist';
  src: url('../fonts/Geomanist-Regular.woff2') format('woff2'),
       url('../fonts/Geomanist-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geomanist';
  src: url('../fonts/Geomanist-Italic.woff2') format('woff2'),
       url('../fonts/Geomanist-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Colors */
  --ink: #121110;
  --ink-soft: #1c1a18;
  --charcoal: #211f1c;
  --ember: #b84b18;
  --ember-light: #e37a3e;
  --ember-dim: #7a3410;
  --ivory: #f7f5f1;
  --ivory-dim: #eae7e0;
  --steel: #8c8880;
  --steel-dark: #4a4844;
  --white: #ffffff;

  /* Type */
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Geomanist', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember-light);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--ember-light);
  display: inline-block;
}

:focus-visible {
  outline: 2px solid var(--ember-light);
  outline-offset: 3px;
}

/* ---------- Barbell divider — signature element ---------- */
.bar-divider {
  display: flex;
  align-items: center;
  gap: 0;
  height: 28px;
  width: 100%;
}
.bar-divider::before,
.bar-divider::after { content: ''; }
.bar-divider .line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember) 15%, var(--ember) 85%, transparent);
}
.bar-divider .plate {
  width: 3px;
  height: 22px;
  background: var(--ember);
  flex-shrink: 0;
}
.bar-divider .plate.small { height: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ember);
  color: var(--white);
}
.btn-primary:hover { background: var(--ember-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(247,245,241,0.35);
}
.btn-outline:hover { border-color: var(--ivory); background: rgba(247,245,241,0.06); }
.btn-outline.dark {
  color: var(--ink);
  border-color: rgba(18,17,16,0.3);
}
.btn-outline.dark:hover { border-color: var(--ink); background: rgba(18,17,16,0.06); }
.btn-arrow { transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background 0.35s ease, padding 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.scrolled {
  background: rgba(18,17,16,0.92);
  backdrop-filter: blur(10px);
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(247,245,241,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex-shrink: 1;
}
.brand img { height: 42px; width: auto; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-word span { color: var(--ember-light); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.main-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a:hover { color: var(--white); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--ember);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }

/* ---------- Nav dropdown (Mon accompagnement) ---------- */
.nav-item { position: relative; }
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.nav-caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s ease;
}
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret { transform: rotate(-135deg); margin-top: 2px; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.9rem;
  min-width: 240px;
  background: var(--ink-soft);
  border: 1px solid rgba(247,245,241,0.1);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.6);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.7rem 1.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--ivory-dim);
}
.nav-dropdown a:hover { color: var(--ember-light); background: var(--charcoal); }
.nav-dropdown a::after { display: none; }


.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ivory);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,17,16,0.35) 0%, rgba(18,17,16,0.55) 55%, rgba(18,17,16,0.96) 100%),
    linear-gradient(90deg, rgba(18,17,16,0.85) 0%, rgba(18,17,16,0.15) 55%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 6.5rem;
  padding-top: 10rem;
  max-width: 780px;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
  margin-top: 1.1rem;
}
.hero h1 .accent { color: var(--ember-light); }
.hero-lede {
  font-size: 1.05rem;
  color: var(--ivory-dim);
  max-width: 460px;
  margin-top: 1.4rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  background: var(--charcoal);
  border-bottom: 1px solid rgba(247,245,241,0.06);
}
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 2.4rem 1.5rem;
  text-align: center;
  border-left: 1px solid rgba(247,245,241,0.08);
}
.stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--ember-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 0.6rem;
}

/* ---------- Section basics ---------- */
section { position: relative; }
.section-pad { padding: 7rem 0; }
.section-pad-tight { padding: 1.6rem 0 1.8rem; }
.section-head {
  max-width: 640px;
  margin-bottom: 3.2rem;
}
.section-head h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-top: 0.8rem;
}
.section-head p {
  color: var(--steel);
  margin-top: 1rem;
  font-size: 1.02rem;
}

/* Content is visible by default (no-JS / SEO / crawlers safe).
   Animation only engages once the "js" class confirms the script ran. */
.reveal { opacity: 1; }
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Presentation ---------- */
.presentation {
  background: var(--ink);
}
.presentation .grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.presentation-photo {
  position: relative;
}
.presentation-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top;
}
.presentation-photo::before {
  content: '';
  position: absolute;
  top: -18px; left: -18px;
  width: 70px; height: 70px;
  border-top: 3px solid var(--ember);
  border-left: 3px solid var(--ember);
}
.presentation-photo::after {
  content: '';
  position: absolute;
  bottom: -18px; right: -18px;
  width: 70px; height: 70px;
  border-bottom: 3px solid var(--ember);
  border-right: 3px solid var(--ember);
}
.presentation-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0.8rem 0 1.4rem; }
.presentation-text p { color: var(--ivory-dim); margin-bottom: 1.1rem; font-size: 1rem; }
.credentials {
  list-style: none;
  margin: 1.8rem 0 2.2rem;
  display: grid;
  gap: 0.65rem;
}
.credentials li {
  font-size: 0.92rem;
  color: var(--steel);
  padding-left: 1.3rem;
  position: relative;
}
.credentials li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 6px; height: 6px;
  background: var(--ember);
}
.quote-line {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ember-light);
  letter-spacing: 0.01em;
  margin: 1.8rem 0;
  line-height: 1.25;
}
.discipline-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.discipline-photo-grid figure {
  position: relative;
  overflow: hidden;
}
.discipline-photo-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.discipline-photo-grid figure:hover img { transform: scale(1.05); }
.discipline-photo-grid::after { content: none; }
.discipline-photo-grid figure::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(18,17,16,0.92) 100%);
  pointer-events: none;
}
.discipline-photo-grid figcaption {
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.9rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

/* ---------- Quick picks (accompagnement.html) ---------- */
.quick-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(247,245,241,0.08);
  border: 1px solid rgba(247,245,241,0.08);
}
.quick-pick {
  background: var(--ink-soft);
  padding: 1.8rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: background 0.25s ease;
}
.quick-pick:hover { background: var(--charcoal); }
.quick-pick-need {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--steel);
  line-height: 1.5;
}
.quick-pick-answer {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--ember-light);
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.quick-pick:hover .btn-arrow { transform: translateX(4px); }
.quick-pick .btn-arrow { transition: transform 0.25s ease; display: inline-block; }

/* ---------- Flagship tag ---------- */
.flagship-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--ember-light);
  padding: 0.3rem 0.7rem;
  margin: 0 0 0.8rem 0.8rem;
}

/* ---------- Process steps (programmation) ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(247,245,241,0.1);
  border: 1px solid rgba(247,245,241,0.1);
  margin: 2.6rem 0 2.2rem;
}
.process-step {
  background: var(--ink);
  padding: 2rem 1.6rem;
}
.process-step .step-no {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ember);
  letter-spacing: 0.03em;
}
.process-step h4 {
  font-size: 1.15rem;
  margin: 0.6rem 0 0.6rem;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
}
.process-step p {
  font-size: 0.85rem;
  color: var(--steel);
  line-height: 1.55;
}
.process-note {
  max-width: 640px;
  color: var(--steel);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 2.2rem;
}

/* ---------- Page hero (sous-pages) ---------- */
.page-hero {
  background: var(--charcoal);
  background-image: radial-gradient(ellipse at top right, rgba(184,75,24,0.14), transparent 55%);
  padding: 11rem 0 4.5rem;
}
.page-hero-split { background-position: center 35%; }
.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-top: 0.8rem;
  max-width: 780px;
}
.page-hero-lede {
  color: var(--ivory-dim);
  font-size: 1.05rem;
  max-width: 560px;
  margin-top: 1.2rem;
}
.page-hero .hero-cta { margin-top: 2rem; }

/* ---------- Coaching section (header only) ---------- */
.coaching { background: var(--ink-soft); }
.coaching-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-light);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.6rem;
}
.coaching-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--ember);
  flex-shrink: 0;
}

/* ---------- Objectifs grid ---------- */
.objectifs { background: var(--ink-soft); }
.objectifs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(247,245,241,0.08);
  border: 1px solid rgba(247,245,241,0.08);
}
.objectifs-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.objectifs-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.objectif-card {
  background: var(--ink-soft);
  padding: 2.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.3s ease;
}
.objectif-card:hover { background: var(--charcoal); }
.objectif-card h3 {
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 400;
}
.objectif-arrow {
  color: var(--ember-light);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.objectif-card:hover .objectif-arrow { transform: translateX(4px); }

/* ---------- Formules (3 offres) ---------- */
.formules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}
/* ---------- Blog ---------- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.4rem;
}
.blog-filter {
  background: none;
  border: 1px solid rgba(247,245,241,0.15);
  color: var(--steel);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.blog-filter:hover { border-color: var(--ember); color: var(--ivory); }
.blog-filter.is-active { background: var(--ember); border-color: var(--ember); color: var(--white); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-soft);
  border: 1px solid rgba(247,245,241,0.08);
}
.blog-card-img {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.6rem 1.5rem 1.8rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-date {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.6rem;
}
.blog-card-body h3 { font-size: 1.25rem; margin-bottom: 0.8rem; line-height: 1.25; }
.blog-card-body p { color: var(--steel); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.2rem; flex-grow: 1; }

.article-hero-img {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 2.4rem;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 700px; margin: 0 auto; }
.article-body p { color: var(--ivory-dim); font-size: 1.02rem; line-height: 1.75; margin-bottom: 1.3rem; }
.article-gallery {
  column-count: 3;
  column-gap: 0.5rem;
  margin: 2.2rem 0;
}
.article-gallery img {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  object-fit: cover;
}
.gallery-rows { margin: 2.2rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.gallery-row { display: grid; gap: 0.5rem; }
.gallery-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-row.cols-1 { grid-template-columns: 1fr; }
.gallery-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-row.cols-3 img { aspect-ratio: 3/4; }
.gallery-row.cols-1 img { aspect-ratio: 16/9; }
.article-checklist { list-style: none; display: grid; gap: 1.1rem; margin: 2rem 0; }
.article-checklist li {
  position: relative;
  padding-left: 2.1rem;
  color: var(--ivory-dim);
  font-size: 1rem;
  line-height: 1.6;
}
.article-checklist li strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 1.08rem; letter-spacing: 0.01em; margin-bottom: 0.2rem; }
.article-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: var(--ember-light);
  font-weight: 700;
  font-size: 1.1rem;
}

.formules-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.formule-card {
  background: var(--ink-soft);
  border: 1px solid rgba(247,245,241,0.08);
  border-top: 2px solid var(--steel-dark);
  padding: 2.4rem 2.1rem;
  display: flex;
  flex-direction: column;
}
.formule-card.is-featured {
  border-top: 2px solid var(--ember);
  background: var(--charcoal);
}
.formule-card h3 {
  font-size: 1.6rem;
  margin: 0.7rem 0 0.9rem;
  letter-spacing: 0.01em;
}
.formule-card p {
  color: var(--steel);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}
.price-tag {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.4rem 0 1.2rem;
}
.price-tag .amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--ember-light);
  letter-spacing: 0.01em;
}
.price-tag .unit {
  font-size: 0.85rem;
  color: var(--steel);
}
.price-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--ivory-dim);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(247,245,241,0.08);
}
.price-list li span:last-child {
  font-family: var(--font-display);
  color: var(--ember-light);
  font-size: 1.1rem;
  white-space: nowrap;
}

/* ---------- Studio equipment icons ---------- */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem 1rem;
  margin: 1.8rem 0 2.2rem;
}
.equip-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
.equip-icon {
  width: 34px;
  height: 34px;
  color: var(--ember-light);
}
.equip-item span {
  font-size: 0.78rem;
  color: var(--steel);
  line-height: 1.3;
}

/* ---------- HYFIT panel ---------- */
.hyfit {
  position: relative;
  background: var(--charcoal);
  background-image:
    radial-gradient(ellipse at top right, rgba(184,75,24,0.16), transparent 55%);
  overflow: hidden;
  isolation: isolate;
}
.hyfit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('../images/hyfit-bg-dumbbell.jpg');
  background-size: cover;
  background-position: center 12%;
  opacity: 1;
}
.hyfit::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18,17,16,0.55) 0%, rgba(18,17,16,0.82) 55%, rgba(18,17,16,0.97) 100%);
}
.hyfit-no-bg::before,
.hyfit-no-bg::after {
  display: none;
}
.hyfit-intro {
  max-width: 640px;
  margin: 0 0 4rem;
  text-align: left;
}
.hyfit-mark {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 0.9;
  margin-top: 0.9rem;
}
.hyfit-mark span { color: var(--ember-light); }
.hyfit-intro p {
  color: var(--ivory-dim);
  font-size: 1.08rem;
  line-height: 1.65;
  margin-top: 1.6rem;
}
.hyfit-pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.6rem;
  margin: 0 0 3.6rem;
}
.pillar-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: var(--ember-light);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  width: 118px;
}
.pillar-tag span {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 2.5em;
  line-height: 1.25;
}
.pillar-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.hyfit-explain {
  color: var(--steel);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto 2.4rem;
  text-align: center;
}
.hyfit-spec-label {
  display: block;
  text-align: center;
  margin: 3.4rem 0 1.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember-light);
}

/* Foundation → fork → specializations */
.hyfit-foundation { display: flex; justify-content: center; margin-bottom: 0; }
.foundation-card {
  background: var(--ink);
  border: 1px solid rgba(247,245,241,0.1);
  border-top: 2px solid var(--ember);
  padding: 1.8rem 2.4rem;
  text-align: center;
  max-width: 480px;
  display: block;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.foundation-card:hover,
.foundation-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--ember);
  background: var(--charcoal);
  box-shadow: 0 16px 32px -16px rgba(0,0,0,0.55);
}
.foundation-card:hover .btn-arrow { transform: translateX(4px); }
.foundation-card .step-no {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember-light);
}
.foundation-card h4 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin: 0.4rem 0 0.5rem;
  letter-spacing: 0.02em;
}
.foundation-card p {
  font-size: 0.85rem;
  color: var(--steel);
}
.hyfit-card-logo {
  height: 46px;
  width: auto;
  margin: 0 auto 0.8rem;
  display: block;
}

.hyfit-fork {
  display: flex;
  justify-content: center;
  position: relative;
  height: 46px;
}
.hyfit-fork .fork-trunk {
  position: absolute;
  top: 0; left: 50%;
  width: 2px; height: 16px;
  background: rgba(227,122,62,0.5);
  transform: translateX(-50%);
}
.hyfit-fork .fork-branch {
  position: absolute;
  top: 16px;
  width: 2px; height: 30px;
  background: rgba(227,122,62,0.5);
}
.hyfit-fork .fork-branch.left { left: 16.6%; transform: skewX(-24deg); }
.hyfit-fork .fork-branch.mid { left: 50%; transform: translateX(-50%); }
.hyfit-fork .fork-branch.right { left: 83.4%; transform: skewX(24deg); }

.hyfit-specializations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.6rem;
}
.hyfit-specializations.cols-3 { grid-template-columns: repeat(3, 1fr); }
.hyfit-specializations.cols-4 { grid-template-columns: repeat(4, 1fr); }
.spec-card {
  background: var(--ink);
  border: 1px solid rgba(247,245,241,0.1);
  padding: 2.2rem 1.6rem;
  text-align: center;
  display: block;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.spec-card:hover,
.spec-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--ember);
  background: var(--charcoal);
  box-shadow: 0 16px 32px -16px rgba(0,0,0,0.55);
}
.spec-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--white);
}
.spec-card .hyfit-card-logo { margin: 0 auto 1rem; }
.spec-card p {
  font-size: 0.85rem;
  color: var(--steel);
  line-height: 1.5;
}
.spec-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ember-light);
  margin-top: 1.2rem;
}
.spec-card .btn-arrow { transition: transform 0.25s ease; }
.spec-card:hover .btn-arrow { transform: translateX(4px); }
.hyfit-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Studio teaser ---------- */
.studio {
  background: var(--ink);
}
.studio .grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.studio-gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.6rem;
  height: 480px;
}
.studio-gallery img { width: 100%; height: 100%; object-fit: cover; }
.studio-gallery a:first-child { grid-row: 1 / 3; }

/* ---------- Full studio gallery (studio.html) ---------- */
.studio-full-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.studio-full-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.studio-full-gallery img:hover { transform: scale(1.03); }
.studio-text p { color: var(--ivory-dim); margin: 1.1rem 0 1.8rem; }
.studio-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0.8rem; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--ink-soft); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.testi-card {
  background: var(--charcoal);
  border: 1px solid rgba(247,245,241,0.08);
  padding: 2.4rem;
  position: relative;
}
.testi-mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--ember);
  line-height: 1;
  opacity: 0.5;
}
.testi-card p {
  color: var(--ivory-dim);
  font-size: 0.98rem;
  margin: 1rem 0 1.4rem;
  line-height: 1.65;
}
.testi-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--ember-light);
}

/* ---------- Instagram strip ---------- */
.insta {
  background: var(--ink);
  padding: 5rem 0;
}
.insta-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.insta-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-top: 0.6rem; }
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
}
.insta-grid a {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}
.insta-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.insta-grid a:hover img { transform: scale(1.08); }
.insta-grid a::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(184,75,24,0);
  transition: background 0.3s ease;
}
.insta-grid a:hover::after { background: rgba(184,75,24,0.25); }

/* ---------- Contact ---------- */
.contact {
  background: var(--charcoal);
  border-top: 1px solid rgba(247,245,241,0.06);
}
.contact .grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.contact-info h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0.8rem; }
.contact-info p { color: var(--steel); margin: 1.1rem 0 1.6rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  color: var(--ivory-dim);
}
.contact-detail strong { color: var(--white); font-weight: 700; }

form.contact-form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.5rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid rgba(247,245,241,0.15);
  color: var(--ivory);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ember);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button { margin-top: 0.4rem; justify-self: start; }
.contact-form select {
  width: 100%;
  background: var(--ink);
  border: 1px solid rgba(247,245,241,0.15);
  color: var(--ivory);
  padding: 0.85rem 2.6rem 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c8880' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  cursor: pointer;
}
.contact-form select:focus {
  outline: none;
  border-color: var(--ember);
}
.contact-form select:invalid { color: var(--steel); }
.form-full { grid-column: 1 / -1; }
.form-note {
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 0.9rem;
  max-width: 480px;
}
.other-field[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  padding: 3.5rem 0 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(247,245,241,0.08);
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand img { height: 38px; }
.footer-nav {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.footer-col h5 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.9rem;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--ivory-dim);
  margin-bottom: 0.55rem;
}
.footer-col a:hover { color: var(--ember-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.78rem;
  color: var(--steel);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--ink-soft);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 6.5rem 2.2rem 2rem;
    border-left: 1px solid rgba(247,245,241,0.08);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s;
    z-index: 105;
    overflow-y: auto;
  }
  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-toggle { display: flex; z-index: 110; }
  .nav-item { width: 100%; }
  .nav-caret { display: none; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: none;
    box-shadow: none;
    min-width: 0;
    padding: 0.9rem 0 0 1.1rem;
    margin-top: 0.9rem;
    border-left: 1px solid rgba(227,122,62,0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .nav-dropdown a { padding: 0; font-size: 0.76rem; }
  .presentation .grid,
  .studio .grid,
  .contact .grid { grid-template-columns: 1fr; }
  .studio-text { display: contents; }
  .studio-title { order: 1; }
  .studio-body { order: 2; }
  .studio-gallery { order: 3; }
  .studio .equip-grid { order: 4; }
  .studio .btn { order: 5; }
  .presentation-photo { max-width: 380px; }
  .page-hero-split { background-position: right center; }
  .objectifs-grid,
  .objectifs-grid.cols-3,
  .objectifs-grid.cols-4 { grid-template-columns: 1fr; }
  .formules-grid,
  .formules-grid.cols-2 { grid-template-columns: 1fr; }
  .hyfit-specializations,
  .hyfit-specializations.cols-3,
  .hyfit-specializations.cols-4 { grid-template-columns: 1fr; }
  .hyfit-fork { display: none; }
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-full-gallery { grid-template-columns: repeat(2, 1fr); }
  .discipline-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-gallery { column-count: 2; }
  .gallery-row.cols-3 { grid-template-columns: repeat(2, 1fr); }

  /* Mobile-only gallery reflow: prevents empty grid cells on 2-col rows.
     Desktop layout (.gallery-rows / .gallery-row) is untouched above 980px. */
  .gallery-rows--crossfit,
  .gallery-rows--bodybuilding {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .gallery-rows--crossfit .gallery-row,
  .gallery-rows--bodybuilding .gallery-row {
    display: contents;
  }
  .gallery-rows--crossfit .gallery-row.cols-1 img,
  .gallery-rows--bodybuilding .gallery-row.cols-1 img {
    grid-column: 1 / -1;
  }

  /* CrossFit: move the recovery photo (last image) up to fill the gap
     next to the BikeErg photo, so the box-jump/rower row pairs evenly. */
  .gallery-rows--crossfit .gallery-row:nth-of-type(1) img:nth-of-type(1) { order: 1; }
  .gallery-rows--crossfit .gallery-row:nth-of-type(1) img:nth-of-type(2) { order: 2; }
  .gallery-rows--crossfit .gallery-row:nth-of-type(1) img:nth-of-type(3) { order: 3; }
  .gallery-rows--crossfit .gallery-row:nth-of-type(3) img:nth-of-type(3) { order: 4; }
  .gallery-rows--crossfit .gallery-row:nth-of-type(2) img { order: 5; }
  .gallery-rows--crossfit .gallery-row:nth-of-type(3) img:nth-of-type(1) { order: 6; }
  .gallery-rows--crossfit .gallery-row:nth-of-type(3) img:nth-of-type(2) { order: 7; }

  /* Bodybuilding: pair photos 1+2, then 3+4, then photo 5 full width. */
  .gallery-rows--bodybuilding .gallery-row:nth-of-type(1) img:nth-of-type(1) { order: 1; }
  .gallery-rows--bodybuilding .gallery-row:nth-of-type(1) img:nth-of-type(2) { order: 2; }
  .gallery-rows--bodybuilding .gallery-row:nth-of-type(1) img:nth-of-type(3) { order: 3; }
  .gallery-rows--bodybuilding .gallery-row:nth-of-type(2) img {
    order: 4;
    grid-column: auto;
    aspect-ratio: 3/4;
  }
  .gallery-rows--bodybuilding .gallery-row:nth-of-type(3) img { order: 5; }
  .quick-picks { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(247,245,241,0.08); padding-bottom: 2rem; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .studio-gallery { height: auto; grid-template-rows: repeat(2, 200px); }
}

@media (max-width: 620px) {
  .brand-word { font-size: 1.05rem; }
  .process-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-content { padding-top: 8rem; }
  .blog-grid { grid-template-columns: 1fr; }
}
