/* TrackClash — styles (mobile first, sans dépendance) */

:root {
  --bg: #0c0a14;
  --surface: #17131f;
  --surface-2: #211b2d;
  --line: #2f2740;
  --text: #f2eefc;
  --muted: #a79fbd;
  --pink: #ff3d81;
  --cyan: #2ee6d6;
  --danger: #ff6b6b;
  --radius: 16px;
  --grad: linear-gradient(135deg, var(--pink), #b14dff 55%, var(--cyan));
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100dvh;
  background:
    radial-gradient(60rem 30rem at 110% -10%, rgba(255, 61, 129, .18), transparent 60%),
    radial-gradient(50rem 30rem at -20% 110%, rgba(46, 230, 214, .12), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }

.app {
  max-width: 440px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

/* Marque */
.brand { display: flex; align-items: center; gap: 10px; margin: 8px 0 28px; }
.brand__logo { width: 36px; height: 36px; }
.brand__logo rect { fill: var(--pink); }
.brand__logo rect:nth-child(2) { fill: #b14dff; }
.brand__logo rect:nth-child(3) { fill: var(--cyan); }
.brand__logo rect:nth-child(4) { fill: var(--pink); }
.brand__name { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.brand__name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Bouton de partage (en haut à droite) */
.share-btn {
  margin-left: auto; width: 42px; height: 42px; flex: none;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface-2); color: var(--text);
  transition: transform .15s, border-color .15s;
}
.share-btn:hover, .share-btn:focus-visible { border-color: var(--pink); }
.share-btn:active { transform: scale(.92); }
.share-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.share-btn svg circle { fill: currentColor; stroke: none; }
.share__img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 14px; }
.share__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 14px; }
.share__app {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px;
  border-radius: 12px; background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 13px;
}
.share__app:hover { background: var(--line); }
.share__app span {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff; font-weight: 800; font-size: 18px;
}
.share__app[data-net="whatsapp"] { --c: #25d366; }
.share__app[data-net="sms"]      { --c: #0fa89b; }
.share__app[data-net="facebook"] { --c: #1877f2; }
.share__app[data-net="x"]        { --c: #000; }
.share__app[data-net="telegram"] { --c: #229ed9; }
.share__app[data-net="email"]    { --c: #b14dff; }
.share__copy { display: flex; gap: 8px; margin-bottom: 10px; }
.share__copy input {
  flex: 1; min-width: 0; height: 48px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--muted); font: inherit; font-size: 14px;
}
.share__copy .btn { width: auto; margin: 0; padding: 0 16px; }

/* Vues */
.view { animation: in .25s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  margin-bottom: 14px;
}

h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; }
.muted { color: var(--muted); margin: 0 0 18px; }
.small { font-size: 14px; margin: 0; }

/* Formulaires */
.label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }

input[type="email"], input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  outline: none;
  transition: border-color .15s;
}
input:focus { border-color: var(--cyan); }
input[readonly] { color: var(--muted); border-style: dashed; }
input[readonly]:focus { border-color: var(--line); }
input[aria-invalid="true"] { border-color: var(--danger); }

.code-input {
  text-align: center;
  font-size: 30px !important;
  font-weight: 800;
  letter-spacing: .45em;
  padding-left: calc(14px + .45em) !important; /* compense le letter-spacing final */
  font-variant-numeric: tabular-nums;
}

.error { color: var(--danger); font-size: 14px; margin: 10px 0 0; }
.timer { color: var(--muted); font-size: 14px; margin: 10px 0 0; text-align: center; }
.timer.is-expired { color: var(--danger); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  padding: 0 18px;
  font: inherit; font-weight: 700;
  color: var(--text);
  border: 0; border-radius: 12px;
  cursor: pointer;
  transition: transform .1s, opacity .15s, background .15s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--primary { background: var(--grad); color: #fff; }
.btn--ghost { background: var(--surface-2); border: 1px solid var(--line); }
.btn--suggest { margin-top: 10px; min-height: 44px; color: var(--cyan); }
.btn--link { background: none; color: var(--muted); min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.btn--link.danger { color: var(--danger); }
.btn.is-loading { pointer-events: none; opacity: .7; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.row { display: flex; gap: 10px; }
.row .btn { margin-top: 12px; white-space: nowrap; }
.row .btn--ghost { flex: 1; }
.row .btn--link { width: auto; flex: none; }
.stack { display: flex; flex-direction: column; }
.stack .btn { margin-top: 8px; }

/* Profil */
.profile { display: flex; align-items: center; gap: 14px; }
.avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--badge-bg, var(--grad)); color: var(--badge-fg, #fff);
  font-size: 24px; font-weight: 800; text-transform: uppercase;
}
.profile__info { min-width: 0; }
.profile__info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.profile__email { margin: 4px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.btn--edit { margin: 0 0 14px; }

/* Interrupteur */
.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.switch__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  flex: none; position: relative; width: 52px; height: 30px; border-radius: 30px;
  background: var(--surface-2); border: 1px solid var(--line); transition: background .2s;
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s;
}
.switch input:checked + .switch__track { background: var(--cyan); border-color: var(--cyan); }
.switch input:checked + .switch__track::after { transform: translateX(22px); background: #fff; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--pink); outline-offset: 2px; }
.switch input:disabled + .switch__track { opacity: .5; }

.teaser { border-image: none; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.teaser .muted { margin: 0; }

/* Chargement : égaliseur */
.view[data-view="loading"] { display: grid; place-items: center; min-height: 40vh; }
.eq { display: flex; gap: 6px; align-items: flex-end; height: 40px; }
.eq i { width: 6px; height: 100%; border-radius: 3px; background: var(--grad); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.2s; }
.eq i:nth-child(3) { animation-delay: -.4s; }
.eq i:nth-child(4) { animation-delay: -.6s; }
.eq i:nth-child(5) { animation-delay: -.8s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  text-align: center;
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  animation: in .2s ease-out;
}

/* Badge joueur (couleurs posées en JS via --badge-bg / --badge-fg) */
.badge {
  display: inline-flex; align-items: center;
  max-width: 100%;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--badge-bg, var(--grad));
  color: var(--badge-fg, #fff);
  font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}
.badge--lg { font-size: 26px; padding: 10px 26px; min-height: 58px; }
.badge.is-placeholder { opacity: .55; }
.badge-stage {
  display: grid; place-items: center;
  min-height: 110px; margin: 4px 0 20px;
  border-radius: 12px;
  background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 20px 20px;
}

/* Champ pseudo */
.field-counter { position: relative; }
.field-counter input { padding-right: 64px; }
.counter { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.hint { font-size: 14px; color: var(--muted); margin: 8px 0 0; min-height: 21px; }
.hint.is-ok { color: var(--cyan); }
.hint.is-bad { color: var(--danger); }

/* Couleurs */
.colors { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.colors legend { padding: 0; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.swatch {
  aspect-ratio: 1; width: 100%; padding: 0;
  border-radius: 50%; border: 2px solid transparent;
  background: var(--sw); cursor: pointer;
  outline-offset: 2px;
}
.swatch[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg) inset; }
.swatch:focus-visible { outline: 2px solid var(--cyan); }
.switch--compact { margin-bottom: 12px; }
.color-row { display: flex; gap: 10px; }
.color-pick {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 12px; cursor: pointer; font-size: 14px; font-weight: 600;
}
.color-pick input {
  flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer;
}
.color-pick input::-webkit-color-swatch-wrapper { padding: 0; }
.color-pick input::-webkit-color-swatch { border: 2px solid var(--line); border-radius: 50%; }
.color-pick input::-moz-color-swatch { border: 2px solid var(--line); border-radius: 50%; }
.angle { margin-top: 14px; }
.angle input { width: 100%; accent-color: var(--cyan); }

/* Fenêtre modale (élément <dialog> natif) */
.btn--danger { background: var(--danger); color: #1a0606; }
.modal {
  width: min(400px, calc(100% - 32px));
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.modal::backdrop { background: rgba(5, 4, 10, .75); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.modal__body { padding: 24px 20px 20px; text-align: center; }
.modal__body .muted { margin-bottom: 0; }
.modal__icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 107, 107, .15); color: var(--danger);
  font-size: 28px; font-weight: 800;
}
.modal__actions { display: flex; gap: 10px; margin-top: 6px; }
.modal__actions .btn { flex: 1; padding: 0 12px; }

/* ---------------------------------------------------------------- Jeux */
.section-title { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 10px; }
.center { text-align: center; }
.pos { color: var(--cyan); }
.neg { color: var(--danger); }

.game-card__head { display: flex; gap: 14px; align-items: center; }
.game-card__head h3 { margin: 0 0 2px; font-size: 19px; }
.game-card__icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 24px; background: var(--surface-2);
}
.game-card__stats { display: flex; gap: 8px; margin: 16px 0 0; }
.game-card__stats div { flex: 1; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; text-align: center; }
.game-card__stats dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.game-card__stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }

select {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface-2); border: 2px solid var(--line); border-radius: 12px;
  padding: 12px 14px; outline: none;
}
select:focus { border-color: var(--cyan); }
input[type="range"] { width: 100%; accent-color: var(--pink); margin: 4px 0 0; }

/* Niveaux */
.tier { margin: 14px 0 0; }
.tier__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tier__name { font-size: 16px; }
.tier__next { font-size: 12px; color: var(--muted); text-align: right; }
.tier__track { height: 6px; margin-top: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.tier__bar { height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.tier--bar { margin: 2px 0 6px; }
.bt-sum__tier { margin: 6px 0 0; font-weight: 700; color: var(--text); }
.bt-wait.is-prompt { color: var(--text); font-weight: 800; font-size: 17px; }
.bt-choice--artist strong, .bt-choice--title strong { font-size: 17px; }
.bt-item.is-half { border-left-color: var(--violet, #b14dff); }

.bt-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.bt-back { width: auto; margin: 0; padding: 0; text-decoration: none; }
.bt-elo {
  display: flex; align-items: baseline; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px;
  font-variant-numeric: tabular-nums;
}
.bt-elo span:first-child { font-size: 24px; font-weight: 800; }
.bt-elo small { color: var(--pink); font-weight: 800; font-size: 11px; }
.bt-delta { font-size: 14px; font-weight: 700; }
.bt-stats { margin: 0 0 14px; text-align: right; }
.bt-form { display: grid; gap: 6px; }
.bt-form .label { margin: 10px 0 0; }
.bt-form .label b { color: var(--pink); }
/* Réglages repliables (<details> natif, ouverture animée si le navigateur le permet) */
:root { interpolate-size: allow-keywords; }
.bt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.bt-chip {
  font-size: 13px; color: var(--muted); background: var(--surface-2); white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
}
.bt-chip b, .bt-chip #bt-breadth { color: var(--text); font-weight: 700; }
.bt-panel { border-top: 1px solid var(--line); }
.bt-panel > summary {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 6px 0; cursor: pointer; list-style: none;
}
.bt-panel > summary::-webkit-details-marker { display: none; }
.bt-panel > summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin: 0 4px 4px auto;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s;
}
.bt-panel[open] > summary::after { transform: rotate(-135deg); margin-bottom: -2px; }
.bt-panel__title { font-weight: 700; flex: none; }
.bt-panel__sum {
  min-width: 0; color: var(--muted); font-size: 14px; text-align: right; margin-left: auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bt-panel[open] .bt-panel__sum { visibility: hidden; }
.bt-panel::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .25s ease, content-visibility .25s allow-discrete;
}
.bt-panel[open]::details-content { block-size: auto; }
.bt-panel .bt-form { padding: 0 0 16px; }
.bt-panel .bt-form .label:first-child { margin-top: 0; }
.bt-panel--help .bt-panel__title { font-weight: 600; color: var(--muted); font-size: 15px; }
.bt-rules { margin: 0 0 14px; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.bt-rules li + li { margin-top: 6px; }
.bt-note {
  font-size: 14px; color: var(--muted); line-height: 1.5;
  background: var(--surface-2); border-left: 3px solid var(--pink); border-radius: 8px;
  padding: 10px 12px; margin: 18px 0 0;
}
.bt-note b { color: var(--text); }

.bt-hud { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.bt-hud__actions { display: flex; gap: 6px; }
.btn-mini:disabled { opacity: .4; cursor: default; }
.bt-go { margin: 0 0 6px; }
.bt-tap { margin-top: 8px; }
.btn-mini {
  font: inherit; font-size: 13px; font-weight: 700; color: var(--danger);
  background: none; border: 1px solid var(--danger); border-radius: 8px; padding: 6px 10px; cursor: pointer;
}
.btn-mini--pass { color: var(--text); border-color: var(--muted); }
.bt-hud { flex-wrap: wrap; row-gap: 6px; }
.bt-track { height: 12px; margin: 12px 0 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bt-fill {
  height: 100%; background: var(--grad);
  transform: scaleX(0); transform-origin: left;
}
.bt-fill.is-late { background: linear-gradient(90deg, #ff8a00, var(--danger)); }
.bt-wait { min-height: 22px; margin: 4px 0 8px; color: var(--muted); font-size: 14px; text-align: center; }

.bt-choices { display: flex; flex-direction: column; gap: 10px; }
.bt-choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; min-height: 60px; padding: 12px 16px;
  font: inherit; text-align: left; color: var(--text);
  background: var(--surface-2); border: 2px solid var(--line); border-radius: 12px;
  cursor: pointer; transition: border-color .1s, background .1s, transform .1s;
  -webkit-user-select: none; user-select: none;
}
.bt-choice strong { font-size: 16px; }
.bt-choice span { color: var(--muted); font-size: 15px; }
.bt-choice:active:not(:disabled) { transform: scale(.98); }
.bt-choice:disabled { cursor: default; }
.bt-choice.is-chosen { border-color: var(--text); }
.bt-choice.is-good { border-color: var(--cyan); background: rgba(46, 230, 214, .14); }
.bt-choice.is-bad { border-color: var(--danger); background: rgba(255, 107, 107, .14); }
@media (hover: hover) { .bt-choice:hover:not(:disabled) { border-color: var(--pink); } }

.bt-sum { color: var(--muted); margin: 0 0 14px; }
.bt-sum b { color: var(--text); }
.bt-sum b.pos { color: var(--cyan); }
.bt-sum b.neg { color: var(--danger); }
.bt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bt-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border-radius: 12px; padding: 8px; border-left: 3px solid var(--danger);
}
.bt-item.is-ok { border-left-color: var(--cyan); }
.bt-item__cover { flex: none; width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--line); }
.bt-item__cover.is-missing { visibility: hidden; }
.bt-item__body { flex: 1; min-width: 0; }
.bt-item__body p { margin: 0; overflow: hidden; overflow-wrap: anywhere; }
.bt-item__title, .bt-item__choice { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.bt-item__title { font-weight: 700; font-size: 15px; }
.bt-item__meta, .bt-item__choice { font-size: 13px; color: var(--muted); }
.bt-item.is-ko .bt-item__choice { color: var(--danger); }
.bt-item__nums { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }
.bt-item__nums small { color: var(--muted); font-size: 12px; }

/* Présentation (écran d'accueil non connecté) */
.hero { margin: -8px 0 18px; }
.hero__title {
  margin: 0 0 8px; font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em;
}
.hero__text { margin: 0 0 14px; color: var(--muted); }
.hero__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hero__list li {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font-size: 15px; line-height: 1.4;
}
.hero__list li > span:first-child { flex: none; font-size: 18px; line-height: 1.2; }

/* Pages légales et pied de page */
.app-footer { margin: 28px 0 8px; text-align: center; font-size: 13px; color: var(--muted); }
.app-footer a, .legal-accept a, .legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.legal-accept { margin: 12px 0 0; text-align: center; }
.legal .card { line-height: 1.6; }
.legal h3 { font-size: 16px; margin: 18px 0 6px; }
.legal p, .legal li { font-size: 15px; }
.legal ul { padding-left: 20px; margin: 0 0 10px; }
.legal li + li { margin-top: 4px; }
.legal code { font-size: 13px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.legal__back { text-decoration: none !important; font-weight: 600; }
.legal__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.legal__nav a {
  font-size: 14px; color: var(--text) !important; text-decoration: none !important;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.legal__table { overflow-x: auto; margin: 6px 0 12px; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.legal__table th { color: var(--muted); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Pages publiques (blind-test.php, classement.php) */
.brand__home { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.seo h1 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.seo .card > p { margin: 0 0 12px; }
.seo .card .btn { margin-top: 6px; text-decoration: none; }
.seo-stat { font-size: 15px; color: var(--muted); }
.seo-stat b { color: var(--cyan); font-size: 18px; }
.seo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.seo-chip {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px;
}
.seo-chip:hover { border-color: var(--pink); }
.seo-artists { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 8px 0 12px; padding: 0; }
.seo-artists li { padding: 4px 10px; border-radius: 8px; background: var(--surface-2); font-size: 14px; }
.seo-list { margin: 8px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.seo-board { list-style: none; margin: 8px 0 0; padding: 0; }
.seo-board li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.seo-board li:first-child { border-top: 0; }
.seo-board__rank { flex: none; width: 28px; text-align: right; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.seo-board li:nth-child(-n+3) .seo-board__rank { color: var(--pink); }
.seo-board__who { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.seo-board__who .badge { font-size: 14px; padding: 2px 10px; box-shadow: none; }
.seo-board__tier { font-size: 12px; color: var(--muted); }
.seo-board__elo { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Mention de la source des extraits (conditions de l'API Deezer) */
.bt-credit { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); opacity: .8; }
.bt-item__dz { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--cyan); text-decoration: none; }
.bt-item__dz:hover { text-decoration: underline; }

/* Accueil : inscription en tête, démo, styles, FAQ */
.hero__text { margin-bottom: 0; }
.signup { padding-top: 18px; }
.signup__pick {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600;
  background: rgba(46, 230, 214, .12); border: 1px solid rgba(46, 230, 214, .35);
}
.signup .btn--primary { font-size: 17px; }
.signup__trust { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.home-stats { margin: -2px 0 6px; text-align: center; font-size: 14px; font-weight: 700; color: var(--cyan); }
.demo { pointer-events: none; user-select: none; }
.demo__fill { transform: scaleX(.14); }
.demo .bt-choice { position: relative; }
.demo__gain {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-style: normal; font-weight: 800; font-size: 14px; color: var(--cyan);
}
.demo__caption { margin: -6px 0 0; text-align: center; }
.home-styles { display: flex; flex-wrap: wrap; gap: 8px; }
.home-styles button, .home-styles a {
  padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none;
}
.home-styles button:hover, .home-styles button:focus-visible { border-color: var(--pink); }
.home-styles a { border-style: dashed; color: var(--muted); }
.faq { padding: 6px 16px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { padding: 12px 0; font-weight: 700; cursor: pointer; list-style-position: inside; }
.faq p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.home-again { margin-top: 18px; }

/* Essai sans compte */
.hero__try { margin-top: 16px; font-size: 17px; }
.hero__try-note { margin: 8px 0 0; text-align: center; }
.bt-guest {
  margin: 4px 0 14px; padding: 16px; border-radius: 14px; text-align: center;
  background: linear-gradient(135deg, rgba(255, 61, 129, .14), rgba(46, 230, 214, .12)); border: 1px solid var(--line);
}
.bt-guest__title { margin: 0 0 6px; font-weight: 800; font-size: 17px; }
.bt-guest .muted { margin: 0 0 12px; font-size: 14px; }
.bt-guest .btn + .btn { margin-top: 8px; }

/* Blind Test Survie : pas d'ELO ni de réglages, un record et un classement du jour */
[data-view="bt"][data-mode="survie"] .bt-elo,
[data-view="bt"][data-mode="survie"] .tier--bar,
[data-view="bt"][data-mode="survie"] .bt-stats,
[data-view="bt"][data-mode="survie"] .bt-chips,
[data-view="bt"][data-mode="survie"] #bt-panel-cat,
[data-view="bt"][data-mode="survie"] #bt-panel-diff,
[data-view="bt"][data-mode="survie"] .bt-panel--help,
[data-view="bt"][data-mode="survie"] #bt-pass { display: none; }
.surv-box { margin-top: 14px; }
.surv-box__title { margin: 14px 0 6px; font-size: 16px; }
.surv-top { list-style: none; margin: 0; padding: 0; }
.surv-top li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.surv-top li:first-child { border-top: 0; }
.surv-top__rank { width: 22px; text-align: right; font-weight: 800; color: var(--muted); }
.surv-top li:nth-child(-n+3) .surv-top__rank { color: var(--pink); }
.surv-top .badge { font-size: 13px; padding: 2px 10px; box-shadow: none; }
.surv-top__score { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.surv-top li.is-me .badge { outline: 2px solid var(--cyan); outline-offset: 2px; }
.bt-sum__record { margin: 6px 0 0; font-weight: 800; color: var(--cyan); }
.surv-box .bt-rules { margin-top: 16px; }
.seo-parents { margin: 4px 0 12px; font-size: 14px; color: var(--muted); }
.seo-parents a { color: var(--cyan); }

/* ------------------------------------------- Espace membre réorganisé */
.profile { position: relative; }
.profile__edit { position: absolute; top: 12px; right: 12px; color: var(--text); border-color: var(--line); background: var(--surface-2); }
.m-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 6px; }
.m-nav a {
  padding: 8px 4px; border-radius: 12px; font-size: 13px; font-weight: 600; text-align: center; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.m-nav a:hover { border-color: var(--pink); }
html { scroll-behavior: smooth; }
.section-title[id] { scroll-margin-top: 12px; }
.m-box { padding: 10px 16px; }
.m-list { list-style: none; margin: 0; padding: 0; }
.m-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.m-item:first-child { border-top: 0; }
.m-item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-item__main b { font-size: 15px; }
.m-item__main small, .m-item__score small { color: var(--muted); font-size: 12px; }
.m-item__score { flex: none; text-align: right; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.m-item.is-win .m-item__score b { color: var(--cyan); }
.m-item.is-lose .m-item__score b { color: var(--danger); }
.m-box .muted { margin: 8px 0; }
.m-settings { padding: 0 16px; }
.m-settings > summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.m-settings[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.m-setting { padding: 12px 0; border-bottom: 1px solid var(--line); }
.m-settings .stack { padding: 12px 0 16px; }

/* ------------------------------------------------------- Défi reçu */
.defi { text-align: center; }
.defi__kicker { margin: 0; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); font-size: 13px; }
.defi__title { margin: 10px 0 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 24px; }
.defi__title .badge { font-size: 22px; }
.defi__game { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.defi__score {
  display: flex; flex-direction: column; align-items: center; margin: 0 auto 14px; padding: 14px; max-width: 240px;
  border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line);
}
.defi__score b { font-size: 46px; line-height: 1.1; color: var(--cyan); font-variant-numeric: tabular-nums; }
.defi__score small { color: var(--muted); font-size: 13px; }
.defi__done { margin: 10px 0; padding: 12px; border-radius: 12px; background: var(--surface-2); font-weight: 700; }
.defi .btn--link { margin-top: 8px; }

/* ------------------------------------------- Bilan : points, duel, partage */
.bt-points { margin: 0 0 2px; font-size: 18px; }
.bt-points b { font-size: 34px; color: var(--cyan); font-variant-numeric: tabular-nums; }
.bt-sum p { margin: 2px 0; }
.bt-duel { margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.bt-duel__head { margin: 0 0 8px; font-weight: 800; font-size: 17px; }
.bt-duel__row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.bt-duel__row span { flex: 1; font-weight: 600; }
.bt-duel__row small { color: var(--muted); }
.bt-duel__row b { font-variant-numeric: tabular-nums; }
.bt-duel__row.is-me b { color: var(--cyan); }
.bt-share { margin: 12px 0 14px; }
.bt-share .muted { margin: 6px 0 0; }
.bt-share__link { margin-top: 10px; display: grid; gap: 8px; }
.bt-share__link .share__copy { margin: 0; }
#bt-progress { position: relative; }
.bt-plus {
  position: absolute; left: 100%; top: -2px; margin-left: 6px; font-weight: 800; color: var(--cyan);
  animation: plus .9s ease-out forwards;
}
@keyframes plus { to { transform: translateY(-14px); opacity: 0; } }
.m-item .btn-mini { flex: none; color: var(--cyan); border-color: var(--line); background: var(--surface-2); }

/* Case à cocher simple (écran du code) */
.check { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 12px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--cyan); }
.check small { display: block; font-size: 13px; }
.bt-share__text { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.bt-share__label { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.bt-share__nets { margin: 4px 0 0; }
.bt-share__nets .share__app span { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.bt-share__nets [data-net="whatsapp"] span { background: #25d366; border: 0; }
.bt-share__nets [data-net="sms"] span { background: #0fa89b; border: 0; }
.bt-share__nets [data-net="telegram"] span { background: #229ed9; border: 0; }
.bt-share__nets [data-net="messenger"] span { background: #0084ff; border: 0; }
.bt-share__nets [data-net="email"] span { background: #b14dff; border: 0; }
.bt-share__nets [data-net="x"] span { background: #000; border: 0; }

/* Espace membre : listes repliables, retirer / épingler */
.m-list:not(.is-open) > .is-extra { display: none; }
.m-list.is-open { max-height: 380px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.m-more { width: 100%; margin: 4px 0 2px; }
.m-hint { margin: 2px 0 8px; text-align: center; }
.m-item.is-leaving { opacity: 0; transform: translateX(20px); transition: opacity .25s, transform .25s; }
.m-item.is-pinned .m-item__main b { color: var(--cyan); }
.m-item__acts { flex: none; display: flex; align-items: center; gap: 4px; }
.m-act {
  width: 30px; height: 30px; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 13px; cursor: pointer; flex: none;
}
.m-act:hover { color: var(--text); border-color: var(--muted); }
.m-act.is-on { border-color: var(--cyan); }

/* Défis relevés depuis la dernière visite */
.m-nav a { position: relative; }
.m-nav__count {
  position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--pink); color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
}
.m-new {
  align-self: flex-start; margin-bottom: 2px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: var(--pink); color: #fff; letter-spacing: .03em;
}
.m-item.is-new { background: linear-gradient(90deg, rgba(255, 61, 129, .08), transparent 60%); }

/* Thème de saison (🎄 Noël…) */
.season-try {
  display: block; width: 100%; margin: 10px 0 0; padding: 11px 14px; border-radius: 999px;
  border: 1px dashed rgba(46, 230, 214, .55); background: rgba(46, 230, 214, .08);
  color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.season-try:hover, .season-try:focus-visible { border-style: solid; border-color: var(--cyan); }
.season-card {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; text-align: left;
  font: inherit; color: var(--text); cursor: pointer;
  background: linear-gradient(135deg, rgba(220, 38, 38, .20), rgba(22, 163, 74, .18)), var(--surface);
}
.season-card:hover, .season-card:focus-visible { border-color: var(--cyan); }
.season-card__icon { font-size: 34px; line-height: 1; }
.season-card__text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.season-card__text b { font-size: 17px; }
.season-card__go { font-size: 20px; color: var(--cyan); }

/* =====================================================================
 * Présentation v2 : en-tête avec menu, pages par jeu, tableau de bord.
 * Mobile d'abord ; à partir de 900 px, mise en page plus large et aérée.
 * ===================================================================== */
.app { max-width: 1120px; }
.view--narrow { max-width: 480px; margin-inline: auto; }
.view--mid { max-width: 760px; margin-inline: auto; }
.view--wide { max-width: none; }
/* Vues sans largeur précisée (chargement…) : colonne étroite comme avant */
.view:not(.view--wide):not(.view--mid):not(.view--narrow) { max-width: 480px; margin-inline: auto; }

/* En-tête : nom cliquable, « .me » en blanc, partage + menu à droite */
.brand { gap: 8px; }
.brand__home { min-height: 44px; }
.brand__name .brand__tld { background: none; color: #fff; -webkit-text-fill-color: #fff; font-weight: 800; }
.menu-btn { margin-left: 0; position: relative; }
.menu-btn svg path { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn__dot {
  position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--pink); border: 2px solid var(--surface-2);
}

/* Menu latéral */
.drawer {
  margin: 0 0 0 auto; padding: 0; width: min(340px, 88vw); height: 100%; max-height: none; max-width: none;
  border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.drawer[open] { animation: drawer-in .22s ease-out; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer::backdrop { background: rgba(5, 4, 10, .7); }
.drawer__panel {
  min-height: 100%; box-sizing: border-box; display: flex; flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
}
.drawer__head { display: flex; align-items: center; gap: 10px; padding: 0 4px 14px; border-bottom: 1px solid var(--line); }
.drawer__who { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.drawer__title { flex: 1; font-size: 18px; }
.drawer__id { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.avatar--sm { width: 44px; height: 44px; font-size: 18px; }
.drawer__close {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font-size: 16px; cursor: pointer;
}
.drawer__body { display: flex; flex-direction: column; padding-top: 8px; }
.drawer__grp { margin: 14px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drawer__link {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 12px;
  color: var(--text); text-decoration: none; font: inherit; font-size: 16px; font-weight: 600;
  background: none; border: 0; width: 100%; text-align: left; cursor: pointer;
}
.drawer__link:hover, .drawer__link:focus-visible { background: var(--surface-2); }
.drawer__link[aria-current="page"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--pink); }
.drawer__link .m-nav__count { position: static; margin-left: auto; }
.drawer__foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.drawer__link--small { min-height: 44px; font-size: 15px; font-weight: 500; color: var(--muted); }

/* Pages : retour + titre */
.page-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 600; }
.page-back:hover { color: var(--text); }
.page-title { margin: 0 0 6px; font-size: 28px; letter-spacing: -.02em; }
.view--mid > .muted { margin: 0 0 16px; }

/* Tableau de bord */
.dash-hello { margin-bottom: 16px; }
.dash-hello__title { margin: 0 0 10px; font-size: 26px; letter-spacing: -.02em; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dash-hello__title .badge { font-size: 20px; }
.resume {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 0 0 14px; padding: 16px 18px;
  border: 0; border-radius: var(--radius); background: var(--grad); color: #fff; font: inherit; text-align: left; cursor: pointer;
}
.resume__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.resume__text small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.resume__text b { font-size: 18px; }
.resume__text span { font-size: 14px; }
.resume__play {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(12, 10, 20, .35); font-size: 18px;
}
.games { display: grid; gap: 10px; }
.game-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 44px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none;
}
.game-row:hover, .game-row:focus-visible { border-color: #b14dff; }
.game-row__icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; background: var(--surface-2);
}
.game-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.game-row__text > b { font-size: 17px; }
.game-row__text .muted { font-size: 14px; }
.game-row__stats { font-size: 13px; color: var(--muted); margin-top: 2px; }
.game-row__stats b { color: var(--text); }
.game-row__go { flex: none; font-size: 26px; color: var(--muted); }
.dash-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.tile:hover, .tile:focus-visible { border-color: var(--pink); }
.tile__head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tile .m-nav__count { position: static; }
.tile small { color: var(--muted); font-size: 13px; }
.dash-card { display: none; }
.dash-card h2 { font-size: 18px; margin: 0 0 4px; }
.dash-card .m-item:first-child { border-top: 0; }
.dash-card__all { display: block; padding-top: 12px; border-top: 1px solid var(--line); color: var(--cyan); font-weight: 600; text-decoration: none; }
.dash-card .muted { margin: 8px 0; }

/* Page d'un jeu : sélecteur Rush / Duo / Survie */
.game-switch {
  display: flex; gap: 4px; padding: 4px; margin: 0 auto 16px; max-width: 480px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.game-switch a {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap;
}
.game-switch a:hover { color: var(--text); }
.game-switch a[aria-current="page"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.bt-layout { max-width: 480px; margin: 0 auto; }

/* Écrans larges : plus d'air, colonnes */
@media (min-width: 900px) {
  .app { padding-left: 32px; padding-right: 32px; }
  .brand { margin-bottom: 36px; }
  .view--mid { padding-top: 4px; }
  .page-title { font-size: 34px; }

  .dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
  .dash-hello__title { font-size: 38px; }
  .dash-tiles, .dash-tiles__title { display: none; }
  .dash-card { display: block; }
  .dash__side { display: flex; flex-direction: column; gap: 0; }
  .games { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .game-row { flex-direction: column; align-items: flex-start; padding: 22px; gap: 12px; }
  .game-row__go { display: none; }
  .game-row__text { gap: 4px; }
  .game-row__text > b { font-size: 19px; }

  .game-switch { margin: 0 0 24px; display: inline-flex; max-width: none; }
  .game-switch a { padding: 0 20px; }
  .bt-layout {
    max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start;
  }
  .bt-side {
    order: 2; position: sticky; top: 20px; padding: 18px 20px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  }
  .bt-main { order: 1; min-width: 0; }
}

/* Pages publiques (style, classement, mentions) : colonne de lecture */
.app.seo, .app.legal { max-width: 760px; }

/* ---------------------------------------------------- Langue (FR / EN) */
.lang-btn { font: 800 13px/1 inherit; font-family: inherit; letter-spacing: .04em; text-decoration: none; }
.lang-btn + .share-btn { margin-left: 0; }   /* les boutons restent groupés à droite */
/* Petits écrans : en-tête resserré pour loger les trois boutons (langue, partage, menu) */
@media (max-width: 400px) {
  .brand { gap: 6px; }
  .brand__name { font-size: 21px; }
  .brand__logo { width: 30px; height: 30px; }
  .share-btn { width: 38px; height: 38px; }
}
@media (max-width: 340px) {
  .brand__logo { display: none; }
}
