/* 1pour1 — skin 2008 modernisé (2026) */
:root {
  --ink: #1d2533;
  --muted: #5b6678;
  --bar1: #323e52;
  --bar2: #1b2230;
  --side: #cdd5e2;
  --side2: #e2e7ef;
  --paper: #eef1f5;
  --cell: #e6e9ef;
  --cell2: #f4f6f9;
  --line: #c6cfdc;
  --field: #e3a1a9;
  --accent: #d0142c;
  --accent-soft: rgba(208, 20, 44, .14);
  --link: #1d4fd8;
  --ok: #1f8a4c;
  --warn: #b7791f;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 14px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 12% -8%, #ffffff 0, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #f3f5f9 0%, #e2e7ef 100%);
  background-color: #e2e7ef;
  min-height: 100vh;
}
a { color: var(--link); }
code { font: 12.5px/1.4 ui-monospace, "SF Mono", Menlo, monospace; background: #fff; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 19px; }
h2 { font-size: 16px; margin-top: 1.4em; }
h2:first-child { margin-top: 0; }
p { margin: 0 0 .9em; }
small { color: var(--muted); display: block; margin-top: 3px; font-size: 12px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 26px 18px 48px; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: inherit; margin: 4px 0 22px 6px; }
.logo-word {
  font-family: Orbitron, "Arial Black", Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 8.5vw, 66px);
  line-height: .95;
  letter-spacing: .015em;
  background: linear-gradient(176deg, #4a5770 0%, #161c27 48%, #0c1018 52%, #2e384a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(5px 5px 0 rgba(135, 146, 165, .55)) drop-shadow(0 12px 16px rgba(15, 22, 34, .28));
  transition: filter .25s ease;
}
.brand:hover .logo-word { filter: drop-shadow(6px 6px 0 rgba(208, 20, 44, .35)) drop-shadow(0 14px 18px rgba(15, 22, 34, .32)); }
.logo-img { display: block; width: clamp(220px, 40vw, 360px); height: auto; transition: transform .25s ease; }
.brand:hover .logo-img { transform: translateY(-1px); }
.logo-tag { font-size: 15px; color: var(--muted); margin: 10px 0 0 6px; letter-spacing: .01em; }

/* ---------- Coque ---------- */
.shell {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 1px 2px rgba(15, 22, 34, .08),
    0 14px 30px -10px rgba(15, 22, 34, .30),
    0 40px 70px -30px rgba(15, 22, 34, .40);
}
.bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 16px;
  background: linear-gradient(180deg, var(--bar1), var(--bar2));
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
  position: relative; z-index: 1;
}
.bar-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.counter { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.counter b { font-variant-numeric: tabular-nums; }
.refresh { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: #fff;
  background: linear-gradient(180deg, #57c766, #2f9a42); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.refresh:hover { transform: rotate(-30deg); transition: transform .2s; }
.foot { font-weight: 600; letter-spacing: .02em; }
.online { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.online b { font-weight: 700; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #57c766; box-shadow: 0 0 0 3px rgba(87,199,102,.25); }

.grid { display: grid; grid-template-columns: 228px 1fr; min-height: 380px; }
aside {
  background: linear-gradient(180deg, var(--side2), #d8dfe9);
  padding: 14px 12px 22px;
  border-right: 1px solid var(--line);
  box-shadow: inset -10px 0 14px -12px rgba(15, 22, 34, .3);
}
main { padding: 20px 24px 26px; min-width: 0; }
main.solo { padding: 24px 28px 30px; }

/* ---------- Menu ---------- */
.menu { list-style: none; margin: 0 0 14px; padding: 5px; background: var(--side); border-radius: 11px;
  box-shadow: inset 0 1px 2px rgba(15,22,34,.14), 0 1px 0 rgba(255,255,255,.7); }
.menu a { display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 7px;
  color: var(--ink); text-decoration: none; font-weight: 500; transition: background .15s, box-shadow .15s; }
.menu li + li a { margin-top: 1px; }
.menu a::before { content: ""; flex: none; border-left: 7px solid #3a4558;
  border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; transition: border-color .15s, transform .15s; }
.menu a:hover, .menu a.on { background: #fff; box-shadow: 0 2px 6px rgba(15,22,34,.13); }
.menu a:hover::before, .menu a.on::before { border-left-color: var(--accent); transform: translateX(2px); }
.menu a.on { font-weight: 600; }

.loginbox { display: grid; gap: 7px; padding: 12px; background: var(--side); border-radius: 11px;
  box-shadow: inset 0 1px 2px rgba(15,22,34,.14), 0 1px 0 rgba(255,255,255,.7); font-size: 13px; }
.loginbox label { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 6px; }
.loginbox input { width: 100%; padding: 4px 8px; }
.loginbox-row { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.loginbox-row a { color: var(--ink); text-decoration: none; }
.loginbox-row a:hover { color: var(--accent); }
.loginbox.me { text-align: center; justify-items: center; }
.me-name { font-weight: 700; }
.me-credits b { display: block; font: 900 24px/1.1 Orbitron, sans-serif; }
.me-credits span { font-size: 12px; color: var(--muted); }

.hitparade { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 22px auto 0; width: fit-content;
  padding: 6px 14px; border-radius: 999px; background: #fff; text-decoration: none;
  font: 800 13px/1 Orbitron, sans-serif; letter-spacing: .08em; color: var(--link);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 4px 10px -2px rgba(29,79,216,.3); transition: transform .15s, box-shadow .15s; }
.hitparade:hover { transform: translateY(-1px); box-shadow: 0 8px 16px -4px rgba(29,79,216,.4); }

/* ---------- Champs & boutons ---------- */
input, select, textarea {
  font: inherit; color: inherit; padding: 6px 10px; border: 1px solid var(--field); border-radius: 8px; background: #fff;
  box-shadow: inset 0 1px 2px rgba(15,22,34,.08); transition: border-color .15s, box-shadow .15s; max-width: 100%;
}
input[type=checkbox], input[type=radio] { box-shadow: none; accent-color: var(--accent); width: 16px; height: 16px; vertical-align: -3px; }
input[type=file] { border-style: dashed; padding: 6px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input.wide, textarea.wide { width: 100%; }
textarea { resize: vertical; }
textarea.code { width: 100%; font: 12px/1.45 ui-monospace, "SF Mono", Menlo, monospace; background: #fbfcfd; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 18px; border-radius: 8px; border: 1px solid var(--field);
  background: linear-gradient(180deg, #fff, #f3f4f7); color: var(--ink); font: 500 14px/1.4 inherit; cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 2px rgba(15,22,34,.1); transition: transform .1s, box-shadow .15s, border-color .15s; }
.btn:hover { border-color: var(--accent); box-shadow: 0 4px 10px -3px rgba(15,22,34,.25); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #e3283f, #b50f23); border-color: #a00d20; color: #fff; font-weight: 600;
  box-shadow: 0 6px 14px -6px rgba(208,20,44,.7); }
.btn.small { padding: 2px 12px; font-size: 13px; }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.danger { color: var(--accent); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.inline { display: inline; }

/* ---------- Formulaire (grille façon 2008) ---------- */
.form-intro strong { display: block; font-size: 14.5px; }
.form { display: grid; grid-template-columns: 200px 1fr; gap: 1px; background: #d9dee6; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,22,34,.08), 0 8px 20px -14px rgba(15,22,34,.35); margin: 10px 0 8px; }
.form > .l { background: var(--cell); padding: 7px 12px; display: flex; align-items: center; justify-content: flex-end; text-align: right; font-weight: 500; }
.form > .f { background: var(--cell2); padding: 6px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.form > .f > small { width: 100%; margin: 0; }
.form > .l.strong { font-weight: 700; }
.form > .full { grid-column: 1 / -1; background: var(--cell2); padding: 8px 12px; }
.form details summary { cursor: pointer; color: var(--link); }
.form details[open] summary { margin-bottom: 6px; }
.note { text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- Accueil ---------- */
.hero { display: grid; grid-template-columns: 1fr 300px; gap: 18px 26px; align-items: center; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 16px 18px rgba(15,22,34,.22)); }
.lead { font-size: 15px; }
.red { color: var(--accent); font-weight: 700; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 18px; margin: 3px 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .52em; border-left: 7px solid #3a4558;
  border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.chip { background: #fff; border-radius: 12px; padding: 10px 14px; min-width: 130px;
  box-shadow: 0 1px 2px rgba(15,22,34,.08), 0 8px 18px -12px rgba(15,22,34,.4); }
.chip b { display: block; font: 900 20px/1.15 Orbitron, sans-serif; letter-spacing: .01em; }
.chip span { font-size: 12px; color: var(--muted); }
.chip.accent b { color: var(--accent); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: 0 1px 2px rgba(15,22,34,.08), 0 8px 20px -14px rgba(15,22,34,.35); margin: 8px 0 12px; }
table.data { width: 100%; border-collapse: collapse; background: var(--cell2); }
table.data th { text-align: left; font-weight: 700; padding: 8px 12px; background: var(--cell); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 6px 12px; border-top: 1px solid #e3e7ee; vertical-align: middle; }
table.data tr:hover td { background: #fff; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tfoot td { font-weight: 700; background: var(--cell); }
table.data td.actions { white-space: nowrap; text-align: right; }
table.data td.actions form { display: inline; }
.warn-line { text-align: center; color: var(--accent); margin: 10px 0 0; }

/* ---------- Bannières ---------- */
.banner { display: block; width: 468px; max-width: 100%; height: auto; aspect-ratio: 468 / 60; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(15,22,34,.15), 0 6px 14px -8px rgba(15,22,34,.45); background: #fff; object-fit: cover; }
.banner.sm { width: 234px; }
.size-ok { color: var(--ok); }
.size-ko { color: var(--accent); font-weight: 600; }

/* ---------- Espace membre ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 18px; }
.card { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(15,22,34,.08), 0 8px 18px -12px rgba(15,22,34,.4); }
.card b { display: block; font: 900 21px/1.15 Orbitron, sans-serif; }
.card span { font-size: 12px; color: var(--muted); }
.card.accent { background: linear-gradient(180deg, #2c374a, #1b2230); color: #fff; }
.card.accent span { color: #b9c3d3; }
.panel { background: #fff; border-radius: 12px; padding: 14px 16px; margin: 10px 0 16px; box-shadow: 0 1px 2px rgba(15,22,34,.08), 0 8px 18px -12px rgba(15,22,34,.4); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.tabs a { padding: 5px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--cell); font-weight: 500; }
.tabs a.on { background: var(--bar2); color: #fff; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 70px; padding: 6px 2px 0; }
.spark i { flex: 1; background: linear-gradient(180deg, #e3283f, #b50f23); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.spark i.d { background: linear-gradient(180deg, #4a5770, #2c374a); }
.legend { font-size: 12px; color: var(--muted); display: flex; gap: 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ---------- Badges & messages ---------- */
.badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-pending { background: #fdf0d5; color: #8a5a00; }
.b-active { background: #d9f2e1; color: #17693a; }
.b-refused { background: #fbdde1; color: #a00d20; }
.b-suspended { background: #e3e6eb; color: #4b5566; }
.flash { padding: 10px 14px; border-radius: 10px; margin: 0 0 14px; border: 1px solid; }
.flash-ok { background: #e7f6ec; border-color: #b6e2c4; color: #17693a; }
.flash-err { background: #fdecee; border-color: #f4bcc4; color: #8f0b1c; }
.flash-info { background: #eaf0fd; border-color: #c3d3f6; color: #1d3f9c; }
.checks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 3px; }
.checks .ok { color: var(--ok); }
.checks .ko { color: var(--accent); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border-radius: 10px; padding: 9px 14px; margin: 0 0 8px; box-shadow: 0 1px 2px rgba(15,22,34,.08); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { margin-bottom: 6px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.pager { display: flex; gap: 4px; justify-content: center; margin: 10px 0 0; }
.pager a, .pager span { padding: 3px 10px; border-radius: 7px; background: var(--cell); text-decoration: none; color: var(--ink); }
.pager span { background: var(--bar2); color: #fff; }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  aside { border-right: 0; border-bottom: 1px solid var(--line); box-shadow: none; }
  .menu { display: flex; flex-wrap: wrap; gap: 2px; }
  .menu li { flex: 1 1 auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 300px; margin: 0 auto; order: -1; }
  main { padding: 16px; }
  .form { grid-template-columns: 1fr; }
  .form > .l { justify-content: flex-start; text-align: left; padding-bottom: 0; }
  .bar-title { font-size: 11.5px; }
}
@media (max-width: 480px) {
  .wrap { padding: 16px 10px 32px; }
  .bar { font-size: 12px; padding: 8px 12px; }
  .bar-title { display: none; }
  .bar .counter { margin-left: auto; }
}
