@font-face { font-family: 'Fjalla One'; src: url(fonts/fjalla-one.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Rubik; src: url(fonts/rubik.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }
@view-transition { navigation: auto; }

/* Bandes noires et blanches pleine largeur ; le verre flotte sur la vidéo et les photos ; le turquoise du logo guide vers l'action. */
:root {
  --ink: #0a0c0d;
  --ink-2: #171b1d;
  --line-dark: #2d3437;
  --paper: #ffffff;
  --paper-2: #eef2f3;
  --muted: #566166;
  --muted-dark: #a9b4b8;
  --teal: #0a7385;
  --teal-bright: #45c9de;
  --display: 'Fjalla One', 'Arial Narrow', Impact, sans-serif;
  --body: Rubik, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --top: 64px;
  --top-offset: calc(12px + env(safe-area-inset-top, 0px));
  --radius: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 28px); -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.05; text-transform: uppercase; text-wrap: balance; }
h2 { font-size: clamp(38px, 5.6vw, 76px); }
h3 { font-size: clamp(26px, 2.6vw, 36px); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 30; left: 8px; top: -60px; padding: 10px 16px; background: var(--paper); transition: top .15s; }
.skip:focus { top: 8px; }

.wrap { width: min(1320px, 100%); margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .wrap { padding-inline: 40px; } }

.eyebrow { color: var(--teal); font: 500 14px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.section--dark .eyebrow, .galleries .eyebrow, .eyebrow--light { color: var(--teal-bright); }

/* Verre : teinte sombre pour garder le texte lisible, arêtes éclairées, reflet qui suit le pointeur. */
.glass {
  position: relative;
  color: #fff;
  background: linear-gradient(140deg, rgb(255 255 255 / .22), rgb(255 255 255 / .05) 42%, rgb(255 255 255 / .12)), rgb(12 16 18 / .5);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  backdrop-filter: blur(22px) saturate(185%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 1px 0 0 rgb(255 255 255 / .16), inset -1px 0 0 rgb(255 255 255 / .1), inset 0 -1px 0 rgb(255 255 255 / .18), 0 14px 40px rgb(0 0 0 / .28);
}
.glass::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle 180px at var(--x, 20%) var(--y, 0%), rgb(255 255 255 / .26), transparent 70%); }
.glass > * { position: relative; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgb(18 24 26 / .92); } }
@media (prefers-reduced-transparency: reduce) { .glass { background: #14191b; -webkit-backdrop-filter: none; backdrop-filter: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border: 0; border-radius: 999px; background: linear-gradient(140deg, rgb(255 255 255 / .28), rgb(255 255 255 / 0) 50%), rgb(10 115 133 / .92); color: #fff; font: 400 19px/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; text-align: center; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 0 -1px 0 rgb(255 255 255 / .15), 0 10px 26px rgb(10 115 133 / .35); transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s; }
.btn:hover { transform: translateY(-2px) scale(1.015); }
.btn:active { transform: scale(.98); }
.btn--small { min-height: 42px; padding: 8px 18px; font-size: 16px; }
.btn--glass { background: linear-gradient(140deg, rgb(255 255 255 / .22), rgb(255 255 255 / .05) 42%, rgb(255 255 255 / .12)), rgb(12 16 18 / .5); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 0 -1px 0 rgb(255 255 255 / .18), 0 14px 40px rgb(0 0 0 / .28); }
[aria-disabled='true'] { cursor: not-allowed; }
.btn[aria-disabled='true'] { color: #d4dbde; }
.btn[aria-disabled='true']:hover { transform: none; }
small { font: 500 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: var(--teal-bright); color: var(--ink); white-space: nowrap; }

/* En-tête flottant */
.top { position: fixed; z-index: 20; top: var(--top-offset); left: 0; right: 0; padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)); pointer-events: none; }
.top__bar { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1320px, 100%); height: var(--top); margin-inline: auto; padding-inline: 20px 12px; border-radius: 999px; }
.top__bar.glass { background: linear-gradient(140deg, rgb(255 255 255 / .16), rgb(255 255 255 / .03) 42%, rgb(255 255 255 / .08)), rgb(12 16 18 / .74); }
.top__logo { display: block; width: 64px; flex: none; }
.top__nav { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 24px); font: 400 16px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.top__nav > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; text-decoration: none; white-space: nowrap; }
.top__nav > a:not(.btn):not([aria-disabled='true']):hover { color: var(--teal-bright); }
.top__nav > a[aria-disabled='true'] { color: var(--muted-dark); }
.top__toggle { display: none; position: relative; width: 48px; height: 48px; background: none; border: 0; color: #fff; cursor: pointer; }
.top__toggle span:not(.sr) { position: absolute; left: 11px; width: 26px; height: 2px; background: currentColor; transition: transform .25s, top .25s; }
.top__toggle span:nth-child(1) { top: 19px; }
.top__toggle span:nth-child(2) { top: 28px; }
.top__toggle[aria-expanded='true'] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.top__toggle[aria-expanded='true'] span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* Vidéo d'ouverture */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(100svh, 62vw + 280px); background: var(--ink) url(video/poster.jpg) center / cover; color: #fff; overflow: hidden; isolation: isolate; }
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 12 13 / .28), rgb(10 12 13 / .08) 30%, rgb(10 12 13 / .7)); }
.hero__content { display: grid; gap: 28px; padding-block: calc(var(--top) + 64px) 28px; }
.hero__body { display: grid; gap: 18px; }
.hero h1 { font-size: clamp(58px, 9vw, 150px); line-height: .98; text-wrap: initial; }
.hero p { max-width: 36em; font-size: clamp(17px, 1.5vw, 20px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.hero__pause { position: absolute; z-index: 1; right: max(16px, env(safe-area-inset-right, 0px)); top: calc(var(--top-offset) + var(--top) + 12px); padding: 8px 14px; border: 0; border-radius: 999px; font: 400 13px/1.2 var(--body); cursor: pointer; }

/* Chiffres : tableau d'affichage en verre, posé sur la vidéo */
.scoreboard { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-radius: var(--radius); }
.scoreboard > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; padding: 16px 22px; }
.scoreboard > div + div { border-left: 1px solid rgb(255 255 255 / .16); }
.scoreboard dd { margin: 0; font: 400 clamp(38px, 4.4vw, 62px)/1 var(--display); font-variant-numeric: tabular-nums; }
.scoreboard dt { color: #dfe6e8; font-size: 14px; line-height: 1.3; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--dark { background: var(--ink); color: #fff; }
.head { display: grid; gap: 12px; max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.head > p:last-child { max-width: 38em; color: var(--muted); font-size: 18px; }
.section--dark .head > p:last-child { color: var(--muted-dark); }

.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.goal { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: #fff; text-decoration: none; isolation: isolate; }
.goal img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .8s var(--ease); }
.goal:hover img { transform: scale(1.04); }
.tag { position: absolute; top: 14px; left: 14px; padding: 10px 16px; border-radius: 999px; font: 400 clamp(20px, 2vw, 26px)/1 var(--display); text-transform: uppercase; }
.goal__cta { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; border-radius: 999px; font: 400 18px/1.2 var(--display); text-transform: uppercase; }
.goal__cta::after { content: '→'; font-family: var(--body); transition: transform .25s; }
.goal:hover .goal__cta::after { transform: translateX(4px); }

/* Classes : une photo qui montre la discipline, un panneau de verre qui la nomme */
.classes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.class-card { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); isolation: isolate; }
.class-card--wide { grid-column: span 2; aspect-ratio: auto; }
.class-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .8s var(--ease); }
.class-card:hover img { transform: scale(1.04); }
.class-card__panel { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; font-size: 15px; line-height: 1.4; }
.class-card__panel span { color: #bfeaf2; font-size: 13px; }
.class-card:nth-child(n + 4) img { object-position: 50% 45%; }

.coaches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.coaches figure { margin: 0; display: grid; gap: 12px; }
.coaches img { width: 100%; border-radius: var(--radius); }
.coaches figcaption { color: var(--muted); font-size: 15px; }
.coaches strong { display: block; color: var(--ink); font: 400 24px/1.15 var(--display); text-transform: uppercase; }

/* Bandes photo : avis et contact */
.photo-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.photo-band__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.photo-band__inner { display: flex; align-items: center; min-height: clamp(560px, 62vw, 780px); padding-block: 48px; }
.review { display: grid; gap: 14px; width: min(660px, 100%); margin-left: auto; padding: clamp(22px, 3.4vw, 40px); border-radius: var(--radius); }
.review h2 { font-size: clamp(32px, 4vw, 52px); }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: #fff; font-size: 15px; text-decoration: none; }
.rating:hover { color: #bfeaf2; }
.rating strong { font: 400 22px/1 var(--display); }
/* Étoiles grises, puis étoiles dorées coupées à la note exacte : 4,8/5 = 96 %. */
.rating__stars { position: relative; display: inline-block; color: rgb(255 255 255 / .35); font: 400 24px/1 Arial, sans-serif; letter-spacing: 2px; white-space: nowrap; }
.rating__stars::before { content: '★★★★★'; }
.rating__stars span { position: absolute; inset: 0 auto 0 0; width: 96%; overflow: hidden; color: #ffc53d; }
blockquote { margin: 0; display: grid; gap: 16px; }
blockquote p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
blockquote footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; font-size: 15px; }
blockquote strong { font: 400 20px/1.2 var(--display); text-transform: uppercase; }
blockquote a { color: #bfeaf2; }

.comps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.comp { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); isolation: isolate; }
.comp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: transform .8s var(--ease); }
.comp:hover img { transform: scale(1.03); }
.comp__panel { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 8px; justify-items: start; padding: 18px 20px; border-radius: 20px; }

.galleries { background: var(--ink); color: #fff; padding-bottom: clamp(48px, 7vw, 96px); overflow: hidden; }
.galleries__rail { overflow: hidden; }
.galleries__track { display: flex; gap: 8px; width: max-content; animation: slide 70s linear infinite; }
.galleries__track img { width: clamp(190px, 21vw, 320px); aspect-ratio: 2 / 3; object-fit: cover; flex: none; border-radius: 16px; }
.galleries:hover .galleries__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(calc(-50% - 4px)); } }
.galleries__body { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding-top: clamp(32px, 5vw, 60px); }
.galleries__body > div:first-child { display: grid; gap: 12px; max-width: 720px; }
.galleries__body > div:first-child > p:last-child { color: var(--muted-dark); font-size: 18px; }
.galleries__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 5vw, 80px); }
.faq .head { align-self: start; position: sticky; top: calc(var(--top) + 40px); margin: 0; }
.faq__list { border-top: 2px solid var(--ink); }
details { border-bottom: 1px solid #c9d2d5; interpolate-size: allow-keywords; }
details::details-content { height: 0; overflow: clip; transition: height .3s var(--ease), content-visibility .3s allow-discrete; }
details[open]::details-content { height: auto; }
summary { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; font-weight: 500; font-size: 19px; line-height: 1.3; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; color: var(--teal); font: 400 28px/.8 var(--display); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { max-width: 38em; padding-bottom: 22px; color: var(--muted); }

.photo-band--contact .photo-band__img { filter: brightness(.7); }
.contact__grid { justify-content: space-between; gap: 32px; align-items: flex-end; }
.contact__title { display: grid; gap: 18px; justify-items: start; }
.contact__title h2 { font-size: clamp(56px, 7.6vw, 116px); line-height: .96; }
address { display: grid; gap: 16px; min-width: min(360px, 100%); padding: 24px 28px; border-radius: var(--radius); font-style: normal; font-size: 19px; }
address p { display: grid; gap: 2px; }
address span { color: #dfe6e8; font-size: 14px; }
address a { text-underline-offset: 3px; overflow-wrap: anywhere; }

.foot { background: var(--ink); color: var(--muted-dark); padding-bottom: env(safe-area-inset-bottom, 0px); font-size: 15px; }
.foot__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; padding-block: 24px; }
.foot img { width: 72px; margin-right: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { display: inline-block; padding-block: 6px; color: #fff; }

/* Pages légales */
.legal { padding-block: calc(var(--top) + 64px) clamp(40px, 6vw, 80px); }
.legal__body { display: grid; gap: 14px; max-width: 760px; }
.legal h1 { margin-bottom: 12px; font-size: clamp(48px, 8vw, 96px); }
.legal h2 { margin-top: 24px; font-size: clamp(24px, 3vw, 32px); }
.legal a { color: var(--teal); }

/* Apparition progressive au défilement, sans jamais masquer le contenu sur les navigateurs qui ne la gèrent pas. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes rise { from { opacity: .15; transform: translateY(36px); } to { opacity: 1; transform: none; } }
  }
}

@media (max-width: 1180px) {
  .top__bar { padding-inline: 18px 8px; }
  .top__toggle { display: block; }
  /* Un flou imbriqué ne voit pas la page derrière lui : le menu ouvert reste donc presque opaque. */
  .top__nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: grid; gap: 0; padding: 12px 20px 20px; border-radius: var(--radius); background: rgb(14 18 20 / .96); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 20px 50px rgb(0 0 0 / .4); font-size: 23px; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .3s; max-height: calc(100dvh - var(--top) - 40px); overflow-y: auto; }
  .top__nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .top__nav > a { min-height: 50px; }
  .top__nav .btn { margin-top: 10px; min-height: 52px; font-size: 20px; }
  .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-card--wide { aspect-ratio: 16 / 10; }
}

@media (max-width: 800px) {
  body { font-size: 16px; }
  .hero { min-height: 100svh; }
  .hero__content { padding-top: calc(var(--top) + 76px); }
  .hero h1 { font-size: 12.4vw; }
  .hero__actions .btn { width: 100%; }
  .scoreboard { grid-template-columns: repeat(2, 1fr); }
  .scoreboard > div { padding: 12px 16px; }
  .scoreboard > div + div { border-left: 0; }
  .scoreboard > div:nth-child(even) { border-left: 1px solid rgb(255 255 255 / .16); }
  .scoreboard > div:nth-child(n + 3) { border-top: 1px solid rgb(255 255 255 / .16); }
  .goals, .coaches, .comps, .classes, .faq { grid-template-columns: minmax(0, 1fr); }
  .goal { aspect-ratio: 5 / 4; }
  .class-card, .class-card--wide { grid-column: auto; aspect-ratio: 5 / 6; }
  .comp { aspect-ratio: 4 / 5; }
  .faq .head { position: static; margin-bottom: 20px; }
  .photo-band__inner { align-items: flex-end; min-height: 640px; padding-block: 24px; }
  .contact__grid { flex-direction: column; align-items: stretch; }
  .contact__title .btn { width: 100%; }
  .galleries__actions, .galleries__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
}
