/* ============================================================
   SURF LEVEL UP — Tamraght, Maroc
   Palette : bleus de l'Atlantique, sable, lumière chaude.
   ============================================================ */

:root {
  --bg:         #F4F7F8;
  --surface:    #FFFFFF;
  --sand:       #F2EDE4;
  --ink:        #072430;
  --ink-soft:   #4A6875;
  --deep:       #04161F;
  --navy:       #072B3C;
  --ocean-800:  #073E56;
  --ocean-700:  #0A5271;
  --ocean-600:  #0D6B90;
  --aqua:       #2FA9C4;
  --aqua-light: #A6D9E6;
  --sun:        #E3A268;
  --line:       rgba(7, 36, 48, .12);
  --line-light: rgba(255, 255, 255, .14);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body:    "Outfit", "Segoe UI", system-ui, sans-serif;

  --shadow-soft:
    0 1px 2px rgba(7, 43, 60, .05),
    0 8px 24px rgba(7, 43, 60, .07);
  --shadow-deep:
    0 2px 4px rgba(7, 43, 60, .06),
    0 12px 32px rgba(7, 43, 60, .10),
    0 32px 80px rgba(7, 43, 60, .12);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto — sans quoi les attributs width/height du HTML l'emportent
   sur les aspect-ratio définis plus bas. */
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--aqua); color: var(--deep); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--aqua-light); border-radius: 99px; border: 2px solid var(--bg); }

:focus-visible { outline: 2px solid var(--ocean-600); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 4000;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); max-width: 16em; margin-bottom: .55em; }
h2 em, h1 em { font-style: italic; color: var(--ocean-600); }
h3 { margin-bottom: .3em; }

