/* O Cœur de la Rue · Bénévoles — même langage visuel que ocoeurdelarue.org :
   fond blanc, gris clair, noir profond, rouge du cœur, titres Inter très gras et serrés, photos aux grands arrondis. */
:root {
  /* Palette O CŒUR DE LA RUE (charte) */
  --oclr-red: #BE2638;
  --oclr-red-deep: #941C2C;
  --oclr-cream: #F6F3ED;
  --oclr-black: #171717;
  --oclr-grey: #6B6B6B;
  --oclr-line: #E8E4DE;
  --oclr-dark-surface: #292929;
  --oclr-dark-text: #D0CBC4;

  /* Tokens de thème (espace Bénévoles par défaut) */
  --ink: var(--oclr-black);
  --muted: var(--oclr-grey);
  --line: var(--oclr-line);
  --soft: var(--oclr-cream);
  --surface: #ffffff;
  --red: var(--oclr-red);
  --red-dark: var(--oclr-red-deep);
  --page: var(--oclr-cream);   /* fond de page */
  --card: #ffffff;             /* fond des blocs posés dessus */

  /* Couleurs fonctionnelles, distinctes du rouge de marque */
  --ok: #1F7A4C;
  --warn: #8A5A00;
  --danger: #B3261E;
  --info: #1F5FA8;
  --disabled: #8E8E93;

  --radius-lg: 24px;
  --radius: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
}
/* Espace Solidarité : plus doux, le rouge en accent seulement */
body[data-space="solidarite"] { --soft: var(--oclr-cream); }
body[data-space="solidarite"] .tabs a[aria-current="page"] { color: var(--oclr-black); }
body[data-space="solidarite"] .btn:not(.ghost):not(.danger) { background: var(--oclr-black); color: #fff; }
body[data-space="solidarite"] .btn:not(.ghost):not(.danger):hover { background: #000; }
body[data-space="solidarite"] .badge.mine { background: var(--oclr-black); }
/* Espace Pilotage : sobre et professionnel, lisible sur les longues listes */
body[data-space="pilotage"] .segment button[aria-pressed="true"] { background: var(--oclr-black); color: #fff; }
body[data-space="pilotage"] .top { background: var(--surface); border-bottom-color: var(--oclr-black); box-shadow: inset 0 -1px 0 var(--oclr-black); }
body[data-space="pilotage"] .tabs a[aria-current="page"] { color: var(--oclr-black); }
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.wrap { max-width: 600px; margin: 0 auto; padding: 0 18px; }

/* ── En-tête blanc comme le site ── */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; }
.brand img { height: 28px; width: auto; display: block; flex: none; }
.bell { position: relative; flex: none; width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; color: var(--ink); text-decoration: none; }
.bell svg { width: 23px; height: 23px; display: block; }
.bell .dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* ── Barre d'onglets ── */
main { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabs .wrap { display: flex; padding: 0 6px; }
.tabs a { flex: 1; text-align: center; padding: 12px 2px 14px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--red); }

/* ── Typographie du site ── */
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.04em; }
.page-title { font-weight: 800; font-size: clamp(34px, 9vw, 44px); margin: 28px 0 6px; }
.lede { color: var(--muted); margin: 0 0 22px; max-width: 60ch; }
.day { font-weight: 800; font-size: 26px; margin: 30px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.day span { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }

/* ── Créneaux ── */
.slot { display: grid; grid-template-columns: 76px 1fr; gap: 14px; background: var(--card); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 12px; text-decoration: none; color: inherit; }
.slot.is-cancelled { opacity: .55; }
.thumb { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; display: block; background: var(--soft); }
.slot-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.slot h3 { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.time { font-weight: 700; font-size: 15px; white-space: nowrap; }
.meta { font-size: 14px; color: var(--muted); margin: 2px 0 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--soft); margin-top: 8px; }
.badge.mine { background: var(--red); color: #fff; }
.badge.wait { background: #fff1d6; }
.badge.off { background: var(--soft); color: var(--red); }

/* Les places : un bonhomme par place */
.people { display: flex; flex-wrap: wrap; gap: 3px; margin: 10px 0 4px; }
.people svg { width: 15px; height: 19px; display: block; }
.people .on { fill: var(--ink); }
.people .free { fill: none; stroke: #c7c7cc; stroke-width: 1.4; }
.people .me { fill: var(--red); }
.gauge { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 12px 0 6px; }
.gauge span { display: block; height: 100%; background: var(--ink); }
.places { margin: 0; font-size: 14px; }
.places strong { font-weight: 700; }

/* ── Page d'une action ── */
.hero-photo { position: relative; margin: 16px 0 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.72)); }
.hero-photo .cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: #fff; }
.hero-photo .cap h1 { font-size: clamp(32px, 9vw, 42px); font-weight: 800; }
.hero-photo .cap p { margin: 6px 0 0; opacity: .9; font-weight: 500; }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 500; }
.prose { white-space: pre-line; margin: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ── Boutons : pilules, rouge pour l'action principale comme « Faire un don » ── */
.btn { appearance: none; border: 0; background: var(--red); color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; }
.btn:hover { background: var(--red-dark); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.dark { background: var(--ink); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.danger { background: var(--surface); color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.btn.small { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.on { background: var(--ok); color: #fff; box-shadow: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }

.panel { background: var(--card); border-radius: var(--radius-lg); padding: 20px 18px; margin-bottom: 14px; }
.panel h2 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.panel p { margin: 0 0 12px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
label .hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  display: block; width: 100%; max-width: 100%; margin-top: 5px; padding: 12px 14px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px;
  -webkit-appearance: none; appearance: none; font-family: inherit; line-height: 1.3; }
/* Safari colore de force les champs qu'il remplit tout seul (e-mail, téléphone) : on garde notre fond */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
.pin { letter-spacing: .4em; font-weight: 700; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.row > label { min-width: 0; }
/* Safari iOS impose sa propre largeur aux champs date et heure : on la force */
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; max-width: 100%; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--red); }

/* ── Accueil : grande photo noire et titre blanc, comme « On cuisine. » ── */
.auth { min-height: 100vh; min-height: 100dvh; background: #fff; color: var(--ink); padding-bottom: 36px; }
.auth-banner { padding: 34px 18px 8px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.auth-banner img { height: 46px; width: auto; display: block; }
.auth-banner span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.auth .hero { font-weight: 900; font-size: clamp(36px, 10.5vw, 52px); line-height: .96; letter-spacing: -.05em; margin: 26px 0 12px; text-align: center; }
.auth .hero-sub { color: var(--muted); max-width: 32ch; margin: 0 auto 26px; font-size: 16.5px; text-align: center; }
/* La « fenêtre » de connexion, en noir, posée sur le fond blanc */
.auth .panel { background: var(--ink); color: #fff; border-radius: 26px; padding: 22px 18px; }
.auth .panel a { color: #fff; }
.auth .panel label { color: #fff; }
.auth .panel label .hint { color: #a1a1a6; }
.auth .panel input[type=text], .auth .panel input[type=tel], .auth .panel input[type=email],
.auth .panel input[type=password], .auth .panel input[type=date], .auth .panel select {
  background: #2a2a2e; border-color: #3a3a3f; color: #fff;
}
.auth .panel input::placeholder { color: #8e8e93; }
.auth .panel input:-webkit-autofill, .auth .panel input:-webkit-autofill:hover, .auth .panel input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #2a2a2e inset; -webkit-text-fill-color: #fff; caret-color: #fff; }
.auth .panel input:focus, .auth .panel select:focus { border-color: #fff; }
.auth .panel select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.auth .panel select option { color: #1d1d1f; background: #fff; }
.auth .panel .switch { background: #2a2a2e; }
.auth .panel .switch button { color: #a1a1a6; }
.auth .panel .switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: none; }
.auth .panel .check input { accent-color: var(--red); }
.auth .panel .linkish { color: #fff; }
.auth .panel p[style*="var(--muted)"] { color: #a1a1a6 !important; }
.auth .wrap { padding-bottom: 20px; }
.switch { display: flex; gap: 4px; margin-bottom: 18px; background: var(--soft); padding: 4px; border-radius: 999px; }
.switch button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); }
.switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.error { color: var(--red); font-weight: 600; font-size: 14px; min-height: 1.2em; margin: 0 0 10px; }
.invite-note { background: rgba(232,50,42,.18); color: #ff9d97; border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; margin: 0 0 16px; }

/* ── Listes ── */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .meta { margin: 0; }
.notif.unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: middle; }
.person { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.person .who { min-width: 0; }
.person .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--soft); margin-left: 4px; }
.pill.red { background: var(--red); color: #fff; }

.segment-wrap { position: relative; margin: 0 -18px 18px; }
/* Dégradés sur les bords : ils montrent qu'il reste des rubriques à faire défiler */
.segment-wrap::before, .segment-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 4px; width: 32px; pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity .2s;
}
.segment-wrap::before { left: 0; background: linear-gradient(to right, var(--page), transparent); }
.segment-wrap::after { right: 0; background: linear-gradient(to left, var(--page), transparent); }
.segment-wrap[data-more~="left"]::before, .segment-wrap[data-more~="right"]::after { opacity: 1; }
.segment { display: flex; gap: 6px; overflow-x: auto; padding: 0 18px 4px; scrollbar-width: none; scroll-behavior: smooth; }
.segment::-webkit-scrollbar { display: none; }
/* Chevron discret, tapable, tant qu'il reste des rubriques à droite ou à gauche */
.segment-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--ink); color: #fff; display: none; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.segment-arrow svg { width: 15px; height: 15px; }
.segment-wrap[data-more~="left"] .segment-arrow.left,
.segment-wrap[data-more~="right"] .segment-arrow.right { display: grid; }
.segment-arrow.left { left: 2px; }
.segment-arrow.right { right: 2px; }
.segment button { flex: none; border: 0; background: var(--surface); border-radius: 999px; padding: 9px 16px; font-weight: 600; cursor: pointer; }
.segment button[aria-pressed="true"] { background: var(--ink); color: #fff; }

details.edit { margin-top: 8px; }
details.edit summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
details.edit form, details.edit > div { margin-top: 14px; }

.empty { padding: 28px 0; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 19px; margin-bottom: 4px; letter-spacing: -.02em; }

/* ── Chiffres, à la manière du bloc « En 2025 » ── */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border-radius: var(--radius-lg); padding: 18px 16px; }
.stat b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.stat span { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }
.stat.red { background: var(--red); color: #fff; }
.stat.red span { color: rgba(255,255,255,.85); }
.big-number { font-weight: 800; font-size: 56px; letter-spacing: -.05em; line-height: 1; }

.copy { display: flex; gap: 8px; align-items: center; }
.copy input { margin-top: 0; font-size: 14px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 20; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast.err { background: var(--red); }
.loading { padding: 40px 0; color: var(--muted); }

/* ── Agenda ── */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.cal-head h2 { font-size: 21px; font-weight: 800; text-transform: capitalize; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface); font-size: 18px; font-weight: 700; cursor: pointer; }
.switch.inline { max-width: 260px; margin: 0 0 16px; }

.cal { background: var(--card); border-radius: var(--radius-lg); padding: 12px 10px 14px; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.cal-dow span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day { border: 0; background: none; padding: 4px 1px 6px; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 54px; }
.cal-day[disabled] { cursor: default; }
.cal-day .n { font-size: 13.5px; font-weight: 600; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.out .n { color: #c7c7cc; }
.cal-day.today .n { background: var(--ink); color: #fff; }
.cal-day.sel { background: var(--soft); }
.cal-day .pips { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; }

/* Code visuel : pointillé gris = action proposée, plein coloré = inscrit */
.pip { width: 9px; height: 9px; border-radius: 50%; box-sizing: border-box; }
.pip.open { border: 1.5px dashed #b0b0b5; }
.pip.full { border: 1.5px dashed #dcdce0; }
.pip.mine { background: var(--red); border: 1.5px solid var(--red); }
.pip.wait { border: 1.5px solid #e0a500; background: #ffdf7a; }
.pip.off { background: #e5e5ea; border: 1.5px solid #c7c7cc; position: relative; }
.pip.off::after { content: ""; position: absolute; left: -1px; right: -1px; top: 50%; height: 1.5px; background: var(--muted); transform: rotate(-45deg); }

/* Vue semaine : une barre par action */
.week { display: grid; gap: 10px; }
.week-day { background: var(--card); border-radius: var(--radius); padding: 12px 14px; }
.week-day > h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; text-transform: capitalize; }
.week-day.is-today > h3 { color: var(--red); }
.bar { display: block; border-radius: 12px; padding: 10px 12px; margin-bottom: 7px; text-decoration: none; color: inherit; border: 1.5px dashed #c7c7cc; background: #fff; }
.bar:last-child { margin-bottom: 0; }
.bar.full { border-color: #e5e5ea; color: var(--muted); }
.bar.mine { border: 1.5px solid var(--red); background: var(--red); color: #fff; }
.bar.wait { border: 1.5px solid #e0a500; background: #fff6de; }
.bar.off { border: 1.5px solid var(--line); background: var(--soft); color: var(--muted); text-decoration: line-through; }
.bar b { display: block; font-size: 15px; font-weight: 700; }
.bar span { font-size: 13px; opacity: .85; }
.bar.mine span { opacity: .9; }

.legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.legend i { display: inline-flex; align-items: center; gap: 6px; font-style: normal; }
.day-list { margin-top: 14px; }

/* ── Catalogue et création d'action ── */
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.title-row .btn { margin-top: 18px; }
.preview { display: flex; gap: 12px; align-items: center; background: var(--soft); border-radius: 16px; padding: 10px; margin: 2px 0 16px; }
.preview img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; background: #ddd; }
.preview small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.preview b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.type-chip { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.type-chip img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.type-chip small { display: block; color: var(--muted); font-size: 12px; }
.type-chip b { font-size: 16px; }
.tpl-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.tpl-head img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.field-label { font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.pick-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 12px; scrollbar-width: none; scroll-behavior: smooth; }
/* Dernière vignette à moitié visible : on comprend qu'on peut faire défiler */
.pick-row::after { content: ""; flex: none; width: 2px; }
.pick-row::-webkit-scrollbar { display: none; }
.pick { flex: none; width: 74px; height: 74px; border-radius: 12px; padding: 0; border: 2px solid transparent; background: var(--soft); overflow: hidden; cursor: pointer; }
.pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick.on { border-color: var(--red); box-shadow: 0 0 0 2px #fff inset; }
.pick.add { display: grid; place-items: center; font-size: 24px; font-weight: 700; color: var(--muted); border: 1.5px dashed #c7c7cc; line-height: 1; }
.pick.add small { display: block; font-size: 11px; font-weight: 600; margin-top: -12px; }
.photo-edit { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.photo-edit img { width: 120px; height: 80px; border-radius: 12px; object-fit: cover; }
form .switch { margin-bottom: 16px; }

/* ── Référents, bilans, module TIG ── */
.tab-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); vertical-align: top; margin-left: 2px; }
.mission-call { border: 2px solid var(--red); }
.referents { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 0; border-top: 1px solid var(--line); margin-top: 4px; }
.referents span { color: var(--muted); font-size: 14px; }
.referents b { font-size: 16px; }
ul.simple { margin: 0 0 12px; padding-left: 20px; }
ul.simple li { margin-bottom: 6px; }
ol.steps { margin: 0 0 16px; padding-left: 22px; }
ol.steps li { margin-bottom: 8px; }
.point-row { flex-wrap: wrap; }
.point-row details.times { flex-basis: 100%; margin-top: 4px; }
.report-status { display: flex; flex-direction: column; gap: 4px; }
.report-status b { font-size: 17px; }
.extra-row { display: grid; grid-template-columns: 1fr 76px 100px 40px; gap: 6px; margin-bottom: 8px; align-items: center; }
.extra-row input, .extra-row select { margin-top: 0; min-height: 44px; padding: 10px; }
.extra-row .btn { min-height: 44px; padding: 0; }
@media (max-width: 380px) { .extra-row { grid-template-columns: 1fr 64px 40px; } .extra-row select { grid-column: 1 / 3; } }
.checks { display: grid; gap: 4px; margin-bottom: 14px; }
.checks .check { margin-bottom: 4px; }
.tig-panel { border: 2px solid var(--ink); }
a.tig-case { display: block; text-decoration: none; color: inherit; }
a.tig-case .gauge span { background: var(--red); }
.stats a.stat:hover { box-shadow: inset 0 0 0 1.5px var(--line); }

/* ── Espace étudiants ── */
.gift-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; display: block; background: var(--soft); }
.gift .badge { margin-top: 0; }

/* ── Espace solidarité : cartes généreuses, dans l'esprit du site ── */
/* En-tête identique dans les trois espaces : logo, filet, nom de l'espace, cloche */
.brand { display: flex; align-items: center; min-width: 0; text-decoration: none; }
.space-name { display: block; margin: 5px 0 0 12px; padding-left: 12px; border-left: 1.5px solid var(--line); font-weight: 800; font-size: 12px; line-height: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-card { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.s-photo { height: 150px; background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; }
.s-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 65%); }
.s-photo-text { position: relative; z-index: 1; padding: 16px 20px; color: #fff; display: flex; align-items: baseline; gap: 8px; }
.s-photo-text span { font-size: 15px; opacity: .9; }
.s-photo-text strong { font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.s-body { padding: 18px 20px 20px; }
.s-body h3 { margin: 0 0 2px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.s-when { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.s-body .people { margin: 12px 0 6px; }
.s-body .note { background: var(--soft); border-radius: 12px; padding: 10px 14px; margin: 12px 0 0; }
.s-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.s-actions .badge { align-self: flex-start; }
.btn.block { width: 100%; }


/* ════════ Espace Bénévoles (v1.6) : fond blanc comme le site, blocs blanc cassé, rouge qui porte ════════ */
body[data-space="benevoles"] { --page: #ffffff; --card: var(--oclr-cream); }
body[data-space="benevoles"] .tabs a[aria-current="page"] { color: var(--red); font-weight: 800; }
body[data-space="benevoles"] .tabs a { position: relative; }
body[data-space="benevoles"] .tabs a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); }
body[data-space="benevoles"] .segment button { background: var(--card); }
body[data-space="benevoles"] .switch { background: var(--card); }
body[data-space="benevoles"] .badge { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
body[data-space="benevoles"] .badge.mine { background: var(--red); box-shadow: none; }
body[data-space="benevoles"] .badge.wait { background: #fff1d6; box-shadow: none; }

/* Titres de page encore plus francs */
body[data-space="benevoles"] .page-title { font-weight: 900; font-size: clamp(40px, 12vw, 58px); line-height: .94; letter-spacing: -.055em; margin: 30px 0 14px; }
.role-tag { display: inline-block; font-weight: 700; color: var(--red); margin-bottom: 4px; }

/* Le bandeau d'accueil rouge : la seule grande surface colorée de l'espace */
.welcome { background: var(--red); color: #fff; margin: 0 -18px 34px; padding: 34px 22px 26px; border-radius: 0 0 32px 32px; }
.welcome h1 { font-weight: 900; font-size: clamp(44px, 13.5vw, 64px); line-height: .92; letter-spacing: -.06em; margin: 0 0 24px; overflow-wrap: anywhere; }
.w-next { position: relative; padding-right: 40px !important; display: grid; gap: 2px; text-decoration: none; color: var(--ink); background: #fff; border-radius: 20px; padding: 16px 18px; }
.w-next::after { content: "›"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 30px; font-weight: 500; color: var(--red); }
.w-next span { font-size: 14px; font-weight: 600; color: var(--red); }
.w-next b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.w-next em { font-style: normal; color: var(--muted); font-size: 15px; }
.w-next i { font-style: normal; font-weight: 700; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.w-empty { margin: 0; font-size: 17px; font-weight: 500; max-width: 30ch; color: rgba(255,255,255,.92); }
.w-wait { margin: 14px 0 0; font-size: 14px; color: rgba(255,255,255,.88); }
@media (min-width: 600px) { .welcome { border-radius: 32px; margin: 20px 0 34px; } }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; font-weight: 900; letter-spacing: -.045em; }
.section-head .switch.inline { margin: 0; width: auto; flex: none; }
.section-head .switch button { padding: 7px 14px; font-size: 14px; }

/* Jours : gros et serrés ; aujourd'hui en rouge */
body[data-space="benevoles"] .day { font-size: 34px; font-weight: 900; letter-spacing: -.05em; margin: 36px 0 14px; }
body[data-space="benevoles"] .day.is-today { color: var(--red); }

/* Carte d'action : la photo d'abord */
.v-card { display: block; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; text-decoration: none; color: inherit; transition: transform .15s ease; }
.v-card:active { transform: scale(.985); }
.v-card.is-cancelled { opacity: .5; }
.v-card.is-mine { box-shadow: inset 0 0 0 2.5px var(--red); }
.v-card.is-mine .v-photo { margin: 2.5px 2.5px 0; border-radius: calc(var(--radius-lg) - 2.5px) calc(var(--radius-lg) - 2.5px) 0 0; }
.v-photo { position: relative; aspect-ratio: 16 / 9; max-height: 230px; width: auto; background: var(--ink) center / cover no-repeat; display: flex; align-items: flex-end; }
.v-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.66), rgba(0,0,0,0) 62%); }
.v-cap { position: relative; z-index: 1; padding: 16px 18px; color: #fff; }
.v-cap b { display: block; font-size: 15px; font-weight: 700; opacity: .92; }
.v-cap h3 { font-size: 27px; font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.v-body { padding: 12px 18px 18px; }
.v-body .people { margin-top: 12px; }
.v-body .badge { margin-top: 10px; }
.foot-note { margin: 26px 0 8px; }

/* Mes actions : les chiffres en typographie, sans boîtes */
.tally { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; margin: 6px 0 4px; }
.tally b { display: block; font-size: 64px; font-weight: 900; letter-spacing: -.06em; line-height: .9; }
.tally div:first-child b { color: var(--red); }
.tally span { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 18ch; }

/* Page d'une action : photo pleine largeur, bouton toujours sous le pouce */
.back { display: inline-block; margin: 16px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; }
.back::before { content: "‹ "; font-weight: 800; }
body[data-space="benevoles"] .hero-photo { margin: 12px -18px 0; border-radius: 0; aspect-ratio: 4 / 4.2; max-height: 62vh; }
@media (min-width: 600px) { body[data-space="benevoles"] .hero-photo { margin: 12px 0 0; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; } }
body[data-space="benevoles"] .hero-photo .cap h1 { font-size: clamp(40px, 12vw, 56px); font-weight: 900; line-height: .94; letter-spacing: -.055em; }
body[data-space="benevoles"] .hero-photo .cap p { font-size: 17px; }
.crew { padding: 18px 0 6px; }
.crew .people svg { width: 18px; height: 23px; }
.dock { position: fixed; left: 0; right: 0; bottom: calc(50px + env(safe-area-inset-bottom, 0px)); z-index: 6; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.dock-in { max-width: 600px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dock-info { min-width: 0; }
.dock-info .places { font-size: 14px; }
.dock-info .badge { margin-top: 2px; }
.dock .btn { flex: none; min-height: 50px; padding: 12px 24px; font-size: 16px; }
.dock .meta { margin: 0; }
body.has-dock main { padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px)); }
body.has-dock .toast { bottom: calc(160px + env(safe-area-inset-bottom, 0px)); }
body[data-space="benevoles"] .tabs, .dock { background: rgba(255,255,255,.985); }

/* Messages d'erreur : bien visibles, y compris sur le panneau noir des écrans d'accueil (v1.6.3) */
.error:empty { min-height: 0; margin: 0; }
.error:not(:empty) { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fdecee; color: var(--danger); font-size: 15px; line-height: 1.35; margin: 4px 0 14px; }
.error:not(:empty)::before { content: "!"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--danger); color: #fff; font-weight: 900; font-size: 13px; line-height: 20px; text-align: center; }
.auth .panel .error:not(:empty) { background: #fff; color: var(--danger); }
[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--danger) !important; }

/* ════════ Portail app.ocoeurdelarue.org (v1.6.4) ════════ */
body[data-space="portail"] { --page: #ffffff; }
.portal { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }
.p-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.p-top img { height: 30px; width: auto; display: block; }
.p-hello { font-weight: 700; font-size: 15px; color: var(--muted); }
.p-title { font-weight: 900; font-size: clamp(42px, 12.5vw, 62px); line-height: .93; letter-spacing: -.06em; margin: 26px 0 30px; max-width: 11ch; }
.p-kicker { margin: 30px 0 0; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.p-lead { font-size: 18px; color: var(--muted); max-width: 32ch; margin: 0 0 28px; }
.p-card { display: flex; align-items: stretch; min-height: 128px; margin-bottom: 14px; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--oclr-cream); transition: transform .15s ease; }
.p-card:active { transform: scale(.985); }
.p-photo { flex: 0 0 34%; background: var(--ink) center / cover no-repeat; }
.p-text { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 18px 20px; position: relative; flex: 1; }
.p-text::after { content: "›"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 30px; font-weight: 500; }
.p-text small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.p-text b { font-size: 30px; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.p-text em { font-style: normal; font-size: 15px; line-height: 1.35; opacity: .85; padding-right: 22px; }
.p-benevoles { background: var(--red); color: #fff; }
.p-pilotage { background: var(--oclr-black); color: #fff; }
.p-card.is-mine { box-shadow: 0 0 0 3px var(--ink); }
.p-benevoles.is-mine { box-shadow: 0 0 0 3px var(--red-dark); }
.p-impact { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.p-impact.is-soon { color: var(--muted); }
.p-impact .p-text::after { content: none; }
.p-foot { margin: 26px 0 0; text-align: center; font-size: 15px; }
.p-foot a { color: var(--muted); font-weight: 600; }
.auth-banner a { display: block; }
/* Sur le panneau noir des écrans de connexion, le bouton principal reste visible dans l'espace Solidarité */
body[data-space="solidarite"] .auth .panel .btn:not(.ghost):not(.danger) { background: #fff; color: var(--oclr-black); }
body[data-space="solidarite"] .auth .panel .btn:not(.ghost):not(.danger):hover { background: var(--oclr-cream); }
