/* WowRadar — socle de marque (site public, auth, pages légales). Le dashboard ajoute app.css par-dessus Bootstrap. */
@font-face { font-family: "Roboto"; src: url("../fonts/roboto.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --brand: #f7a61e;
  --brand-hot: #ff7a1a;
  --brand-ink: #1a1103;
  --bg: #09090b;
  --bg-2: #111114;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f4f2ee;
  --muted: #a3a09a;
  --faint: #6f6c67;
  --ok: #3ddc97;
  --danger: #ff5d5d;
  --radius: 14px;
  --radius-lg: 22px;
  /* Repli CJK en fin de pile : les polices latines n'ont pas les glyphes chinois/japonais */
  --font-cjk: "PingFang SC", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK SC", "Noto Sans CJK JP", "Microsoft YaHei", "Yu Gothic", "Meiryo";
  --font-display: "Roboto", "Arial", system-ui, var(--font-cjk), sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", var(--font-cjk), sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.wr {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.wr img { max-width: 100%; display: block; }
.wr a { color: inherit; }
.wr main { flex: 1; }
.wr h1, .wr h2, .wr h3, .wr .display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.015em; line-height: 1.05; margin: 0 0 .5em; }
.wr h1 { font-size: clamp(2.2rem, 7vw, 5.2rem); }
.wr h2 { font-size: clamp(1.6rem, 4.2vw, 2.8rem); }
.wr h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.wr p { margin: 0 0 1em; }
.wr .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 40em; }
.wr .muted { color: var(--muted); }
.wr .eyebrow { font: 700 .72rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--brand); margin-bottom: 1rem; display: inline-flex; gap: .6em; align-items: center; }
.wr .eyebrow::before { content: ""; width: 1.6em; height: 2px; background: currentColor; border-radius: 2px; }
/* Langues de l'interface : mots longs (de/pt) coupés proprement ; CJK sans approche négative ni interlettrage des capitales */
.wr h1, .wr h2, .wr h3 { overflow-wrap: break-word; }
.wr:lang(de) h1, .wr:lang(de) h2, .wr:lang(de) h3 { hyphens: auto; }
.wr:lang(zh), .wr:lang(ja) { line-break: strict; }
.wr:lang(zh) :is(h1, h2, h3, .display), .wr:lang(ja) :is(h1, h2, h3, .display) { letter-spacing: 0; line-height: 1.25; }
.wr:lang(zh) .eyebrow, .wr:lang(ja) .eyebrow { letter-spacing: .08em; }
.wr-icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }

.container-wr { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* Boutons */
.btn-wr {
  --b-bg: var(--brand); --b-fg: var(--brand-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.4em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--b-bg); color: var(--b-fg) !important; text-decoration: none;
  font: 700 .98rem/1 var(--font-body); letter-spacing: .01em; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-wr:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--b-bg) 70%, transparent); }
.btn-wr:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn-wr.ghost { --b-bg: transparent; --b-fg: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-wr.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.btn-wr.lg { min-height: 58px; padding: 0 1.8em; font-size: 1.05rem; }
.btn-wr.sm { min-height: 38px; padding: 0 1em; font-size: .88rem; }
.btn-wr.block { width: 100%; }

/* En-tête */
.wr-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.wr-header .bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.wr-header .brand { display: inline-flex; color: var(--text); }
.wr-logo { height: 22px; width: auto; display: block; color: var(--text); }
.wr-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.wr-nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.wr-nav a:hover, .wr-nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.wr-nav .btn-wr { margin-left: 8px; }
/* Le survol des liens du menu ne doit pas écraser le fond du bouton (texte sombre sur fond sombre) */
.wr-nav a.btn-wr:hover, .wr-nav a.btn-wr:focus-visible { background: #ffbb45; color: var(--brand-ink) !important; }
.wr-nav a.btn-wr.ghost:hover { background: transparent; color: var(--text) !important; }
.wr-burger { display: none; margin-left: auto; background: none; border: 0; color: var(--text); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.wr-burger .wr-icon { width: 26px; height: 26px; }
@media (max-width: 820px) {
  .wr-burger { display: inline-flex; align-items: center; justify-content: center; }
  .wr-nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; }
  .wr-nav.open { transform: none; opacity: 1; visibility: visible; }
  .wr-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .wr-nav .btn-wr { margin: 8px 0 0; }
}

/* Pied de page */
.wr-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; color: var(--muted); font-size: .92rem; margin-top: auto; }
.wr-footer .cols { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.wr-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.wr-footer a { text-decoration: none; color: var(--muted); }
.wr-footer a:hover { color: var(--text); }
.wr-footer .tagline { max-width: 26em; margin-top: 14px; }

/* Formulaires (pages publiques / auth) */
.wr-form { display: grid; gap: 18px; }
.wr-field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.wr-field .hint { color: var(--faint); font-size: .84rem; margin-top: 6px; }
.wr-input, .wr textarea.wr-input, .wr select.wr-input {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-strong);
  font: 500 1rem/1.4 var(--font-body); transition: border-color .15s, box-shadow .15s;
}
.wr textarea.wr-input { min-height: 140px; resize: vertical; }
.wr-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.wr-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.wr-check input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; }