.section {
  padding: clamp(90px, 12vw, 170px) clamp(20px, 6vw, 96px);
  max-width: 1440px;
  margin-inline: auto;
  scroll-margin-top: 70px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ocean-600);
  margin-bottom: 22px;
}
.kicker::before { content: ""; width: 30px; height: 1px; background: var(--ocean-600); }
.kicker--light { color: var(--aqua); }
.kicker--light::before { background: var(--aqua); }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .62rem; letter-spacing: .2em;
  color: #FF9494; border: 1px solid rgba(255, 130, 130, .45);
  padding: 3px 10px; border-radius: 99px; margin-left: 4px;
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: #FF7070; animation: pulse 1.8s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 112, 112, .55); }
  50% { opacity: .55; box-shadow: 0 0 0 5px rgba(255, 112, 112, 0); }
}

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Curseur ---------- */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed; top: 0; left: 0;
    width: 38px; height: 38px;
    border: 1px solid var(--ocean-600);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3000;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: width .35s var(--ease-out), height .35s var(--ease-out), opacity .3s;
  }
  .cursor-dot {
    display: block;
    position: fixed; top: 0; left: 0;
    width: 5px; height: 5px;
    background: var(--ocean-700);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3001;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity .3s;
  }
  body.cursor-live .cursor { opacity: .55; }
  body.cursor-live .cursor-dot { opacity: 1; }
  body.cursor-live .cursor.is-hover { width: 64px; height: 64px; opacity: .9; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 4vw, 48px);
  color: #F1F8FA;
  transition: padding .45s var(--ease-out), background .45s, box-shadow .45s, color .45s;
}
.nav--scrolled {
  padding-block: 12px;
  background: rgba(244, 247, 248, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(7, 43, 60, .06);
  color: var(--ink);
}

.nav__logo { display: flex; align-items: center; gap: 10px; z-index: 1002; }
.nav__mark { width: 34px; height: 34px; color: var(--aqua); transition: color .45s, transform .6s var(--ease-out); }
.nav--scrolled .nav__mark { color: var(--ocean-600); }
.nav__logo:hover .nav__mark { transform: translateX(3px) rotate(-6deg); }
.nav__name { font-family: var(--font-display); font-size: 1.28rem; }
.nav__name em { font-style: italic; color: var(--aqua); transition: color .45s; }
.nav--scrolled .nav__name em { color: var(--ocean-600); }

.nav__links { display: flex; gap: clamp(14px, 2.1vw, 30px); }
.nav__links a {
  position: relative;
  font-size: .92rem;
  font-weight: 400;
  opacity: .82;
  padding-block: 4px;
  transition: opacity .3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 7px 12px;
  border: 1px solid var(--line-light);
  border-radius: 99px;
  transition: border-color .3s, background .3s;
}
.lang-toggle:hover { border-color: var(--aqua); background: rgba(47, 169, 196, .12); }
.lang-toggle i { font-style: normal; opacity: .4; }
.lang-toggle span { opacity: .45; transition: opacity .3s, color .3s; }
.lang-toggle span.is-on { opacity: 1; color: var(--aqua); }
.nav--scrolled .lang-toggle { border-color: var(--line); }
.nav--scrolled .lang-toggle span.is-on { color: var(--ocean-600); }

.burger { display: none; z-index: 1002; padding: 8px; }
.burger span {
  display: block; width: 24px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  margin: 5px 0;
  transition: transform .4s var(--ease-out), opacity .3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(3.2px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-3.2px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  z-index: 1000;
  background: var(--deep);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 40px;
  opacity: 0; pointer-events: none;
  transition: opacity .45s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu__links { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #F1F8FA;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .3s;
}
.mobile-menu.is-open .mobile-menu__links a { opacity: 1; transform: none; }
.mobile-menu__links a:hover { color: var(--aqua); }
.mobile-menu__foot {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--aqua-light); opacity: .55;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  padding: 15px 30px;
  border-radius: 99px;
  transition: transform .4s var(--ease-out), box-shadow .4s, background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 24px rgba(7, 36, 48, .22);
}
.btn--primary:hover { background: var(--ocean-700); box-shadow: 0 14px 34px rgba(10, 82, 113, .32); }

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, .42);
  color: #F1F8FA;
  background: rgba(4, 22, 31, .3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(4, 22, 31, .55); border-color: rgba(255, 255, 255, .7); }

.btn--nav { padding: 10px 22px; font-size: .88rem; }
.nav:not(.nav--scrolled) .btn--nav {
  background: rgba(4, 22, 31, .32);
  border: 1px solid rgba(255, 255, 255, .42);
  color: #F1F8FA;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.nav:not(.nav--scrolled) .btn--nav:hover { background: rgba(4, 22, 31, .58); }

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #F1F8FA;
  background: var(--ocean-800);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  object-position: 58% 42%;
  transform: scale(1.04);
  animation: heroIn 2.4s var(--ease-out) forwards;
}
@keyframes heroIn { to { transform: scale(1); } }

.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 22, 31, .55) 0%, rgba(4, 22, 31, .12) 20%, transparent 36%),
    linear-gradient(180deg, transparent 34%, rgba(4, 22, 31, .58) 74%, rgba(4, 22, 31, .93) 100%),
    linear-gradient(90deg, rgba(4, 22, 31, .62) 0%, rgba(4, 22, 31, .18) 42%, transparent 68%);
}
.hero__swell {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 42%;
  z-index: 2;
  pointer-events: none;
  opacity: .5;
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 0 clamp(20px, 6vw, 96px) clamp(34px, 6vh, 62px);
}

.hero__kicker {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--aqua-light);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.9rem, 7.6vw, 6.2rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
  max-width: 13ch;
  text-shadow: 0 2px 40px rgba(4, 22, 31, .35);
}
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero__title .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i) * .1s + .15s);
}
.hero__title.is-in .word > span { transform: none; }

.hero__sub {
  max-width: 40ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(241, 248, 250, .9);
  margin-bottom: 34px;
  text-shadow: 0 1px 20px rgba(4, 22, 31, .4);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Conditions en direct */
.live {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 4vw, 48px);
  bottom: clamp(120px, 20vh, 200px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 22px 16px;
  border-radius: 20px;
  background: rgba(4, 22, 31, .5);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(2, 14, 22, .35);
  transition: transform .5s var(--ease-out), background .35s, border-color .35s;
}
.live:hover { transform: translateY(-4px); background: rgba(4, 22, 31, .68); border-color: rgba(255, 255, 255, .34); }
.live__head {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--aqua-light);
}
.live__dot { width: 6px; height: 6px; border-radius: 50%; background: #FF7070; animation: pulse 1.8s infinite; }
.live__grid { display: flex; gap: 22px; }
.live__cell { display: flex; flex-direction: column; gap: 3px; min-width: 50px; }
.live__cell b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; white-space: nowrap; }
.live__cell small { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(166, 217, 230, .7); }

