/* ═══════════════════════════════════════════════════════════════════════════
   HUNTER EVOLUTION — le site public, dans la DA des menus du jeu (« Carte de Hunter », design/README.md)
   Maquettes Codex : design/site/{accueil,notes-de-version,formulaire,accueil-mobile}.png (18/10/2026).
   Couleurs = jeu/presentation/commun/theme/Palette.gd ; police = Ubuntu Sans (graisses 640, 760, 800).
   ═══════════════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: "Ubuntu Sans";
  src: url("/polices/UbuntuSans.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --papier: #F6F1E3;
  --papier-fonce: #E9E0C8;
  --encre: #1B1B1F;
  --vert: #2E9E4F;
  --vert-fonce: #1F7A3A;
  --orange: #F28C28;
  --brique: #8E2A1C;
  --nen: #5B6CFF;
  --or: #F2C14E;
  --trait: 4px;
  --rayon: 14px;
  --ombre: 5px 6px 0 var(--encre);
  --ombre-petite: 3px 4px 0 var(--encre);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--papier);
  color: var(--encre);
  font: 640 17px/1.5 "Ubuntu Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 4px solid var(--or); outline-offset: 3px; border-radius: 10px; }

/* ─── Les fonds : papier, trame, traits de vitesse ─────────────────────────── */
.papier, .scene {
  position: relative;
  flex: 1;
  background:
    radial-gradient(circle, rgba(27, 27, 31, .07) 1.3px, transparent 1.8px) 0 0 / 15px 15px,
    var(--papier);
  isolation: isolate;
}
.scene::before {
  /* traits de vitesse, partant des bords (comme les fonds des menus du jeu) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-conic-gradient(from 0deg at 50% 45%, rgba(46, 158, 79, .16) 0 1.2deg, transparent 1.2deg 9deg);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 55%, #000 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 55%, #000 100%);
  pointer-events: none;
}

/* ─── Les cartes et les stickers ───────────────────────────────────────────── */
.carte {
  background: var(--papier);
  border: var(--trait) solid var(--encre);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.sticker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .55em 1.1em;
  background: var(--papier);
  color: var(--encre);
  border: var(--trait) solid var(--encre);
  border-radius: 12px;
  box-shadow: var(--ombre-petite);
  font-weight: 760;
  font-size: 1.05rem;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.3;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, background-color .12s ease;
}
.sticker:hover { transform: translate(-2px, -2px); box-shadow: 5px 6px 0 var(--encre); }
.sticker:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--encre); }
.sticker svg { width: 1.45em; height: 1.45em; flex: none; }
.sticker-vert { background: var(--vert); color: var(--papier); }
.sticker-vert:hover { background: #33AD57; }
.sticker-actif { background: var(--vert); color: var(--papier); }

/* Le curseur × vert à gauche du bouton sélectionné / survolé (comme dans les menus du jeu). */
.avec-curseur { position: relative; }
.avec-curseur::before {
  content: "";
  position: absolute;
  left: -46px;
  top: 50%;
  width: 36px;
  height: 36px;
  translate: 0 -50%;
  background: url("/img/curseur-x.png") center / contain no-repeat;
  opacity: 0;
  transition: opacity .12s ease, left .12s ease;
}
.avec-curseur.choisi::before, .avec-curseur:hover::before, .avec-curseur:focus-visible::before { opacity: 1; left: -50px; }

.puce {
  display: inline-block;
  min-width: 2.6em;
  padding: .18em .55em;
  text-align: center;
  background: var(--papier);
  border: 3px solid var(--encre);
  border-radius: 8px;
  box-shadow: 2px 3px 0 var(--encre);
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
}
.puce.active { background: var(--vert); color: var(--papier); }
.langues { display: flex; gap: .45rem; }

.etiquette-or {
  display: inline-block;
  padding: .2em .7em;
  background: var(--or);
  border: 3px solid var(--encre);
  border-radius: 8px;
  box-shadow: 2px 3px 0 var(--encre);
  font-weight: 800;
  font-size: .95rem;
  white-space: nowrap;
}

/* ─── Le bandeau d'accueil ─────────────────────────────────────────────────── */
.heros {
  /* comme l'écran titre du jeu : Gon et Killua à gauche, le logo et le bouton à droite, sur le ciel */
  position: relative;
  min-height: min(74vh, 700px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3.6rem clamp(1.2rem, 6vw, 6rem) 4.8rem;
  background: url("/img/fond-titre.webp") 20% 45% / cover no-repeat, #6B9BD8;
  overflow: hidden;
}
.heros::after {
  /* le bas assombri, puis le bord déchiré du papier */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to bottom, transparent, rgba(27, 27, 31, .35));
  pointer-events: none;
}
.heros .langues { position: absolute; top: 1.2rem; right: clamp(1rem, 3vw, 2rem); z-index: 2; }
.heros-contenu { position: relative; z-index: 1; width: min(560px, 48%); display: flex; flex-direction: column; align-items: center; }
.heros .logo { display: block; width: 100%; height: auto; filter: drop-shadow(5px 6px 0 rgba(27, 27, 31, .55)); }
.appel { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.2rem; margin: 1.4rem 0 0 3rem; }
.appel .sticker-grand { font-size: clamp(1.35rem, 2.6vw, 1.9rem); padding: .5em 1.15em; box-shadow: var(--ombre); }
.appel .sticker-grand svg { width: 1.1em; height: 1.1em; }

/* ─── L'accueil, sous le bandeau ───────────────────────────────────────────── */
.accueil-corps { max-width: 1180px; margin: -2.6rem auto 0; padding: 0 clamp(1rem, 3vw, 2rem) 3rem; position: relative; z-index: 2; }
.projet {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.1rem 1.6rem;
  background: #FFFDF7;
}
.projet h2 { margin: 0 0 .3rem; font-size: 1.3rem; font-weight: 800; line-height: 1.25; }
.projet p { margin: .2rem 0; font-weight: 640; }
.projet a { font-weight: 800; color: var(--brique); }
.projet-icone {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-top: .1rem;
  background: var(--or);
  border: 3px solid var(--encre);
  border-radius: 50%;
  box-shadow: 2px 3px 0 var(--encre);
  font-weight: 800;
  font-size: 1.4rem;
}
.astuce { text-align: center; margin: 1.6rem auto 0; max-width: 760px; font-size: .95rem; opacity: .8; }
.boutons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem 1.4rem;
  margin: 1.8rem auto 0;
  max-width: 1180px;
}
.boutons .sticker { justify-content: flex-start; padding: .85em 1.2em; font-size: 1.15rem; box-shadow: var(--ombre); }

