/* ============================================
   YASMINE ARFAOUI — PORTFOLIO STYLES
   ============================================ */

:root {
  /* Brand gold — constant across themes */
  --gold: #C9A227;
  --gold-light: #E4C558;
  --gold-dark: #a5831c;

  /* Dark theme (default) */
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --surface: #1a1a1a;
  --surface-2: #202020;
  --text: #f5f3ee;
  --text-muted: #b8b3a8;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.5);
  --overlay: rgba(10, 10, 10, 0.55);

  --font-header: 'Poppins', 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-script: 'Dancing Script', cursive;

  --container: 1200px;
  --radius: 14px;
  --transition: 0.3s ease;
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-alt: #f1f0ec;
  --surface: #ffffff;
  --surface-2: #f4f3ef;
  --text: #131313;
  --text-muted: #5c584f;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: rgba(0, 0, 0, 0.12);
  --overlay: rgba(255, 255, 255, 0.55);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

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

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

h1, h2, h3 { font-family: var(--font-header); text-transform: uppercase; letter-spacing: 0.02em; }

.section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.eyebrow--center { text-align: center; }

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #0a0a0a;
}
.btn--gold:hover { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }

.btn--outline {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--block { width: 100%; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar__logo {
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.navbar__logo span { color: var(--gold); margin-left: 0.35em; }

.navbar__links {
  display: flex;
  gap: 2rem;
}

.navbar__links a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.25rem 0;
}
.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.navbar__links a:hover::after { width: 100%; }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
}
.lang-toggle__opt { transition: color var(--transition); }
.lang-toggle__opt.is-active { color: var(--gold); }
.lang-toggle__sep { opacity: 0.4; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
  position: relative;
}
.theme-toggle__icon { position: absolute; transition: opacity var(--transition), transform var(--transition); }
.theme-toggle__icon--moon { opacity: 1; }
.theme-toggle__icon--sun { opacity: 0; transform: rotate(-90deg); }
[data-theme="light"] .theme-toggle__icon--moon { opacity: 0; transform: rotate(90deg); }
[data-theme="light"] .theme-toggle__icon--sun { opacity: 1; transform: rotate(0); color: var(--gold); }

.icon-link {
  font-size: 1.2rem;
  color: var(--text);
  transition: color var(--transition);
}
.icon-link:hover { color: var(--gold); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background: var(--bg);
}

.hero__streaks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0px,
      transparent 140px,
      color-mix(in srgb, var(--gold) 14%, transparent) 141px,
      color-mix(in srgb, var(--gold) 14%, transparent) 143px,
      transparent 144px,
      transparent 260px
    );
  opacity: 0.5;
}

.hero__container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero__script {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 30px 60px var(--shadow);
}
.hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 60%, transparent), transparent 40%);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1.3rem;
  animation: bounce 2s infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============ ABOUT ============ */
.about { position: relative; background: var(--bg-alt); }

.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.about__image img {
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: 0 20px 50px var(--shadow);
}

.about__content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.about__bio {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.certs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.certs__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.certs__card .icon { color: var(--gold); font-size: 1.4rem; margin-top: 0.15rem; flex-shrink: 0; }

.certs__card-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.certs__card-text strong { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.certs__card-text span { font-size: 0.82rem; color: var(--text-muted); }
.certs__card-text small { font-size: 0.72rem; color: var(--text-muted); opacity: 0.75; }

/* ============ SERVICES ============ */
.services { position: relative; background: var(--bg); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.service-card__icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.goals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.goal-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.goal-tag .icon { color: var(--gold); }

/* ============ COACHING PRIVÉ SHOWCASE ============ */
.showcase {
  position: relative;
  background:
    radial-gradient(ellipse 70% 55% at 12% 15%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 60%),
    var(--bg-alt);
}

.showcase__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}

.showcase__image {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 25px 60px var(--shadow), 0 0 50px color-mix(in srgb, var(--gold) 22%, transparent);
}
.showcase__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}

.showcase__content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.5rem;
}

.accent-gold { color: var(--gold); }

.showcase__text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.showcase__signature {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
}

.showcase__ribbon {
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 15px 40px color-mix(in srgb, var(--gold) 35%, transparent);
}

.showcase__ribbon-text {
  font-family: var(--font-header);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  color: #0a0a0a;
}
.showcase__ribbon-text:hover { text-decoration: underline; }