.hero__scroll {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 6vw, 96px);
  bottom: clamp(14px, 2.4vh, 24px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(241, 248, 250, .58);
  transition: color .3s;
}
.hero__scroll:hover { color: #fff; }
.hero__scroll i {
  display: block; width: 54px; height: 1px;
  background: rgba(241, 248, 250, .3);
  position: relative; overflow: hidden;
}
.hero__scroll i::after {
  content: ""; position: absolute; inset: 0;
  background: #fff;
  transform: translateX(-100%);
  animation: scrollLine 2.4s var(--ease-out) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--deep);
  color: var(--aqua-light);
  overflow: hidden;
  padding: 16px 0;
  border-block: 1px solid rgba(255, 255, 255, .07);
}
.marquee__track {
  display: flex; align-items: center; gap: 22px;
  width: max-content;
  animation: marquee 46s linear infinite;
  font-size: .76rem; letter-spacing: .24em; text-transform: uppercase;
}
.marquee__track i { font-style: normal; color: var(--sun); opacity: .85; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   LE COACH
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: minmax(240px, .62fr) 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

/* La composition reste entièrement visible à l'écran, sans dézoomer. */
.about__media { position: relative; max-width: 380px; }
.about__portrait {
  position: relative;
  border-radius: 190px 190px 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.about__portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about__second {
  position: absolute;
  right: -9%;
  bottom: -8%;
  width: 45%;
  border-radius: 20px;
  overflow: hidden;
  border: 6px solid var(--bg);
  box-shadow: var(--shadow-soft);
}
.about__second img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__badge {
  position: absolute;
  left: -7%;
  bottom: 18%;
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-deep);
  text-align: center;
}
.about__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ocean-600);
  line-height: 1;
}
.about__badge span {
  display: block;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 5px;
  max-width: 11ch;
}

.about__text p:not(.kicker) { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 54ch; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 1.8rem 0; }
.chips li {
  font-size: .82rem;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-soft);
  background: var(--surface);
  transition: border-color .3s, color .3s, transform .3s var(--ease-out);
}
.chips li:hover { border-color: var(--aqua); color: var(--ocean-700); transform: translateY(-2px); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.stat strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 400;
  color: var(--ocean-600);
  line-height: 1;
}
.stat em { font-style: normal; font-family: var(--font-display); font-size: 1.2rem; color: var(--aqua); }
.stat span { display: block; font-size: .84rem; color: var(--ink-soft); margin-top: 6px; max-width: 16ch; }

/* ============================================================
   CERTIFICATION
   ============================================================ */
.cert { background: var(--sand); border-radius: var(--radius); }
.cert__head { max-width: 46ch; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.cert__lead { color: var(--ink-soft); }

.cert__body {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.cert__doc {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  cursor: zoom-in;
  background: var(--surface);
}
.cert__doc img { width: 100%; transition: transform .8s var(--ease-out); }
.cert__doc:hover img { transform: scale(1.02); }
.cert__doc figcaption {
  position: absolute;
  left: 50%; bottom: 16px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(4, 22, 31, .8);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 99px;
  opacity: 0;
  transition: opacity .4s, transform .4s var(--ease-out);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.cert__doc:hover figcaption { opacity: 1; transform: translateX(-50%) translateY(0); }

.cert__facts div { padding: 15px 0; border-bottom: 1px solid var(--line); }
.cert__facts div:first-child { padding-top: 0; }
.cert__facts dt {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ocean-600);
  margin-bottom: 5px;
}
.cert__facts dd { font-size: .95rem; color: var(--ink-soft); }
.cert__facts dd a { color: var(--ocean-600); border-bottom: 1px solid currentColor; }
.cert__note {
  margin-top: 2rem;
  font-size: .88rem;
  color: var(--ink-soft);
  max-width: 62ch;
  padding-left: 18px;
  border-left: 2px solid var(--aqua);
}

/* ============================================================
   PROGRAMMES
   ============================================================ */
.programs__head { max-width: 52ch; margin-bottom: clamp(2.6rem, 5vw, 4.2rem); }
.programs__lead { color: var(--ink-soft); }

.programs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem);
}

.program {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .6s var(--ease-out), box-shadow .6s;
}
.program:hover { transform: translateY(-6px); box-shadow: var(--shadow-deep); }
.program__media { overflow: hidden; }
.program__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.program:hover .program__media img { transform: scale(1.05); }
.program__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.program__body h3 { font-size: 1.35rem; margin-bottom: 4px; }
.program__tag {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 14px;
}
.program__desc { font-size: .93rem; color: var(--ink-soft); margin-bottom: 18px; }
.program__good {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
}
.program__good span {
  display: block;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ocean-600);
  margin-bottom: 5px;
}
.program__good em { font-style: normal; color: var(--ink-soft); }

