:root {
  --bg: #0b0b0d;
  --panel: #131316;
  --panel-2: #1a1a1e;
  --line: #27272c;
  --text: #efede8;
  --muted: #8f8d87;
  --accent: #d9c4a1;
  --accent-2: #b89f78;
  --accent-ink: #17130c;
  --danger: #e58b7c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Hoefler Text", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font: 15px/1.55 var(--sans);
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(217, 196, 161, 0.10), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top { padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.discord {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  color: var(--text); text-decoration: none; font: 500 13.5px var(--sans);
  border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.discord svg { color: #8f9bff; }
.discord:hover { border-color: #5865f2; background: rgba(88,101,242,0.10); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font: 500 17px/1 var(--serif); letter-spacing: 0.02em;
}
.mark {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: url("favicon.svg") center / contain no-repeat;
}

main {
  width: 100%; max-width: 580px; margin: 0 auto; padding: 8px 20px 40px;
}

.hero { text-align: center; padding: 24px 0 36px; }
.hero h1 {
  margin: 0 0 16px;
  font: 400 clamp(34px, 7vw, 48px)/1.1 var(--serif);
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { margin: 0; color: var(--muted); font-size: 16px; }
.hero p strong { color: var(--text); font-weight: 500; }

.card {
  background: linear-gradient(180deg, var(--panel), #101013);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px 10px 26px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
#view-send, #view-get { padding: 18px 16px 0; }

/* onglets */
.tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: #0e0e11; border: 1px solid var(--line); border-radius: 12px; padding: 4px;
}
.tabs button {
  position: relative; z-index: 1;
  background: none; border: 0; color: var(--muted);
  font: 500 14px var(--sans); padding: 10px; cursor: pointer; border-radius: 9px;
  transition: color 0.2s;
}
.tabs button.on { color: var(--text); }
.tab-ink {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px;
  transition: transform 0.25s cubic-bezier(.3,.8,.3,1);
}
.tab-ink.right { transform: translateX(100%); }

/* zone de dépôt */
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; min-height: 210px; padding: 28px 20px;
  border: 1px dashed #3a3a41; border-radius: 16px; color: var(--muted);
  cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.drop svg { color: var(--accent); margin-bottom: 8px; }
.drop:hover, .drop.over { border-color: var(--accent-2); background: rgba(217, 196, 161, 0.04); }
.drop-title { color: var(--text); font: 400 20px var(--serif); }
.drop-sub { font-size: 13.5px; }
.drop-sub u { text-decoration-color: var(--accent-2); text-underline-offset: 3px; color: var(--text); }

/* ligne fichier */
.file-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; background: #0e0e11; border: 1px solid var(--line); border-radius: 14px;
}
.file-ico {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: var(--panel-2); color: var(--accent);
}
.file-meta { flex: 1; min-width: 0; }
.file-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { color: var(--muted); font-size: 13px; }
.file-size strong { color: var(--text); font-weight: 500; }
.pct { font: 400 22px var(--serif); color: var(--accent); font-variant-numeric: tabular-nums; }

.label {
  margin: 26px 0 10px; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.label.first { margin-top: 6px; }

/* choix de durée */
.pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }

/* case à cocher */
.check {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; padding: 14px;
  background: #0e0e11; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color 0.2s;
}
.check:hover { border-color: #3a3a41; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  border: 1.5px solid #4a4a52; display: grid; place-items: center; transition: all 0.15s;
}
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .box::after {
  content: ""; width: 5px; height: 10px; margin-top: -2px;
  border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-text { font-weight: 500; }
.check-text small { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); font-size: 13px; }
.pill {
  background: #0e0e11; border: 1px solid var(--line); color: var(--muted);
  border-radius: 10px; padding: 11px 6px; font: 500 14px var(--sans); cursor: pointer;
  transition: all 0.15s;
}
.pill:hover { color: var(--text); border-color: #3a3a41; }
.pill[aria-checked="true"] {
  color: var(--accent-ink); background: var(--accent); border-color: var(--accent);
}

/* boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 14px 18px; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, #e3d1b0, var(--accent)); color: var(--accent-ink);
  font: 600 15px var(--sans); text-decoration: none;
  transition: transform 0.1s, filter 0.2s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: #46464d; filter: none; }
.btn.block { margin-top: 16px; }
.btn[disabled] { opacity: 0.5; cursor: default; }

.link {
  background: none; border: 0; color: var(--muted); cursor: pointer; font: 500 13.5px var(--sans);
  padding: 4px 2px; text-decoration: underline; text-decoration-color: #444; text-underline-offset: 3px;
}
.link:hover { color: var(--text); }
.link.center { display: block; margin: 22px auto 0; }

/* progression */
.bar { height: 6px; background: #0e0e11; border: 1px solid var(--line); border-radius: 99px; margin: 18px 0 12px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent-2), #efe0c2); transition: width 0.25s linear; }
.progress-foot { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* résultat */
#s-done { text-align: center; padding-top: 14px; }
.done-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.code {
  margin: 14px 0 26px; font: 500 clamp(34px, 9vw, 46px)/1 var(--mono);
  letter-spacing: 0.08em; color: var(--accent); user-select: all;
  padding: 26px 8px; border: 1px solid var(--line); border-radius: 16px; background: #0e0e11;
}
.done-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.done-info { margin-top: 20px; color: var(--muted); font-size: 13.5px; }
.done-info strong { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

.done-once { margin-top: 10px; color: var(--accent); font-size: 13px; }
.done-once.left { margin: 14px 2px 0; }
.done-info .dot { margin: 0 6px; }
#d-name { display: inline-block; max-width: 45%; vertical-align: bottom; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* récupérer */
#g-form { display: flex; gap: 10px; }
#g-form .btn { width: auto; flex: none; }
.code-input {
  flex: 1; min-width: 0; padding: 13px 16px; border-radius: 12px;
  background: #0e0e11; border: 1px solid var(--line); color: var(--text);
  font: 500 20px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
  outline: none; transition: border-color 0.2s;
}
.code-input::placeholder { color: #43434a; }
.code-input:focus { border-color: var(--accent-2); }
#g-file { margin-top: 22px; }

.error { margin: 18px 0 0; color: var(--danger); font-size: 14px; text-align: center; }

.foot { margin: 28px auto 0; max-width: 420px; text-align: center; color: #5f5e5a; font-size: 12.5px; }

@media (max-width: 480px) {
  .pills { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .pill { font-size: 13px; padding: 10px 2px; }
  .done-actions { grid-template-columns: 1fr; }
  #g-form { flex-direction: column; }
  #g-form .btn { width: 100%; }
  .top { padding: 20px; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* annonce */
.announce {
  margin: 0 auto 18px; max-width: 580px; padding: 12px 16px; text-align: center; font-size: 14px;
  color: var(--accent); background: rgba(217, 196, 161, 0.07); border: 1px solid rgba(217, 196, 161, 0.25); border-radius: 12px;
  overflow-wrap: anywhere;
}
.announce.warn { color: var(--danger); background: rgba(229, 139, 124, 0.08); border-color: rgba(229, 139, 124, 0.3); }

/* ---------- navigation & pied de page ---------- */
.topnav { display: flex; gap: 4px; margin: 0 auto 0 28px; }
.topnav a { color: var(--muted); text-decoration: none; font: 500 14px var(--sans); padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.topnav a:hover { color: var(--text); background: rgba(255,255,255,.04); }

.site-foot { margin-top: auto; border-top: 1px solid var(--line); background: rgba(0,0,0,.25); padding: 36px 24px 22px; }
.foot-in { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 2.4fr; gap: 36px; }
.foot-brand p { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; max-width: 260px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols h3 { margin: 0 0 12px; font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot-cols a, .linkbtn { display: block; color: var(--text); opacity: .82; text-decoration: none; font-size: 14px; padding: 4px 0; background: none; border: 0; cursor: pointer; font-family: var(--sans); text-align: left; }
.foot-cols a:hover, .linkbtn:hover { opacity: 1; color: var(--accent); }
.foot-copy { max-width: 980px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--line); color: #6d6c67; font-size: 12.5px; }

/* ---------- contenu de la page d'accueil ---------- */
.content { width: 100%; max-width: 820px; margin: 0 auto; padding: 24px 24px 64px; }
.content h2, .doc h2 { font: 400 26px/1.25 var(--serif); margin: 44px 0 16px; letter-spacing: -.005em; }
.content > h2:first-child { margin-top: 20px; }
.content p, .doc p, .doc li { color: #c8c6bf; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.steps li > span { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--accent-2); color: var(--accent); font: 500 16px var(--serif); }
.steps h3, .mini h3 { margin: 0 0 4px; font: 600 15px var(--sans); color: var(--text); }
.steps p, .mini p { margin: 0; font-size: 14.5px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.linkrow { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.linkrow a { color: var(--accent); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.linkrow a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- pages de contenu ---------- */
.doc-wrap { width: 100%; max-width: 780px; margin: 0 auto; padding: 8px 24px 64px; flex: 1; }
.doc h1 { font: 400 clamp(30px, 5vw, 40px)/1.15 var(--serif); margin: 14px 0 14px; letter-spacing: -.01em; }
.doc .lead { font-size: 17px; color: var(--muted); margin: 0 0 8px; }
.doc .upd { color: #6d6c67; font-size: 13px; margin: -4px 0 16px; }
.doc .crumb { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.doc a, .content a { color: var(--accent); text-underline-offset: 3px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); font-weight: 600; }
.doc .more { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.doc .mono, .mono { font-family: var(--mono); font-size: .92em; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; display: block; overflow-x: auto; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { color: var(--muted); font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.doc td { color: #c8c6bf; }

.qa { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin: 10px 0; }
.qa summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 500; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.qa[open] summary::after { content: "–"; }
.qa > div { padding: 0 18px 6px; }
.qa p { margin: 0 0 12px; }

.gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 24px; }
.gcard { display: block; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; text-decoration: none !important; transition: border-color .2s, transform .2s; }
.gcard:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.gcard h2 { margin: 0 0 8px !important; font: 400 19px/1.3 var(--serif) !important; color: var(--text); }
.gcard p { margin: 0 0 14px; font-size: 14px; color: var(--muted) !important; }
.gcard span { color: var(--accent); font-size: 13.5px; font-weight: 500; }

.btn.inline { width: auto; display: inline-flex; }

/* ---------- formulaire (signalement) ---------- */
.form { margin-top: 24px; display: grid; gap: 16px; }
.fld { display: block; }
.fld > span { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fld > span em { text-transform: none; letter-spacing: 0; font-style: normal; color: #6d6c67; }
.inp { width: 100%; padding: 12px 14px; border-radius: 10px; background: #0e0e11; border: 1px solid var(--line); color: var(--text); font: 15px var(--sans); outline: none; }
.inp:focus { border-color: var(--accent-2); }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea.inp { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ok-msg { margin: 0; color: #9ad4a6; font-size: 14.5px; text-align: center; padding: 12px; border: 1px solid rgba(154,212,166,.3); border-radius: 10px; background: rgba(154,212,166,.06); }
.form .error { margin: 0; }

/* ---------- publicité ---------- */
.ad { margin: 36px auto; text-align: center; min-height: 0; max-width: 728px; }
.ad-label { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6d6c67; }
.ad img { max-width: 100%; height: auto; border-radius: 8px; }

@media (max-width: 760px) {
  .topnav { display: none; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .cards3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr; } }
