/* ---------------------------------------------------------------
   RVF Audio - one stylesheet for the whole site.
   Colours live as tokens at the top: change them here, once.
   --------------------------------------------------------------- */

:root {
  --bg:        #0b0c0a;
  --bg-soft:   #121410;
  --line:      rgba(255,255,255,.09);
  --line-warm: rgba(163,212,58,.35);
  --text:      #e9ebe4;
  --muted:     #949a8b;
  --accent:    #a3d43a;
  --radius:    14px;
  --maxw:      1120px;
  --gutter:    16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .8em;
}

.muted { color: var(--muted); }
.lead  { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

/* ---- header ---------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,12,10,.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; margin-right: auto; }
/* Le bloc porte les deux mots : il n'y a plus de texte a cote. Son fond est
   transparent, donc c'est le noir de la barre qu'on voit derriere RVF. */
.brand img { height: 62px; width: auto; }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

.lang {
  display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; font-size: .78rem;
}
.lang button {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  padding: 3px 10px; border-radius: 999px; font: inherit; letter-spacing: .06em;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: #0b0c0a; font-weight: 700; }

/* ---- buttons --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .97rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #0b0c0a; }
.btn-primary:hover { background: #b6e650; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-warm); color: var(--accent); }
.btn svg { width: 17px; height: 17px; }

/* ---- hero ------------------------------------------------------ */

.hero { position: relative; padding: clamp(60px, 11vw, 120px) 0 clamp(50px, 8vw, 90px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto -10%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(163,212,58,.14), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 1.2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2em; }

/* ---- sections -------------------------------------------------- */

section { padding: clamp(50px, 8vw, 88px) 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 64ch; margin-bottom: 2.4em; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0));
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-warm); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

.tag {
  display: inline-block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line-warm); border-radius: 999px;
  padding: 2px 10px; margin-bottom: 1em; font-weight: 600;
}
.tag-plain { color: var(--muted); border-color: var(--line); }

.meta { font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.meta span + span::before { content: "\00b7"; margin: 0 .6em; opacity: .6; }

ul.clean { list-style: none; padding: 0; margin: 0 0 1.4em; }
ul.clean li { padding-left: 1.4em; position: relative; margin-bottom: .45em; color: var(--muted); }
ul.clean li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---- product blocks -------------------------------------------- */

.product { display: grid; gap: 34px; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); align-items: start; }
.product + .product { margin-top: clamp(48px, 7vw, 76px); padding-top: clamp(48px, 7vw, 76px); border-top: 1px solid var(--line); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.panel {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  background: var(--bg-soft);
}
.panel + .panel, .figure + .panel { margin-top: 18px; }
.panel h4 { margin: 0 0 .7em; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.panel pre {
  font-family: var(--mono); font-size: .82rem; color: var(--muted);
  white-space: pre-wrap; margin: 0; line-height: 1.6;
}

/* ---- audio portfolio ------------------------------------------- */

.player { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.track { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 16px; align-items: center; padding: 16px 20px; }
.track + .track { border-top: 1px solid var(--line); }
.track.is-playing { background: rgba(163,212,58,.05); }

.play {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-warm); background: rgba(163,212,58,.1); color: var(--accent);
  display: grid; place-items: center; cursor: pointer; transition: background .15s ease;
}
.play:hover { background: rgba(163,212,58,.2); }
.play svg { width: 15px; height: 15px; }

.track-title { font-weight: 600; }
.track-sub { font-size: .84rem; color: var(--muted); }
.track-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); margin-top: 9px; overflow: hidden; cursor: pointer; }
.track-bar i { display: block; height: 100%; width: 0; background: var(--accent); }

.ab { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.ab button {
  border: 0; background: none; color: var(--muted); font: inherit; font-size: .78rem;
  padding: 4px 12px; border-radius: 999px; cursor: pointer; letter-spacing: .04em;
}
.ab button[aria-pressed="true"] { background: var(--accent); color: #0b0c0a; font-weight: 700; }
.track-time { font-family: var(--mono); font-size: .78rem; color: var(--muted); min-width: 4.2em; text-align: right; }

.player-empty { padding: 26px 22px; color: var(--muted); }

/* ---- contact / footer ------------------------------------------ */

.contact-box {
  border: 1px solid var(--line-warm); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 44px); background: linear-gradient(180deg, rgba(163,212,58,.06), rgba(163,212,58,0));
  text-align: center;
}
.contact-box .mail { font-size: clamp(1.15rem, 3.4vw, 1.7rem); font-weight: 650; letter-spacing: -.01em; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: .88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer .spacer { margin-left: auto; }

/* ---- photographs ----------------------------------------------- */

/* The hero photograph sits behind everything the hero holds. It is not
   darkened in the file - it is darkened here, so the treatment can be
   tuned without exporting the picture again. Heaviest on the left,
   where the text is; lightest on the right, where the room shows. */
.hero.has-media { isolation: isolate; min-height: min(76vh, 700px); display: flex; align-items: center; }
.hero.has-media .wrap { width: 100%; }

.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 58%;
  filter: saturate(1.08) contrast(1.04);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,12,10,.96) 0%, rgba(11,12,10,.88) 30%, rgba(11,12,10,.5) 62%, rgba(11,12,10,.24) 100%),
    linear-gradient(0deg, #0b0c0a 2%, rgba(11,12,10,.1) 58%);
}

/* A framed photograph next to a block of text. */
.split { display: grid; gap: 36px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; }
.split + .grid { margin-top: 2.6em; }
.split .section-head { margin-bottom: 0; }

.figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; line-height: 0; }
.figure img { width: 100%; height: auto; }
.figure figcaption {
  font-size: .82rem; color: var(--muted); line-height: 1.5;
  padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-soft);
}


/* ---- responsive ------------------------------------------------ */

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  /* On a phone the text covers the whole width, so the picture is
     darkened evenly instead of from the left. */
  /* Un telephone recadre durement la photo 2:1 : on vise la droite du
     panneau, la ou sont les voyants, sinon il ne reste que du noir. */
  .hero.has-media { min-height: 0; }
  .hero-media img { object-position: 74% 46%; }
  .hero-media::after {
    background:
      linear-gradient(0deg, #0b0c0a 4%, rgba(11,12,10,.68) 55%, rgba(11,12,10,.5) 100%),
      linear-gradient(90deg, rgba(11,12,10,.5) 0%, rgba(11,12,10,.08) 100%);
  }
  body { font-size: 16px; }
  .site-header .wrap { flex-wrap: wrap; gap: 10px 16px; padding-block: 12px; min-height: 0; }
  .nav { gap: 16px; font-size: .9rem; order: 3; width: 100%; }
  .track { grid-template-columns: auto minmax(0,1fr); row-gap: 12px; }
  .track-time { display: none; }
  .ab { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
