@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Dɛmɛ, design system moderne, clair, aux couleurs du Mali. */
:root {
  color-scheme: light;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-2: #f0f2ef;
  --border: #e6e9e4;
  --border-strong: #d6dad2;
  --text: #16190f;
  --text-2: #565b4e;
  --muted: #8a8f80;
  /* Vert du drapeau malien comme couleur principale */
  --accent: #0b7d3c;
  --accent-600: #0a6a33;
  --accent-weak: #e6f4ea;
  /* Or et rouge du Mali, en accents */
  --gold: #e8a400;
  --gold-bg: #fbf1ce;
  --gold-text: #8a6500;
  --ok: #0b7d3c;
  --ok-bg: #e6f4ea;
  --warn: #8a6500;
  --warn-bg: #fbf1ce;
  --danger: #ce1126;
  --danger-bg: #fde8ea;
  --radius: 14px;
  --radius-lg: 18px;
  --pill: 999px;
  --maxw: 1080px;
  --shadow-sm: 0 1px 2px rgba(18, 22, 38, .06), 0 1px 3px rgba(18, 22, 38, .05);
  --shadow-md: 0 6px 20px rgba(18, 22, 38, .08);
  --shadow-lg: 0 16px 40px rgba(18, 22, 38, .14);
}

* { box-sizing: border-box; }
/* Les classes du design system l'emportent sur [hidden] : on le remet en tête. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; margin: 0; }
::selection { background: var(--accent-weak); }

/* Layout ------------------------------------------------------------------ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 28px 18px 124px; }
.tricolore { height: 3px; background: linear-gradient(90deg, var(--accent) 0 33.33%, var(--gold) 33.33% 66.66%, var(--danger) 66.66% 100%); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 18px;
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.4) blur(10px);
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
/* La marque officielle : le « D » poignée de main, jamais déformé ni recoloré. */
.wordmark__mark { width: 28px; height: 28px; object-fit: contain; flex: 0 0 auto; }
/* Verrou d'accessibilité : le logo est décoratif ici, le nom est déjà en texte. */
.logo-plein { display: block; height: auto; margin: 0 auto; }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.topbar__links { display: none; align-items: center; gap: 4px; }
.topbar__links a { padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.topbar__links a:hover { background: var(--surface-2); color: var(--text); }
.topbar__links a.active { color: var(--accent); font-weight: 600; }
@media (min-width: 860px) { .topbar__links { display: flex; } }

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: stretch; gap: 8px;
  padding: 8px 10px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.bottom-nav__item {
  flex: 0 0 58px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--muted); text-decoration: none;
}
.bottom-nav__item i { font-size: 22px; }
.bottom-nav__item.active { color: var(--accent); }
.bottom-nav__cta {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 9px 6px; border-radius: 14px; line-height: 1.1;
  color: #fff; font-weight: 600; font-size: 12.5px; text-decoration: none; box-shadow: var(--shadow-sm);
}
.bottom-nav__cta i { font-size: 23px; }
.bottom-nav__cta:active { transform: scale(.98); }
.bottom-nav__cta--found { background: var(--accent); }
.bottom-nav__cta--lost { background: var(--danger); }
@media (min-width: 760px) {
  .bottom-nav { display: none; }
  .container { padding-bottom: 48px; }
}

