/* ==========================================================================
   RBS — Propage la mélodie · site public
   Design repris de la maquette RBS8 « version noire » :
   bandeau défilant noir, hero noir, sections crème, cartes blanches numérotées,
   Instrument Serif (titres) + DM Sans (texte) + JetBrains Mono (étiquettes), accents or.
   ========================================================================== */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #F2F0EB;      /* fond crème */
  --paper-2: #E9E6DF;    /* sections alternées */
  --white: #FFFFFF;
  --ink: #111111;        /* texte */
  --ink-2: #3D3A35;
  --ink-3: #6B675F;
  --night: #0E0E0E;      /* hero, bandeaux, pied de page */
  --night-2: #1A1917;
  --on-night: #F2F0EB;
  --on-night-2: #CFCAC0;
  --on-night-3: #A39E94;
  --gold: #C9A46A;       /* accent sur fond noir */
  --gold-ink: #8A5A1C;   /* accent sur fond clair */
  --line: #D9D5CC;
  --line-night: #5A5650;
  --line-night-2: #2E2C29;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }
.center { text-align: center; }
.small { font-size: .9rem; }
.muted { color: var(--ink-3); }
.mt { margin-top: 48px; }
.mt-lg { margin-top: 80px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-lg { width: 38px; height: 38px; }
.ic-xl { width: 64px; height: 64px; }

/* Étiquettes & titres */
.kicker, .mono-label { font: 400 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin: 0; }
.kicker-gold { color: var(--gold); }
.mono-label { display: block; font-size: 11px; letter-spacing: .1em; color: var(--ink-3); }
.h1 { font-size: clamp(2.8rem, 6.4vw, 4.75rem); line-height: 1.02; letter-spacing: -.01em; }
.h1 em, .h2 em { font-style: italic; color: var(--gold); }
.h1-sm { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.h1-page { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }
.h2 { font-size: clamp(2.2rem, 4.4vw, 3.375rem); }
.h2-light { color: var(--on-night); }
.h3 { font-size: 2rem; margin-bottom: 20px; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 680px; margin: 14px 0 0; }

/* Boutons (pilules) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 26px; border-radius: 999px; font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn-light { background: var(--paper); color: var(--night); }
.btn-light:hover { background: #fff; color: var(--night); }
.btn-ghost { background: transparent; color: var(--on-night); border-color: var(--line-night); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--gold-ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 14px; font-weight: 500; }
.btn-lg { min-height: 56px; padding: 16px 32px; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Bandeau défilant */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; white-space: nowrap; padding: 10px 0; font: 400 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.marquee-track { display: inline-flex; gap: 48px; padding-left: 48px; animation: rbs-marquee 45s linear infinite; }
@keyframes rbs-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* En-tête */
.top { position: sticky; top: 0; z-index: 50; background: rgba(242, 240, 235, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.brand-mark { font: 400 30px/1 var(--serif); letter-spacing: .02em; }
.menu { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 22px; font-size: 15px; }
.menu a:not(.btn) { text-decoration: none; color: var(--ink); padding: 8px 0; border-bottom: 1px solid transparent; }
.menu a:not(.btn):hover, .menu a[aria-current="page"] { color: var(--gold-ink); border-bottom-color: var(--gold-ink); }
.menu .btn { margin-left: 6px; }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

/* Hero noir */
.hero { background: var(--night); color: var(--on-night); }
.hero-in { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 96px; padding-bottom: 104px; }
.hero-txt { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-txt .actions { margin-top: 0; }
.hero-lead { font-size: 18px; color: var(--on-night-2); max-width: 540px; margin: 0; }
.hero-logo { flex: 1 1 440px; min-width: 0; margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-night-2); }
.hero-logo img { width: 100%; height: auto; }

/* Bandeau des piliers */
.band { border-bottom: 1px solid var(--line); padding: 16px 0; font: 400 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.band-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }

/* Sections */
.sec { padding: 104px 0 96px; }
.sec-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; }
.sec-head-txt { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.sec-head .lead { margin: 0; }
.more { font-weight: 600; font-size: 15px; color: var(--ink); }

/* Cartes univers (numérotées, comme « RBS / RBSBIS / RBS8 » de la maquette) */
.unis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.uni { display: flex; flex-direction: column; gap: 14px; min-height: 300px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.uni:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.uni-img { width: calc(100% + 64px); max-width: none; margin: -32px -32px 4px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px 6px 0 0; }
.uni-top { display: flex; justify-content: space-between; align-items: center; }
.uni-n { font: 400 12px/1 var(--mono); color: var(--ink-3); }
.uni-ic { color: var(--gold-ink); }
.uni-t { font: 400 40px/1.02 var(--serif); }
.uni-s { color: var(--ink-2); flex-grow: 1; }
.uni-go { font-weight: 600; font-size: 14px; }
.uni-dark { background: var(--ink); border-color: var(--ink); color: var(--on-night); }
.uni-dark:hover { color: var(--on-night); border-color: var(--gold); }
.uni-dark .uni-n { color: var(--on-night-3); }
.uni-dark .uni-ic, .uni-dark .uni-t { color: var(--gold); }
.uni-dark .uni-s { color: var(--on-night-2); }

/* Cartes de contenu (comme « Créations & expérimentations ») */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: border-color .2s; }
.card:hover { border-color: var(--ink); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.card-link:hover { color: var(--ink); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--night-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-ic { color: var(--gold); opacity: .9; }
.card-play { position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; background: rgba(14, 14, 14, .55); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-t { font: 400 26px/1.15 var(--serif); }
.card-p { color: var(--ink-2); font-size: 15px; margin: 4px 0 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--ink-2); }
.price { font-weight: 700; color: var(--ink); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--ink-3); color: var(--ink-2); }
.badge.big { font-size: 15px; padding: 8px 16px; }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--ink-3); border-radius: 6px; color: var(--ink-2); background: rgba(255, 255, 255, .4); }
.empty p { margin: 0; }

/* Étapes numérotées (comme « Chacun apporte sa part. ») */
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--ink); }
.steps-grid a { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 28px 0; text-decoration: none; color: var(--ink); }
.steps-grid a:hover .step-t { color: var(--gold-ink); }
.step-n { font: 400 56px/1 var(--serif); color: var(--gold-ink); }
.step-t { font-size: 19px; font-weight: 600; }
.step-s { color: var(--ink-2); }

/* Événements */
.events { display: grid; border-top: 1px solid var(--ink); }
.event { display: flex; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.event:hover { color: var(--ink); }
.event:hover .event-t { color: var(--gold-ink); }
.event-date { width: 76px; flex: none; }
.event-date b { display: block; font: 400 48px/1 var(--serif); color: var(--gold-ink); }
.event-date i { font: 400 11px/1.4 var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.event-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.event-t { font: 400 28px/1.15 var(--serif); }
.event-m { color: var(--ink-2); font-size: 15px; }
.event-go { font-size: 22px; }
.events.past .event { opacity: .55; }

/* Vidéos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--night-2); }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(14, 14, 14, .6); color: var(--gold); cursor: pointer; display: grid; place-items: center; }
.yt-play:hover { background: rgba(14, 14, 14, .85); }
.yt-note { position: absolute; left: 12px; bottom: 10px; font: 400 11px/1.4 var(--mono); color: #eee; background: rgba(0, 0, 0, .55); padding: 3px 8px; border-radius: 4px; }
.video-t { display: block; margin-top: 12px; font: 400 24px/1.2 var(--serif); color: var(--ink); text-decoration: none; }

/* Bandeau noir (comme « Les porteurs d'eau ») */
.dark-band { background: var(--night); color: var(--on-night); }
.dark-band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; padding-top: 96px; padding-bottom: 96px; }
.dark-band-txt { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.dark-band .actions { margin-top: 0; }
.mt-lg.dark-band { border-radius: 6px; padding: 48px 40px; }
.clef { font-family: "Noto Music", "Segoe UI Symbol", "Apple Symbols", serif; font-style: normal; color: var(--gold); }
.cartouche { font: 400 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-2); padding: 10px 26px; border: 1px solid var(--line-night); margin: 0; clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%); }

/* Journal (comme la maquette) */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.post-card a { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--ink); padding-top: 20px; text-decoration: none; color: var(--ink); }
.post-card a:hover .post-card-t { color: var(--gold-ink); }
.post-card-t { font: 400 30px/1.15 var(--serif); }
.post-card-p { color: var(--ink-2); }

