/* ============================================================
   SURF SCHOOL — premium one-page
   Palette extraite des ressources :
   - Typo principale (INSPI 3) : #FDD57E (or sable)
   - Teal logo : #216564 / fond profond #082E2D
   - Sable / crème : #F5F1E8 / #E5E7DC
   ============================================================ */

:root {
  --gold: #FDD57E;
  --gold-deep: #E9B85C;
  --teal: #216564;
  --teal-dark: #082E2D;
  --teal-soft: #3C7774;
  --cream: #F5F1E8;
  --sand: #ECE6D8;
  --sage: #E5E7DC;
  --ink: #14211F;
  --white: #ffffff;

  --font-display: "Perandory Condensed", "Perandory", "Clash Display", "Outfit", sans-serif;
  --font-body: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 102px;
}

/* ------------------ RESET ------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--teal-dark); }

/* ------------------ TYPO HELPERS ------------------ */
.section { padding: clamp(5rem, 12vw, 11rem) var(--gutter); }
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 7.6vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.005em;
  color: var(--teal);
}
.display em { font-style: normal; color: var(--gold-deep); font-weight: 500; }
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-soft);
  margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold-deep); display: inline-block; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #41524f; max-width: 52ch; margin-top: 1.4rem; }
.lead--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ------------------ BUTTONS ------------------ */
.btn {
  --pad-y: 1rem; --pad-x: 2.1rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.btn--solid {
  background: var(--gold); color: var(--teal-dark);
  box-shadow: 0 14px 30px -12px rgba(233, 184, 92, .7);
}
.btn--solid:hover { background: var(--teal-dark); color: var(--gold); transform: translateY(-3px); box-shadow: 0 20px 40px -14px rgba(8,46,45,.5); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-3px); }
.btn--block { width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), backdrop-filter .5s var(--ease);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto;
  height: var(--nav-h);
  padding: 0 clamp(2rem, 8vw, 9rem);
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
/* display:contents flattens the <ul> groups so the 4 links + logo become
   direct flex items, evenly distributed across the full bar width */
.nav__group { display: contents; }
.nav__link {
  position: relative; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.02em;
  color: var(--white); transition: color .35s var(--ease);
  padding: .4rem 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--gold); transition: width .4s var(--ease);
}
.nav__link:hover::after { width: 100%; }

.nav__logo { flex: none; display: block; position: relative; }
.nav__logo-img { height: 92px; width: auto; transition: opacity .5s var(--ease), height .5s var(--ease); }
.nav__logo-img--dark { position: absolute; inset: 0; opacity: 0; }

