/* =========================================================
   Foucoupe — Feuille de style
   Palette : noir + blanc + accents gris
   Typos   : Space Grotesk + Space Mono
   ========================================================= */

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --bg-elev: #141414;
  --fg: #ffffff;
  --fg-dim: rgba(255, 255, 255, 0.72);
  --fg-faint: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --accent: #ffffff;
  --focus: #7ee0ff;

  --font-sans: "Space Grotesk", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;
  --easing: cubic-bezier(.2,.7,.2,1);

  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity .2s var(--easing), color .2s var(--easing); }
a:hover { opacity: .7; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: #fff; color: #000; }

/* Focus accessible */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Layout helpers ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 0 0 16px;
}
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(38px, 6.5vw, 86px); }
h2 { font-size: clamp(28px, 4vw, 52px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
p  { margin: 0 0 1em; color: var(--fg-dim); }

/* Header --------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.site-header.is-solid {
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: auto;
}

/* Brand : logo SVG seul (80px desktop, 56px mobile) */
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  line-height: 0;
}
.brand:hover { opacity: 1; color: var(--fg); }
.brand-logo {
  width: 80px; height: 80px;
  color: var(--fg);
  display: block;
  transition: transform .4s var(--easing);
}
.brand:hover .brand-logo { transform: rotate(-8deg); }
@media (max-width: 760px) {
  .brand-logo { width: 56px; height: 56px; }
}

/* Nav */
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: lowercase;
  color: var(--fg-dim);
  position: relative;
  padding: 6px 0;
}
.nav a.is-active { color: var(--fg); }
.nav a.is-active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--fg);
}
.nav a:hover { color: var(--fg); opacity: 1; }

/* Burger */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.4);
}
.nav-toggle span {
  position: relative;
  width: 18px; height: 1.5px;
  background: var(--fg);
  display: block;
  transition: transform .25s var(--easing), opacity .15s var(--easing);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 1.5px;
  background: var(--fg);
  transition: transform .25s var(--easing);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle.is-active span { background: transparent; }
.nav-toggle.is-active span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-active span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.96);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--easing);
    padding-top: 60px;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav a {
    font-size: 22px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--fg);
  }
  .nav a::after { display: none; }
}

/* Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 60%, rgba(0,0,0,1) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { max-width: 14ch; }
.hero-sub {
  font-size: clamp(18px, 2vw, 26px);
  color: var(--fg);
  margin-top: 28px;
  max-width: 36ch;
  font-weight: 400;
  line-height: 1.3;
}

/* Sections ------------------------------------------------------- */
section {
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 1px solid var(--line);
}
section.no-border { border-top: 0; }

/* Trois piliers -------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.pillar { display: flex; flex-direction: column; }
.pillar-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elev);
}
.pillar-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--easing);
}
.pillar:hover .pillar-img img { transform: scale(1.04); }
.pillar h3 { margin: 28px 0 12px; }
.pillar p  { color: var(--fg-dim); margin: 0; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; gap: 56px; }
}

/* Section header ------------------------------------------------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
  flex-wrap: wrap;
}

/* Filtres événements -------------------------------------------- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.filter-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: lowercase;
  color: var(--fg-dim);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .2s var(--easing);
}
.filter-pill:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}
.filter-pill.is-active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* Grille événements --------------------------------------------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}
.event {
  display: flex;
  flex-direction: column;
  position: relative;
}
.event-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-elev);
  margin-bottom: 16px;
  position: relative;
}
.event-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--easing), opacity .4s var(--easing);
  opacity: .92;
}
.event:hover .event-img img { transform: scale(1.05); opacity: 1; }
.event-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--fg);
}
.event-place {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--fg-dim);
  margin: 0 0 6px;
}
.event-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--fg-faint);
}

@media (max-width: 1000px) { .events-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .events-grid { grid-template-columns: 1fr; } }

/* Section Membre ------------------------------------------------ */
.member {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.member-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elev);
}
.member-media img { width: 100%; height: 100%; object-fit: cover; }
.member h2 { margin-bottom: 24px; }
.member-lead { font-size: 19px; color: var(--fg); margin-bottom: 18px; }
.member-text { color: var(--fg-dim); margin-bottom: 32px; }
.member-card {
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  margin-bottom: 28px;
}
.member-price {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.member-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.member-perks li {
  position: relative;
  padding-left: 22px;
  color: var(--fg-dim);
  margin-bottom: 8px;
  font-size: 15px;
}
.member-perks li::before {
  content: "";
  position: absolute;
  left: 0; top: .65em;
  width: 12px; height: 1px;
  background: var(--fg-faint);
}

/* Boutons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: lowercase;
  border-radius: var(--radius);
  transition: transform .2s var(--easing), background .2s var(--easing);
}
.btn:hover { background: #ddd; opacity: 1; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255,255,255,.06); }

.bank-note {
  font-size: 13px;
  color: var(--fg-faint);
  line-height: 1.6;
}
.bank-note a { color: var(--fg-dim); border-bottom: 1px solid var(--line); }

@media (max-width: 860px) { .member { grid-template-columns: 1fr; } }

/* Comité --------------------------------------------------------- */
.committee {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.committee-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elev);
}
.committee-media img { width: 100%; height: 100%; object-fit: cover; }
.committee-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 40px;
}
.committee-list li {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-dim);
  margin-bottom: 10px;
}
@media (max-width: 860px) {
  .committee { grid-template-columns: 1fr; }
  .committee-list { columns: 1; }
}