/* ============================================================
   SÉANCES
   ============================================================ */
.services__lead { color: var(--ink-soft); max-width: 54ch; margin-bottom: clamp(2.4rem, 4vw, 3.4rem); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.2rem, 2.2vw, 1.8rem);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .6s var(--ease-out), box-shadow .6s, border-color .4s;
}
.card:hover { box-shadow: var(--shadow-deep); border-color: transparent; }
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(47, 169, 196, .12);
  color: var(--ocean-600);
  margin-bottom: 20px;
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.28rem; margin-bottom: 5px; }
.card__meta {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 14px;
}
.card > p:not(.card__meta):not(.card__price) { font-size: .92rem; color: var(--ink-soft); margin-bottom: 18px; }
.card__price {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--ink-soft);
}
.card__price strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.card__link {
  margin-top: 16px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ocean-600);
  transition: color .3s;
}
.card__link:hover { color: var(--aqua); }

.services__note {
  margin-top: 2.4rem;
  font-size: .9rem;
  color: var(--ink-soft);
  max-width: 62ch;
  padding-left: 18px;
  border-left: 2px solid var(--aqua);
}

/* ============================================================
   MÉTÉO SURF
   ============================================================ */
.report {
  background:
    radial-gradient(90% 60% at 82% 0%, rgba(13, 107, 144, .3), transparent 58%),
    radial-gradient(60% 50% at 8% 100%, rgba(47, 169, 196, .14), transparent 62%),
    linear-gradient(180deg, var(--deep), var(--navy) 58%, var(--deep));
  color: #E4F1F5;
  border-radius: var(--radius);
  max-width: 1600px;
}
.report__inner { max-width: 1440px; margin-inline: auto; }

.report__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.report__head h2 { color: #fff; }
.report__head h2 em { color: var(--aqua); }
.report__lead { color: rgba(228, 241, 245, .72); max-width: 52ch; }
.report__stamp { color: var(--aqua); }
.report__refresh {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-light);
  color: var(--aqua);
  transition: background .3s, transform .6s var(--ease-out);
}
.report__refresh:hover { background: rgba(255, 255, 255, .1); }
.report__refresh.is-loading { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.report__status { color: var(--aqua-light); padding: 2.5rem 0; }
.report__status.is-error { color: #F5A2A2; }
.report__status button {
  margin-left: 10px;
  border: 1px solid var(--line-light);
  border-radius: 99px;
  padding: 5px 16px;
  font-size: .85rem;
  color: var(--aqua);
}

.report__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.rc {
  position: relative;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-light);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform .5s var(--ease-out), background .3s, border-color .3s;
}
.rc:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .08); }
.rc.is-good { border-color: rgba(47, 169, 196, .45); }
.rc.is-good::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(47, 169, 196, .14), transparent 70%);
  pointer-events: none;
}
.rc__ico { position: absolute; top: 16px; right: 16px; color: rgba(166, 217, 230, .5); line-height: 0; }
.rc.is-good .rc__ico { color: var(--aqua); }
.rc__label { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(166, 217, 230, .68); }
.rc__value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  margin: 6px 0 4px;
}
.rc__value small { font-size: .5em; color: var(--aqua); margin-left: 2px; }
.rc__extra { font-size: .8rem; color: rgba(228, 241, 245, .7); display: flex; align-items: center; gap: 6px; }
.rc__arrow { display: inline-block; color: var(--sun); line-height: 0; }

