/* ============================================================
   Mr WAY — feuille de style principale
   Nuit indigo · laiton patiné · trois écritures
   ============================================================ */

/* ---------- Jetons ---------- */
:root {
  /* Couleurs : la nuit de Meknès, pas du noir */
  --night:      #0d1120;
  --well:       #080b14;
  --raised:     #151b2e;
  --line:       #232b42;
  --brass:      #c8964e;
  --brass-lit:  #e3b77a;
  --parchment:  #ede6da;
  --muted:      #8f96ad;
  --henna:      #9c3b2e;

  /* Typographie */
  --display: "Fraunces", Georgia, serif;
  --arabic:  "Amiri", "Times New Roman", serif;
  --text:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --text-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;

  --t-xs:  0.8125rem;
  --t-sm:  0.9375rem;
  --t-md:  1.0625rem;
  --t-lg:  1.3125rem;
  --t-xl:  1.75rem;
  --t-2xl: clamp(2rem, 4vw, 3rem);
  --t-3xl: clamp(2.75rem, 7vw, 5rem);
  --t-4xl: clamp(3.25rem, 12vw, 9rem);

  /* Rythme */
  --gutter:  clamp(1.25rem, 5vw, 4.5rem);
  --rail:    clamp(0px, 8vw, 7.5rem);
  --measure: 64ch;
  --section: clamp(4.5rem, 11vh, 8.5rem);
  --player-h: 76px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--parchment);
  font-family: var(--text);
  font-size: var(--t-md);
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  padding-bottom: var(--player-h);
  overflow-x: hidden;
}

body[dir="rtl"] { font-family: var(--text-ar); }

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brass-lit);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--brass); color: var(--well); }

/* ---------- Utilitaires ---------- */
.shell {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--brass); color: var(--well);
  padding: .75rem 1.25rem; font-weight: 600;
}
.skip-link:focus { inset-inline-start: 0; }

/* ============================================================
   En-tête
   ============================================================ */
.masthead {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem var(--gutter);
  background: color-mix(in srgb, var(--night) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.masthead.is-scrolled { border-bottom-color: var(--line); }

/* Le logotype empile les deux écritures du nom */
.wordmark { display: grid; line-height: .9; }
.wordmark .latin {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  letter-spacing: -0.015em;
}
.wordmark .arabic {
  font-family: var(--arabic);
  font-size: 1rem;
  color: var(--brass);
  margin-top: .15rem;
}

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2rem); }
.nav a {
  font-size: var(--t-sm);
  color: var(--muted);
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav a:hover { color: var(--parchment); }
.nav a[aria-current="page"] { color: var(--parchment); border-bottom-color: var(--brass); }

.lang-switch { display: flex; gap: .1rem; align-items: center; margin-inline-start: .5rem; }
.lang-switch a {
  font-size: var(--t-xs);
  padding: .25rem .5rem;
  color: var(--muted);
  border-bottom: none;
}
.lang-switch a[aria-current="true"] { color: var(--brass); }
.lang-switch span { color: var(--line); }

.nav-toggle {
  display: none; margin-inline-start: auto;
  background: none; border: 0; color: var(--parchment);
  padding: .5rem; cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  /* Le header porte un backdrop-filter : il devient le bloc conteneur de ses
     descendants positionnés. Le menu est donc un panneau déroulant sous le
     header, et non un calque plein écran. */
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 95;
    flex-direction: column; align-items: stretch;
    gap: 0; margin: 0;
    padding: .25rem var(--gutter) 1.25rem;
    background: var(--well);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a {
    font-family: var(--display); font-size: var(--t-lg); color: var(--parchment);
    padding-block: .9rem; border-bottom: 1px solid var(--line);
  }
  .nav a[aria-current="page"] { color: var(--brass-lit); border-bottom-color: var(--brass); }
  .lang-switch { margin: 1.25rem 0 0; justify-content: center; }
  .lang-switch a { font-size: var(--t-md); border-bottom: none; }
}

/* ============================================================
   Hero — l'image en pleine page, le nom en deux écritures
   La photo place le sujet à gauche : le texte occupe le vide à droite.
   ============================================================ */
.hero {
  position: relative;
  min-height: min(88vh, 800px);
  display: grid;
  /* Sans cette borne, la colonne se dimensionne sur le titre non sécable du
     bandeau « dernière sortie » et déborde l'écran sur mobile. */
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
.hero-media { grid-area: 1 / 1; position: relative; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 22% center;
  /* La photo est déjà en noir et blanc : on la pousse vers la nuit. */
  filter: contrast(1.12) brightness(.62);
  transform: scale(1.05);
  animation: hero-settle 2.4s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--night) 3%, color-mix(in srgb, var(--night) 45%, transparent) 40%, transparent 72%),
    linear-gradient(to left, color-mix(in srgb, var(--night) 82%, transparent), transparent 58%),
    radial-gradient(90% 70% at 18% 45%, color-mix(in srgb, var(--brass) 16%, transparent), transparent 62%);
}
@keyframes hero-settle { to { transform: scale(1); } }

