/* ═══ POLICES (hébergées sur le site, licence SIL OFL) ═══ */
/* Inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Oswald latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/oswald-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Oswald latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Oswald latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/oswald-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Oswald latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Oswald latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/oswald-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Oswald latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Oswald latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/oswald-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Oswald latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Oswald latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/oswald-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Oswald latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #0099ff;
  --brand-glow: rgba(0, 153, 255, 0.4);
  --brand-soft: rgba(0, 153, 255, 0.12);
  --dark-deep: #041018;
  --dark-mid: #061e2d;
  --dark-surface: #0a2a3d;
  --light-bg: #f0f7fa;
  --light-card: #ffffff;
  --accent-gold: #F2C879;
  --ink-dark: #0B3242;
  --ink-mid: #3d6070;
  --ink-light: #eef7f5;
  --ink-muted: #8ab0be;
  --glass: rgba(4, 20, 30, 0.55);
  --glass-border: rgba(238, 247, 245, 0.12);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--ink-dark);
  overflow-x: hidden;
  background: var(--light-bg);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.section-dark .eyebrow { color: var(--accent-gold); }
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══ NAVBAR ═══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 56px);
  transition: all 0.4s ease;
  color: var(--ink-light);
}
nav.scrolled {
  padding: 10px clamp(20px, 5vw, 56px);
}
nav.scrolled::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(4, 16, 24, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  z-index: -1;
}
.nav-logo { height: 52px; transition: height 0.4s ease; }
nav.scrolled .nav-logo { height: 28px; }
.navlinks {
  display: flex; gap: clamp(8px, 1.8vw, 24px);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.navlinks a {
  opacity: 0.75; transition: opacity 0.2s, color 0.2s;
  position: relative;
}
.navlinks a:hover { opacity: 1; }
.navlinks a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.navlinks a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; cursor: pointer; background: none; border: none; color: white; font-size: 1.5rem; }
@media (max-width: 768px) {
  .navlinks {
    display: none;
    position: fixed; inset: 0;
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0;
    background: var(--dark-deep);
    z-index: 150;
    font-size: 2rem;
    letter-spacing: 0.06em;
  }
  .navlinks.open { display: flex; }
  .navlinks a {
    opacity: 0;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 8vw, 3.2rem);
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 0;
  }
  .nav-toggle { display: block; z-index: 200; }
  .nav-logo { height: 38px; }
  nav.scrolled .nav-logo { height: 26px; }
}

/* ═══ HERO ═══ */
#accueil {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--dark-deep);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.55) contrast(1.1);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(4,16,24,0.4) 0%,
    rgba(4,16,24,0.2) 40%,
    rgba(4,16,24,0.6) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px;
  padding: 0 clamp(20px, 5vw, 56px);
  color: var(--ink-light);
}
.hero-content .eyebrow {
  color: var(--accent-gold);
  font-size: 0.8rem;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-content p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(238,247,245,0.8);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none; border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 20px var(--brand-glow);
}
.btn-primary:hover {
  background: #00aaff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--brand-glow);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute; bottom: 48px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce-scroll 2s ease infinite;
  z-index: 3;
}
.scroll-indicator .chevron {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(255,255,255,0.4);
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
}
@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══ DEPTH GAUGE ═══ */
.depth-gauge {
  position: fixed; right: 24px; top: 50%; z-index: 90;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.gauge-track {
  width: 3px; height: 240px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px; position: relative; overflow: hidden;
}
.gauge-fill {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--brand), #004d80);
  border-radius: 2px; transition: height 0.3s ease;
}
.gauge-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
  position: absolute; left: 50%; transform: translateX(-50%);
  transition: top 0.3s ease;
}
.gauge-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; color: var(--ink-muted);
  writing-mode: vertical-rl;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.gauge-depth {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem; font-weight: 600; color: var(--brand);
}
.gauge-temp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; color: var(--ink-muted);
}
@media (max-width: 768px) { .depth-gauge { display: none; } }