.report__panels { display: grid; grid-template-columns: 1.08fr .92fr; gap: 14px; }
.panel {
  padding: 26px 28px 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-light);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.panel h3 { font-size: 1.08rem; color: #fff; margin-bottom: 16px; }
.panel__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.panel__chips span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, .05);
  color: rgba(228, 241, 245, .8);
}
.panel__chips b { color: #fff; font-weight: 500; }
.panel__note { margin-top: 16px; font-size: .78rem; color: rgba(166, 217, 230, .55); }
.tide { width: 100%; height: auto; margin-top: 6px; }

.best { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 8px 10px; align-items: center; }
.best__h {
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(166, 217, 230, .6); text-align: center; line-height: 1.5;
}
.best__d { font-size: .85rem; color: #E4F1F5; white-space: nowrap; padding-right: 6px; }
.best__d small { display: block; font-size: .7rem; color: rgba(166, 217, 230, .5); }
.best__c {
  position: relative;
  text-align: center;
  font-size: .8rem;
  font-weight: 500;
  padding: 9px 6px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.best__c small { display: block; font-weight: 300; font-size: .7rem; opacity: .75; }
.best__c .star { position: absolute; top: -8px; right: -4px; font-size: .72rem; color: var(--sun); }
/* Portée limitée aux cases de la grille : « is-good » sert aussi à mettre en
   valeur une carte de conditions, qui doit rester en verre dépoli. */
.best__c.is-epic { background: linear-gradient(120deg, var(--sun), #D0764F); color: #16110C; }
.best__c.is-good { background: var(--aqua); color: var(--deep); }
.best__c.is-fair { background: rgba(47, 169, 196, .16); color: var(--aqua-light); border-color: rgba(47, 169, 196, .4); }
.best__c.is-meh  { background: rgba(255, 255, 255, .07); color: #B5CDD8; }
.best__c.is-flat { background: rgba(255, 255, 255, .03); color: #5E7E90; border-color: var(--line-light); }

.report__credit { margin-top: 1.8rem; font-size: .78rem; color: rgba(166, 217, 230, .55); max-width: 62ch; }

/* ============================================================
   GALERIE
   ============================================================ */
.gallery { max-width: none; padding-inline: 0; }
.gallery__head {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(20px, 6vw, 96px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 2.6rem;
}
.gallery__nav { display: flex; align-items: center; gap: 12px; }
.gallery__hint { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.gal-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .3s, border-color .3s, opacity .3s, color .3s;
}
.gal-btn svg { width: 19px; height: 19px; }
.gal-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.gal-btn:disabled { opacity: .3; cursor: default; }

.gallery__scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 6px clamp(20px, 6vw, 96px) 26px;
  scrollbar-width: none;
  cursor: grab;
}
.gallery__scroller::-webkit-scrollbar { display: none; }
.gallery__scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery__scroller figure {
  position: relative;
  flex: 0 0 clamp(230px, 26vw, 330px);
  scroll-snap-align: center;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}
.gallery__scroller img {
  width: 100%;
  aspect-ratio: 62 / 82;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
  user-select: none;
  -webkit-user-drag: none;
}
.gallery__scroller figure:hover img { transform: scale(1.04); }
.gallery__scroller figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 18px 16px;
  font-size: .84rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(4, 22, 31, .85));
}
.gallery__bar {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(20px, 6vw, 96px);
}
.gallery__bar span {
  display: block;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  position: relative;
}
.gallery__bar span::after {
  content: "";
  position: absolute;
  left: 0; top: 0; height: 100%;
  width: var(--p, 12%);
  background: var(--ocean-600);
  border-radius: 2px;
  transition: width .2s linear;
}

/* ============================================================
   RÉSERVATION
   ============================================================ */
.booking {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.4rem, 6vw, 6rem);
  align-items: start;
}
.booking__info p:not(.kicker) { color: var(--ink-soft); max-width: 46ch; }
.booking__points { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 14px; }
.booking__points li {
  position: relative;
  padding-left: 30px;
  font-size: .95rem;
  color: var(--ink-soft);
}
.booking__points li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 15px; height: 8px;
  border-left: 1.5px solid var(--aqua);
  border-bottom: 1.5px solid var(--aqua);
  transform: rotate(-45deg);
}

.booking__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--shadow-soft);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field label span { text-transform: none; letter-spacing: 0; opacity: .6; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--aqua);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(47, 169, 196, .16);
}
.field textarea { resize: vertical; }
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ocean-600) 50%),
    linear-gradient(135deg, var(--ocean-600) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.booking__copy {
  display: block;
  width: 100%;
  margin-top: 14px;
  font-size: .84rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .3s;
}
.booking__copy:hover { color: var(--ocean-600); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--deep);
  color: rgba(228, 241, 245, .78);
  padding: clamp(70px, 9vw, 120px) clamp(20px, 6vw, 96px) 40px;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: clamp(40px, 6vw, 80px);
}
.footer__cta { max-width: 1440px; margin-inline: auto; text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.footer__cta h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); color: #fff; margin-inline: auto; }
.footer__cta p { color: var(--aqua-light); margin-top: 14px; }

.footer__grid {
  max-width: 1440px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.footer__block h3 {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 18px;
}
.footer__row {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: .92rem;
  margin-bottom: 12px;
  transition: color .3s, transform .3s var(--ease-out);
}
a.footer__row:hover { color: #fff; transform: translateX(3px); }
.footer__row--muted { color: rgba(228, 241, 245, .55); align-items: flex-start; }
.footer__ico {
  width: 28px; height: 28px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--aqua);
}
.footer__insta { display: flex; gap: 8px; margin-top: 16px; }
.ig-thumb { flex: 1; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.ig-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out), opacity .3s; opacity: .78; }
.ig-thumb:hover img { transform: scale(1.08); opacity: 1; }