.hero-body {
  grid-area: 1 / 1;
  position: relative; z-index: 2;
  align-self: end;
  padding: 0 var(--gutter) clamp(2.5rem, 7vh, 5rem);
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}
.hero-content { width: 100%; }
@media (min-width: 900px) {
  /* Marge physique volontaire : le sujet de la photo reste à gauche
     même en lecture de droite à gauche. */
  .hero-content { width: min(600px, 55%); margin-left: auto; }
}

.hero-name { margin: 0; line-height: .82; }
.hero-name .latin {
  display: block;
  font-family: var(--display);
  font-size: var(--t-4xl);
  font-weight: 600;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 120;
  letter-spacing: -0.035em;
  text-transform: none;
}
.hero-name .arabic {
  display: block;
  font-family: var(--arabic);
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  color: var(--brass-lit);
  margin-top: .35rem;
  line-height: 1.4;
}
.hero-tagline {
  max-width: 46ch;
  margin: 1.5rem 0 0;
  color: var(--parchment);
  opacity: .82;
  font-size: var(--t-lg);
  text-wrap: balance;
}

/* Bandeau de la dernière sortie, ancré au bas du hero */
.hero-latest {
  display: flex; align-items: center; gap: 1rem;
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  padding: .75rem .75rem .75rem .75rem;
  background: color-mix(in srgb, var(--well) 72%, transparent);
  border: 1px solid var(--line);
  border-radius: 6px;
  width: fit-content;
  max-width: 100%;
  backdrop-filter: blur(8px);
}
.hero-latest img { width: 60px; height: 60px; border-radius: 4px; object-fit: cover; }
.hero-latest .meta { min-width: 0; }
.hero-latest .kicker { font-size: var(--t-xs); color: var(--brass); }
.hero-latest .title {
  font-family: var(--display); font-size: var(--t-lg); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================================
   Boutons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font: inherit; font-size: var(--t-sm); font-weight: 500;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--brass);
  background: transparent; color: var(--brass-lit);
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.btn:hover { background: var(--brass); color: var(--well); }
.btn-solid { background: var(--brass); color: var(--well); }
.btn-solid:hover { background: var(--brass-lit); }

.btn-play {
  flex: 0 0 auto;
  width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--brass);
  background: transparent; color: var(--brass-lit);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn-play:hover, .btn-play[aria-pressed="true"] { background: var(--brass); color: var(--well); }

.track-title a { color: inherit; }
.track-title a:hover { color: var(--brass-lit); }

/* ============================================================
   Page individuelle d'une sortie
   ============================================================ */