/* ═══ LIGHT SECTIONS ═══ */
.section-light {
  background: var(--light-bg);
  color: var(--ink-dark);
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}
.section-light h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600; color: var(--ink-dark);
  margin-bottom: 20px;
}
.section-light p.lead {
  font-size: 1.05rem; line-height: 1.7; color: var(--ink-mid);
  max-width: 640px; margin-bottom: 48px;
}

/* ═══ DARK SECTIONS ═══ */
.section-dark {
  background: var(--dark-mid);
  color: var(--ink-light);
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}
.section-dark::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,153,255,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0,153,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.section-dark h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600; color: var(--ink-light);
  margin-bottom: 20px; position: relative;
}
.section-dark p.lead {
  font-size: 1.05rem; line-height: 1.7; color: var(--ink-muted);
  max-width: 640px; margin-bottom: 48px; position: relative;
}
.wave-divider {
  position: absolute; left: 0; right: 0; height: 80px; overflow: hidden; z-index: 2;
}
.wave-divider.top { top: -2px; }
.wave-divider.bottom { bottom: -2px; }
.wave-divider svg { width: 100%; height: 100%; display: block; }

/* ═══ LE CLUB — Stats ═══ */

/* ═══ L'APNÉE — Disciplines avec images ═══ */
.disciplines-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; position: relative;
}
.discipline-card {
  border-radius: 16px; overflow: hidden;
  background: var(--dark-surface);
  border: 1px solid var(--glass-border);
  transition: transform 0.4s ease, border-color 0.4s ease;
  display: flex; flex-direction: column;
}
.discipline-card:hover { transform: translateY(-4px); border-color: rgba(0,153,255,0.3); }
.discipline-card .card-img {
  aspect-ratio: 4/3;
  background: #b0b8bf;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  overflow: hidden;
}
.discipline-card .card-body {
  padding: 24px;
  display: flex; flex-direction: column; flex: 1;
}
.discipline-card .code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.15em;
  color: var(--brand); margin-bottom: 6px;
}
.discipline-card h3 {
  font-size: 1.3rem; font-weight: 500;
  color: var(--ink-light); margin-bottom: 10px;
}
.discipline-card p {
  font-size: 0.9rem; color: var(--ink-muted); line-height: 1.6;
}
@media (max-width: 768px) { .disciplines-grid { grid-template-columns: 1fr; } }

/* ═══ FORMATIONS — Timeline + Instructeurs ═══ */

/* Instructeurs */

/* ═══ FORMATION CARDS (light section) ═══ */
.formation-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.formation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,153,255,0.08);
}

/* ═══ TARIFS ═══ */

/* ═══ ENTRAÎNEMENTS ═══ */

/* ═══ CARROUSEL CLUB ═══ */
.club-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.carousel-track {
  position: relative;
  aspect-ratio: 21/9;
  border-radius: 16px;
  overflow: hidden;
}
.carousel-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 16px;
}
.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid rgba(0,153,255,0.2);
  background: transparent; color: var(--brand);
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.carousel-btn:hover { background: var(--brand-soft); border-color: var(--brand); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(0,153,255,0.2); border: none;
  cursor: pointer; transition: background 0.3s ease, transform 0.3s ease;
}
.carousel-dot.active { background: var(--brand); transform: scale(1.3); }
@media (max-width: 768px) {
  .carousel-track { aspect-ratio: 16/9; }
}

/* ═══ ENTRAÎNEMENTS — Nouveau layout ═══ */
.training-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.training-col {
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(0,153,255,0.1);
  background: white;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.training-col:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,153,255,0.06); }
.training-header {
  text-align: center;
}
.training-header .training-img {
  aspect-ratio: 4/3;
  background: #b0b8bf;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.training-header h3 {
  font-family: 'Oswald', sans-serif; font-size: 1.3rem;
  font-weight: 500; margin: 0; color: var(--ink-dark);
  padding-top: 20px;
}