/* scrolled state */
.nav.is-scrolled {
  background: rgba(245, 241, 232, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(33,101,100,.1), 0 12px 30px -22px rgba(8,46,45,.5);
}
.nav.is-scrolled .nav__link { color: var(--teal); }
.nav.is-scrolled .nav__logo-img--light { opacity: 0; }
.nav.is-scrolled .nav__logo-img--dark { opacity: 1; }
.nav.is-scrolled .nav__logo-img { height: 76px; }

/* burger */
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.nav.is-scrolled .nav__burger span { background: var(--teal); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  background: var(--teal-dark);
  display: flex; flex-direction: column; gap: .4rem;
  padding: 1.5rem var(--gutter) 2.5rem;
  transform: translateY(-120%); visibility: hidden;
  transition: transform .55s var(--ease), visibility .55s var(--ease);
  z-index: 99;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu__link {
  font-family: var(--font-display); font-size: 1.8rem; color: var(--cream);
  padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu__link:hover { color: var(--gold); }
.mobile-menu__cta { margin-top: 1.5rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--white);
  padding: var(--nav-h) var(--gutter) 4rem;
  overflow: hidden;
}
.hero__video-wrap { position: absolute; inset: 0; z-index: -1; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,46,45,.45) 0%, rgba(8,46,45,.15) 35%, rgba(8,46,45,.55) 100%),
    radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(8,46,45,.5) 100%);
}
.hero__content { max-width: 880px; position: relative; }
.hero__eyebrow {
  font-size: .8rem; letter-spacing: .34em; text-transform: uppercase;
  font-weight: 500; color: rgba(255,255,255,.85); margin-bottom: 1.6rem;
}
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.6rem, 13vw, 9.5rem); line-height: 0.92;
  letter-spacing: -0.03em; margin-bottom: 1.4rem;
}
.hero__title-accent { font-style: normal; color: var(--gold); }
.hero__title-kw {
  display: block; font-family: var(--font-body); font-weight: 600;
  font-size: clamp(.92rem, 2.1vw, 1.35rem); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-top: 1.2rem;
}
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero.is-in .reveal-line > span { transform: translateY(0); }
.hero.is-in .reveal-line:nth-child(2) > span { transition-delay: .12s; }
.hero__subtitle { font-size: clamp(1.1rem, 2vw, 1.45rem); color: rgba(255,255,255,.92); max-width: 40ch; margin: 0 auto; font-weight: 300; }
.hero__cta { margin-top: 2.6rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   NOTRE ÉCOLE
   ============================================================ */
.ecole { background: var(--cream); }
.ecole__grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.ecole__text p:not(.kicker):not(.lead) { margin-top: 1.2rem; color: #41524f; }
.ecole__stats { display: flex; gap: clamp(1.5rem,4vw,3rem); margin-top: 2.8rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.2rem,4vw,3rem); color: var(--teal); line-height: 1; }
.stat__label { font-size: .82rem; letter-spacing: .04em; color: var(--teal-soft); margin-top: .4rem; text-transform: uppercase; }

.ecole__media { position: relative; }
.ecole__img-main { border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(8,46,45,.45); }
.ecole__img-main img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.ecole__img-float {
  position: absolute; right: -8%; bottom: -12%; width: 46%;
  border-radius: 18px; overflow: hidden; border: 6px solid var(--cream);
  box-shadow: 0 30px 60px -22px rgba(8,46,45,.5);
}
.ecole__img-float img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.ecole__badge {
  position: absolute; top: -6%; left: -7%;
  width: 118px; height: 118px; border-radius: 50%;
  background: var(--gold); color: var(--teal-dark);
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.1; letter-spacing: -0.01em;
  box-shadow: 0 18px 40px -14px rgba(233,184,92,.8);
  animation: spinBadge 18s linear infinite;
}
@keyframes spinBadge { to { transform: rotate(360deg); } }
.ecole__badge span { animation: spinBadge 18s linear infinite reverse; }

/* ============================================================
   LES COURS
   ============================================================ */
.cours { background: var(--teal-dark); color: var(--cream); }
.cours__head { max-width: 720px; margin: 0 auto 4rem; text-align: center; }
.cours .kicker { justify-content: center; color: var(--gold); }
.cours .kicker::before { background: var(--gold); }
.cours .display { color: var(--cream); }
.cours__head .lead { color: rgba(245,241,232,.7); }

.cours__grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
}
.card {
  position: relative; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 2.4rem 2rem 2.2rem; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(253,213,126,.18), transparent 70%);
  transition: opacity .5s var(--ease);
}
.card:hover { transform: translateY(-10px); background: rgba(255,255,255,.07); border-color: rgba(253,213,126,.4); box-shadow: 0 40px 70px -30px rgba(0,0,0,.6); }
.card:hover::before { opacity: 1; }
.card__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.4rem; }
.card__index { font-family: var(--font-display); font-size: 2rem; color: var(--gold); }
.card__time { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,241,232,.65); border: 1px solid rgba(255,255,255,.18); padding: .3rem .8rem; border-radius: 999px; }
.card__title { font-family: var(--font-display); font-weight: 500; font-size: 2rem; color: var(--cream); margin-bottom: .4rem; line-height: 1.05; }
.card__sub { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: rgba(245,241,232,.6); margin-bottom: .9rem; }
.card__price { font-size: .95rem; color: rgba(245,241,232,.8); margin-bottom: 1.2rem; }
.card__price strong { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; color: var(--gold); }
.card__desc { color: rgba(245,241,232,.72); font-size: .98rem; }
.card__list { margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: .55rem; }
.card__list li { position: relative; padding-left: 1.4rem; font-size: .92rem; color: rgba(245,241,232,.85); }
.card__list li::before { content: "↟"; position: absolute; left: 0; color: var(--gold); }
.card__cta { margin-top: auto; align-self: flex-start; font-weight: 600; color: var(--gold); display: inline-flex; gap: .5rem; align-items: center; }
.card__cta span { transition: transform .4s var(--ease); }
.card__cta:hover span { transform: translateX(6px); }

.card--featured { background: rgba(253,213,126,.1); border-color: rgba(253,213,126,.35); }
.card__tag {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: var(--gold); color: var(--teal-dark);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 999px;
}
.card--featured .card__top { margin-top: .6rem; }

/* ============================================================
   GALERIE — masonry
   ============================================================ */