.release-back { margin: 0 0 clamp(2rem, 5vh, 3.5rem); }
.release-back a { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: var(--t-sm); }
.release-back a:hover { color: var(--brass-lit); }
.release-grid { display: grid; grid-template-columns: minmax(260px, 48%) minmax(0, 1fr); gap: clamp(2rem, 8vw, 7rem); align-items: center; }
.release-cover { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.release-info { min-width: 0; }
.release-kicker { color: var(--brass); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .9rem; }
.release-info .section-title { font-size: var(--t-3xl); }
.release-artist { margin: 1rem 0 0; font-size: var(--t-lg); color: var(--parchment); }
.release-date { margin: .35rem 0 0; color: var(--muted); font-size: var(--t-sm); }
.release-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.release-share { display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: center; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-xs); }
.release-share a { color: var(--brass-lit); }
.release-share a:hover { color: var(--parchment); }
.lyrics-section { max-width: 760px; margin-top: clamp(3.5rem, 8vh, 6rem); padding-top: clamp(2rem, 5vh, 3.5rem); border-top: 1px solid var(--line); }
.lyrics-text { margin-top: 1.5rem; color: var(--parchment); font-size: var(--t-md); line-height: 1.9; white-space: normal; }
body[dir="rtl"] .lyrics-text { font-family: var(--text-ar); text-align: right; }
.audio-visualizer { display: block; width: 100%; height: 72px; margin-top: 1.75rem; opacity: .85; }
.release-streams { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.popular-section { margin-top: clamp(4rem, 9vh, 7rem); padding-top: clamp(2rem, 5vh, 3rem); border-top: 1px solid var(--line); }
.recommendations { margin-top: clamp(4rem, 9vh, 7rem); padding-top: clamp(2rem, 5vh, 3rem); border-top: 1px solid var(--line); }
.recommendation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.recommendation { display: block; color: var(--parchment); }
.recommendation img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; margin-bottom: .65rem; }
.recommendation span { font-family: var(--display); font-size: var(--t-lg); }
.recommendation:hover { color: var(--brass-lit); }
@media (max-width: 620px) { .recommendation-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .release-grid { grid-template-columns: 1fr; gap: 2rem; }
  .release-cover-wrap { max-width: 520px; }
}

.radio-console { display: grid; grid-template-columns: minmax(220px, 42%) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; max-width: 980px; padding: clamp(1rem, 3vw, 2rem); background: var(--raised); border: 1px solid var(--line); border-radius: 8px; }
.radio-artwork { position: relative; }
.radio-artwork img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--well); }
.radio-live { position: absolute; top: 1rem; inset-inline-start: 1rem; padding: .25rem .5rem; background: var(--brass); color: var(--well); border-radius: 3px; font-size: .68rem; font-weight: 600; letter-spacing: .08em; }
.radio-console-body { min-width: 0; }
.radio-kicker { color: var(--muted); max-width: 46ch; margin: 0 0 2rem; }
.radio-now-label { color: var(--brass); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; }
.radio-console h2 { margin: .55rem 0 .25rem; font-family: var(--display); font-size: var(--t-2xl); line-height: 1.05; }
.radio-console-body > p:not(.radio-kicker) { color: var(--muted); margin: 0; }
.radio-progress { display: flex; align-items: center; gap: .65rem; margin-top: 2rem; color: var(--muted); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.radio-progress-bar { position: relative; flex: 1; height: 4px; background: var(--line); border-radius: 2px; }
.radio-progress-bar #radio-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--brass); border-radius: 2px; }
.radio-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.radio-control { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.radio-control:hover { color: var(--parchment); border-color: var(--brass); }
.radio-control-main { width: 56px; height: 56px; border-color: var(--brass); background: var(--brass); color: var(--well); }
.radio-control-main:hover { background: var(--brass-lit); color: var(--well); }
.radio-queue { display: none; }
.radio-empty { color: var(--muted); }
@media (max-width: 620px) {
  .radio-console { grid-template-columns: 1fr; }
  .radio-artwork { max-width: 420px; }
  .radio-kicker { margin-bottom: 1.5rem; }
}

/* ============================================================
   Sections et rail d'information
   ============================================================ */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section-well { background: var(--well); }

/* Le rail porte une donnée (année, compte), jamais un ornement */
.section-head {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.section-head .rail {
  font-size: var(--t-xs);
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  padding-top: .6rem;
}
.section-title {
  margin: 0;
  font-family: var(--display);
  font-size: var(--t-2xl);
  font-weight: 600;
  font-variation-settings: "SOFT" 25, "WONK" 1;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
body[dir="rtl"] .section-title { font-family: var(--arabic); }

.section-body { display: grid; grid-template-columns: var(--rail) 1fr; gap: 1rem; }
@media (max-width: 720px) {
  .section-head, .section-body { grid-template-columns: 1fr; }
  .section-head .rail { padding-top: 0; }
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.35em; }
.prose p:last-child { margin-bottom: 0; }
.prose-lead { font-size: var(--t-lg); line-height: 1.6; }

/* ============================================================
   Discographie — un registre, pas une grille de cartes
   ============================================================ */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { border-top: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 1px solid var(--line); }

.track {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: clamp(.9rem, 2.5vw, 1.75rem);
  padding-block: clamp(.85rem, 2vh, 1.15rem);
  transition: background .2s ease;
}
.track:hover, .track.is-current { background: color-mix(in srgb, var(--brass) 7%, transparent); }
.track-cover { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; background: var(--raised); }
.track-title {
  font-family: var(--display);
  font-size: var(--t-lg);
  font-weight: 500;
  font-variation-settings: "SOFT" 20;
  line-height: 1.2;
  margin: 0;
}
.track.is-current .track-title { color: var(--brass-lit); }
.track-year { font-size: var(--t-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .track { grid-template-columns: 48px 1fr auto; }
  .track-cover { width: 48px; height: 48px; }
  .track-year { display: none; }
}

/* Sortie mise en avant */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.feature img { width: 100%; border-radius: 6px; aspect-ratio: 1; object-fit: cover; }
.feature h3 {
  font-family: var(--display);
  font-size: var(--t-2xl);
  font-weight: 600;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  margin: .4rem 0 .75rem;
  line-height: 1.05;
}
@media (max-width: 720px) { .feature { grid-template-columns: 1fr; } }

/* ============================================================
   Mosaïque photos — un contact sheet, tailles inégales
   ============================================================ */
.mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  grid-auto-rows: 150px;
  /* Les vignettes plus petites viennent combler les creux laissés par les grandes. */
  grid-auto-flow: dense;
  gap: 6px;
}
.mosaic a {
  position: relative; overflow: hidden;
  background: var(--raised);
  border-radius: 3px;
}
.mosaic img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.35) brightness(.9);
  transition: filter .35s ease, transform .6s cubic-bezier(.22,.61,.36,1);
}
.mosaic a:hover img, .mosaic a:focus-visible img { filter: none; transform: scale(1.04); }
.mosaic .tall  { grid-row: span 2; }
.mosaic .wide  { grid-column: span 2; }
.mosaic .large { grid-row: span 2; grid-column: span 2; }
@media (max-width: 560px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .mosaic .large, .mosaic .wide { grid-column: span 2; }
}

/* ============================================================
   Vidéos
   ============================================================ */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.video-item { display: block; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 5px; overflow: hidden; background: var(--raised);
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); transition: filter .3s ease; }
.video-item:hover .video-frame img { filter: brightness(1); }
.video-frame::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 40%, color-mix(in srgb, var(--well) 45%, transparent));
}
.video-frame .cue {
  position: absolute; z-index: 2; inset-block-end: .75rem; inset-inline-start: .75rem;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: color-mix(in srgb, var(--well) 80%, transparent);
  border: 1px solid var(--brass); color: var(--brass-lit);
  transition: background .25s ease, color .25s ease;
}
.video-item:hover .cue { background: var(--brass); color: var(--well); }
.video-item h3 {
  font-family: var(--display); font-size: var(--t-md); font-weight: 500;
  margin: .7rem 0 0; line-height: 1.3;
}
.video-item.is-lead { grid-column: 1 / -1; }

