/* Espace bénévoles : sobre, lisible, utilisable sur téléphone. */
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #f3efe8; --surface: #fbf8f3; --ink: #1d1815; --muted: #6b6159; --line: #d8cdbf;
  --club: #1c1714; --ball: #b4532f; --ok: #2f6b4f; --err: #a3361f; --focus: #2c5bd8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #13110f; --surface: #1d1a17; --ink: #f1eee8; --muted: #a9a399; --line: #38332d; --club: #3d1018; --ok: #5aa47f; --err: #e0765c; --focus: #8fb0ff; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #13110f; --surface: #1d1a17; --ink: #f1eee8; --muted: #a9a399; --line: #38332d; --club: #3d1018; --ok: #5aa47f; --err: #e0765c; --focus: #8fb0ff; color-scheme: dark; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 "Hanken Grotesk", "Segoe UI", Roboto, Arial, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
img { max-width: 100%; display: block; }
h1, h2 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; margin: 0; }
h1 { font-size: 2rem; } h2 { font-size: 1.4rem; }
.a-wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.a-header { background: var(--club); color: #fff; }
.a-header a { color: #fff; }
.a-header-row { display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; padding-block: 10px; }
.a-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.2rem/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.a-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.a-nav a { text-decoration: none; padding: 6px 10px; border-radius: 6px; font-weight: 600; }
.a-nav a[aria-current="page"], .a-nav a:hover { background: rgb(255 255 255 / .16); }
.a-user { font-size: .92rem; opacity: .9; }
@media (max-width: 760px) { .a-nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; } .a-nav a { white-space: nowrap; } .a-user { margin-left: auto; } }
.a-main { padding-block: 28px 64px; display: grid; gap: 22px; }
.a-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.a-help { color: var(--muted); max-width: 70ch; margin: 0; }

.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: 700 1rem/1 "Hanken Grotesk", sans-serif; text-decoration: none; cursor: pointer; }
.a-btn-ball { background: var(--ball); border-color: var(--ball); color: #fff; }
.a-btn-ghost { background: transparent; color: var(--ink); }
.a-btn-danger { background: transparent; color: var(--err); border-color: var(--err); }
.a-btn-sm { min-height: 36px; padding: 6px 12px; font-size: .92rem; }

.a-flash { margin: 0; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--surface)); font-weight: 600; }
.a-flash-err { border-color: var(--err); background: color-mix(in srgb, var(--err) 14%, var(--surface)); }

.a-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 16px; }
.a-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.a-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.a-item:first-child { border-top: 0; }
.a-thumb { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; background: var(--bg); }
.a-thumb-empty { display: grid; place-items: center; background: var(--club); color: #fff; font: 700 .8rem/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.a-item-title { font-weight: 700; line-height: 1.3; }
.a-item-sub { color: var(--muted); font-size: .9rem; }
.a-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; }
.a-tag { display: inline-block; font: 700 .72rem/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); margin-right: 4px; }
.a-tag-draft { background: var(--ball); color: #fff; border-color: var(--ball); }
.a-tag-une { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 600px) { .a-item { grid-template-columns: 52px minmax(0, 1fr); } .a-thumb { width: 52px; height: 52px; } .a-actions { grid-column: 1 / -1; justify-content: start; } }

.a-form { display: grid; gap: 18px; }
.a-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.a-field { display: grid; gap: 6px; min-width: 0; }
.a-field > span:first-child, .a-field > label { font-weight: 700; }
.a-hint { color: var(--muted); font-size: .88rem; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=datetime-local], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 220px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.a-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.a-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--club); }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; display: grid; gap: 14px; min-width: 0; }
legend { font: 700 1.1rem/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .04em; padding: 0 6px; }
.a-preview { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.a-preview img { max-height: 180px; width: auto; border-radius: 6px; border: 1px solid var(--line); }
.a-drop { border: 2px dashed var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 8px; justify-items: start; }
.a-drop.is-over { border-color: var(--focus); background: color-mix(in srgb, var(--focus) 8%, var(--surface)); }
.a-sticky { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--bg) 70%, transparent); display: flex; gap: 10px; flex-wrap: wrap; }
.a-login { max-width: 420px; margin: 6vh auto 0; }
.a-small { font-size: .9rem; color: var(--muted); }
code { background: var(--bg); padding: 1px 5px; border-radius: 4px; }