/* En-têtes de page */
.phead { position: relative; background: var(--night); color: var(--on-night); padding: 88px 0 80px; overflow: hidden; isolation: isolate; }
.phead-in { display: flex; flex-direction: column; gap: 20px; }
.phead-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; }
.phead-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 14, 14, .95), rgba(14, 14, 14, .5)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid #8C877D; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Détail d'une publication */
.crumbs { font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 32px; }
.crumbs a { color: var(--ink-3); }
.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.detail-img { width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.ph-big { aspect-ratio: 4 / 3; border-radius: 6px; background: var(--night-2); display: grid; place-items: center; color: var(--gold); }
.detail-info { display: flex; flex-direction: column; gap: 14px; }
.detail-info .lead { margin: 0; }
.facts { margin: 10px 0 0; border-top: 1px solid var(--ink); }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-3); font: 400 12px/1.8 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.player { margin-top: 10px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.player audio { width: 100%; margin-top: 6px; }
.detail-info .yt { margin-top: 10px; }
.prose { max-width: 740px; margin-top: 56px; font-size: 17px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.post-img { width: 100%; border-radius: 6px; margin: 28px 0; border: 1px solid var(--line); }

/* Formulaires */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font-weight: 600; margin-top: 14px; }
input[type="text"], input[type="email"], input:not([type]), textarea { width: 100%; background: var(--white); border: 1px solid #8C877D; color: var(--ink); border-radius: 12px; padding: 13px 16px; font: 400 16px/1.4 var(--sans); min-height: 48px; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(138, 90, 28, .18); }
.form .btn { margin-top: 22px; align-self: flex-start; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold-ink); flex: none; }
.flash { padding: 14px 16px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); margin: 0 0 8px; }
.flash.ok { border-color: #2e7d4f; color: #1f5c39; background: #edf6f0; }
.flash.err { border-color: #b3261e; color: #8f1f19; background: #fbeceb; }
.contact-side { padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; align-self: start; }
.contact-side p { display: flex; gap: 12px; align-items: center; }
.contact-side .ic { color: var(--gold-ink); }

/* Pied de page noir */
.foot { background: var(--night); color: var(--on-night-2); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-mark { font: 400 40px/1 var(--serif); color: var(--on-night); }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot-col .mono-label { color: var(--on-night-3); letter-spacing: .14em; padding-bottom: 6px; }
.foot a { color: var(--on-night-2); text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line-night-2); font-size: 13px; color: var(--on-night-3); }
.foot .socials { display: flex; gap: 8px; }
.foot .socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-night); border-radius: 50%; }
.foot .socials a:hover { border-color: var(--gold); }
.nl { display: flex; flex-direction: column; gap: 10px; }
.nl input[type="email"] { background: transparent; color: var(--on-night); border-color: var(--line-night); border-radius: 999px; padding: 12px 18px; }
.nl input[type="email"]::placeholder { color: var(--on-night-3); }
.nl .check { color: var(--on-night-3); font-size: 13px; }
.nl .btn { width: 100%; }