/* Modale vidéo */
.modal {
  position: fixed; inset: 0; z-index: 150;
  display: none; place-items: center;
  padding: var(--gutter);
  background: color-mix(in srgb, var(--well) 92%, transparent);
  backdrop-filter: blur(6px);
}
.modal.is-open { display: grid; }
.modal-inner { width: min(1100px, 100%); }
.modal-inner .ratio { position: relative; aspect-ratio: 16 / 9; }
.modal-inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }
.modal-inner img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.modal-close {
  position: absolute; top: 1rem; inset-inline-end: 1rem;
  background: none; border: 1px solid var(--line); color: var(--parchment);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.25rem;
}
.modal-close:hover { border-color: var(--brass); color: var(--brass-lit); }
.modal-caption { margin-top: .85rem; color: var(--muted); font-size: var(--t-sm); text-align: center; }

/* ============================================================
   Bio multilingue — les trois versions se répondent
   ============================================================ */
.bio-main { font-size: var(--t-lg); line-height: 1.7; max-width: var(--measure); }
.bio-alt { margin-top: clamp(2.5rem, 6vh, 4rem); display: grid; gap: 2rem; }
.bio-alt article { max-width: var(--measure); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.bio-alt .lang-name { font-size: var(--t-xs); color: var(--brass); margin-bottom: .6rem; }
.bio-alt p { color: var(--muted); font-size: var(--t-sm); margin: 0 0 1em; }
.bio-alt [lang="ar"] { font-family: var(--text-ar); direction: rtl; text-align: right; }
.bio-main[lang="ar"], .bio-main [lang="ar"] { font-family: var(--text-ar); direction: rtl; }

/* ============================================================
   Booking
   ============================================================ */
.booking-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
@media (max-width: 860px) { .booking-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: var(--t-sm); color: var(--muted); margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: var(--t-sm);
  color: var(--parchment);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .75rem .9rem;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--brass); }