.galerie { background: var(--sand); }
.galerie__head { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.galerie .kicker { justify-content: center; }
.galerie .display { font-style: normal; }
.masonry {
  max-width: var(--container); margin: 0 auto;
  column-count: 3; column-gap: 1.2rem;
}
.masonry__item {
  position: relative; break-inside: avoid; margin-bottom: 1.2rem;
  border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px -28px rgba(8,46,45,.4);
}
.masonry__item img { width: 100%; transition: transform 1.1s var(--ease); }
.masonry__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,46,45,.55), transparent 55%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.masonry__item figcaption {
  position: absolute; left: 1.1rem; bottom: 1rem; z-index: 2;
  color: var(--cream); font-family: var(--font-display); font-style: italic; font-size: 1.2rem;
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.masonry__item:hover img { transform: scale(1.08); }
.masonry__item:hover::after { opacity: 1; }
.masonry__item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ============================================================
   TÉMOIGNAGES
   ============================================================ */
.avis { background: var(--cream); }
.avis__head { text-align: center; margin-bottom: 3.5rem; }
.avis .kicker { justify-content: center; }
.avis__grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.quote {
  background: var(--white); border-radius: var(--radius);
  padding: 2.4rem 2rem; border: 1px solid rgba(33,101,100,.1);
  display: flex; flex-direction: column; gap: 1.2rem;
  box-shadow: 0 24px 50px -34px rgba(8,46,45,.4);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.quote:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -34px rgba(8,46,45,.5); }
.quote__stars { color: var(--gold-deep); letter-spacing: .2em; font-size: 1.05rem; }
.quote p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--ink); font-weight: 400; }
.quote footer { display: flex; flex-direction: column; margin-top: auto; }
.quote__name { font-weight: 600; color: var(--teal); }
.quote__role { font-size: .82rem; color: var(--teal-soft); letter-spacing: .04em; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--teal-dark); color: var(--cream); }
.contact__grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem,6vw,6rem); align-items: center;
}
.contact .kicker { color: var(--gold); }
.contact .kicker::before { background: var(--gold); }
.contact .display { color: var(--cream); }
.contact .display em { color: var(--gold); }
.contact__intro .lead { color: rgba(245,241,232,.72); }
.contact__info { margin-top: 2.6rem; display: flex; flex-direction: column; gap: 1.3rem; }
.contact__info li { display: flex; flex-direction: column; gap: .2rem; }
.contact__info-label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.contact__info a, .contact__info address { font-size: 1.15rem; font-style: normal; color: var(--cream); transition: color .3s; }
.contact__info a:hover { color: var(--gold); }

.contact__form {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.8rem);
  display: flex; flex-direction: column; gap: 1.4rem;
}
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16); border-radius: 14px;
  padding: 1.3rem 1.1rem .7rem; color: var(--cream);
  font-family: var(--font-body); font-size: 1rem; transition: border-color .35s, background .35s;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 90px; padding-top: 1.5rem; }
.field select { padding-top: 1.1rem; padding-bottom: 1.1rem; cursor: pointer; }
.field select option { color: #14211f; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.08); }
.field label {
  position: absolute; left: 1.1rem; top: 1rem; color: rgba(245,241,232,.55);
  font-size: 1rem; pointer-events: none; transition: all .25s var(--ease);
}
.field label.label--static { top: -.55rem; left: .8rem; font-size: .72rem; background: var(--teal-dark); padding: 0 .5rem; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: -.55rem; left: .8rem; font-size: .72rem; color: var(--gold);
  background: var(--teal-dark); padding: 0 .5rem; letter-spacing: .06em; text-transform: uppercase;
}
.contact__form-note { font-size: .9rem; color: var(--gold); min-height: 1.2em; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--teal-dark); color: rgba(245,241,232,.6); text-align: center; padding: 3rem var(--gutter) 3.5rem; border-top: 1px solid rgba(255,255,255,.08); }
.footer__logo { height: 70px; margin: 0 auto 1rem; opacity: .9; }
.footer__tag { font-family: var(--font-display); font-weight: 500; color: var(--gold); font-size: 1.05rem; letter-spacing: .02em; margin-bottom: .6rem; }
.footer__copy { font-size: .82rem; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal, .reveal-img { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-img { transform: translateY(40px) scale(.98); }
.reveal.is-visible, .reveal-img.is-visible { opacity: 1; transform: none; }
[data-stagger] { transition-delay: var(--d, 0s); }

/* Galerie : les photos montent depuis le bas au fil du défilement */
.masonry__item.reveal-img {
  transform: translateY(110px) scale(.985);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.masonry__item.reveal-img.is-visible { transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .masonry { column-count: 2; }
}
@media (max-width: 880px) {
  :root { --nav-h: 80px; }
  .nav__logo-img { height: 70px; }
  .nav.is-scrolled .nav__logo-img { height: 60px; }
  .nav__group { display: none; }
  .nav__inner { justify-content: center; }
  .nav__burger { display: flex; position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); }

  .ecole__grid, .contact__grid { grid-template-columns: 1fr; }
  .ecole__media { margin-top: 1rem; max-width: 460px; }
  .ecole__img-float { width: 42%; right: -4%; }
  .cours__grid, .avis__grid { grid-template-columns: 1fr; max-width: 520px; }
  .card--featured { order: -1; }
}
@media (max-width: 560px) {
  .masonry { column-count: 1; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
  .ecole__badge { width: 92px; height: 92px; font-size: .9rem; }
  .ecole__stats { gap: 1.5rem 2rem; }
}