/* Maintenance */
.maint { min-height: 100vh; display: grid; place-items: center; background: var(--night); color: var(--on-night); }
.maint-logo { width: min(520px, 90vw); border-radius: 6px; margin: 0 auto 30px; }

/* Responsive */
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .menu { position: fixed; left: 0; right: 0; top: 0; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 90px 24px 28px; background: var(--paper); border-bottom: 1px solid var(--line); max-height: 100vh; overflow-y: auto; transform: translateY(-105%); visibility: hidden; transition: transform .25s ease, visibility .25s; z-index: -1; }
  .menu.open { transform: none; visibility: visible; }
  .menu a:not(.btn) { padding: 15px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .menu .btn { margin: 18px 0 0; }
  .unis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 72px 0 64px; }
  .hero-in { padding-top: 56px; padding-bottom: 64px; gap: 36px; }
  .unis { grid-template-columns: 1fr; }
  .uni { min-height: 0; padding: 26px; }
  .uni-img { width: calc(100% + 52px); margin: -26px -26px 4px; }
  .uni-t { font-size: 34px; }
  .detail-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .event { gap: 16px; }
  .event-date { width: 58px; }
  .event-date b { font-size: 38px; }
  .event-t { font-size: 22px; }
  .videos { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 auto; }
  .band-in { justify-content: flex-start; }
  .mt-lg.dark-band { padding: 36px 22px; }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