.showcase__ribbon-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.showcase__ribbon-icons a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.12);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background var(--transition);
}
.showcase__ribbon-icons a:hover { background: rgba(10, 10, 10, 0.22); }
.showcase__ribbon-icons .icon { font-size: 1.1rem; }

/* ============ LOCATION ============ */
.location { position: relative; background: var(--bg-alt); }

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.location__content h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.location__content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.location__facts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.location__facts div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.location__facts .icon { color: var(--gold); width: 1.2rem; }

.location__map-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.location__map {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px var(--shadow);
}
.location__map iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(0.2);
}

.location__map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.9rem 1.2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.location__address {
  font-weight: 600;
  font-size: 0.9rem;
}

.location__directions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
}
.location__directions:hover { color: var(--gold-light); }

/* ============ GALLERY ============ */
.gallery { position: relative; background: var(--bg); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.gallery__item {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.06); }

.gallery__item--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 2px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.gallery__item--placeholder i { font-size: 1.6rem; color: var(--gold); }

/* ============ CONTACT ============ */
.contact { position: relative; background: var(--bg-alt); }

.contact__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 3rem;
}

.contact__form-wrap h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact__intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; }

.contact__status {
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.contact__status.is-success { color: #4caf50; }
.contact__status.is-error { color: #e05252; }

.contact__direct {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-content: flex-start;
}

.direct-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform var(--transition), border-color var(--transition);
}
.direct-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.direct-card .icon {
  font-size: 1.8rem;
  color: var(--gold);
}
.direct-card strong { display: block; font-size: 1rem; }
.direct-card span { color: var(--text-muted); font-size: 0.85rem; }

/* ============ FOOTER ============ */
.footer {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer__inner {
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__brand { display: flex; flex-direction: column; gap: 0.25rem; }
.footer__name { font-weight: 800; letter-spacing: 0.05em; }
.footer__tagline { font-family: var(--font-script); color: var(--gold); font-size: 1.2rem; }

.footer__socials { display: flex; gap: 1.25rem; font-size: 1.3rem; }
.footer__socials a { color: var(--text); transition: color var(--transition); }
.footer__socials a:hover { color: var(--gold); }

.footer__meta {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============ FLOATING WHATSAPP ============ */
.float-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px; height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  z-index: 900;
  transition: transform var(--transition);
}
.float-whatsapp:hover { transform: scale(1.08); }

/* ============ DECORATIVE BACKGROUND ICONS ============ */
/* Purely decorative gym-icon silhouettes drifting behind each section's
   content. Each section gets its own absolutely-positioned layer (rather
   than one viewport-fixed layer) so the icons paint above that section's
   own solid background but below its content. */
.section-icons {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.06;
  animation: bgIconDrift var(--dur, 32s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}

[data-theme="light"] .bg-icon { opacity: 0.09; }

.bg-icon--sm { width: 34px; height: 34px; }
.bg-icon--md { width: 46px; height: 46px; }
.bg-icon--lg { width: 62px; height: 62px; }

@keyframes bgIconDrift {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-26px) rotate(var(--rot, 8deg)); }
  100% { transform: translateY(0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-icon { animation: none; }
}

@media (max-width: 768px) {
  .bg-icon--extra { display: none; }
  .bg-icon--sm { width: 24px; height: 24px; }
  .bg-icon--md { width: 32px; height: 32px; }
  .bg-icon--lg { width: 40px; height: 40px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero__container,
  .about__grid,
  .showcase__grid,
  .location__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .hero__image { order: -1; max-width: 380px; margin: 0 auto; }
  .about__image { max-width: 380px; margin: 0 auto; }
  .showcase__image { max-width: 420px; margin: 0 auto; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar__links { display: none; }
  .hamburger { display: flex; }
  .navbar__inner { padding: 0.85rem 1rem; gap: 0.5rem; }
  .navbar__logo { font-size: 0.9rem; }
  .navbar__actions { gap: 0.6rem; }
  .navbar__actions .icon-link { display: none; }
  .lang-toggle { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
  .theme-toggle { width: 34px; height: 34px; }

  .showcase__ribbon {
    flex-direction: column;
    align-items: flex-start;
    border-radius: var(--radius);
    padding: 1.5rem;
  }

  .navbar__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .section__inner { padding: 4rem 1.25rem; }
}

@media (max-width: 520px) {
  .services__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