.footer__legal {
  max-width: 1440px;
  margin: 26px auto 0;
  font-size: .78rem;
  color: rgba(228, 241, 245, .42);
  text-align: center;
}

/* ============================================================
   LIGHTBOX + TOAST
   ============================================================ */
.lightbox {
  position: fixed; inset: 0;
  z-index: 5000;
  background: rgba(3, 14, 21, .94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 40px);
  animation: fade .3s var(--ease-out);
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  border-radius: 10px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.lightbox__close {
  position: absolute;
  top: 22px; right: 26px;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .3s, transform .4s var(--ease-out);
}
.lightbox__close:hover { background: rgba(255, 255, 255, .18); transform: rotate(90deg); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(16px);
  z-index: 5200;
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
  padding: 13px 24px;
  border-radius: 99px;
  box-shadow: var(--shadow-deep);
  opacity: 0;
  transition: opacity .35s, transform .35s var(--ease-out);
}
.toast[hidden] { display: none; }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   RÉVÉLATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Mode capture (?shot=1) : tout figé, hero compact pour tenir dans une image. */
html.shot *, html.shot *::before, html.shot *::after {
  animation: none !important;
  transition: none !important;
}
html.shot .reveal { opacity: 1; transform: none; }
html.shot .hero { min-height: 620px; }
html.shot .hero__media img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__title .word > span { transform: none; }
  .hero__media img { transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .about { grid-template-columns: 1fr; gap: 4.5rem; }
  .about__media { max-width: 400px; }
  .cert__body { grid-template-columns: 1fr; }
  .report__panels { grid-template-columns: 1fr; }
  .booking { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .btn--nav { display: none; }

  .hero { min-height: 92svh; }
  .hero__media img { object-position: 62% 40%; }
  .live {
    position: static;
    margin: 0 clamp(20px, 6vw, 96px) 16px;
    align-self: flex-start;
  }
  .hero__scroll { display: none; }
  .hero__inner { padding-bottom: 20px; }
  .hero__swell { height: 30%; }

  .about__second { width: 42%; right: -4%; }
  .about__badge { left: -4%; padding: 12px 15px; }

  .report__head { flex-direction: column; }
  .gallery__head { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .section { padding-inline: 20px; }
  .live__grid { gap: 14px; flex-wrap: wrap; }
  .live__cell b { font-size: 1.05rem; }
  .stats { gap: 1.4rem; }
  .mobile-menu__links a { font-size: 1.45rem; }
}

/* Âge du relevé, affiché en continu dans le bandeau live */
.live__age {
  margin-left: auto;
  padding-left: 12px;
  font-size: .6rem;
  letter-spacing: .12em;
  color: rgba(166, 217, 230, .6);
  text-transform: none;
  white-space: nowrap;
}

/* Bouton d'actualisation du bandeau live (jumeau de celui de la section météo) */
.live__refresh {
  margin-left: 10px;
  width: 24px; height: 24px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  color: var(--aqua);
  transition: background .3s, border-color .3s, transform .6s var(--ease-out);
}
.live__refresh:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .34); }
.live__refresh.is-loading { animation: spin 1s linear infinite; }
.live__head { width: 100%; }
.live__grid { color: inherit; }

/* Clignotement bref des valeurs après une actualisation manuelle */
@keyframes freshPulse {
  0%   { color: var(--aqua); transform: translateY(-2px); }
  100% { color: inherit; transform: none; }
}
.rc__value.is-fresh, .live__cell b.is-fresh { animation: freshPulse .9s var(--ease-out); }

/* ============================================================
   MOBILE — confort tactile (26 aout 2026)
   Les commandes atteignent 44px de zone cliquable via un
   pseudo-element hors flux : aucun pixel visible ne bouge, et
   rien ne s'applique au-dela de 860px (rendu ordinateur intact).
   ============================================================ */
@media (max-width: 860px) {
  .nav__logo, .lang-toggle, .burger, .mobile-menu__links a { position: relative; }
  .nav__logo::after, .lang-toggle::after, .burger::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    width: 100%;
    min-width: 44px;
    height: 100%;
    min-height: 44px;
  }
}