.training-body { padding: 20px 24px 24px; flex: 1; }

.training-time {
  font-family: 'JetBrains Mono', monospace; font-size: 0.88rem;
  font-weight: 600; color: var(--brand);
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
}

.training-note {
  font-size: 0.78rem; color: var(--ink-mid);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(0,153,255,0.08);
  text-align: center;
}
@media (max-width: 768px) {
  .training-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ═══ ÉVÉNEMENTS — Filtres + images ═══ */

/* ═══ MODAL ═══ */

/* ═══ CONTACT ═══ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; position: relative;
}
.contact-info h3 {
  font-size: 1rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 16px; color: var(--ink-muted);
}
.contact-info a { color: var(--brand); transition: color 0.2s; }
.contact-info a:hover { color: #33bbff; }
.contact-email { font-size: 1rem; margin-bottom: 8px; }
.contact-phone { font-size: 1rem; margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); transition: all 0.3s ease;
}
.social-link:hover {
  border-color: var(--brand); color: var(--brand);
  background: rgba(0,153,255,0.08);
}
.social-link svg { width: 20px; height: 20px; }
.social-link svg[fill="currentColor"] { fill: currentColor; }
.social-link svg[fill="none"] { fill: none; stroke: currentColor; }
.lieux-list { display: flex; flex-direction: column; }
.lieu-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  transition: padding-left 0.3s ease; cursor: pointer;
}
.lieu-item:hover { padding-left: 8px; }
.lieu-item .lieu-name { font-size: 0.95rem; }
.lieu-item .lieu-arrow {
  color: var(--brand); font-size: 0.85rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}
.lieu-item:hover .lieu-arrow { opacity: 1; transform: translateX(4px); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .club-two-col { grid-template-columns: 1fr !important; gap: 32px !important; }
  .formations-cards { grid-template-columns: 1fr !important; }
  
  .hero-content h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .hero-content p { font-size: 0.95rem; }
  .hero-buttons { flex-direction: column; gap: 12px; }
  .hero-buttons .btn { text-align: center; justify-content: center; }
  .scroll-indicator { bottom: 28px; }
  .section-light, .section-dark { padding: clamp(56px, 8vw, 100px) 0; }
  .section-light h2, .section-dark h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  
}
@media (max-width: 600px) {
  #club [style*="grid-template-columns: 2fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
  #club [style*="grid-template-columns: repeat(2"] { grid-template-columns: 1fr !important; }
}

footer {
  background: var(--dark-deep); color: var(--ink-muted);
  text-align: center; padding: 32px 20px;
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(255,255,255,0.04);
}
/* mockup-banner removed */

/* ═══ CORRECTIFS AFFICHAGE (desktop / tablette / mobile) ═══ */
html { background: var(--dark-deep); }
section[id] { scroll-margin-top: 88px; }

/* Hero : fondu vers la section suivante (supprime la ligne dure au-dessus de la vague)
   + hauteur souple pour que le contenu ne passe jamais sous la navigation */
#accueil { height: auto; min-height: 100vh; min-height: 100svh; padding: 120px 0 110px; }
.hero-overlay {
  background: linear-gradient(180deg,
    rgba(4,16,24,0.45) 0%,
    rgba(4,16,24,0.2) 40%,
    rgba(4,16,24,0.65) 82%,
    var(--dark-deep) 100%);
}

/* Deux sections claires consécutives : pas de double marge */
#formations + #club { padding-top: 0; }

/* Cartes formations : même hauteur, notes calées en bas */
.formation-card > p:last-child { margin-top: auto; padding-top: 8px; }
.formation-card:first-child > p:nth-last-child(2) { margin-top: auto; padding-top: 8px; }
.formation-card:first-child > p:last-child { margin-top: 4px; padding-top: 0; }

/* Cartes entraînements : note calée en bas de chaque carte */
.training-body { display: flex; flex-direction: column; }
.training-note { margin-top: auto !important; }

/* Zones tactiles confortables */
.nav-toggle { min-width: 44px; min-height: 44px; display: none; align-items: center; justify-content: center; line-height: 1; }
.carousel-dot { position: relative; }
.carousel-dot::after { content: ''; position: absolute; inset: -10px; }
.carousel-dots { gap: 12px; }
.carousel-track { touch-action: pan-y; }

/* Focus clavier visible */
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* Tablette */
@media (max-width: 1024px) {
  .agenda-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 900px) {
  .disciplines-grid,
  .formations-cards,
  .training-grid { grid-template-columns: 1fr !important; max-width: 560px; margin-left: auto; margin-right: auto; }
  .formations-intro { grid-template-columns: 1fr !important; gap: 28px !important; }
  .formations-intro > div:last-child { order: -1; }
  .training-header .training-img { aspect-ratio: 16/9; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  #accueil { padding: 110px 0 96px; align-items: flex-end; }
  .hero-content h1 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .training-grid { max-width: none; }
  .club-two-col > div:last-child { min-height: 200px !important; }
  #contact { padding-top: 96px; }
}
@media (max-width: 600px) {
  .agenda-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .agenda-box, .cotisations-card { padding: 22px !important; }
  .formation-card { padding: 22px !important; }
  .carousel-track { aspect-ratio: 4/3; }
  .training-body { padding: 16px 20px 20px; }
  .lead { font-size: 1rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .carousel-slide { transition: none; }
}

/* ═══ PHOTOS ═══ */
.card-img, .training-header .training-img, .photo-box { position: relative; overflow: hidden; background: #b0b8bf; }
.carousel-slide { overflow: hidden; background: #b0b8bf; }
.card-img img, .training-img img, .carousel-slide img, .photo-box img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.discipline-card .card-img img, .training-col .training-img img { transition: transform 0.6s ease; }
.discipline-card:hover .card-img img, .training-col:hover .training-img img { transform: scale(1.04); }

/* ═══ ENTRAÎNEMENTS — typographie harmonisée ═══ */
.training-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: 12px; row-gap: 2px;
  padding: 12px 0; border-bottom: 1px solid rgba(0,153,255,0.08);
}
.training-body > .training-row:nth-last-child(2) { border-bottom: none; }
.training-name { font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--ink-dark); grid-column: 1; }
.training-sub { font-family: 'Inter', sans-serif; font-size: 0.82rem; color: var(--ink-mid); grid-column: 1; }
.training-row .training-time { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 0.95rem; }
.training-footer {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid rgba(0,153,255,0.08);
  display: flex; flex-direction: column; gap: 6px; text-align: center;
}
.training-footer .training-note { margin: 0 !important; padding: 0; border: none; }

/* ═══ AGENDA — bloc multi-dates + NAV mobile ═══ */
.agenda-dates { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.agenda-dates li {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--ink-mid);
  padding: 6px 0; border-bottom: 1px solid rgba(0,153,255,0.08);
}
.agenda-dates li:last-child { border-bottom: none; padding-bottom: 0; }
@media (max-width: 1024px) {
  .agenda-grid > .agenda-multi { grid-row: span 2; }
}
@media (max-width: 768px) {
  .nav-toggle { font-size: 2.2rem; min-width: 52px; min-height: 52px; }
  .nav-logo { height: 46px; }
  nav.scrolled .nav-logo { height: 34px; }
  #apnee { padding-top: 96px; }
}
@media (max-width: 600px) {
  .agenda-grid > .agenda-multi { grid-row: auto; }
}
@media (max-width: 1299px) { .depth-gauge { display: none; } }

/* ═══ PHASE 2 — structure & menu groupé ═══ */
.section-light + .section-light { padding-top: 0; }
#club { padding-top: clamp(120px, 12vw, 160px); }
.club-carousel { margin-bottom: 0; }
.agenda-box { background: rgba(0,153,255,0.04); border-radius: 16px; padding: 32px; border: 1px solid rgba(0,153,255,0.1); }
.section-intro { font-size: 0.95rem; color: var(--ink-mid); line-height: 1.6; margin-bottom: 24px; max-width: 70ch; }
.section-light h2 + .agenda-box, .section-light h2 + .section-body, .section-light h2 + .club-two-col { margin-top: 32px; }
.jump-link { margin-top: 28px; font-size: 0.95rem; color: var(--ink-mid); }
.jump-link a { color: var(--brand); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.jump-link a:hover { color: #0077cc; }

/* Menu desktop : groupes + séparateurs + bouton */
.navlinks { align-items: center; }
.nav-group { display: flex; align-items: center; gap: clamp(8px, 1.4vw, 20px); }
.nav-sep { width: 1px; height: 14px; background: rgba(238,247,245,0.25); margin: 0 clamp(4px, 0.8vw, 10px); }
.navlinks a.nav-cta {
  opacity: 1; margin-left: clamp(8px, 1.4vw, 20px);
  background: var(--brand); color: #fff; padding: 9px 18px; border-radius: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  box-shadow: 0 4px 16px var(--brand-glow); transition: background 0.2s ease;
}
.navlinks a.nav-cta:hover { background: #00aaff; }
.navlinks a.nav-cta::after { display: none; }
.cta-long { display: none; }

/* Menu plein écran (tablette + mobile) */
@media (max-width: 1100px) {
  .navlinks {
    display: none; position: fixed; inset: 0; z-index: 150;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 28px; background: var(--dark-deep); padding: 80px 24px 40px; overflow-y: auto;
  }
  .navlinks.open { display: flex; }
  .nav-toggle { display: flex; z-index: 200; font-size: 2.2rem; min-width: 52px; min-height: 52px; }
  .nav-group { flex-direction: column; gap: 6px; }
  .nav-sep { display: none; }
  .navlinks a { opacity: 0; padding: 4px 0; text-align: center; }
  .navlinks a::after { display: none; }
  .navlinks a.nav-parent {
    font-family: 'Oswald', sans-serif; font-size: clamp(1.9rem, 7vw, 2.6rem);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-light);
  }
  .navlinks .nav-group a:not(.nav-parent) {
    font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 400;
    text-transform: none; letter-spacing: 0; color: var(--ink-muted);
  }
  .navlinks a.nav-cta { margin: 8px 0 0; padding: 14px 28px; font-size: 0.85rem; }
  .cta-short { display: none; }
  .cta-long { display: inline; }
}
@media (max-width: 768px) {
  #club { padding-top: 112px; }
  #apnee { padding-bottom: 120px; }
  .agenda-box { padding: 22px; }
}

/* Hero mobile : pas de boutons, flèche de défilement */
.scroll-indicator { text-decoration: none; }
@media (max-width: 768px) {
  .hero-buttons { display: none; }
  #accueil { padding-bottom: 120px; }
  .scroll-indicator { display: flex; bottom: 36px; }
}

/* ═══ PRESSE ═══ */
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.press-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; background: white; border-radius: 12px;
  border: 1px solid rgba(0,153,255,0.08); text-decoration: none; color: var(--ink-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.press-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,153,255,0.08); border-color: rgba(0,153,255,0.25); }
.press-type {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 4px;
}
.press-type svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.press-media { font-size: 0.85rem; font-weight: 600; color: var(--ink-mid); }
.press-title { font-family: 'Oswald', sans-serif; font-size: 1.15rem; font-weight: 500; line-height: 1.3; color: var(--ink-dark); }
.press-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px;
  border-top: 1px solid rgba(0,153,255,0.08);
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--ink-mid);
}
.press-action { color: var(--brand); font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) { .press-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* Presse : bande de couleur distincte (palier entre clair et sombre) */
:root { --press-bg: #dcebf2; }
#presse { background: var(--press-bg); padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(120px, 12vw, 160px); }
#presse .press-card { border-color: rgba(0,153,255,0.14); box-shadow: 0 2px 12px rgba(11,50,66,0.05); }
@media (max-width: 768px) { #presse { padding-top: 64px; padding-bottom: 120px; } }
@media (max-width: 1100px) { .nav-group .nav-parent + .nav-parent { margin-top: 14px; } }

/* ═══ COMPOSANTS (anciens styles en ligne, oct. 2026) ═══ */
.agenda-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.agenda-card { padding: 16px; background: white; border-radius: 12px; border: 1px solid rgba(0,153,255,0.08); }
.agenda-title { font-size: 0.9rem; color: var(--ink-dark); display: block; font-weight: 500; }
.agenda-link { color: var(--brand); text-decoration: underline; }
.agenda-date { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--ink-mid); margin-top: 6px; display: block; }
.club-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cotisations-card { background: var(--dark-mid); border-radius: 16px; padding: 32px; color: var(--ink-light); }
.cotisation-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.cotisation-item { background: rgba(255,255,255,0.06); border-radius: 12px; padding: 20px; border: 1px solid rgba(255,255,255,0.08); }
.cotisation-price { font-family: 'Oswald', sans-serif; font-size: 1.6rem; font-weight: 600; color: var(--brand); margin-bottom: 4px; }
.cotisation-unit { font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 400; color: var(--ink-muted); margin-left: 6px; }
.cotisation-desc { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.5; }
.btn.btn-block { width: 100%; justify-content: center; }
.photo-box.photo-box--cotisations { border-radius: 16px; min-height: 280px; }
.photo-box.photo-box--formations { border-radius: 16px; aspect-ratio: 16/10; }
.discipline-card .discipline-lieux { margin-top: 12px; font-size: 0.82rem; color: var(--brand); }
.formations-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 56px; }
#formations .lead.formations-lead { margin-bottom: 28px; }
.formations-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.formation-card { background: white; border: 1px solid rgba(0,153,255,0.1); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.formation-card .formation-label { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.formation-card .formation-title { font-family: 'Oswald', sans-serif; font-size: 1.3rem; font-weight: 500; margin-bottom: 16px; color: var(--ink-dark); }
.formation-card .formation-text { font-size: 0.9rem; color: var(--ink-mid); line-height: 1.6; margin-bottom: 16px; }
.formation-card .formation-price { font-size: 0.88rem; color: var(--ink-dark); margin-bottom: 8px; }
.formation-card .formation-price--last { margin-bottom: 16px; }
.formation-card .formation-note { font-size: 0.8rem; color: var(--ink-mid); font-style: italic; }
.formation-card .formation-small { font-size: 0.85rem; color: var(--ink-mid); }
#contact { background: var(--dark-deep); }
#contact h3.contact-subtitle { font-size: 1rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; color: var(--ink-muted); }

/* ═══ CORRECTIFS AUDIT (oct. 2026) ═══ */
.nav-logo { position: relative; z-index: 200; }
.navlinks a { white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 300; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 16px; }
/* Tablette : 2 colonnes */
@media (min-width: 601px) and (max-width: 900px) {
  .disciplines-grid, .training-grid, .formations-cards { grid-template-columns: repeat(2, 1fr) !important; max-width: none; }
  .disciplines-grid > :last-child:nth-child(odd), .training-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 10px); justify-self: center; }
  .formations-cards > :last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 12px); justify-self: center; }
  .training-header .training-img { aspect-ratio: 4/3; }
  .press-grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
}

/* ═══ AGENDA — renseignements + bouton d’inscription ═══ */
.agenda-infos { font-size: 0.82rem; line-height: 1.55; color: var(--ink-mid); margin: 10px 0 0; }
.agenda-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dark); background: transparent; border: 1.5px solid var(--brand); border-radius: 6px;
  text-decoration: none; transition: background 0.2s ease;
}
.agenda-cta:hover, .agenda-cta:focus-visible { background: var(--brand-soft); }