/* Contact -------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-block { font-family: var(--font-mono); font-size: 14px; line-height: 1.8; color: var(--fg-dim); }
.contact-block strong { color: var(--fg); font-weight: 500; }
.contact-block a { color: var(--fg); border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .contact { grid-template-columns: 1fr; } }

/* Shop ----------------------------------------------------------- */
.shop {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-top: 1px solid var(--line);
}
.shop-inner {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 32px);
}
.shop-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: .32;
  z-index: 0;
  filter: grayscale(20%);
  pointer-events: none;
}
.shop-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%, rgba(0,0,0,.85) 80%);
  z-index: 1;
  pointer-events: none;
}
.shop-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
}
.shop-content h2 { margin-bottom: 20px; }
.shop-content p { margin: 0 auto 32px; max-width: 42ch; color: var(--fg); }
.shop-content .btn { display: inline-flex; }
@media (max-width: 480px) {
  .shop-inner { min-height: 56vh; padding: 72px 20px; }
  .shop-content h2 { font-size: clamp(28px, 9vw, 40px); }
  .shop-content p { font-size: 15px; }
}

/* Footer --------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
}
.footer-brand svg { width: clamp(40px, 5vw, 64px); height: clamp(40px, 5vw, 64px); color: var(--fg); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--fg-faint);
  margin: 0 0 14px;
  font-weight: 400;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-family: var(--font-mono); font-size: 14px; color: var(--fg-dim); }
.footer-col a:hover { color: var(--fg); opacity: 1; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-faint);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Sessions ------------------------------------------------------ */
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.session { display: flex; flex-direction: column; }
.session-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-elev);
  overflow: hidden;
  cursor: pointer;
}
.session-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.session-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: opacity .3s var(--easing), transform .8s var(--easing);
}
.session-frame:hover .session-poster { opacity: 1; transform: scale(1.03); }
.session-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  display: grid; place-items: center;
  z-index: 2;
  transition: transform .25s var(--easing);
}
.session-play svg { width: 100%; height: 100%; display: block; }
.session-frame:hover .session-play { transform: translate(-50%, -50%) scale(1.08); }
.session-title {
  font-size: 18px;
  font-weight: 500;
  margin: 16px 0 0;
  letter-spacing: -0.01em;
}
@media (max-width: 720px) { .sessions-grid { grid-template-columns: 1fr; } }

/* Page header --------------------------------------------------- */
.page-header { padding: 160px 0 60px; }
.page-header h1 { max-width: 18ch; }

/* Bouton retour en haut ---------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(0,0,0,.7);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  z-index: 90;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s var(--easing), transform .25s var(--easing);
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: rgba(255,255,255,.1); }
.back-to-top svg { width: 18px; height: 18px; stroke: #fff; }

/* Reveal animation --------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--easing), transform .8s var(--easing);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Loader pour le contenu JSON */
.loading {
  padding: 60px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* Reduced motion ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive — affinage mobile (audit 2026-05-17)
   Breakpoints : 768 (tablette), 480 (mobile large), 380 (petit mobile)
   ========================================================= */

/* Tablette portrait */
@media (max-width: 768px) {
  body { font-size: 16px; }
  section { padding: clamp(64px, 14vw, 100px) 0; }
  .hero { padding: 96px 0 64px; min-height: 90vh; }
  .page-header { padding: 120px 0 40px; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { line-height: 1.1; }
  .filter-bar { gap: 6px; margin-bottom: 28px; }
  .filter-pill { padding: 7px 14px; font-size: 11px; }
}

/* Mobile large (iPhone 14/15 Pro = 393, Plus = 430) */
@media (max-width: 480px) {
  :root { --gutter: 20px; --header-h: 64px; }
  .site-header { padding: 12px 0; }
  .hero { min-height: 88vh; padding: 80px 0 56px; }
  .hero-sub { font-size: 17px; margin-top: 20px; }
  section { padding: 64px 0; }
  .btn { padding: 14px 22px; font-size: 14px; }
  .footer-grid { gap: 36px; }
  .footer-bottom { margin-top: 40px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-brand { font-size: 40px; }
  .footer-brand svg { width: 44px; height: 44px; }
  .contact-block { font-size: 13px; line-height: 1.85; }
  .back-to-top { width: 40px; height: 40px; bottom: 16px; right: 16px; }
  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-pill { flex-shrink: 0; }
}

/* Petit mobile (iPhone SE = 375, vieux Android = 360) */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  h1 { font-size: clamp(32px, 9vw, 44px); }
  h2 { font-size: clamp(24px, 8vw, 34px); }
  .hero-sub { font-size: 16px; }
  .btn { padding: 12px 18px; }
  .brand-logo { width: 48px; height: 48px; }
}

/* Tap targets : forcer 44px minimum sur mobile pour accessibilité (Apple HIG) */
@media (max-width: 768px) and (hover: none) {
  .nav a, .footer-col a, .filter-pill, .btn, .back-to-top {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .footer-col li { margin-bottom: 0; }
}
