/* Ressources Palworld — feuille de style commune (pages françaises et anglaises).
   Palette : fond bleu-vert pâle, accent sarcelle (mode clair) ; tout est local, aucune requête externe. */

/* fonts */
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/barlow-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/barlow-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/barlow-condensed-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* /fonts */

:root {
  --paper: #f1f6f5;
  --panel: #ffffff;
  --ink: #0f2230;
  --muted: #4a5b66;
  --desc: #2a3b47;
  --line: #d2dfdf;
  --accent: #0b7a75;
  --accent-ink: #ffffff;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1a22;
    --panel: #12262f;
    --ink: #e8f1f1;
    --muted: #a9bcc2;
    --desc: #cfdde0;
    --line: #23424e;
    --accent: #5eead4;
    --accent-ink: #04201d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--body); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 6px; font-weight: 600; z-index: 10; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main:focus { outline: none; }

/* ---- en-tête ---- */
header { border-bottom: 1px solid var(--line); padding: 26px 0 24px; }
header h1 {
  font: 700 clamp(2.2rem, 6vw, 3.4rem)/1 var(--display);
  letter-spacing: .01em; text-transform: uppercase; margin: 0 0 10px; text-wrap: balance;
}
header p { margin: 0; max-width: 62ch; color: var(--desc); }
.lang { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 2px 22px; margin: 0 0 20px; font-weight: 600; font-size: .98rem; }
.lang a { display: inline-block; padding: 8px 0; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; line-height: 1.2; }
.lang a:hover, .lang a:focus-visible, .lang a[aria-current] { color: var(--ink); border-color: var(--accent); }
.lang a[hreflang] { margin-left: auto; }

/* bandeau d'accueil avec image du jeu */
header.hero { position: relative; isolation: isolate; color: #fff; background: #0b1a22; border-bottom: 0; padding: 22px 0 76px; }
header.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; z-index: -2; }
header.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,20,28,.88) 0%, rgba(6,20,28,.66) 50%, rgba(6,20,28,.12) 100%); }
header.hero h1 { color: #fff; }
header.hero p { color: #eaf3f4; font-size: 1.08rem; }
header.hero .lang a { color: #dbe8ea; }
header.hero .lang a:hover, header.hero .lang a:focus-visible, header.hero .lang a[aria-current] { color: #fff; border-color: #5eead4; }
header.hero :focus-visible { outline-color: #5eead4; }

/* ---- avis ---- */
.notice { margin: 20px 0 0; background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 6px; padding: 14px 16px; font-size: 1rem; }
.notice p { margin: 0 0 8px; max-width: 80ch; }
.notice p:last-child { margin-bottom: 0; }
.notice a { font-weight: 600; }

/* ---- pour commencer ---- */
.top { padding-top: 24px; }
.top h2, section h2 { font: 700 1.5rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.tool {
  display: flex; flex-direction: column; gap: 4px; background: var(--panel);
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px;
  padding: 12px 14px; text-decoration: none; min-width: 0;
}
.tool:hover { border-color: var(--accent); }
.tool .name { font-weight: 700; font-size: 1.2rem; line-height: 1.25; overflow-wrap: anywhere; }
.tool .desc { font-size: .95rem; font-weight: 600; color: var(--desc); }
.vnote { margin: 18px 0 0; color: var(--desc); max-width: 80ch; font-size: .95rem; }

/* ---- recherche, catégories, filtres ---- */
.tools { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 16px 0; }
.tools label { position: absolute; left: -9999px; }
#q { flex: 1 1 260px; min-width: 0; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
nav.cats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 600; font-size: .92rem; }
nav.cats a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.cats a:hover { color: var(--ink); border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.chip { font: 600 .92rem var(--body); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---- sections et ressources ---- */
main { padding-bottom: 56px; }
section { padding-top: 28px; }
.note { margin: -4px 0 12px; color: var(--desc); max-width: 80ch; }
.band { margin: 0 0 14px; height: clamp(96px, 16vw, 150px); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.band img { display: block; width: 100%; height: 100%; object-fit: cover; }
.item {
  display: flex; flex-direction: column; gap: 4px; background: var(--panel);
  border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 6px;
  padding: 12px 14px; text-decoration: none; min-width: 0;
}
a.item:hover { border-left-color: var(--accent); }
.item .name { font-weight: 700; font-size: 1.2rem; line-height: 1.25; overflow-wrap: anywhere; }
.item .host { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.item .desc { font-size: .95rem; font-weight: 600; color: var(--desc); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font: 600 .72rem var(--body); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--muted); color: var(--muted); border-radius: 999px; padding: 1px 8px; }
.badge.key { border-color: var(--accent); color: var(--accent); }
.hidden { display: none !important; }
#none { display: none; margin-top: 28px; color: var(--muted); }
#none.show { display: block; }

/* flèche « lien externe » avec texte de remplacement pour les lecteurs d'écran */
.item .name::after, .tool .name::after { content: " \2197"; color: var(--accent); }
html[lang="fr"] .item .name::after, html[lang="fr"] .tool .name::after { content: " \2197" / " (nouvel onglet)"; }
html[lang="en"] .item .name::after, html[lang="en"] .tool .name::after { content: " \2197" / " (new tab)"; }

/* ---- pages légales ---- */
.legal { padding: 8px 0 8px; max-width: 78ch; }
.legal h2 { margin: 28px 0 8px; }
.legal p, .legal li { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 22px; }
.legal a { font-weight: 600; }
.legal code { font: 600 .95em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.updated { color: var(--muted); margin-top: 24px; }

/* ---- pied de page ---- */
footer { border-top: 1px solid var(--line); padding: 20px 0 40px; color: var(--desc); font-size: 1rem; }
footer p { margin: 0 0 8px; max-width: 80ch; }
footer nav a { display: inline-block; padding: 6px 2px; }
footer .credit { font-size: .9rem; color: var(--muted); }

@media (max-width: 700px) {
  header.hero::after { background: rgba(6,20,28,.74); }
}
@media (max-width: 640px) {
  .lang { gap: 0 18px; font-size: 1rem; margin-bottom: 14px; }
  .lang a { padding: 11px 0; }
  .lang a[hreflang] { margin-left: 0; }
  header { padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