.field textarea { min-height: 150px; resize: vertical; }
.field.has-error input, .field.has-error textarea { border-color: var(--henna); }
.field .err { display: block; color: var(--henna); font-size: var(--t-xs); margin-top: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.notice { padding: 1rem 1.15rem; border-radius: 4px; margin-bottom: 1.75rem; font-size: var(--t-sm); }
.notice-ok  { background: color-mix(in srgb, var(--brass) 14%, transparent); border: 1px solid var(--brass); color: var(--brass-lit); }
.notice-bad { background: color-mix(in srgb, var(--henna) 16%, transparent); border: 1px solid var(--henna); }

.contact-card { border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.25rem, 3vw, 2rem); background: var(--raised); }
.contact-card h3 { font-family: var(--display); font-size: var(--t-lg); margin: 0 0 1.25rem; font-weight: 600; }
.contact-line { display: flex; align-items: center; gap: .8rem; padding-block: .7rem; border-top: 1px solid var(--line); }
.contact-line:first-of-type { border-top: 0; }
.contact-line .ico { color: var(--brass); flex: 0 0 auto; }
.contact-line a { font-size: var(--t-sm); word-break: break-word; }
.contact-line a:hover { color: var(--brass-lit); }

/* ============================================================
   Plateformes et pied de page
   ============================================================ */
.platforms { display: flex; flex-wrap: wrap; gap: .6rem; }
.platform {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--t-sm); color: var(--muted);
  padding: .55rem 1rem;
  border: 1px solid var(--line); border-radius: 999px;
  transition: color .2s ease, border-color .2s ease;
}
.platform:hover { color: var(--brass-lit); border-color: var(--brass); }

.footer { background: var(--well); border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 6vh, 4rem); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: flex-end; justify-content: space-between; }
.footer .wordmark .latin { font-size: 1.25rem; }
.footer small { color: var(--muted); font-size: var(--t-xs); }

/* ============================================================
   Lecteur persistant — le site joue
   ============================================================ */
.player {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 120;
  display: grid; grid-template-columns: minmax(0, auto) minmax(0,1fr) auto;
  align-items: center; gap: 1rem;
  height: var(--player-h);
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--well) 94%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.player.is-active { transform: translateY(0); }
.player.is-loading .track-name::after { content: ' · …'; color: var(--brass); }
.player-id { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.player-id img { width: 46px; height: 46px; border-radius: 3px; object-fit: cover; background: var(--raised); }
.player-id .now { min-width: 0; }
.player-id .track-name {
  font-family: var(--display); font-size: var(--t-sm); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-id .artist { font-size: var(--t-xs); color: var(--muted); }

.player-transport { display: flex; align-items: center; gap: .75rem; }
.player-transport button {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  padding: .35rem; display: grid; place-items: center;
}
.player-transport button:hover { color: var(--parchment); }
.player-transport .main {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brass); color: var(--well);
}
.player-transport .main:hover { background: var(--brass-lit); color: var(--well); }

.player-progress { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.player-progress .time { font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.player-bar {
  position: relative; flex: 1; height: 3px; min-width: 60px;
  background: var(--line); border-radius: 2px; cursor: pointer;
}
.player-bar .fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--brass); border-radius: 2px; }

@media (max-width: 720px) {
  .player {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "identity transport" "progress progress";
    gap: .35rem .75rem;
    height: auto;
    min-height: var(--player-h);
    padding-block: .5rem;
  }
  .player-id { grid-area: identity; }
  .player-transport { grid-area: transport; }
  .player-progress { grid-area: progress; display: flex; gap: .5rem; }
  .player-progress .time { font-size: .7rem; }
  .player-bar { min-width: 0; }
}

/* ---------- Réglages RTL ---------- */
body[dir="rtl"] .hero-body,
body[dir="rtl"] .section-head,
body[dir="rtl"] .prose { text-align: right; }
