/*
Theme Name:  Morgan Gaillard
Theme URI:   https://morgangaillard.com
Author:      Morgan Gaillard
Description: Thème personnalisé pour Morgan Gaillard — coach sportif & nutritionnel.
Version:     1.0
Text Domain: morgan-theme
*/

/* ─── RESET & BASE ──────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --nav-h:    88px;
  --side-pad: 11%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── SECTION DIVIDER ───────────────────────────────────────────────────── */
.section-divider {
  width: 20%;
  height: 1px;
  margin: 8px auto;
  background: rgba(255, 255, 255, 0.18);
}

/* ─── NAVIGATION ────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
}

.nav-logo-link {
  text-decoration: none;
}

.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: -0.12em;
  color: #fff;
  white-space: nowrap;
}

/* ─── NAV RIGHT GROUP ───────────────────────────────────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ─── NAV OFFER BADGE ───────────────────────────────────────────────────── */
.nav-offer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border: 1.5px solid #fff;
  border-radius: 100px;
  text-decoration: none;
  color: #000;
  background: #fff;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  top: 10px;
}

.nav-offer:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}

.nav-offer-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.72);
}

.nav-offer-price {
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #000;
  line-height: 1;
}

.nav-offer-currency {
  font-weight: 500;
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  gap: 42px;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.90rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
  padding-bottom: 6px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.95);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-img-wrap {
  position: relative;
  height: 55%;
  flex-shrink: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  filter: brightness(0.72) saturate(0.9);
}

.hero-content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
  padding: 60px 48px 70px;
}

.hero-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  max-width: 800px;
}

.hero-ctas {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
  border-radius: 100px;
}

.hero-btn--filled {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}

.hero-btn--filled:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
}

.hero-btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.hero-btn--outline:hover {
  border-color: #fff;
}

/* ─── SCROLL HINT ───────────────────────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  opacity: 0.5;
  animation: chevron-bounce 1.8s ease-in-out infinite;
}

@keyframes chevron-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 0.9; }
}

/* ─── SERVICES ACCORDION ────────────────────────────────────────────────── */
.services {
  position: relative;
  height: calc(100vh * 5);
  background: #000;
  overflow: hidden;
}

.services-sticky {
  display: grid;
  grid-template-columns: 40% 60%;
  height: 100vh;
  padding: calc(var(--nav-h) + 60px) var(--side-pad) 48px;
  gap: 72px;
  will-change: transform;
  background: #000;
}

.svc-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.svc-img-wrap,
.svc-list {
  margin-top: 40px;
  margin-left: 50px;
}

.svc-main-title {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.15;
  color: #fff;
}

.svc-img-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.svc-img {
  position: absolute;
  inset: 0;
  width: 85%;
  height: 85%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  filter: grayscale(30%) brightness(0.8);
}

.svc-img.is-active {
  opacity: 1;
}

.svc-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  margin-right: 50px;
}

.svc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0;
}

.svc-item {
  padding: 12px 0;
  overflow: hidden;
}

.svc-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  cursor: default;
}

.svc-num {
  display: none;
}

.svc-name {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.35s, font-size 0.35s;
  line-height: 1;
}

.svc-item.is-active .svc-name {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #fff;
}

.svc-body {
  overflow: hidden;
  padding-left: 50px;
  margin-top: 12px;
}

.svc-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}

.svc-more {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  text-transform: uppercase;
  float: right;
  transition: color 0.2s;
}

.svc-more:hover {
  color: #fff;
}

/* ─── AVIS SECTION ──────────────────────────────────────────────────────── */
.avis-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 56px) 10rem 48px;
  min-height: 100vh;
  background: #000;
  will-change: transform;
}

.avis-copy {
  flex-shrink: 0;
  margin-bottom: 32px;
}

.avis-title {
  font-family: 'Lora', serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 920px;
  margin-bottom: 22px;
}

.avis-intro {
  max-width: 860px;
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 46px;
}

.avis-intro strong {
  font-weight: 600;
  color: #fff;
}

.avis-horizontal {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: 10rem;
  flex-shrink: 0;
}

.avis-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  will-change: transform;
}

.avis-slide {
  width: min(78vw, 1020px);
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(360px, 1fr);
  align-items: stretch;
  gap: 2rem;
}

.avis-slide-text {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4rem;
  margin-left: 4rem;
  margin-right: 4rem;
}

.avis-slide-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
}

.avis-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avis-text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.avis-author {
  margin-top: auto;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* ─── CONTACT SECTION ───────────────────────────────────────────────────── */
.contact {
  padding: 120px 10rem 120px;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr);
  gap: 3.2rem;
  align-items: start;
}

.contact-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}

.contact-title {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}

.contact-text {
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.contact-form {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.55);
}

.contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.contact-submit:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.88);
}

/* ─── SECTION LABEL ─────────────────────────────────────────────────────── */
.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 18px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .avis-inner     { padding-left: 6rem; padding-right: 6rem; }
  .avis-horizontal { padding-left: 6rem; }
  .contact        { padding-left: 6rem; padding-right: 6rem; }
  .avis-track     { gap: 1.8rem; }
  .avis-slide     { width: min(82vw, 940px); grid-template-columns: minmax(240px, 320px) minmax(340px, 1fr); min-height: 330px; }
}

@media (max-width: 900px) {
  .avis-inner     { padding: calc(var(--nav-h) + 32px) 2rem 36px; }
  .contact        { padding: 90px 2rem; }
  .contact-inner  { grid-template-columns: 1fr; gap: 2rem; }
  .contact-row    { grid-template-columns: 1fr; }
  .avis-title     { margin-bottom: 24px; }
  .avis-track     { gap: 1.2rem; }
  .avis-horizontal { padding-left: 2rem; }
  .avis-slide     { width: min(88vw, 560px); min-height: 420px; grid-template-columns: 1fr; }
  .avis-slide-media { max-width: 320px; margin: 0 auto; }
  .avis-slide-text  { padding: 24px 22px; }
}
