/* Direction A — Noir: black and white only, condensed uppercase headings, one breathing ring */
:root {
  --bg: #0d0d0d;
  --bg-alt: #141414;
  --panel: #1a1a1a;
  --ink: #f2f2f2;
  --ink-body: #c4c4c4;
  --ink-soft: #9a9a9a;
  --line: #333333;
  --on-ink: #0d0d0d;
  --ok-bg: #1f2a22;
  --ok-ink: #b9e0c0;
  --error-bg: #3a2220;
  --error-ink: #f0b4aa;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --breath: 11s; /* one full breath: inhale = first 40 % (4.4 s), exhale = the rest (6.6 s). Change this to speed up or slow down every animation. */
}

/* Every line on the site breathes: the line colours brighten on the inhale and fade on the exhale,
   on the same rhythm as the rings (inhale 0–40 %, exhale 40–100 %). */
@property --line { syntax: "<color>"; inherits: true; initial-value: #333333; }
@property --line-strong { syntax: "<color>"; inherits: true; initial-value: #f2f2f2; }
:root { --line-strong: #f2f2f2; animation: breathe-lines var(--breath) ease-in-out infinite; }
@keyframes breathe-lines {
  0%   { --line: #262626; --line-strong: #7a7a7a; }
  40%  { --line: #6e6e6e; --line-strong: #f2f2f2; }
  100% { --line: #262626; --line-strong: #7a7a7a; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: .95; margin: 0 0 .5em; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: clamp(3.4rem, 8vw, 6.5rem); line-height: .92; letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.6rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 13, 13, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: .22em; color: var(--ink); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink-body); }
.nav .lang { color: var(--ink-soft); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--ink); color: var(--on-ink);
  border: 1px solid var(--ink);
  padding: 15px 28px;
  font: 500 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-ink); }
.nav .btn-small { padding: 9px 18px; font-size: .9rem; background: transparent; color: var(--ink); }
.nav .btn-small:hover { background: var(--ink); color: var(--on-ink); }
.link-quiet { color: var(--ink-body); text-decoration: none; border-bottom: 1px solid var(--line); padding: 15px 8px 4px; }
.link-quiet:hover { color: var(--ink); border-color: var(--ink); }

/* Hero: text + photo with breathing ring */
.hero { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.hero-text { min-width: 0; }
.lead { font-size: 1.15rem; color: var(--ink-body); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 28px; }
.hero-photo {
  position: relative; min-height: 520px;
  background: var(--panel);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 24px;
  overflow: hidden;
}
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 58% center;
}

/* Every photo is shown in black and white to match the Noir palette */
.hero-photo img, .goal-img, /* Paced-breathing trace over the Stress management photo: the dot rises on the inhale,
   falls on the exhale, and leaves a scrolling line behind it (drawn by js/main.js) */
.goal-media { position: relative; margin-bottom: 24px; }
.goal-media .goal-img { margin-bottom: 0; }
.goal-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 13, 13, .2), rgba(13, 13, 13, .45)); }
.goals .wrap { position: relative; }
/* Placed by js/main.js over both photos (or over the stress photo only when they are stacked) */
.breath-trace { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 1; overflow: visible; }
.trace-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.photo-band img { filter: grayscale(1) contrast(1.08); }

.goal-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 24px; }
.goal-img-gym { object-position: 60% center; } /* keep the athlete, right of center, in frame */
.goal-img-calm { object-position: center; }
.photo-band img { display: block; width: 100%; height: clamp(260px, 38vw, 520px); object-fit: cover; object-position: center 45%; }
/* Breathing rings: everything moves on one 10 s cycle (inhale 0–40 %, exhale 40–100 %).
   Outer rings lag slightly behind, so each breath ripples outward. */
.breath { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.breath > * { grid-area: 1 / 1; }
.ring {
  aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(242, 242, 242, .6);
  animation: breathe-ring var(--breath) ease-in-out infinite;
}
.ring-core { width: min(130px, 30%); border: 0; background: rgba(242, 242, 242, .1); }
.ring-mid { width: min(280px, 62%); }
.ring-outer { width: min(420px, 92%); border-color: rgba(242, 242, 242, .28); animation-delay: calc(var(--breath) * -.955); }
.ring-far { width: min(580px, 125%); border-color: rgba(242, 242, 242, .14); animation-delay: calc(var(--breath) * -.91); }
@keyframes breathe-ring {
  0% { transform: scale(.72); opacity: .5; }
  40% { transform: scale(1); opacity: 1; }
  100% { transform: scale(.72); opacity: .5; }
}

/* Inhale / exhale cue in the middle of the hero rings */
.cue {
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--ink);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
}
.cue-in { animation: cue-in var(--breath) linear infinite; }
.cue-out { animation: cue-out var(--breath) linear infinite; }
@keyframes cue-in { 0%, 35% { opacity: 1; } 40%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cue-out { 0%, 35% { opacity: 0; } 40%, 95% { opacity: 1; } 100% { opacity: 0; } }

.photo-band { position: relative; }
.photo-band .breath { background: rgba(13, 13, 13, .25); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  text-transform: uppercase; letter-spacing: .24em;
  font-size: .78rem; font-weight: 500; color: var(--ink-soft);
  margin-bottom: 1.4em;
}
/* A short line before each section label breathes with the same rhythm */
.eyebrow::before {
  content: ""; flex: none; width: 56px; height: 1px; background: var(--ink);
  transform-origin: left center;
  animation: breathe-line var(--breath) ease-in-out infinite;
}
@keyframes breathe-line { 0% { transform: scaleX(.3); } 40% { transform: scaleX(1); } 100% { transform: scaleX(.3); } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-title { max-width: 760px; margin-bottom: 1em; }

.grid-2, .grid-3 { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.goals { padding: 56px 0; }
.goal { min-width: 0; }
.goal h2 { font-size: 2.2rem; }
.goal p { color: var(--ink-body); margin: 0; }

.card { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; }
.card p { color: var(--ink-body); }
.card-sub { font-size: .9rem; color: var(--ink-soft) !important; margin-top: -.3em; }
.card sup, .creds sup, .fine sup { font-size: .6em; }

/* A method that is coming later, shown under the three breathing methods */
.card-tag { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .8em; }

.offer { background: var(--panel); border-top: 2px solid var(--line-strong); padding: 28px; }
.offer .meta { list-style: none; padding: 16px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); font-size: .95rem; }
.offer .meta li { margin-bottom: 4px; }

/* Schedule */
.schedule-title { margin-top: 64px; }
.schedule { list-style: none; padding: 0; margin: 0 0 12px; border-top: 1px solid var(--line); }
.schedule li {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.schedule time { font-weight: 500; }
.schedule span { color: var(--ink-body); }
.note { color: var(--ink-soft); font-size: .95rem; margin-top: 16px; }

/* Forms to fill before a workshop */
.prep { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.prep p { color: var(--ink-body); max-width: 40em; }
.prep-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.prep-links sup { font-size: .6em; }

.safety {
  margin-top: 40px; padding: 20px 24px;
  background: var(--panel);
  font-size: .95rem; color: var(--ink-body);
}
.safety strong { color: var(--ink); }

/* Events (built from reglages.js) */
.events li { grid-template-columns: 1.1fr 2fr 1fr auto; align-items: start; }
.event-title { font-weight: 500; color: var(--ink); }
.event-text { margin: 4px 0 0; font-size: .95rem; color: var(--ink-body); }
.events .link-quiet { padding: 0 0 2px; white-space: nowrap; }

/* Corporate workshops (switched on/off in reglages.js) */
.corporate { margin-top: 40px; padding: 28px; background: var(--panel); border-top: 2px solid var(--line-strong); max-width: 760px; }
.corporate p { color: var(--ink-body); }

/* Livestream */
.live-intro { color: var(--ink-body); max-width: 40em; }
.live-player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; margin-top: 32px; background: var(--panel); border: 1px solid var(--line); }
.live-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-layer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.live-layer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-player .is-front { z-index: 3; }
.live-off { position: absolute; inset: 0; z-index: 2; background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; text-align: center; color: var(--ink-body); }
.live-off { justify-content: flex-end; overflow: hidden; }
.live-off .breath { grid-template: 100% / 100%; }
.live-off p { position: relative; margin: 0; max-width: 32em; color: var(--ink); text-shadow: 0 0 12px var(--panel), 0 0 4px var(--panel); }
.schedule:not(:has(li)) { display: none; }
.schedule-empty { display: none; margin: 0 0 12px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 1.15rem; color: var(--ink); }
.schedule:not(:has(li)) + .schedule-empty { display: block; }

/* About */
.about { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: start; }
.about-photo {
  aspect-ratio: 4 / 5; max-width: 100%;
  background: var(--panel);
  display: grid; place-items: center; color: var(--ink-soft); font-size: .9rem;
}
.creds { padding-left: 1.2em; color: var(--ink-body); }

img.about-photo { display: block; width: 100%; height: auto; object-fit: cover; object-position: center 30%; filter: grayscale(1) contrast(1.08); }

/* Form */
.contact-form { margin-top: 32px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 18px; }
label { font-weight: 500; font-size: .95rem; margin-bottom: 6px; }
.optional { color: var(--ink-soft); font-weight: 400; }
input, select, textarea {
  font: inherit; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 0;
  padding: 12px 14px; width: 100%;
  color-scheme: dark;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.privacy { font-size: .85rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: 14px 18px; margin-top: 20px; font-weight: 500; }
.form-status.ok { background: var(--ok-bg); color: var(--ok-ink); }
.form-status.error { background: var(--error-bg); color: var(--error-ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .9rem; color: var(--ink-soft); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-inner p { margin: 0; }
.fine { font-size: .8rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root, .ring, .eyebrow::before { animation: none; }
  .cue { display: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { min-height: 360px; }
  .grid-3 { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 320px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 20px 16px 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .schedule li { grid-template-columns: 1fr; gap: 2px; }
}