/* Helpers ----------------------------------------------------------------- */
.muted { color: var(--muted); }
.cluster { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cluster--between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.page-title { font-size: 24px; margin: 0 0 4px; }
.section-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin: 28px 0 14px; color: var(--text); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.divider { height: 1px; background: var(--border); border: 0; margin: 18px 0; }

/* Hero + search ----------------------------------------------------------- */
.hero { text-align: center; padding: 52px 0 22px; }
.hero__title { font-size: 38px; line-height: 1.1; margin: 0 0 10px; letter-spacing: -0.035em; }
.hero__title .accent { color: var(--accent); }
.hero__sub { color: var(--text-2); font-size: 16px; margin: 0 0 26px; }
.searchbar {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border-strong); border-radius: var(--pill);
  padding: 7px 8px 7px 20px; background: var(--surface);
  max-width: 600px; margin: 0 auto;
  box-shadow: var(--shadow-md);
  transition: box-shadow .15s, border-color .15s;
}
.searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-weak), var(--shadow-md); }
.searchbar > i { font-size: 20px; color: var(--muted); }
.searchbar__input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--text); padding: 10px 0; }
.searchbar__btn { flex-shrink: 0; height: 44px; padding: 0 22px; border: 0; border-radius: var(--pill); background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.searchbar__btn:hover { background: var(--accent-600); }
@media (max-width: 560px) {
  .searchbar { padding: 6px 16px; }
  .searchbar__btn { display: none; }
}

/* Chips ------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chip {
  font-size: 13px; font-weight: 500; padding: 8px 15px; border-radius: var(--pill);
  border: 1px solid var(--border); color: var(--text-2);
  background: var(--surface); cursor: pointer; white-space: nowrap;
  transition: all .12s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip--active { background: var(--accent); color: #fff; border-color: transparent; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border: 1px solid var(--border-strong); border-radius: 11px;
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background .12s, border-color .12s, transform .08s, box-shadow .12s;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn:active { transform: scale(0.985); }
.btn i { font-size: 18px; }
.btn--primary, .btn--accent { background: var(--accent); color: #fff; border-color: transparent; }
.btn--primary:hover, .btn--accent:hover { background: var(--accent-600); }
.btn--ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 13px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Cards / gallery --------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .14s, box-shadow .14s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__media {
  height: 144px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media i { font-size: 34px; color: var(--muted); }
.card__body { padding: 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card__title { font-size: 15px; font-weight: 600; }
.card__meta { font-size: 12.5px; color: var(--muted); }
.card__body .btn { margin-top: 10px; }
.card--doc { background: linear-gradient(180deg, var(--gold-bg), var(--surface)); }
.card--doc .card__head { display: flex; align-items: center; gap: 11px; }
.card--doc .card__icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.card--doc .card__icon i { font-size: 22px; color: var(--gold-text); }
.lock-note { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }

/* Forms ------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input {
  width: 100%; min-height: 48px; padding: 13px 14px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
  transition: border-color .12s, box-shadow .12s;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-weak); }
.input--area { min-height: 92px; resize: vertical; }
.input--select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a909c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input--file { padding: 7px; display: flex; align-items: center; cursor: pointer; }
.input--file::file-selector-button {
  margin-right: 13px; padding: 10px 16px; border: 0; border-radius: 9px;
  background: var(--accent-weak); color: var(--accent); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .12s;
}
.input--file::file-selector-button:hover { background: #d6efdf; }

/* Capture photo (appareil photo direct) */
.photo-capture { display: block; position: relative; cursor: pointer; border: 1.5px dashed var(--border-strong); border-radius: 14px; background: var(--surface-2); padding: 30px 16px; text-align: center; transition: border-color .12s, background .12s; }
.photo-capture:hover { border-color: var(--accent); background: var(--accent-weak); }
.photo-capture input[type=file] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.photo-capture__prompt { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.photo-capture__prompt > i { font-size: 38px; color: var(--accent); }
.photo-capture__title { font-weight: 600; font-size: 15px; color: var(--text); }
.photo-capture__hint { font-size: 12.5px; color: var(--muted); }
.photo-capture__preview { display: none; width: 100%; max-height: 320px; object-fit: contain; border-radius: 10px; }
.photo-capture__retake { display: none; position: absolute; top: 12px; right: 12px; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 999px; background: rgba(22, 25, 15, .74); color: #fff; font-size: 12.5px; font-weight: 600; }
.photo-capture__retake i { font-size: 15px; }
.photo-capture.has-photo { border-style: solid; border-color: var(--border); background: var(--surface); padding: 8px; }
.photo-capture.has-photo .photo-capture__prompt { display: none; }
.photo-capture.has-photo .photo-capture__preview { display: block; }
.photo-capture.has-photo .photo-capture__retake { display: inline-flex; }

/* Note vocale */
.voice input[type=file] { display: none; }
.voice__btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); font: inherit; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-sm); transition: background .12s; }
.voice__btn i { font-size: 19px; color: var(--accent); }
.voice__btn:hover { background: var(--surface-2); }
.voice__btn--ghost { border-color: transparent; box-shadow: none; background: transparent; padding: 8px 12px; }
.voice__live { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); }
.voice__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--danger); animation: voicepulse 1s infinite; }
.voice__live [data-voice-timer] { font-variant-numeric: tabular-nums; font-weight: 600; }
.voice__stop { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.voice__done { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.voice__done audio { height: 42px; max-width: 100%; }
@keyframes voicepulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.checkbox { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }
.field--check { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 10px; padding: 13px 15px; background: var(--surface-2); border-radius: 12px; }
.field--check .label { font-weight: 500; color: var(--text); margin: 0; cursor: pointer; }
.form-error { color: var(--danger); font-size: 13px; }
.form-error ul { margin: 0; padding-left: 16px; }
.help { font-size: 12px; color: var(--muted); }

/* Grille de types, cadres à icônes que l'on coche */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.type-tile { display: block; cursor: pointer; }
.type-tile input { position: absolute; width: 0; height: 0; opacity: 0; }
.type-tile__box {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 94px; padding: 14px 8px; text-align: center;
  border: 1.5px solid var(--border-strong); border-radius: 14px; background: var(--surface);
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.type-tile__box > i { font-size: 26px; color: var(--text-2); }
.type-tile__name { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.2; }
.type-tile:hover .type-tile__box { border-color: var(--accent); }
.type-tile input:checked + .type-tile__box { border-color: var(--accent); background: var(--accent-weak); box-shadow: 0 0 0 3px var(--accent-weak); }
.type-tile input:checked + .type-tile__box > i { color: var(--accent); }
.type-tile input:focus-visible + .type-tile__box { box-shadow: 0 0 0 3px var(--accent-weak); }
.type-tile__lock { position: absolute; top: 8px; right: 9px; color: var(--gold-text); }
.type-tile__lock i { font-size: 13px; }

/* Combo localité, liste déroulante avec recherche */
.combo { position: relative; }
.combo__trigger {
  width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px; font: inherit; font-size: 15px; text-align: left; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer;
}
.combo__trigger > i { color: var(--muted); font-size: 18px; flex-shrink: 0; }
.combo__placeholder { color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.combo__placeholder i { font-size: 17px; }
.combo__panel {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 8px;
}
.combo__searchwrap { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; }
.combo__searchwrap i { color: var(--muted); font-size: 17px; }
.combo__search { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font: inherit; font-size: 15px; color: var(--text); }
.combo__list { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; }
.combo__option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 10px; border: 0; background: transparent; font: inherit; font-size: 14px;
  color: var(--text); text-align: left; border-radius: 9px; cursor: pointer;
}
.combo__option:hover { background: var(--surface-2); }
.combo__option[aria-selected="true"] { background: var(--accent-weak); color: var(--accent); font-weight: 600; }
.combo__region { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.combo__empty { padding: 14px 10px; color: var(--muted); font-size: 13px; text-align: center; }

/* Badges + stats ---------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: var(--pill); font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--text-2);
}
.badge--success { background: var(--ok-bg); color: var(--ok); }
.badge--warning { background: var(--warn-bg); color: var(--warn); }
.badge--muted { background: var(--surface-2); color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.stat__num { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.stat__label { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* Empty state ------------------------------------------------------------- */
.empty { text-align: center; color: var(--muted); padding: 52px 18px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.empty i { font-size: 34px; display: block; margin-bottom: 10px; color: var(--border-strong); }

/* Tables / queue ---------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--border); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover td { background: var(--surface-2); }
.table a { color: var(--accent); font-weight: 600; }
.tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }

/* Dashboard shell --------------------------------------------------------- */
.dash { display: grid; grid-template-columns: 248px 1fr; align-items: start; min-height: 100vh; }
.dash__side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--border); padding: 18px 16px; }
.dash__brand { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; padding: 6px 10px 18px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.dash__brand .wordmark__mark { width: 26px; height: 26px; }
.dash__tag { font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); background: var(--accent-weak); padding: 3px 8px; border-radius: var(--pill); }
.dash__nav { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; min-height: 0; }
.dash__group { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 14px 13px 5px; }
.dash__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.dash__user { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; }
.dash__avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.dash__user-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.dash__user-txt strong { font-size: 13.5px; }
.dash__user-txt span { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash__foot-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--text-2); font-size: 13.5px; }
.dash__foot-link i { font-size: 18px; }
.dash__foot-link:hover { background: var(--surface-2); color: var(--text); }
.dash__foot-link--btn { all: unset; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--text-2); font-size: 13.5px; cursor: pointer; width: 100%; box-sizing: border-box; }
.dash__foot-link--btn:hover { background: var(--surface-2); color: var(--text); }
.dash__nav a, .dash__nav button { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 10px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.dash__nav a i { font-size: 19px; }
.dash__nav a:hover { background: var(--surface-2); color: var(--text); }
.dash__nav a.active { background: var(--accent-weak); color: var(--accent); font-weight: 600; }
.dash__main { padding: 30px 28px; max-width: 1180px; }
@media (max-width: 760px) {
  .dash { grid-template-columns: 1fr; }
  .dash__side { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--border); }
  .dash__nav { flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .dash__group { width: 100%; padding: 8px 4px 2px; }
  .dash__foot { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .dash__user { padding: 6px; }
  .dash__foot-link--btn { width: auto; }
  .dash__main { padding: 20px 16px; }
}

/* Messages ---------------------------------------------------------------- */
.alert { border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; margin-bottom: 16px; font-size: 14px; font-weight: 500; background: var(--surface); box-shadow: var(--shadow-sm); }
.alert--success { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.alert--error { background: var(--danger-bg); border-color: transparent; color: var(--danger); }

/* Compare (recherche detail) --------------------------------------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 660px) { .compare { grid-template-columns: 1fr; } }
.media-lg { height: 220px; background: var(--surface-2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border); }
.media-lg img { width: 100%; height: 100%; object-fit: cover; }
.media-lg i { font-size: 44px; color: var(--muted); }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }

/* PWA, bandeau d'installation + feuille d'instructions iOS */
.install-banner[hidden], .ios-sheet[hidden] { display: none; }
.install-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 18px; background: var(--surface);
  border: 1px solid var(--accent); border-radius: 16px; box-shadow: var(--shadow-sm);
}
.install-banner__icon { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-weak); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.install-banner__icon i { font-size: 22px; color: var(--accent); }
.install-banner__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.install-banner__text strong { font-size: 14px; }
.install-banner__text span { font-size: 12.5px; color: var(--muted); }
.install-banner__cta { flex-shrink: 0; padding: 9px 15px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.install-banner__close { flex-shrink: 0; width: 30px; height: 30px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.install-banner__close:hover { background: var(--surface-2); }
/* Bouton WhatsApp support flottant */
.wa-fab {
  position: fixed; z-index: 34; right: 16px;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); text-decoration: none;
}
.wa-fab i { font-size: 30px; }
.wa-fab:hover { filter: brightness(1.05); }
@media (min-width: 760px) { .wa-fab { right: 24px; bottom: 24px; width: 58px; height: 58px; } }

.ios-sheet { position: fixed; inset: 0; z-index: 50; background: rgba(18, 22, 38, .45); display: flex; align-items: flex-end; justify-content: center; }
.ios-sheet__card {
  width: 100%; max-width: 440px; background: var(--surface);
  border-radius: 20px 20px 0 0; padding: 14px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-lg);
}
@media (min-width: 560px) { .ios-sheet { align-items: center; } .ios-sheet__card { border-radius: 20px; } }
.ios-sheet__grab { width: 40px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 0 auto 16px; }
.ios-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.ios-steps li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: var(--surface-2); border-radius: 12px; font-size: 14px; }
.ios-steps li span { flex: 1; }
.ios-steps li::before { counter-increment: s; content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ios-steps li i { font-size: 20px; color: var(--accent); }

/* ========================================================================= *
 *  Personnes, réseau et espaces pro
 * ========================================================================= */

/* Boutons et badges complémentaires ---------------------------------------- */
.btn--wa { background: #25D366; color: #fff; border-color: transparent; }
.btn--wa:hover { background: #1fb857; border-color: transparent; }
.btn--wa i { color: #fff; }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; }
.chip--sm { font-size: 12px; padding: 6px 12px; }
.pastille { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* Hero compact (alertes, points) ------------------------------------------ */
.hero--compact { padding: 34px 0 18px; }
.hero--compact .hero__title { font-size: 32px; }

/* Bandeau d'alertes de l'accueil ------------------------------------------ */
.strip { margin-bottom: 6px; border: 1px solid var(--danger); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--danger-bg), var(--surface)); padding: 12px 14px; }
.strip__tete { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 10px; }
.strip__tete strong { color: var(--danger); letter-spacing: -0.01em; }
.strip__pastille { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: voicepulse 1.4s infinite; }
.strip__tout { margin-left: auto; color: var(--danger); font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; gap: 2px; }
.strip__rail { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.strip__item { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; max-width: 260px; padding: 8px 12px 8px 8px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.strip__item:hover { border-color: var(--danger); }
.strip__vignette { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.strip__vignette img { width: 100%; height: 100%; object-fit: cover; }
.strip__vignette i { font-size: 20px; color: var(--muted); }
.strip__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.strip__txt strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip__txt small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Accès rapide (accueil) --------------------------------------------------- */
.acces-rapide { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 22px; }
.acces-rapide__lien { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; }
.acces-rapide__lien:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.acces-rapide__lien > i { font-size: 24px; color: var(--accent); flex-shrink: 0; }
.acces-rapide__lien span { display: flex; flex-direction: column; line-height: 1.3; }
.acces-rapide__lien strong { font-size: 14px; }
.acces-rapide__lien small { font-size: 12px; color: var(--muted); }

/* Cartes personnes -------------------------------------------------------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
.pgrid--serre { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 12px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .14s, box-shadow .14s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pcard--critique { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg), var(--shadow-sm); }
.pcard__media { position: relative; height: 178px; background: var(--surface-2); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__masque { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(180deg, var(--gold-bg), var(--surface-2)); }
.pcard__masque i { font-size: 34px; color: var(--gold-text); }
.pcard__masque span { font-size: 11.5px; font-weight: 600; color: var(--gold-text); }
.pcard__genre { position: absolute; top: 9px; left: 9px; padding: 3px 9px; border-radius: var(--pill); background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.pcard__genre--trouvee { background: var(--accent); }
.pcard__flag { position: absolute; bottom: 9px; left: 9px; right: 9px; text-align: center; padding: 4px 8px; border-radius: 8px; background: rgba(206, 17, 38, .94); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.pcard__ok { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(11, 125, 60, .82); color: #fff; font-weight: 700; font-size: 14px; }
.pcard__ok i { font-size: 20px; }
.pcard__body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 3px; }
.pcard__nom { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.pcard__meta { font-size: 12.5px; color: var(--text-2); }
.pcard__date { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.pcard__date i { font-size: 13px; }

/* Rubans ------------------------------------------------------------------ */
.ruban-alerte { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: var(--radius); background: var(--danger); color: #fff; box-shadow: var(--shadow-sm); }
.ruban-alerte i { font-size: 24px; flex-shrink: 0; }
.ruban-alerte div { display: flex; flex-direction: column; line-height: 1.3; }
.ruban-alerte span { font-size: 13px; opacity: .92; }
.ruban-ok { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius); background: var(--ok-bg); color: var(--ok); font-size: 14px; font-weight: 500; margin: 16px 0; }
.ruban-ok i { font-size: 20px; }

/* Fiche personne (public) ------------------------------------------------- */
.fiche { display: grid; grid-template-columns: 320px 1fr; gap: 20px; margin-top: 16px; align-items: start; }
@media (max-width: 720px) { .fiche { grid-template-columns: 1fr; } }
.fiche__media { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.fiche__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.fiche__masque { aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 26px; text-align: center; background: linear-gradient(180deg, var(--gold-bg), var(--surface)); }
.fiche__masque i { font-size: 44px; color: var(--gold-text); }
.fiche__masque strong { font-size: 15px; color: var(--gold-text); }
.fiche__masque span { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.fiche__corps { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.fiche__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* Duo de déclaration ------------------------------------------------------ */
.declare-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
@media (max-width: 620px) { .declare-duo { grid-template-columns: 1fr; } }
.declare-duo__btn { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius-lg); color: #fff; box-shadow: var(--shadow-sm); transition: transform .12s; }
.declare-duo__btn:active { transform: scale(.99); }
.declare-duo__btn > i { font-size: 28px; flex-shrink: 0; }
.declare-duo__btn span { display: flex; flex-direction: column; line-height: 1.3; }
.declare-duo__btn strong { font-size: 15px; }
.declare-duo__btn small { font-size: 12.5px; opacity: .9; }
.declare-duo__btn--lost { background: var(--danger); }
.declare-duo__btn--found { background: var(--accent); }

/* Cartes d'action (espaces pro) ------------------------------------------- */
.action-carte { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .12s, border-color .12s; }
.action-carte:hover { transform: translateY(-2px); border-color: var(--accent); }
.action-carte > i { font-size: 30px; color: var(--accent); flex-shrink: 0; }
.action-carte div { display: flex; flex-direction: column; line-height: 1.35; }
.action-carte strong { font-size: 14.5px; }
.action-carte span { font-size: 12.5px; color: var(--muted); }
.action-carte--alerte:hover { border-color: var(--danger); }
.action-carte--alerte > i { color: var(--danger); }

/* Réseau : cartes de structures ------------------------------------------- */
.orgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.orgcard { display: flex; gap: 13px; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; }
.orgcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.orgcard__ico, .orgtete__ico { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; background: var(--accent-weak); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.orgcard__ico i, .orgtete__ico i { font-size: 24px; color: var(--accent); }
.orgcard__ico img, .orgtete__ico img { width: 100%; height: 100%; object-fit: cover; }
.orgcard__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.orgcard__nom { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.orgcard__meta { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.orgcard__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.orgtete { display: flex; gap: 16px; align-items: flex-start; }
.orgtete__ico { width: 64px; height: 64px; border-radius: 16px; }
.orgtete__ico i { font-size: 32px; }

/* Encarts ----------------------------------------------------------------- */
.encart { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--surface); }
.encart > i { font-size: 21px; color: var(--accent); flex-shrink: 0; }
.encart div { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.encart strong { font-size: 13.5px; }
.encart span { font-size: 12.5px; color: var(--text-2); }
.encart--danger { border-left-color: var(--danger); background: var(--danger-bg); border-color: transparent; border-left: 3px solid var(--danger); }
.encart--danger > i { color: var(--danger); }
.encart--lien:hover { border-color: var(--accent); background: var(--accent-weak); }

/* Référence (page merci) -------------------------------------------------- */
.refbox { display: flex; flex-direction: column; gap: 2px; padding: 14px; margin-top: 16px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); }
.refbox span { font-size: 12px; color: var(--muted); }
.refbox strong { font-size: 22px; font-weight: 800; letter-spacing: .06em; color: var(--accent); font-variant-numeric: tabular-nums; }
.refbox small { font-size: 11.5px; color: var(--muted); }

/* Récépissé PDF proposé après un dépôt ---------------------------------- */
.recu { margin-top: 14px; padding: 16px; border: 1.5px solid var(--accent); border-radius: 12px; background: var(--accent-weak); text-align: left; }
.recu__tete { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 15px; }
.recu__tete i { font-size: 22px; }
.recu p { margin: 8px 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }

/* Radios segmentés -------------------------------------------------------- */
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented__opt { position: relative; cursor: pointer; }
.segmented__input { position: absolute; opacity: 0; width: 0; height: 0; }
.segmented__opt span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text-2); transition: all .12s; }
.segmented__opt:hover span { border-color: var(--accent); }
.segmented__input:checked + span { border-color: var(--accent); background: var(--accent-weak); color: var(--accent); font-weight: 600; box-shadow: 0 0 0 3px var(--accent-weak); }
.segmented__input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-weak); }

/* Pistes (signalements) --------------------------------------------------- */
.piste { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.piste--famille { border-left: 3px solid var(--gold); }
.piste__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.piste__dossier { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; font-size: 14px; color: var(--accent); }
.piste__dossier:hover { text-decoration: underline; }
.piste__corps { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 13.5px; align-items: flex-start; }
.piste__ligne { display: flex; align-items: center; gap: 7px; color: var(--text-2); }
.piste__ligne i { font-size: 16px; color: var(--muted); flex-shrink: 0; }
.piste__texte { margin: 4px 0; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; font-size: 13.5px; align-self: stretch; }
.piste__photo { max-height: 160px; width: auto; border-radius: 10px; border: 1px solid var(--border); }
.piste__note { display: flex; gap: 7px; padding: 8px 11px; background: var(--gold-bg); border-radius: 9px; font-size: 12.5px; color: var(--gold-text); }
.piste__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Dossier personne (pro) -------------------------------------------------- */
.dossier { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; margin-top: 14px; }
@media (max-width: 900px) { .dossier { grid-template-columns: 1fr; } }

/* Statistiques ------------------------------------------------------------ */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.stat--urgent { border-color: var(--danger); background: linear-gradient(180deg, var(--danger-bg), var(--surface)); }
.stat--urgent .stat__num { color: var(--danger); }
.stat--ok .stat__num { color: var(--accent); }
a.stat { text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; display: block; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.spark { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin-top: 14px; }
.spark__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.spark__bar { width: 100%; min-height: 3px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent), #12a04f); transition: opacity .12s; }
.spark--danger .spark__bar { background: linear-gradient(180deg, var(--danger), #e8455a); }
.spark__col:hover .spark__bar { opacity: .8; }
.spark__val { font-size: 11px; font-weight: 700; color: var(--text-2); order: -1; }
.spark__lbl { font-size: 10px; color: var(--muted); white-space: nowrap; }

.barres { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.barre { display: grid; grid-template-columns: 140px 1fr 36px; align-items: center; gap: 10px; font-size: 13px; }
.barre__nom { display: flex; align-items: center; gap: 6px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre__nom i { font-size: 15px; color: var(--muted); flex-shrink: 0; }
.barre__piste { height: 9px; border-radius: var(--pill); background: var(--surface-2); overflow: hidden; }
.barre__jauge { display: block; height: 100%; border-radius: var(--pill); background: var(--accent); }
.barre__jauge--or { background: var(--gold); }
.barre__val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .barre { grid-template-columns: 100px 1fr 30px; } }

/* Repli (détails) --------------------------------------------------------- */
.details > summary { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: var(--shadow-sm); list-style: none; }
.details > summary::-webkit-details-marker { display: none; }
.details > summary:hover { background: var(--surface-2); }

/* ========================================================================= *
 *  Pied de page et pages légales
 * ========================================================================= */
.pied { border-top: 1px solid var(--border); background: var(--surface); margin-top: 40px; }
.pied__inner { max-width: var(--maxw); margin: 0 auto; padding: 32px 18px 24px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 28px; }
.pied__marque .wordmark { font-size: 18px; }
.pied__marque .wordmark__mark { width: 26px; height: 26px; }
.pied__marque p { margin: 8px 0 0; font-size: 13px; max-width: 240px; }
.pied__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pied__nav > div { display: flex; flex-direction: column; gap: 7px; }
.pied__nav strong { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
.pied__nav a { font-size: 13.5px; color: var(--text-2); }
.pied__nav a:hover { color: var(--accent); }
.pied__bas {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 18px 22px;
  border-top: 1px solid var(--border);
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--text-2);
}
.pied__bas a { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) {
  .pied { margin-bottom: 96px; }
  .pied__inner { grid-template-columns: 1fr; gap: 22px; padding: 26px 18px 18px; }
  .pied__nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .pied__nav { grid-template-columns: 1fr; } }

/* Mention d'acceptation sous les formulaires ------------------------------ */
.consentement { font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; margin: 12px 0 0; }
.consentement a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.consentement strong { color: var(--text-2); }

/* Pages légales ----------------------------------------------------------- */
.legal { max-width: 760px; margin: 0 auto; }
.legal__fil { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.legal__fil a { color: var(--accent); font-weight: 600; }
.legal__fil i { font-size: 14px; }
.legal__tete { padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }

.legal__clair { background: var(--accent-weak); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 26px; }
.legal__clair > strong { display: flex; align-items: center; gap: 7px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-bottom: 8px; }
.legal__clair p { margin: 0; font-size: 14.5px; }
.legal__clair ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.legal__clair--inline { background: var(--surface-2); margin: 0 0 16px; padding: 14px 16px; }
.legal__clair--inline > strong { color: var(--text-2); }

.legal__corps section { margin-bottom: 30px; }
.legal__corps h2 { font-size: 18px; letter-spacing: -0.02em; margin: 0 0 12px; padding-top: 4px; }
.legal__corps p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.65; }
.legal__corps ul { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; line-height: 1.55; }
.legal__corps a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.legal__corps code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.legal__corps .dl { margin: 0 0 12px; font-size: 14.5px; }
.legal__corps .dl dt { font-weight: 600; color: var(--text-2); }

/* Article clé : encadré vert, ou rouge pour les avertissements */
.legal__cle { border: 1px solid var(--accent); border-radius: var(--radius-lg); padding: 20px 22px; background: var(--surface); }
.legal__cle h2 { color: var(--accent); }
.legal__cle--alerte { border-color: var(--danger); background: linear-gradient(180deg, var(--danger-bg), var(--surface)); }
.legal__cle--alerte h2 { color: var(--danger); }

.table--legal { font-size: 13.5px; margin-bottom: 12px; }
.table--legal th { white-space: nowrap; }
.table--legal td { vertical-align: top; }

/* Champ d'identité non renseigné : visible, pour ne pas publier par mégarde */
.acompleter { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--danger-bg); color: var(--danger); font-size: 12.5px; font-weight: 700; }

.legal__pied { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); }
.legal__pied p { font-size: 13.5px; margin: 0 0 12px; }
.legal__liens { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.legal__liens a { color: var(--accent); font-weight: 600; }

/* ========================================================================= *
 *  Récompenses : saisie, rail d'accueil, cartes « on cherche ça »
 * ========================================================================= */

/* Champ récompense (formulaire) ------------------------------------------- */
.recompense { display: flex; flex-direction: column; gap: 10px; }
.recompense__accroche { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--text-2); }
.recompense__accroche i { font-size: 18px; color: var(--gold); flex-shrink: 0; }
.recompense__paliers { display: flex; flex-wrap: wrap; gap: 8px; }
.recompense__palier {
  padding: 9px 15px; border: 1.5px solid var(--border-strong); border-radius: var(--pill);
  background: var(--surface); font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--text-2); cursor: pointer; white-space: nowrap; transition: all .12s;
}
.recompense__palier:hover { border-color: var(--gold); color: var(--gold-text); }
.recompense__palier.is-actif { background: var(--gold-bg); border-color: var(--gold); color: var(--gold-text); }
.recompense__reel { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 12.5px; color: var(--muted); }
.recompense__reel i { font-size: 15px; }
.recompense__frais { margin: 0; padding: 9px 12px; border-radius: 10px; background: var(--accent-weak); color: var(--accent); font-size: 13px; font-weight: 600; }

/* Rail des récompenses en cours (accueil) --------------------------------- */
.primes { margin: 22px 0 4px; border: 1px solid var(--gold); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--gold-bg), var(--surface)); padding: 14px 16px; }
.primes__tete { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.primes__tete > div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.primes__tete strong { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--gold-text); }
.primes__tete span { font-size: 12.5px; }
.primes__tout { margin-left: auto; flex-shrink: 0; color: var(--gold-text); font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; gap: 2px; }
.primes__rail { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.primes__item {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px;
  padding: 11px 15px; border-radius: 13px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); min-width: 132px;
}
.primes__item:hover { border-color: var(--gold); }
.primes__montant { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--gold-text); white-space: nowrap; }
.primes__quoi { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; }
.primes__quoi i { font-size: 14px; color: var(--muted); }
.primes__ou { font-size: 11.5px; color: var(--muted); }

/* Cartes « on cherche ça » ------------------------------------------------- */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.rcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .14s, box-shadow .14s; }
.rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rcard--prime { border-color: var(--gold); }
.rcard__prime { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px; background: linear-gradient(90deg, var(--gold-bg), var(--surface)); border-bottom: 1px solid var(--border); }
.rcard__prime-montant { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: var(--gold-text); }
.rcard__prime-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rcard__corps { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.rcard__desc { margin: 0; font-size: 14px; line-height: 1.5; }
.rcard__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.rcard__meta span { display: inline-flex; align-items: center; gap: 4px; }
.rcard__meta i { font-size: 13px; }
.rcard__net { margin: 0; padding: 8px 11px; border-radius: 9px; background: var(--accent-weak); color: var(--accent); font-size: 12.5px; }
.rcard__net strong { font-weight: 700; }
.rcard__corps .btn { margin-top: auto; }

/* Rappel de l'annonce a laquelle on repond ------------------------------- */
.rappel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 14px 16px; margin-top: 16px; box-shadow: var(--shadow-sm); }
.rappel--prime { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-bg), var(--surface)); }
.rappel__tete { display: flex; flex-wrap: wrap; gap: 6px; }
.rappel__desc { margin: 10px 0 0; font-size: 14px; font-style: italic; color: var(--text-2); }
.rappel__prime { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.rappel__montant { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--gold-text); margin-right: 6px; }
.rappel__net { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; }

/* Panneau a traiter en priorite (tableau de bord) ------------------------ */
.panel--chaud { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-bg), var(--surface)); }

/* Pages d'erreur (404, 403, 400, jeton expire) --------------------------- */
.erreur { max-width: 560px; margin: 24px auto 0; text-align: center; }
.erreur__code { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); background: var(--surface-2); border-radius: var(--pill); padding: 5px 12px; }
.erreur__titre { margin: 14px 0 8px; }
.erreur__texte { color: var(--text-2); margin: 0 0 20px; }
.erreur__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.erreur__aide { margin-top: 22px; text-align: left; }
