/* ==========================================================================
   Casa Padel, proposition 3 « Night court »
   Sombre et immersif, un seul accent : le bleu des terrains.
   Formes : boutons en pilule, surfaces arrondies à 24px.
   ========================================================================== */

:root {
  --bg: #05070f;
  --surface: #0c1122;
  --surface-2: #121a33;
  --line: rgba(220, 228, 255, 0.1);
  --line-strong: rgba(220, 228, 255, 0.22);
  --text: #eef1f8;
  --muted: #8d96b0;
  --blue: #3d6bff;
  --blue-soft: rgba(61, 107, 255, 0.16);
  --error: #ff7a6b;

  --r: 24px;
  --display: "Unbounded", system-ui, sans-serif;
  --font: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 99px; background: var(--blue); color: #fff; }
.skip:focus { top: 16px; }
.muted { color: var(--muted); }

.h2 { margin: 0 0 28px; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.9rem); line-height: 1.02; letter-spacing: -0.04em; }
.h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.03em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; white-space: nowrap; cursor: pointer;
  transition: transform .5s var(--ease), background-color .3s, border-color .3s, color .3s, box-shadow .4s;
}
.btn i { transition: transform .5s var(--ease); }
.btn:hover i.ph-arrow-right { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn--blue { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.btn--blue:hover { background: #5b82ff; }
.btn--glass { background: rgba(238,241,248,.06); border-color: var(--line-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--glass:hover { background: rgba(238,241,248,.14); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue); }
.link:hover i { transform: translate(2px, -2px); }
.link i { transition: transform .4s var(--ease); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 76px; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 32px;
  background: linear-gradient(180deg, rgba(5,7,15,.75), rgba(5,7,15,0));
  transition: background-color .4s;
}
.nav.is-scrolled { background: rgba(5,7,15,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav__logo img { width: 84px; height: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; padding: 5px; border-radius: 999px; background: rgba(238,241,248,.05); border: 1px solid var(--line); }
.nav__links a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s, background-color .3s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); background: rgba(238,241,248,.1); }
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; font-size: 22px; cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 40; padding: 110px var(--gutter) 40px; background: var(--bg); }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu a { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 8vw, 2.6rem); letter-spacing: -0.04em; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ---------- Hero 3D ---------- */
.hero { position: relative; height: 100dvh; min-height: 600px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; }
.hero__canvas canvas { width: 100% !important; height: 100% !important; opacity: 0; animation: fadeIn 1.6s var(--ease) .2s forwards; }
.hero__fallback { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__canvas.is-ready .hero__fallback { display: none; }
@keyframes fadeIn { to { opacity: 1; } }
.hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, var(--bg) 0%, rgba(5,7,15,.55) 30%, rgba(5,7,15,0) 60%), radial-gradient(ellipse at 15% 85%, rgba(5,7,15,.75), transparent 55%); }
.hero__content { position: absolute; left: var(--gutter); bottom: clamp(40px, 8vh, 90px); max-width: 720px; }
.hero__title { margin: 0 0 22px; font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 7.4vw, 6.8rem); line-height: .95; letter-spacing: -0.055em; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .ln { animation: rise 1.2s var(--ease) both; }
.hero__title .ln:nth-child(2) { animation-delay: .12s; }
.hero__title em { font-style: normal; color: var(--blue); }
@keyframes rise { from { opacity: 0; transform: translateY(40px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.hero__lead { margin: 0 0 30px; max-width: 46ch; color: rgba(238,241,248,.78); font-size: clamp(1rem, 1.3vw, 1.15rem); animation: rise 1.2s var(--ease) .3s both; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; animation: rise 1.2s var(--ease) .42s both; }

.live { position: absolute; right: var(--gutter); bottom: clamp(40px, 8vh, 90px); display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 16px; border-radius: var(--r); background: rgba(12,17,34,.6); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: rise 1.2s var(--ease) .6s both; }
.live div { display: flex; flex-direction: column; line-height: 1.25; }
.live strong { font-family: var(--display); font-size: 18px; letter-spacing: -0.03em; }
.live span:not(.live__dot) { font-size: 13px; color: var(--muted); }
.live__dot { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; }
.live.is-closed .live__dot { background: var(--muted); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

/* ---------- Film qui s'agrandit ---------- */
.film { position: relative; height: 260vh; }
.film__sticky { position: sticky; top: 0; height: 100dvh; display: grid; place-items: center; overflow: hidden; }
.film__frame { position: relative; width: 100vw; height: 100dvh; overflow: hidden; clip-path: inset(30% 32% round 24px); will-change: clip-path; }
.film__frame video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); will-change: transform; }
.film__kicker { position: absolute; z-index: 2; margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 3.6rem); letter-spacing: -0.045em; line-height: 1; pointer-events: none; }
.film__kicker--l { left: var(--gutter); top: 18%; }
.film__kicker--r { right: var(--gutter); bottom: 18%; text-align: right; color: var(--blue); }
.film__sound { position: absolute; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(5,7,15,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 600; font-size: 14px; cursor: pointer; opacity: 0; transition: opacity .4s; }
.film.is-open .film__sound { opacity: 1; }

/* ---------- ADN ---------- */
.adn { padding-block: clamp(100px, 14vw, 200px); text-align: center; }
.adn__line { margin: 0 auto 36px; max-width: 18ch; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.05; letter-spacing: -0.05em; }
.adn__rot { display: inline-block; position: relative; color: var(--blue); }
.adn__rot span { display: inline-block; }
.adn__rot span.out { animation: wordOut .45s var(--ease) forwards; }
.adn__rot span.in { animation: wordIn .7s var(--ease) forwards; }
@keyframes wordOut { to { opacity: 0; transform: translateY(-40%); filter: blur(6px); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(40%); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.adn__letters { display: flex; justify-content: center; gap: clamp(4px, 1vw, 12px); margin-bottom: 28px; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.4rem); }
.adn__letters span { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 14px; border: 1px solid var(--line); color: var(--muted); transition: all .5s var(--ease); cursor: pointer; }
.adn__letters span.gap { width: .6em; border: 0; }
.adn__letters span.on { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-6px); }
.adn__text { min-height: 3.2em; max-width: 56ch; margin: 0 auto; color: var(--muted); font-size: 18px; }

/* ---------- Clubs empilés ---------- */
.clubs { padding-bottom: clamp(60px, 8vw, 120px); }
.stack { display: grid; gap: 0; }
.card {
  position: sticky; top: calc(96px + var(--i) * 14px);
  display: grid; grid-template-columns: 1.35fr 1fr; min-height: min(72vh, 600px); margin-bottom: 8vh;
  border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  transform-origin: 50% 0; box-shadow: 0 -20px 60px rgba(0,0,0,.45);
}
.card__media { position: relative; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 44px); gap: 18px; }
.card__top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.card__top b { color: var(--text); padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); }
.card__name { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.8rem); letter-spacing: -0.045em; line-height: 1; }
.card dl { margin: 0; display: grid; gap: 14px; }
.card dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card dd { margin: 2px 0 0; }
.card dd a:hover { color: var(--blue); }
.card__actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 20px; transition: background-color .3s, border-color .3s; }
.icon:hover { background: rgba(238,241,248,.1); }