/* Messages flash */
.wr-flash { border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; font-size: .95rem; border: 1px solid; }
.wr-flash.success { background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: #b8f5da; }
.wr-flash.error { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: #ffc9c9; }
.wr-flash.info { background: var(--surface); border-color: var(--line-strong); color: var(--text); }

/* Carte d'auth */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 48px var(--gutter); position: relative; overflow: hidden; }
.auth-card { width: 100%; max-width: 440px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 40px); position: relative; z-index: 1; }
.auth-card h1 { font-size: 1.7rem; margin-bottom: .3em; }
.auth-card .alt { margin-top: 22px; text-align: center; color: var(--muted); font-size: .93rem; }
.auth-card .alt a { color: var(--brand); font-weight: 700; text-decoration: none; }

/* « Continue with Google » — charte Google : fond blanc, bordure #747775, texte #1F1F1F, logo G intact */
.gsi-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 20px; margin-top: 22px;
  background: #fff; color: #1f1f1f !important; border: 1px solid #747775; border-radius: 999px; font: 500 1rem/1.2 "Roboto", var(--font-body); letter-spacing: .01em;
  text-decoration: none !important; transition: background-color .2s, box-shadow .2s; }
.gsi-btn:hover { background: #f2f2f2; box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15); }
.gsi-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.gsi-btn:active { background: #e8e8e8; }
.gsi-btn .gsi-g { flex: 0 0 20px; }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 20px 0 6px; color: var(--faint); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

/* Cartes de release (pochettes) — réutilisées par home, discover, page artiste */
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.cover-card { text-decoration: none; color: var(--text); display: block; }
.cover-card .art { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); position: relative; box-shadow: 0 20px 40px -24px rgba(0,0,0,.9); }
.cover-card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cover-card:hover .art img { transform: scale(1.05); }
.cover-card .meta { padding: 12px 2px 0; }
.cover-card .t { font-weight: 800; font-size: 1rem; line-height: 1.25; }
.cover-card .a { color: var(--muted); font-size: .9rem; }
.cover-card .k { font: 700 .66rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }

.pill { display: inline-flex; align-items: center; gap: .4em; padding: 5px 11px; border-radius: 999px; font: 700 .72rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); }
.pill.brand { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }

/* Page d'erreur / pages simples */
.simple-page { padding: clamp(56px, 9vw, 110px) 0; }
.simple-page .prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { color: #d6d3cd; }
.prose a { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Halo derrière les cartes d'auth */
.auth-glow { position: absolute; width: min(900px, 140vw); aspect-ratio: 1; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%); filter: blur(10px); pointer-events: none; opacity: .55; }
.auth-glow::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); box-shadow: 0 0 0 80px transparent, 0 0 0 81px color-mix(in srgb, var(--brand) 12%, transparent), 0 0 0 170px transparent, 0 0 0 171px color-mix(in srgb, var(--brand) 7%, transparent); }
.auth-card a { color: var(--brand); }

/* Sélecteur de langue */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: .85rem; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--text); background: var(--surface); }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 180px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 20px 40px -16px #000; }
.lang-switch li a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--text); font-size: .92rem; }
.lang-switch li a:hover { background: var(--surface); }
.lang-switch li a[aria-current] { color: var(--brand); }
.lang-switch .ls-code { font: 800 .7rem/1 var(--font-body); letter-spacing: .06em; color: var(--faint); width: 22px; }
@media (max-width: 820px) { .wr-nav .lang-switch ul { position: static; box-shadow: none; margin-top: 6px; } .wr-nav .lang-switch summary { padding: 14px 12px; font-size: 1rem; } }

/* ── Menu mobile plein écran + bouton fermer ── */
.wr-nav-top { display: none; }
@media (max-width: 820px) {
  /* L'en-tête a un backdrop-filter : il deviendrait le bloc conteneur du menu fixe → on le retire quand le menu est ouvert */
  .wr-menu-open, .wr-menu-open body { overflow: hidden; }
  .wr-menu-open .wr-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .wr-nav { inset: 0; height: 100vh; height: 100dvh; z-index: 100; padding: 0 var(--gutter) 32px; border-bottom: 0; overflow-y: auto; overscroll-behavior: contain; transform: translateY(-12px); }
  .wr-nav-top { display: flex; align-items: center; justify-content: space-between; height: 68px; flex: none; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
  .wr-nav-top .brand { padding: 0; background: none; }
  .wr-nav-close { width: 44px; height: 44px; margin-right: -6px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 12px; color: var(--text); cursor: pointer; }
  .wr-nav-close:hover, .wr-nav-close:focus-visible { background: var(--surface); }
  .wr-nav-close .wr-icon { width: 26px; height: 26px; }
  .wr-nav > a, .wr-nav > form, .wr-nav > .lang-switch { border-bottom: 1px solid var(--line); border-radius: 0; }
  .wr-nav > a { padding: 18px 4px; font-size: 1.15rem; color: var(--text); }
  .wr-nav > a:hover, .wr-nav > a[aria-current="page"] { background: none; color: var(--brand); }
  .wr-nav > a.btn-wr { border-bottom: 0; border-radius: 999px; margin-top: 18px; justify-content: center; color: var(--brand-ink); }
  .wr-nav > form { padding: 14px 0; border-bottom: 0; }
  .wr-nav > form .btn-wr { width: 100%; justify-content: center; }
}
