/* =========================================================
   PROJECT 1789 — feuille de style principale
   Thème sombre et doré, sans bibliothèque externe.
   ========================================================= */

:root {
  --bg: #07080d;
  --bg-2: #0d0f18;
  --surface: #121522;
  --surface-2: #181c2c;
  --line: rgba(214, 171, 58, .22);
  --gold: #d6ab3a;
  --gold-light: #f2d36e;
  --gold-dark: #9a7424;
  --text: #ece6d8;
  --muted: #a9a294;
  --danger: #c2483c;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
::selection { background: var(--gold); color: #120d03; }

:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #120d03; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font: 600 .8rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 46rem; }
.center { text-align: center; margin-inline: auto; }
.gold-text {
  background: linear-gradient(180deg, #fff3c4 0%, var(--gold-light) 35%, var(--gold) 65%, var(--gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.divider { width: 120px; height: 2px; margin: 18px auto 26px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(7, 8, 13, .72);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(7, 8, 13, .9); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 1.05rem/1 var(--serif); letter-spacing: .14em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span b { color: var(--gold-light); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--text); padding: 10px 14px; border-radius: 10px; font-size: .95rem; }
.nav a:hover { background: rgba(214, 171, 58, .08); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold-light); }
.nav .btn { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 22px; background: rgba(7, 8, 13, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 6px; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 1.05rem; }
  .nav .btn { margin: 14px 0 0; text-align: center; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 700 1rem/1 var(--sans); letter-spacing: .04em; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: linear-gradient(180deg, #f6dc86, var(--gold) 55%, #b88a2a); color: #160f02; box-shadow: 0 10px 30px rgba(214, 171, 58, .28); }
.btn--gold:hover { box-shadow: 0 14px 40px rgba(214, 171, 58, .42); }
.btn--ghost { border-color: rgba(242, 211, 110, .45); color: var(--gold-light); background: rgba(214, 171, 58, .06); }
.btn--ghost:hover { background: rgba(214, 171, 58, .14); }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- Bannière d'accueil ---------- */
.hero { position: relative; min-height: min(92svh, 860px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; animation: hero-zoom 28s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 8, 13, .55) 0%, rgba(7, 8, 13, .15) 35%, rgba(7, 8, 13, .7) 72%, var(--bg) 100%); }
.hero__content { padding: 0 0 clamp(48px, 9vh, 96px); }
.hero__title { font-size: clamp(3rem, 11vw, 7.2rem); letter-spacing: .08em; margin-bottom: 12px; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
.hero__title .gold-text { filter: drop-shadow(0 4px 22px rgba(214, 171, 58, .25)); }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.page-hero { padding: clamp(56px, 10vw, 110px) 0 clamp(36px, 6vw, 60px); background: radial-gradient(ellipse at 50% 0%, rgba(214, 171, 58, .14), transparent 60%); border-bottom: 1px solid var(--line); }

/* ---------- Grilles et cartes ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(242, 211, 110, .45); }
.card__icon { font-size: 1.8rem; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; color: var(--muted); }

.feature-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li::before { content: "✦"; color: var(--gold); flex: none; margin-top: .05em; }

.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.frame img, .frame video { width: 100%; }

/* ---------- Catalogue ---------- */
.games { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.game-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; color: var(--text); }
.game-card:hover { text-decoration: none; }
.game-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.game-card:hover .game-card__media img { transform: scale(1.05); }
.game-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-card__body p { color: var(--muted); margin: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-light); background: rgba(214, 171, 58, .07); }
.badge--live { color: #8fe0a9; border-color: rgba(143, 224, 169, .35); background: rgba(143, 224, 169, .08); }

/* ---------- Page du jeu ---------- */
.game-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(80px, 14vw, 150px) 0 clamp(50px, 8vw, 90px); }
.game-hero__bg { position: absolute; inset: 0; z-index: -2; }
.game-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.game-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 8, 13, .95) 0%, rgba(7, 8, 13, .7) 55%, rgba(7, 8, 13, .4) 100%), linear-gradient(0deg, var(--bg), transparent 40%); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin: 0; }
.facts div { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.facts dt { font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.facts dd { margin: 0; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(70%, 280px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots figcaption { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.shots--wide { grid-auto-columns: min(88%, 640px); }
.note { color: var(--muted); font-size: .92rem; }

/* ---------- Page « Jouer » ---------- */
.play-body { background: #000; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.play-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 6px; background: #05060a; border-bottom: 1px solid var(--line); font-size: .9rem; }
.play-bar a { color: var(--gold-light); }
.play-frame { flex: 1; width: 100%; border: 0; display: block; background: #000; }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea {
  width: 100%; font: 16px/1.5 var(--sans); color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(214, 171, 58, .2); }
.alert { border: 1px solid rgba(194, 72, 60, .5); background: rgba(194, 72, 60, .1); border-radius: 12px; padding: 14px 16px; }
.alert--info { border-color: var(--line); background: rgba(214, 171, 58, .06); }

/* ---------- Feuille de route ---------- */
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.roadmap li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.status { font: 700 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.status--done { color: #8fe0a9; background: rgba(143, 224, 169, .1); }
.status--next { color: var(--gold-light); background: rgba(214, 171, 58, .12); }
.status--later { color: var(--muted); background: rgba(255, 255, 255, .06); }

/* ---------- Contenu texte (pages légales) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: #d8d2c4; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .92rem; }
.footer-inner { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer h2 { font: 700 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text); }
.copyright { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .85rem; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Espacements complémentaires */
.shots-title { margin-top: 56px; }
.games + .note { margin-top: 28px; }
.site-footer .brand + .note { margin-top: 12px; }

/* V2: improved touch targets, readable text and small screens */
@media (pointer: coarse) {
  .site-header .nav a, .site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
  .btn--small { min-height: 44px; }
}
@media (max-width: 360px) {
  .hero__title { overflow-wrap: anywhere; }
  .container { padding-left: 16px; padding-right: 16px; }
  .btn-row .btn { max-width: 100%; white-space: normal; text-align: center; }
}
img, video { max-width: 100%; }
:target { scroll-margin-top: 90px; }

/* PROJECT 1789 V3 — identité graphique officielle et finition premium */
:root{--bg:#050607;--bg-2:#0a0c0d;--surface:#101214;--surface-2:#171a1c;--line:rgba(219,206,173,.18);--gold:#c6aa77;--gold-light:#e9dcc2;--gold-dark:#8f7751;--text:#f4f0e8;--muted:#b7b3a9;--radius:10px;--max:1240px;--header-h:76px}
body{background:#050607;letter-spacing:.005em}
h1,h2,h3{letter-spacing:-.035em}
.eyebrow{font-size:.72rem;letter-spacing:.24em;color:#d8c29a}
.site-header{background:rgba(5,6,7,.85);border-bottom:1px solid rgba(255,255,255,.08)}
.brand{font-family:var(--sans);font-weight:800;font-size:.89rem;letter-spacing:.18em}
.brand img{width:42px;height:42px;object-fit:cover;border:1px solid rgba(255,255,255,.24);border-radius:4px}
.brand span b{color:#e9dcc2}
.nav a{font-size:.86rem;letter-spacing:.025em}
.btn{border-radius:5px;font-size:.88rem;letter-spacing:.05em;min-height:52px}
.btn--gold{background:#e2d2b3;color:#101010;box-shadow:none}
.btn--gold:hover{background:#fff0d0;box-shadow:0 12px 34px rgba(219,200,159,.16)}
.btn--ghost{background:rgba(0,0,0,.22);border-color:rgba(244,240,232,.45);color:#f4f0e8}
.btn--ghost:hover{background:rgba(255,255,255,.08)}
.hero--v3{min-height:min(91svh,850px);align-items:center}
.hero--v3 .hero__media img{filter:saturate(.55) brightness(.48)}
.hero--v3::after{background:linear-gradient(90deg,rgba(3,5,6,.95) 0%,rgba(3,5,6,.72) 55%,rgba(3,5,6,.55) 100%),linear-gradient(0deg,#050607,transparent 24%)}
.hero-v3-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(270px,.8fr);gap:clamp(24px,6vw,90px);align-items:center;padding-block:80px 100px}
.hero-v3-copy{padding:0}
.hero--v3 .hero__title{font-family:var(--sans);font-weight:850;font-size:clamp(3.1rem,6.5vw,6.5rem);line-height:.98;letter-spacing:-.075em;text-shadow:none;margin:16px 0 24px}
.hero--v3 .hero__title em{font-family:var(--serif);font-weight:400;letter-spacing:-.065em;color:#d5b98d}
.hero--v3 .lead{max-width:570px;font-size:clamp(1rem,1.6vw,1.18rem);line-height:1.8;color:#d0cbc3}
.hero-v3-art{max-width:440px;justify-self:end;width:100%}
.hero-v3-art-inner{padding:10px;border:1px solid rgba(255,255,255,.24);background:rgba(6,8,9,.5);box-shadow:0 25px 90px rgba(0,0,0,.55);transform:rotate(2deg)}
.hero-v3-art img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.hero-v3-art-label{font-size:.67rem;letter-spacing:.22em;text-align:center;color:#d6c7ae;padding:18px 4px 8px}
.hero-v3-meta{display:flex;flex-wrap:wrap;gap:22px;margin-top:54px;font-size:.64rem;letter-spacing:.17em;color:#bcb6aa}
.hero-v3-bottom{position:absolute;bottom:20px;left:max(20px,calc((100% - 1240px)/2));right:max(20px,calc((100% - 1240px)/2));display:flex;justify-content:space-between;gap:12px;font-size:.62rem;letter-spacing:.17em;color:#bbb4a7}
.section{padding-block:clamp(70px,9vw,125px)}
.card{box-shadow:none;border-color:rgba(255,255,255,.11);background:#101214}
.card:hover{border-color:#ad9976}
.frame{box-shadow:0 28px 70px rgba(0,0,0,.45)}
.site-footer{border-top:1px solid rgba(255,255,255,.1)}
@media(max-width:820px){.hero-v3-grid{grid-template-columns:1fr;gap:38px;padding-block:65px 90px}.hero-v3-art{max-width:360px;justify-self:center}.hero--v3 .hero__title{font-size:clamp(3.1rem,11vw,5.2rem)}.hero-v3-meta{margin-top:32px}.hero--v3{min-height:auto}.hero-v3-bottom{font-size:.53rem}.nav{background:rgba(5,6,7,.98)}}
@media(max-width:380px){.hero--v3 .hero__title{font-size:2.8rem}.hero-v3-bottom span:first-child{display:none}}
@media(prefers-reduced-motion:reduce){.hero-v3-art-inner{transform:none}}

/* ---- V4: mobile polish, subtle logo, bilingual navigation ---- */
.hero-v4-grid { width:100%; max-width:var(--max); margin-inline:auto; display:block; padding-block:clamp(92px,14vh,155px) clamp(105px,14vh,160px); }
.hero-v4-grid .hero-v3-copy { max-width:750px; }
.hero--v3 .hero__title { overflow-wrap:normal; word-break:normal; }
.hero--v3 .btn-row { margin-top:28px; }
.hero--v3 .hero-v3-meta { margin-top:42px; }
.hero-v3-bottom { pointer-events:none; }
.site-header .brand { flex:none; }
.site-header .brand span { white-space:nowrap; }
.language-switch { display:inline-flex; align-items:center; justify-content:center; flex:none; min-width:44px; min-height:44px; font:700 .82rem/1 var(--sans); letter-spacing:.1em; color:var(--gold-light); border:1px solid rgba(233,220,194,.28); border-radius:8px; text-decoration:none; }
.language-switch:hover { background:rgba(233,220,194,.08); text-decoration:none; }
.nav-toggle { flex:none; }
.header-inner>.language-switch { order:3; }
@media (max-width:820px) { 
 .header-inner { gap:10px; } .header-inner>.language-switch { margin-left:auto; order:0; }
 .hero-v4-grid { padding-top:clamp(80px,13vh,120px); padding-bottom:clamp(88px,13vh,130px); }
 .hero-v3-bottom { align-items:center; } .hero-v3-bottom span:first-child { max-width:65%; line-height:1.5; }
}
@media(max-width:420px) {
 .site-header .brand { gap:7px; font-size:.72rem; letter-spacing:.12em; }
 .site-header .brand img { width:34px; height:34px; }
 .hero--v3 .hero__title { font-size:clamp(2.6rem,12vw,4.2rem); line-height:1.05; }
 .hero--v3 .btn-row { display:grid; gap:12px; }
 .hero--v3 .btn-row .btn { width:100%; white-space:normal; }
 .hero--v3 .hero-v3-meta { display:block; margin-top:30px; line-height:1.7; }
 .hero--v3 .hero-v3-meta span { display:block; }
 .hero-v3-bottom { display:none; }
}
/* Game controls float over the iframe instead of eating vertical space. */
.play-body { position:relative; height:100dvh; min-height:0; }
.play-frame { position:absolute; inset:0; height:100%; width:100%; }
.play-bar { position:absolute; z-index:20; top:calc(8px + env(safe-area-inset-top, 0px)); left:12px; right:70px; width:auto; min-height:45px; max-height:80px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:5px 10px; background:rgba(5,6,10,.82); border:1px solid rgba(255,255,255,.17); border-radius:10px; box-shadow:0 6px 24px rgba(0,0,0,.28); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); transition:opacity .22s,transform .22s,visibility .22s; }
.play-bar .play-back { display:inline-flex; align-items:center; min-height:38px; padding:3px 8px; color:#fff; text-decoration:none; }
.play-actions { display:flex; align-items:center; gap:7px; }
.play-action { display:inline-flex; align-items:center; min-height:38px; padding:6px 10px; background:rgba(233,220,194,.13); border:1px solid rgba(233,220,194,.27); border-radius:7px; color:#fff; font:600 .78rem/1.2 var(--sans); white-space:nowrap; cursor:pointer; text-decoration:none; }
.play-action:hover,.play-back:hover { background:rgba(255,255,255,.12); text-decoration:none; }
.play-controls-toggle { position:absolute; z-index:21; top:calc(8px + env(safe-area-inset-top, 0px)); right:12px; width:45px; height:45px; background:rgba(5,6,10,.86); border:1px solid rgba(255,255,255,.25); border-radius:10px; color:white; font:600 1.05rem/1 var(--sans); cursor:pointer; }
.play-bar.is-collapsed { opacity:0; transform:translateY(-8px); visibility:hidden; pointer-events:none; }
.play-bar :focus-visible,.play-controls-toggle:focus-visible { outline:3px solid #f1c879; outline-offset:2px; }
@media(max-width:700px){
 .play-bar { right:63px; left:8px; padding:3px 6px; gap:5px; }
 .play-bar .play-back { max-width:105px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.75rem; padding:3px; }
 .play-action { font-size:.73rem; min-height:38px; padding:5px 7px; }
 .play-direct { display:none; } /* direct link remains in HTML for non-mobile and accessibility */
 .play-controls-toggle { right:8px; }
}
@media(max-width:330px){.play-bar .play-back{max-width:85px}.play-action{font-size:.69rem}}
/* Mobile header: brand left, FR/EN then menu on the right. */
@media(max-width:820px) {
  .header-inner > .brand { order:0; }
  .header-inner > .language-switch { order:1; margin-left:auto; }
  .header-inner > .nav-toggle { order:2; }
}