/* ---------- Onglets ---------- */
.prog { padding-block: clamp(60px, 8vw, 120px); }
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 28px; }
.tabs__list { display: flex; flex-direction: column; gap: 6px; }
.tab { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: none; text-align: left; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.03em; color: var(--muted); cursor: pointer; transition: all .4s var(--ease); }
.tab i { opacity: 0; transform: translateX(-6px); transition: all .4s var(--ease); }
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab[aria-selected="true"] { color: var(--text); background: var(--surface-2); border-color: var(--blue); }
.tab[aria-selected="true"] i { opacity: 1; transform: none; color: var(--blue); }
.tabs__panel { position: relative; min-height: 460px; border-radius: var(--r); overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; }
.tabs__panel > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); opacity: 0; } 12% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
.tabs__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,7,15,.92) 10%, rgba(5,7,15,.1) 70%); }
.panel__body { padding: clamp(24px, 3vw, 40px); max-width: 560px; animation: rise .8s var(--ease) both; }
.panel__body p { margin: 0 0 20px; color: rgba(238,241,248,.84); }
.panel__partner { height: 30px; width: auto; margin-bottom: 18px; opacity: .9; filter: brightness(0) invert(1); }

/* ---------- Bento entreprises ---------- */
.biz { padding-block: clamp(60px, 8vw, 120px); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); gap: 12px; }
.bento__cell { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.bento__cell--text { grid-column: span 2; grid-row: span 2; padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(ellipse at 0% 0%, rgba(61,107,255,.22), transparent 60%), var(--surface); }
.bento__cell--text p { margin: 0 0 26px; color: var(--muted); max-width: 46ch; }
.bento__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.bento__cell--tall { grid-column: span 2; grid-row: span 2; }
.bento__cell--img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento__cell--img:hover img { transform: scale(1.05); }
.bento__cell--img figcaption { position: absolute; left: 16px; bottom: 14px; font-weight: 700; font-size: 15px; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.bento__cell--stat { grid-column: span 2; display: flex; align-items: center; gap: 20px; padding: 28px; background: var(--blue); border-color: var(--blue); }
.bento__num { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -0.06em; line-height: 1; }
.bento__cell--stat span:last-child { max-width: 24ch; font-weight: 600; }

/* ---------- Cœur Padel ---------- */
.coeur { padding-block: clamp(40px, 6vw, 80px); }
.coeur__card { display: grid; grid-template-columns: 180px 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 3vw, 40px); border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.coeur__portrait { width: 100%; border-radius: 18px; }
.coeur__logo { height: 54px; width: auto; margin-bottom: 18px; padding: 10px 16px; border-radius: 999px; background: #fff; }
.coeur__card blockquote { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.15; letter-spacing: -0.04em; }
.coeur__card p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Fin : app + formulaire ---------- */
.end { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-block: clamp(60px, 8vw, 120px); }
.app, .form { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); padding: clamp(24px, 3.5vw, 48px); }
.app { background: radial-gradient(ellipse at 100% 100%, rgba(61,107,255,.28), transparent 60%), var(--surface); }
.app > p { color: var(--muted); margin: 0 0 28px; }
.app__row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.app__row img { width: 132px; border-radius: 16px; background: #fff; padding: 8px; }
.app__stores { display: flex; flex-direction: column; gap: 10px; }
.form { display: grid; gap: 16px; align-content: start; }
.seg { display: inline-flex; width: max-content; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; }
.seg label { cursor: pointer; }
.seg span { display: block; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); transition: all .3s; }
.seg input:checked + span { background: var(--blue); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--blue); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg); transition: border-color .3s, box-shadow .3s; }
.field select option { background: var(--surface); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field__error { margin: 0; font-size: 13px; color: var(--error); }
.field__error:empty { display: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.check a { color: var(--text); text-decoration: underline; }
.form__ok { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--blue-soft); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 48px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer__logo { width: 96px; height: auto; }
.footer__clubs, .footer__social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__clubs a { color: var(--muted); font-weight: 600; }
.footer__clubs a:hover { color: var(--text); }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 20px; }
.footer__social a:hover { background: rgba(238,241,248,.1); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 22px 0 30px; font-size: 14px; color: var(--muted); }
.footer__legal a:hover { color: var(--text); }

/* ---------- Apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__burger { display: grid; place-items: center; }
  .card { grid-template-columns: 1fr; position: relative; top: 0; min-height: 0; margin-bottom: 16px; }
  .card__media { aspect-ratio: 16 / 9; }
  .tabs { grid-template-columns: 1fr; }
  .tabs__list { flex-direction: row; overflow-x: auto; }
  .tab { flex-shrink: 0; font-size: 15px; padding: 12px 16px; }
  .tab i { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__cell--text, .bento__cell--tall, .bento__cell--stat { grid-column: 1 / -1; }
  .bento__cell--tall { grid-row: span 1; min-height: 280px; }
  .end { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__cta { display: none; }
  .nav__burger { margin-left: auto; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .live { left: var(--gutter); right: auto; top: 96px; bottom: auto; }
  .film { height: 200vh; }
  .film__frame { clip-path: inset(32% 8% round 20px); }
  .film__kicker--l { top: 14%; }
  .film__kicker--r { bottom: 14%; }
  .bento { grid-template-columns: 1fr; }
  .bento__cell--img { min-height: 240px; }
  .coeur__card { grid-template-columns: 1fr; }
  .coeur__portrait { max-width: 160px; }
  .adn__letters { gap: 3px; }
  .adn__letters span { border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .film { height: auto; }
  .film__sticky { position: relative; height: auto; padding-block: 80px; }
  .film__frame { clip-path: none; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .film__frame video { transform: none; }
  .film__kicker { position: static; text-align: center; margin: 12px 0; }
}