/* ─── Les pages intérieures : barre, plaque de titre, disposition ──────────── */
.barre {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .6rem clamp(1rem, 3vw, 2rem);
  background: var(--encre);
}
.barre .logo-petit { display: block; height: 52px; width: auto; }
.onglets { display: flex; gap: .7rem; margin-left: auto; overflow-x: auto; padding: 4px 6px 8px 2px; }
.onglets .sticker { font-size: .95rem; padding: .35em .9em; white-space: nowrap; }
.barre .langues { padding-bottom: 4px; }

.contenu { max-width: 1240px; margin: 0 auto; padding: 2.2rem clamp(1rem, 3vw, 2rem) 3.5rem; }
.plaque {
  position: relative;
  display: inline-block;
  margin: 0 0 1.6rem;
  padding: .12em .6em .2em;
  rotate: -2.5deg;
  background: var(--orange);
  border: var(--trait) solid var(--encre);
  border-radius: 14px;
  box-shadow: var(--ombre);
  color: var(--papier);
  font: 800 clamp(2rem, 5vw, 3.4rem)/1.1 "Ubuntu Sans", sans-serif;
  letter-spacing: -.01em;
  -webkit-text-stroke: 7px var(--encre);
  paint-order: stroke fill;
}
.plaque::after {
  /* les petits éclats jaunes */
  content: "";
  position: absolute;
  right: -34px;
  top: -18px;
  width: 30px;
  height: 30px;
  background:
    linear-gradient(var(--or), var(--or)) 0 12px / 22px 7px no-repeat,
    linear-gradient(var(--or), var(--or)) 14px 0 / 7px 18px no-repeat;
  rotate: 25deg;
  filter: drop-shadow(1.5px 1.5px 0 var(--encre));
}
.disposition { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.6rem; align-items: start; }
.disposition > .carte { padding: 1.6rem 1.8rem; }
.disposition > .cote { position: sticky; top: 1.2rem; }
.cote { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.4rem 1.2rem 1.6rem; text-align: center; }
.cote img { width: 100%; max-width: 280px; height: auto; filter: drop-shadow(0 0 0 #fff); }
.cote p { margin: 0; font-weight: 800; font-size: 1.25rem; line-height: 1.3; }
.cote .trame { background: radial-gradient(circle, rgba(242, 193, 78, .55) 1.4px, transparent 1.9px) 0 0 / 10px 10px; border-radius: 50%; }

/* ─── Les notes de version ─────────────────────────────────────────────────── */
.frise { position: relative; margin: 0; padding: 0 0 0 2.6rem; list-style: none; }
.frise::before { content: ""; position: absolute; left: .85rem; top: .8rem; bottom: .8rem; border-left: 4px dotted var(--encre); }
.version { position: relative; margin: 0 0 1.1rem; padding: .9rem 1.2rem; border-width: 3px; box-shadow: var(--ombre-petite); }
.version::before {
  content: "";
  position: absolute;
  left: calc(-2.6rem + .25rem);
  top: 1.15rem;
  width: 20px;
  height: 20px;
  background: #C9C2B0;
  border: 3px solid var(--encre);
  border-radius: 50%;
}
.version h2 { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.version ul { margin: .5rem 0 0; padding-left: 1.4rem; }
.version li { margin: .2rem 0; font-weight: 640; }
.version li::marker { color: var(--vert); }
.version.actuelle {
  margin-top: 1.6rem;
  padding: 1.2rem 1.4rem 1rem;
  border: var(--trait) solid var(--vert);
  outline: 3px solid var(--encre);
  outline-offset: 0;
  box-shadow: var(--ombre);
  background: radial-gradient(circle, rgba(46, 158, 79, .14) 1.3px, transparent 1.8px) 0 0 / 11px 11px, var(--papier);
}
.version.actuelle h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.version.actuelle::before { background: var(--vert); outline: 3px solid var(--or); top: 1.5rem; }
.ruban {
  position: absolute;
  top: -1.05rem;
  left: -.6rem;
  padding: .05em .7em .12em;
  rotate: -4deg;
  background: var(--vert);
  color: var(--papier);
  border: 3px solid var(--encre);
  border-radius: 8px;
  box-shadow: 2px 3px 0 var(--encre);
  font-weight: 800;
}
.historique { margin-top: 1.8rem; }
.historique[open] .separation { margin-bottom: 1.2rem; }
.separation { display: flex; align-items: center; gap: .8rem; cursor: pointer; list-style: none; }
.separation::-webkit-details-marker { display: none; }
.separation span::before { content: "▸ "; }
.historique[open] .separation span::before { content: "▾ "; }
.separation:hover span { background: var(--or); color: var(--encre); border-color: var(--encre); }
.separation::after { content: ""; flex: 1; border-top: 3px solid rgba(27, 27, 31, .35); }
.separation span {
  padding: .1em .8em;
  border: 3px solid rgba(27, 27, 31, .55);
  border-radius: 999px;
  background: var(--papier-fonce);
  font-weight: 760;
  font-size: .95rem;
  color: rgba(27, 27, 31, .8);
}
.ancienne { opacity: .78; }
.ancienne h2 { font-size: 1.08rem; }
.ancienne li { font-size: .95rem; }

/* ─── Les formulaires ──────────────────────────────────────────────────────── */
.formulaire label { display: block; margin: 1rem 0 .35rem; font-weight: 800; font-size: 1.15rem; }
.formulaire label:first-of-type { margin-top: 0; }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire textarea {
  width: 100%;
  padding: .7em .9em;
  background: #FFFDF7;
  color: var(--encre);
  border: 3px solid var(--encre);
  border-radius: 10px;
  font: 640 1rem/1.4 "Ubuntu Sans", system-ui, sans-serif;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.formulaire textarea { min-height: 9.5rem; resize: vertical; }
.formulaire input:focus, .formulaire textarea:focus { border-color: var(--or); box-shadow: 0 0 0 3px var(--or); }
.depot {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.3rem;
  padding: 1rem 1.2rem;
  border: 3px dashed var(--encre);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 760;
}
.depot:hover, .depot:focus-within { background: rgba(242, 193, 78, .18); }
.depot svg { width: 2.2rem; height: 2.2rem; flex: none; }
.depot input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.depot .choisis { display: block; font-weight: 640; font-size: .9rem; opacity: .75; }
.envoyer { display: flex; justify-content: flex-end; margin-top: 1.6rem; }
.envoyer .sticker { font-size: 1.35rem; padding: .5em 1.3em; box-shadow: var(--ombre); }
.message {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.4rem;
  padding: .8rem 1.1rem;
  border: 3px solid var(--encre);
  border-radius: 12px;
  box-shadow: var(--ombre-petite);
  font-weight: 760;
}
.message.succes { background: #D7F0DD; }
.message.erreur { background: #F5D6CF; }
.message::before { font-size: 1.3rem; }
.message.succes::before { content: "✔"; color: var(--vert-fonce); }
.message.erreur::before { content: "✖"; color: var(--brique); }

/* ─── Téléchargements, installation ────────────────────────────────────────── */
.intro p { margin: 0 0 .7rem; }
.fichiers { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.fichiers .sticker { width: 100%; justify-content: space-between; }
.vide { margin: 1rem 0 0; padding: 1rem 1.2rem; border: 3px dashed rgba(27, 27, 31, .45); border-radius: 12px; opacity: .8; }
.etapes { margin: 0; padding-left: 1.4rem; }
.etapes li { margin: 0 0 1.2rem; font-weight: 760; }
.captures { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }
.captures img { max-width: 360px; width: 100%; border: 3px solid var(--encre); border-radius: 10px; box-shadow: var(--ombre-petite); }

/* ─── Le pied de page : la mention légale, en clair sur chaque page ────────── */
.pied { background: var(--encre); color: var(--papier); padding: 1.6rem clamp(1rem, 3vw, 2rem) 1.8rem; }
.mention { max-width: 900px; margin: 0 auto; text-align: center; }
.mention h2 { display: inline-block; margin: 0 0 .7rem; padding: .15em .8em; background: var(--or); color: var(--encre); border: 3px solid var(--papier); border-radius: 8px; font-size: 1.05rem; font-weight: 800; }
.mention p { margin: .35rem 0; font-size: .95rem; line-height: 1.45; font-weight: 500; color: #ECE6D6; }

/* ─── Téléphone ────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .disposition { grid-template-columns: 1fr; }
  .disposition > .cote { position: static; }
  .cote { flex-direction: row; text-align: left; padding: 1rem; }
  .cote img { max-width: 120px; }
  .cote p { font-size: 1.05rem; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .heros { min-height: 600px; padding: 4rem 1rem 4.4rem; background-position: 14% 50%; align-items: stretch; }
  .heros-contenu { width: 100%; justify-content: space-between; align-items: stretch; }
  .heros .logo { width: 60%; margin: 0 0 0 auto; }
  .appel { margin: 1.2rem 0 0; flex-direction: column; align-items: stretch; text-align: center; }
  .appel .sticker-grand { justify-content: center; }
  .appel .etiquette-or { align-self: center; }
  .avec-curseur::before { display: none; }
  .projet { padding: 1rem; gap: .9rem; }
  .projet-icone { width: 2.2rem; height: 2.2rem; font-size: 1.2rem; }
  .boutons { grid-template-columns: 1fr; }
  .barre { flex-wrap: wrap; }
  .barre .logo-petit { height: 42px; }
  .barre .langues { margin-left: auto; }
  .onglets { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; gap: .5rem; overflow: visible; }
  .onglets .sticker { font-size: .88rem; padding: .3em .7em; }
  .contenu { padding-top: 1.6rem; }
  .disposition > .carte { padding: 1.1rem 1rem; }
  .frise { padding-left: 2rem; }
  .version::before { left: calc(-2rem + .1rem); }
  .plaque { -webkit-text-stroke: 5px var(--encre); }
}
@media (prefers-reduced-motion: reduce) {
  .sticker, .avec-curseur::before { transition: none; }
}
