/* ==========================================================================
   nafuu.raw — la page comme un film
   Sommaire : 1. Variables  2. Base  3. En-tête  4. Ouverture  5. Plans
              6. Prestations  7. Déroulé  8. Albums  9. Générique  10. Barre mobile
   ========================================================================== */

/* 1. Variables ------------------------------------------------------------ */
:root {
  --bg: #0a0a0a;
  --frame: #151515;
  --line: #262626;
  --text: #ece8e1;
  --text-soft: #c9c3ba;
  --muted: #a39d94;          /* contraste 7.3:1 sur --bg */
  --dim: #8f897f;            /* contraste 5.7:1 sur --bg */
  --amber: #e8954a;          /* contraste 7.9:1 sur --bg */
  --on-amber: #140c05;

  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1280px;
  --gutter: 24px;
  --cta-bar: 80px;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text); }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  padding: 10px 14px; background: var(--amber); color: var(--on-amber); text-decoration: none;
}
.skip-link:focus { top: var(--gutter); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); font-size: 13px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--amber); }
.section { padding-top: 140px; }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px;
  border-top: 1px solid var(--line); padding-top: 20px;
}
.section-head h2, .section > h2 { font-weight: 400; font-size: 30px; line-height: 1.2; }
.section > h2 { border-top: 1px solid var(--line); padding-top: 20px; }
.section-head a { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Cadre photo 2:1 (format des exports anamorphiques désqueezés) */
.frame { aspect-ratio: 2 / 1; width: 100%; object-fit: cover; background: var(--frame); }
figure { margin: 0; }
figcaption { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--text-soft); }

/* 3. En-tête -------------------------------------------------------------- */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.brand { font-size: 20px; font-weight: 500; letter-spacing: .42em; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; padding: 0; list-style: none; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--amber); }

/* 4. Ouverture ------------------------------------------------------------ */
.opening { padding-top: 8px; }
.opening figcaption { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--muted); }
.pitch { margin-top: 72px; display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-end; justify-content: space-between; }
.pitch-text { flex: 1 1 560px; min-width: 0; }
.pitch h1 { margin-top: 18px; font-weight: 300; font-size: clamp(38px, 5.2vw, 76px); line-height: 1.05; letter-spacing: -.01em; }
.pitch-lead { margin-top: 24px; max-width: 46ch; color: var(--text-soft); }
.pitch-cta { flex: 0 1 360px; display: flex; flex-direction: column; gap: 14px; }
.pitch-cta p { font-size: 15px; color: var(--muted); text-align: center; }

.btn {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px;
  background: var(--amber); color: var(--on-amber); text-decoration: none; font-weight: 500; letter-spacing: .02em; border-radius: 2px;
  transition: background-color .15s ease;
}
.btn:hover { background: #f0a462; color: var(--on-amber); }
.btn-line {
  flex: 0 0 auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--amber); color: var(--amber); text-decoration: none; border-radius: 2px;
  transition: background-color .15s ease, color .15s ease;
}
.btn-line:hover { background: var(--amber); color: var(--on-amber); }

/* 5. Rushes : bande 35 mm verticale --------------------------------------- */
.strip {
  --hole: clamp(10px, 1.6vw, 17px);
  --hole-x: clamp(9px, 2vw, 20px);
  position: relative; max-width: 960px; margin: 48px auto 0;
  padding: 22px clamp(30px, 6vw, 60px) 34px; list-style: none;
  display: flex; flex-direction: column; gap: 30px;
  background: #15110d;
}
.strip::before, .strip::after {          /* perforations */
  content: ""; position: absolute; top: 0; bottom: 0; width: var(--hole);
  background: repeating-linear-gradient(180deg, transparent 0 11px, var(--bg) 11px 25px, transparent 25px 36px);
}
.strip::before { left: var(--hole-x); }
.strip::after { right: var(--hole-x); }
.edge {                                   /* marquages de bord */
  margin-bottom: 8px; display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--amber);
}

/* 6. Prestations ---------------------------------------------------------- */
.offers { margin-top: 32px; padding: 0; list-style: none; }
.offer { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.offer h3 { flex: 1 1 280px; font-weight: 400; font-size: 34px; line-height: 1.15; }
.offer-body { flex: 2 1 420px; min-width: 0; }
.offer-body p { color: var(--text-soft); }
.offer-body .price { margin-top: 16px; font-family: var(--mono); font-size: 14px; color: var(--text); }
.offer-body .note { margin-top: 6px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.note-global { margin-top: 24px; max-width: 72ch; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* 7. Déroulé -------------------------------------------------------------- */
.steps { margin-top: 40px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px 32px; }
.steps p { margin-top: 10px; color: var(--text-soft); }

/* 8. Albums --------------------------------------------------------------- */
.albums { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 20px; }
.albums h2 { flex: 1 1 280px; font-weight: 400; font-size: 24px; line-height: 1.25; }
.albums p { flex: 2 1 420px; color: var(--text-soft); }

/* 9. Générique ------------------------------------------------------------ */
.credits { padding-top: 160px; padding-bottom: calc(64px + var(--cta-bar) + env(safe-area-inset-bottom)); text-align: center; }
.credits .brand { display: inline-block; }
.credits dl { margin: 40px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; max-width: 520px; font-family: var(--mono); font-size: 13px; }
.credits dt { text-align: right; color: var(--dim); }
.credits dd { margin: 0; text-align: left; overflow-wrap: anywhere; }
.credits .fine { margin-top: 56px; font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* 10. Barre de réservation mobile ----------------------------------------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, .96); border-top: 1px solid var(--line);
  transform: translateY(110%); visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}
.cta-bar.is-visible { transform: none; visibility: visible; }
.cta-bar .btn { max-width: 480px; margin: 0 auto; }
@media (min-width: 760px) {
  .cta-bar { display: none; }
  .credits { padding-bottom: 64px; }
}

/* Carte de contact (carte.html, ouverte par la puce NFC ou le QR code) */
.card { min-height: 100vh; max-width: 520px; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-top: 48px; padding-bottom: 48px; }
.card h1 { font-weight: 300; font-size: 34px; line-height: 1.1; }
.card-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; list-style: none; }
.card-links .btn-line { width: 100%; justify-content: center; }
.card .fine { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Page 404 */
.lost { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.lost h1 { font-weight: 300; font-size: clamp(56px, 10vw, 120px); line-height: 1; }
.lost p { color: var(--text-soft); }
.lost .btn { align-self: flex-start; }

/* Petits écrans */
@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .section { padding-top: 96px; }
  .pitch { margin-top: 48px; }
  .offer h3 { font-size: 28px; }
}

/* Accessibilité : animations réduites */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
