/* =========================================================
   Bourse aux jouets · APOME — thème
   ========================================================= */
:root {
  --bg: #fff8ef;
  --surface: #ffffff;
  --surface-2: #fff3e3;
  --text: #2a2438;
  --muted: #7b7389;
  --border: #f0e4d3;
  --primary: #ff5a3c;
  --primary-dark: #e2412a;
  --primary-soft: #ffe6df;
  --sun: #ffc23d;
  --mint: #22b39a;
  --sky: #3d8bfd;
  --grape: #8b5cf6;
  --accent: #3d8bfd;
  --accent-dark: #2a6fe0;
  --success: #1fa463;
  --warn: #f0a20b;
  --danger: #d63b3b;
  --sold-bg: #fff3a6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(42, 36, 56, .06);
  --shadow: 0 1px 2px rgba(42, 36, 56, .05), 0 8px 24px -8px rgba(42, 36, 56, .12);
  --shadow-lg: 0 2px 4px rgba(42, 36, 56, .06), 0 18px 40px -12px rgba(42, 36, 56, .22);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Fredoka", "Nunito", system-ui, sans-serif;
  font-size: 16px;
}
.area-admin {
  --bg: #f3f5fb;
  --surface-2: #eef2fb;
  --border: #e2e7f2;
  --primary-soft: #e3edff;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.area-public {
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 194, 61, .18) 0 160px, transparent 161px),
    radial-gradient(circle at 92% 30%, rgba(34, 179, 154, .12) 0 200px, transparent 201px),
    radial-gradient(circle at 15% 85%, rgba(139, 92, 246, .08) 0 220px, transparent 221px),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
.area-public main a:not(.btn):not(.list-card):not(.anim-card):not(.feature-card):not(.bourse-band), .area-public .footer a:not(.ltac-badge) { color: var(--primary-dark); }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: 2rem; margin: .7em 0 .35em; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
h2 { font-size: 1.3rem; margin: 0 0 .8rem; }
h3 { font-size: 1.1rem; margin: .2em 0 .4em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-bottom: 56px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 600; }
.right { text-align: right; }
.center { text-align: center; justify-content: center; }
.nowrap { white-space: nowrap; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 1rem; }
.hint { font-size: .88rem; color: var(--muted); }
.narrow { max-width: 520px; margin: 0 auto; }
::selection { background: var(--sun); color: var(--text); }

/* ---------- Barre du haut ---------- */
.topbar {
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10;
}
.topbar::after { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--primary), var(--sun) 25%, var(--mint) 50%, var(--sky) 75%, var(--grape)); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.brand-logo {
  width: 56px; height: 56px; object-fit: contain;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
/* Logo sur fond foncé : léger halo clair pour garder les lettres lisibles */
.area-admin .brand-logo, .sf-brand img, .area-public .topbar.dark .brand-logo {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .95)) drop-shadow(0 0 5px rgba(255, 255, 255, .45));
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.hero-logo {
  display: block; width: 190px; height: 190px; margin: -10px auto 10px; object-fit: contain; position: relative;
  filter: drop-shadow(0 10px 14px rgba(90, 30, 0, .25));
}
.login-logo { display: block; width: 150px; height: 150px; margin: 18px auto 4px; object-fit: contain; }
.narrow > .login-logo + h1 { justify-content: center; text-align: center; }
@media (max-width: 600px) { .hero-logo { width: 140px; height: 140px; } .brand-logo { width: 46px; height: 46px; } }
.brand strong { display: block; font-family: var(--font-title); font-size: 1.2rem; font-weight: 600; letter-spacing: .03em; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { text-decoration: none; color: var(--text); padding: 8px 14px; border-radius: 999px; font-size: .93rem; font-weight: 700; transition: background .15s, color .15s; }
.nav a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.nav a.active { background: var(--primary); color: #fff; box-shadow: 0 6px 14px -6px rgba(255, 90, 60, .8); }
.nav a.muted { color: var(--muted); }

/* Admin : barre sombre pour bien distinguer l'espace bénévoles */
.area-admin .topbar { background: linear-gradient(120deg, #1e2140, #2b2f5c); border-bottom: 0; }
.area-admin .brand, .area-admin .brand strong { color: #fff; }
.area-admin .brand small { color: #b7bce0; }
.area-admin .nav a { color: #d9dcf5; }
.area-admin .nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.area-admin .nav a.active { background: #fff; color: #23264a; box-shadow: none; }
.area-admin .nav a.muted { color: #9ba0c8; }

.footer { color: var(--muted); font-size: .88rem; padding: 28px 0; border-top: 1px solid var(--border); background: var(--surface); }
.area-public .footer { background: transparent; }

/* ---------- Cartes & mise en page ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 0 0 20px; box-shadow: var(--shadow); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-bottom: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }
.align-start { align-items: start; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.page-head h2 { margin-bottom: .5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
form.inline { display: inline; }

/* ---------- Accueil ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  margin: 28px 0 8px; padding: 56px 24px 64px; border-radius: 28px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .25) 0 60px, transparent 61px),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .18) 0 90px, transparent 91px),
    linear-gradient(135deg, #ff7a45 0%, var(--primary) 45%, #f0457a 100%);
  box-shadow: var(--shadow-lg);
}
.hero h1 { justify-content: center; font-size: 3rem; margin: .1em 0 .3em; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .08); }
.hero .lead { color: rgba(255, 255, 255, .95); font-weight: 600; max-width: 680px; margin-left: auto; margin-right: auto; }
.hero-tag { display: inline-block; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .4); padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.hero .btn-primary { background: #fff; color: var(--primary-dark); border-color: #fff; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45); }
.hero .btn-primary:hover { background: var(--sun); border-color: var(--sun); color: var(--text); }
.hero .btn:not(.btn-primary) { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero .btn:not(.btn-primary):hover { background: rgba(255, 255, 255, .26); }
.hero .alert { display: inline-block; }
.hero-toys span { position: absolute; font-size: 2.6rem; opacity: .9; animation: bob 5s ease-in-out infinite; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .15)); }
.hero-toys span:nth-child(1) { top: 14%; left: 6%; }
.hero-toys span:nth-child(2) { top: 62%; left: 11%; font-size: 2rem; animation-delay: -1.2s; }
.hero-toys span:nth-child(3) { top: 12%; right: 8%; animation-delay: -2.4s; }
.hero-toys span:nth-child(4) { top: 58%; right: 5%; font-size: 3rem; animation-delay: -3.1s; }
.hero-toys span:nth-child(5) { bottom: 6%; left: 46%; font-size: 1.7rem; animation-delay: -.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-12px) rotate(6deg); } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 34px 0 24px; }
.steps .card { margin: 0; }
.step { position: relative; padding-top: 38px; border-top: 5px solid var(--c, var(--primary)); transition: transform .2s, box-shadow .2s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step:nth-child(1) { --c: var(--primary); }
.step:nth-child(2) { --c: var(--sun); }
.step:nth-child(3) { --c: var(--mint); }
.step:nth-child(4) { --c: var(--grape); }
.step-n {
  position: absolute; top: -22px; left: 20px; width: 44px; height: 44px; border-radius: 14px; transform: rotate(-8deg);
  background: var(--c, var(--primary)); color: #fff; font-family: var(--font-title); font-size: 1.3rem; font-weight: 600;
  display: grid; place-items: center; box-shadow: 0 8px 16px -8px var(--c, var(--primary));
}
.step-icon { font-size: 1.9rem; line-height: 1; margin-bottom: 6px; }
.step p { margin: 0; font-size: .95rem; color: #4d4659; }
.tips ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.tips li { position: relative; padding: 10px 12px 10px 44px; background: var(--surface-2); border-radius: var(--radius-sm); }
.tips li::before { content: "✓"; position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }

/* ---------- Formulaires ---------- */
.form label, label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 5px; font: inherit; font-weight: 500; color: var(--text);
  padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #d9cbb6; }
.area-admin input:hover, .area-admin select:hover, .area-admin textarea:hover { border-color: #c8d0e3; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(61, 139, 253, .18); }
.area-public input:focus, .area-public select:focus, .area-public textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255, 90, 60, .16); }
input[readonly] { background: transparent; border-color: transparent; box-shadow: none; }
label.check { display: flex; gap: .55rem; align-items: center; font-weight: 600; }
label.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.area-admin label.check input { accent-color: var(--accent); }
.input-lg { font-size: 1.25rem; padding: 12px 14px; }
.input-xl { font-size: 2rem; padding: 12px 16px; letter-spacing: .05em; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 200px; margin: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; line-height: 1.2;
  padding: 10px 18px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { border-color: #d9cbb6; transform: translateY(-1px); box-shadow: var(--shadow); color: var(--text); }
.area-admin .btn:hover { border-color: #c8d0e3; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(61, 139, 253, .3); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(180deg, #ff6d4f, var(--primary)); border-color: var(--primary-dark); color: #fff; box-shadow: 0 8px 18px -8px rgba(255, 90, 60, .8); }
.btn-primary:hover { background: linear-gradient(180deg, var(--primary), var(--primary-dark)); border-color: var(--primary-dark); color: #fff; }
.area-admin .btn-primary { background: linear-gradient(180deg, #5a9dff, var(--accent)); border-color: var(--accent-dark); box-shadow: 0 8px 18px -8px rgba(61, 139, 253, .8); }
.area-admin .btn-primary:hover { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); }
.btn-success { background: linear-gradient(180deg, #2fbb76, var(--success)); border-color: #188a52; color: #fff; box-shadow: 0 8px 18px -8px rgba(31, 164, 99, .8); }
.btn-success:hover { color: #fff; border-color: #188a52; }
.btn-danger { background: linear-gradient(180deg, #e65252, var(--danger)); border-color: #b52d2d; color: #fff; }
.btn-danger:hover { color: #fff; border-color: #b52d2d; }
.btn-danger-ghost { color: var(--danger); background: transparent; box-shadow: none; }
.btn-danger-ghost:hover { color: var(--danger); background: #fdecec; border-color: #f2c1c1; }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 1.08rem; border-radius: 14px; }
.btn-xl { padding: 18px 26px; font-size: 1.3rem; width: 100%; border-radius: 16px; }
.btn-icon { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 6px 9px; border-radius: 8px; transition: background .15s, color .15s; }
.btn-icon:hover { background: #fdecec; color: var(--danger); }

/* ---------- Alertes & badges ---------- */
.alert { padding: 13px 16px 13px 18px; border-radius: var(--radius-sm); margin: 14px 0; border: 1px solid; border-left-width: 5px; font-weight: 600; }
.alert-success { background: #e9f8ef; border-color: #bfe6cf; border-left-color: var(--success); color: #17633a; }
.alert-error { background: #fdeeee; border-color: #f4c7c7; border-left-color: var(--danger); color: #922828; }
.alert-warn { background: #fff6df; border-color: #f3dca6; border-left-color: var(--warn); color: #7a5606; }
.alert-info { background: #eaf2ff; border-color: #c4d9fb; border-left-color: var(--sky); color: #1d4f94; }
.badge { display: inline-block; font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; vertical-align: middle; letter-spacing: .02em; }
.badge-grey { background: #efebf4; color: #5c5468; }
.badge-blue { background: #dfebff; color: #1d4f94; }
.badge-green { background: #d9f4e4; color: #17633a; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table thead th { background: var(--surface-2); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 0; }
.table thead th:first-child { border-radius: 10px 0 0 10px; }
.table thead th:last-child { border-radius: 0 10px 10px 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover td { background: #fffaf3; }
.area-admin .table tbody tr:hover td { background: #f7f9fe; }
.table tbody tr:last-child td { border-bottom: 0; }
.table th.right, .table td.right { text-align: right; }
.table tr.sold td, .table tbody tr.sold:hover td { background: var(--sold-bg); }
.table tr.cancelled td { color: var(--muted); text-decoration: line-through; }
.table-hover tr.clickable { cursor: pointer; }
.table-hover tr.clickable:hover td { background: var(--primary-soft); }
.toys-table td { padding: 5px 6px; }
.toys-table input { margin: 0; }
.w-num { width: 52px; text-align: center !important; font-weight: 800; color: var(--muted); }
.w-price { width: 120px; }
.w-act { width: 48px; text-align: center; }
.toys-table tr.empty-row input { background: #fdfbf8; border-style: dashed; }
.area-admin .toys-table tr.empty-row input { background: #fafbfe; }

/* ---------- Listes / cartes ---------- */
.list-card { text-decoration: none; color: var(--text); display: block; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.list-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--primary), var(--sun)); }
.list-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.list-no { font-family: var(--font-title); font-size: 2.1rem; font-weight: 600; color: var(--primary); }
.area-admin .list-no { color: var(--accent); }
.list-card p { margin: .4rem 0 0; }
.totals { display: grid; gap: 8px; max-width: 460px; margin-left: auto; background: var(--surface-2); padding: 16px 18px; border-radius: var(--radius-sm); }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals .big { font-family: var(--font-title); font-size: 1.45rem; border-top: 2px dashed var(--text); padding-top: 10px; margin-top: 4px; }

/* ---------- Tableau de bord ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.quick-btn {
  --c: var(--accent);
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 18px; text-decoration: none; color: var(--text); font-family: var(--font-title); font-weight: 600; font-size: 1.25rem;
  box-shadow: var(--shadow); text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.quick-btn::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--c); }
.quick-btn:nth-child(1) { --c: var(--sky); }
.quick-btn:nth-child(2) { --c: var(--primary); }
.quick-btn:nth-child(3) { --c: var(--grape); }
.quick-btn:nth-child(4) { --c: var(--mint); }
.quick-btn span {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 10px; font-size: 2rem; border-radius: 20px;
  background: color-mix(in srgb, var(--c) 16%, #fff); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.quick-btn small { font-family: var(--font); font-weight: 600; color: var(--muted); font-size: .9rem; }
.quick-btn:hover { border-color: var(--c); transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.quick-btn:hover span { transform: scale(1.1) rotate(-6deg); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat span { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); }
.stat strong { font-family: var(--font-title); font-size: 1.7rem; font-weight: 600; }
.stat.accent { border-left: 0; background: linear-gradient(135deg, #e6f8ef, #fff 70%); }
.stat.accent::before, .stat.warn::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--success); }
.stat.accent strong { color: #17633a; }
.stat.warn { border-left: 0; background: linear-gradient(135deg, #fff4da, #fff 70%); }
.stat.warn::before { background: var(--warn); }
.stat.warn strong { color: #8a5f00; }

/* ---------- Caisse ---------- */
.caisse { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.scan-row { display: flex; gap: 10px; margin-top: 6px; }
.scan-row input { margin: 0; }
.total-box { position: sticky; top: 100px; text-align: center; }
.total-box > span { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.total-amount { display: block; font-family: var(--font-title); font-size: 3.4rem; font-weight: 600; margin: 4px 0 14px; color: var(--accent-dark); }
.total-box label { text-align: left; }
.change { font-size: 1.2rem; margin: 0 0 14px; }
.pay-choice { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; }
.pill { margin: 0; font-weight: 700; }
.pill input { display: none; }
.pill span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 999px; cursor: pointer; transition: all .15s; }
.pill span:hover { border-color: var(--accent); }
.pill input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 14px -6px rgba(61, 139, 253, .8); }
.cart td { font-size: 1.05rem; }
.flash-row td { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: #d4f5e0; } to { background: transparent; } }
.validate-box { border: 2px solid var(--success); box-shadow: 0 10px 28px -14px rgba(31, 164, 99, .6); }
.danger-zone { border-color: #f4c7c7; }

/* Étiquettes */
.label-sheet {
  width: 210mm; height: 297mm; display: grid;
  grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), 1fr);
  background: #fff; margin: 0 auto 20px; box-shadow: var(--shadow); overflow: hidden;
}
.label { padding: 2.5mm 4mm; display: flex; flex-direction: column; overflow: hidden; border: 1px dashed #ddd; font-size: 8pt; line-height: 1.15; color: #000; }
.label.empty { background: repeating-linear-gradient(45deg, #fafafa, #fafafa 6px, #f0f0f0 6px, #f0f0f0 12px); }
.label-top { display: flex; justify-content: space-between; font-size: 6.5pt; color: #444; }
.label-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; font-size: 15pt; text-align: center; }
.label .barcode { width: 100%; height: 7mm; }
.label-desc { flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: .5mm; }
.label-price { text-align: right; font-weight: 800; font-size: 14pt; }
.print-only { display: none; }

@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .no-print, .topbar, .footer, .alert { display: none !important; }
  .print-only { display: block; }
  .card { box-shadow: none; border: 0; padding: 0; }
  main.wrap { padding: 10mm; max-width: none; }
  .table tr.sold td { background: var(--sold-bg) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body:has(.label-sheet) main.wrap { padding: 0; }
  .label-sheet { margin: 0; box-shadow: none; page-break-after: always; break-after: page; }
  .label { border-color: transparent; }
  .label.empty { background: none; }
}

/* Fiches enveloppes */
.fiche { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin: 0 auto 18px; max-width: 190mm; break-inside: avoid; page-break-inside: avoid; color: #000; }
.fiche-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 8px; }
.fiche-no { font-size: 26pt; font-weight: 800; line-height: 1; }
.fiche-amount { text-align: right; }
.fiche-amount strong { display: block; font-size: 22pt; }
.fiche-amount small, .fiche small { color: #444; }
.fiche .table th, .fiche .table td { padding: 3px 6px; font-size: 9.5pt; }
.fiche h3 { font-size: 10.5pt; margin: 8px 0 2px; }
.fiche .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fiche .box { display: inline-block; width: 11px; height: 11px; border: 1.5px solid #000; vertical-align: middle; }
.fiche-sign { display: flex; justify-content: space-between; margin-top: 10px; font-size: 9.5pt; }
.billetage { display: flex; flex-wrap: wrap; gap: 6px; }
.billetage span { border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; font-size: .9rem; background: #fff; }
@media print { .fiche { border: 0; border-bottom: 1px dashed #999; border-radius: 0; margin: 0 0 6mm; padding: 0 0 6mm; max-width: none; } }


.billetage span { border-radius: 10px; padding: 6px 10px; background: var(--surface-2); border-color: transparent; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 900px) {
  .quick { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .steps .card { margin: 0; }
  .caisse { grid-template-columns: 1fr; }
  .total-box { position: static; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-4, .steps, .quick, .tips ul { grid-template-columns: 1fr; }
  .hero { padding: 40px 18px 46px; border-radius: 22px; margin-top: 18px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-toys span { font-size: 1.6rem !important; opacity: .55; }
  h1 { font-size: 1.6rem; }
  .w-price { width: 84px; }
  .input-xl { font-size: 1.4rem; }
  .total-amount { font-size: 2.6rem; }
  .nav { width: 100%; }
}
@media print {
  .hero, .step, .card { box-shadow: none !important; }
  .table thead th { background: none; }
}

/* Finitions */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
.area-admin .nav { gap: 2px; }
.area-admin .nav a { padding: 7px 11px; font-size: .88rem; }
@media print { body { display: block; min-height: 0; } }

/* =========================================================
   Espace bénévoles simplifié
   ========================================================= */
/* Menu : 4 étapes + « Plus » */
.area-admin .nav { align-items: center; }
.area-admin .nav a { font-size: .95rem; padding: 8px 13px; }
.area-admin .nav a.today:not(.active) { box-shadow: inset 0 0 0 2px var(--sun); }
.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; padding: 8px 13px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: #d9dcf5; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary:hover, .nav-more[open] summary, .nav-more.has-active summary { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-more-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 20; display: grid; }
.area-admin .nav-more-menu a { color: var(--text); border-radius: 10px; padding: 10px 12px; }
.area-admin .nav-more-menu a:hover { background: var(--surface-2); color: var(--text); }
.area-admin .nav-more-menu a.active { background: var(--primary-soft); color: var(--accent-dark); }

/* Mode d'emploi 1-2-3 */
.howto { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.howto li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; font-size: .95rem; line-height: 1.4; }
.howto li > span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: .9rem; }

/* Accueil : les 4 étapes */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 8px 0 30px; }
.flow-step {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  background: var(--surface); border: 2px solid var(--border); border-radius: 20px; padding: 26px 16px 18px;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); color: var(--text); }
.flow-step.is-today { border-color: var(--sun); background: linear-gradient(180deg, #fff8e1, #fff 60%); box-shadow: 0 0 0 4px rgba(255, 194, 61, .25), var(--shadow-lg); }
.flow-now { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--sun); color: var(--text); font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
.flow-n { position: absolute; top: 12px; left: 14px; font-family: var(--font-title); font-weight: 600; color: var(--muted); font-size: 1.1rem; }
.flow-icon { font-size: 2.6rem; line-height: 1.1; margin-bottom: 4px; }
.flow-day { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.flow-step strong { font-family: var(--font-title); font-weight: 600; font-size: 1.45rem; }
.flow-step small { color: var(--muted); font-size: .88rem; min-height: 2.6em; }
.flow-status { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); width: 100%; font-size: .92rem; }
.more-stats summary { cursor: pointer; font-weight: 800; }
.more-stats[open] summary { margin-bottom: 14px; }

/* Dépôt */
.new-client summary { cursor: pointer; list-style: none; }
.new-client summary::-webkit-details-marker { display: none; }
.new-client summary strong::after { content: " ▾"; color: var(--muted); }
.new-client[open] summary { margin-bottom: 14px; }
.next-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 20px 0 0; padding: 16px 20px; border-radius: var(--radius); background: #e9f8ef; border: 2px solid #bfe6cf; }
.next-box .actions { margin: 0; }

/* Caisse : billets */
.bills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 0 0 12px; }
.bills > span { width: 100%; font-weight: 700; font-size: .9rem; color: var(--muted); }
.bill { font: inherit; font-weight: 800; font-size: 1.1rem; cursor: pointer; padding: 10px 14px; min-width: 64px; border-radius: 10px; border: 2px solid #b9d7c4; background: #effaf3; color: #17633a; transition: all .12s; }
.bill:hover { border-color: var(--success); }
.bill.on { background: var(--success); border-color: var(--success); color: #fff; }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr 1fr; row-gap: 26px; }
}
@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr; }
  .nav-more-menu { right: auto; left: 0; }
}

/* Comptes de l'équipe */
.nav-avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sun); color: #23264a; font-size: .8rem; font-weight: 800; margin-right: 2px; vertical-align: middle; }
.nav-me { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; font-size: .9rem; line-height: 1.3; }
.staff-list { display: grid; gap: 8px; }
.staff { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.staff summary { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
.staff summary::-webkit-details-marker { display: none; }
.staff summary:hover { background: var(--surface-2); border-radius: 14px; }
.staff-id { flex: 1; line-height: 1.3; }
.staff-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--sky), var(--grape)); flex: none; }
.staff.inactive { opacity: .6; }
.staff-body { padding: 4px 14px 14px; display: grid; gap: 10px; }
.staff-body .actions { margin: 0; }

/* Mention du partenaire (« Plateforme offerte par … ») */
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.credit { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.credit strong, .credit-band strong, .credit-login strong { color: var(--text); letter-spacing: .02em; }
.credit a, .credit-band a, .credit-login a { text-decoration: none; }
.credit a:hover strong, .credit-band a:hover strong, .credit-login a:hover strong { text-decoration: underline; }
.credit-mark { color: var(--sun); font-size: .9em; }
.area-admin .credit-mark { color: var(--accent); }
.credit-band { text-align: center; color: var(--muted); font-size: .95rem; margin: 28px auto 8px; padding: 14px 18px; max-width: 640px; border-top: 1px dashed var(--border); }
.credit-login { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 18px; }
.print-credit { text-align: center; font-size: 8pt; color: #666; margin-top: 8mm; }
.fiche-credit { text-align: right; font-size: 7.5pt; color: #666; margin-top: 4px; }
@media print {
  body:has(.label-sheet) .print-credit, body:has(.fiche) .print-credit { display: none !important; }
}
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Reprise des invendus des éditions précédentes */
.reprise { margin: 28px 0; }
.reprise > .lead { margin-top: 0; }
.archive { margin-bottom: 14px; }
.archive summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; list-style: none; }
.archive summary::-webkit-details-marker { display: none; }
.archive summary::before { content: "▸"; color: var(--muted); transition: transform .2s; }
.archive[open] summary::before { transform: rotate(90deg); }
.archive form { margin-top: 12px; }
.archive-items { list-style: none; padding: 0; margin: 0 0 14px; border-top: 1px solid var(--border, #eee); }
.archive-items li { border-bottom: 1px solid var(--border, #eee); }
.archive-items label { display: flex; align-items: center; gap: .7rem; padding: 8px 4px; margin: 0; font-weight: 600; cursor: pointer; }
.archive-items label span:nth-child(2) { flex: 1; }
.archive-items input[type=checkbox] { width: 20px; height: 20px; flex: none; accent-color: var(--primary); }
.archive-items li.sold { color: var(--muted); }
.archive-items li.sold label { cursor: default; }

/* =====================================================================
   Site public de l'association : accueil, animations, espace famille
   ===================================================================== */
.badge-red { background: #fde2e2; color: #a52626; }
.btn-block { display: flex; width: 100%; margin-top: 8px; }
.small { font-size: .88rem; }
.back { margin: 18px 0 0; }
.back a { text-decoration: none; font-weight: 700; color: var(--muted); }
.back a:hover { color: var(--primary-dark); }
.page-intro { margin-bottom: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 800; text-decoration: none; }
.section-title { margin-top: 36px; }
.sub-title { font-size: 1.05rem; margin: 22px 0 10px; color: var(--muted); }
.home-section, .space-section { margin: 34px 0; }
.empty { text-align: center; color: var(--muted); }
.big-emoji { font-size: 2.6rem; margin: 0; }
.prose p { margin: 0 0 1em; line-height: 1.65; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 7px 0; }

/* Navigation : bouton « Créer mon compte » */
.area-public .nav a.nav-cta { background: var(--primary); color: #fff; box-shadow: 0 6px 14px -6px rgba(255, 90, 60, .8); }
.area-public .nav a.nav-cta:hover { background: var(--primary-dark); color: #fff; }
.area-public .nav a.nav-account { border: 2px solid var(--primary-soft); }

/* Accueil association */
.hero-asso { background: linear-gradient(135deg, #ff7a45, #ff5a3c 45%, #f0457c); }
.home-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin: 10px 0 20px; }
.home-split .card { margin: 0; }
.about-card p { line-height: 1.65; }
.feature-card { text-decoration: none; color: var(--text); background: linear-gradient(150deg, #fff4da, #fff 60%); border-color: #ffe2a3; display: flex; flex-direction: column; align-items: flex-start; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.feature-card p { flex: 1; }
.feature-icon { font-size: 2.4rem; }
.how { text-align: center; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-steps p { margin: .3rem 0 0; color: var(--muted); }
.how-n { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); font-family: var(--font-title); font-size: 1.2rem; font-weight: 600; }

/* Cartes d'animation */
.anim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.anim-card { display: flex; gap: 16px; margin: 0; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.anim-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); color: var(--text); }
.anim-card h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.anim-card p { margin: 0 0 .6rem; }
.anim-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.anim-meta { color: var(--muted); font-weight: 600; font-size: .92rem; }
.anim-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.anim-go { font-weight: 800; color: var(--primary-dark); }
.anim-grid.past .anim-card { opacity: .75; }
.dt { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 74px; border-radius: 14px; background: linear-gradient(160deg, var(--primary), #f0457c); color: #fff; box-shadow: 0 8px 18px -10px rgba(255, 90, 60, .9); line-height: 1; }
.dt-d { font-family: var(--font-title); font-size: 1.7rem; font-weight: 600; }
.dt-m { font-size: .72rem; font-weight: 800; letter-spacing: .04em; margin-top: 3px; }
.dt-y { font-size: .66rem; opacity: .85; margin-top: 2px; }
.anim-grid.past .dt { background: #b9b2c4; box-shadow: none; }

/* Fiche animation */
.anim-detail { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; margin-top: 10px; }
.anim-main h1 { margin-top: .4em; }
.anim-main .lead { margin-top: 1rem; color: var(--text); }
.anim-date-big .dt { width: 78px; height: 88px; }
.anim-date-big .dt-d { font-size: 2.1rem; }
.anim-side { position: sticky; top: 100px; }

.bourse-band { display: flex; align-items: center; gap: 16px; margin-top: 26px; text-decoration: none; color: var(--text); background: linear-gradient(120deg, #fff4da, #fff); border-color: #ffe2a3; }
.bourse-band:hover { color: var(--text); box-shadow: var(--shadow-lg); }
.bb-icon { font-size: 2.2rem; }
.bb-go { margin-left: auto; font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); }

/* Page association */
.asso-head { display: flex; align-items: center; gap: 28px; margin: 26px 0; }
.asso-head img { width: 200px; height: 200px; object-fit: contain; flex: none; filter: drop-shadow(0 10px 14px rgba(42, 36, 56, .15)); }
.asso-head h1 { font-size: 2.6rem; margin: .2em 0 .1em; }
.asso-full { font-weight: 700; margin: 0 0 .4rem; }
.tag-soft { background: var(--primary-soft); color: var(--primary-dark); border: 0; }
.asso-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.asso-side .card h3 { margin-top: 0; }
.join-card { background: linear-gradient(150deg, var(--primary-soft), #fff 70%); }

/* Création de compte */
.auth { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; margin-top: 10px; }
.auth-intro .checklist li { font-size: 1.05rem; }

/* Admin : mini liste des animations */
.anim-mini { list-style: none; padding: 0; margin: 0; }
.anim-mini li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.anim-mini li:last-child { border-bottom: 0; }
.anim-mini a { text-decoration: none; }
.print-check { display: none; }

/* Pied de page de l'association */
.site-footer { background: #2a2438; color: #d9d3e4; margin-top: 50px; padding: 36px 0 26px; }
.site-footer + .footer { margin-top: 0; }
.site-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; margin: 0 0 10px; }
.site-footer a { display: block; color: #d9d3e4; text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0 0 6px; }
.sf-brand { display: flex; gap: 14px; align-items: flex-start; }
.sf-brand img { width: 76px; height: 76px; object-fit: contain; flex: none; }
.sf-brand strong { color: #fff; font-family: var(--font-title); font-size: 1.3rem; font-weight: 600; }
.sf-brand p { margin-top: 6px; color: #b4acc2; }

@media (max-width: 900px) {
  .anim-detail, .asso-layout, .home-split, .auth { grid-template-columns: 1fr; }
  .anim-side { position: static; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
  .sf-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .how-steps { grid-template-columns: 1fr; }
  .asso-head { flex-direction: column; text-align: center; }
  .asso-head img { width: 140px; height: 140px; }
  .asso-head h1 { justify-content: center; font-size: 2rem; }
  .site-footer-grid { grid-template-columns: 1fr; }
}
@media print {
  .site-footer { display: none !important; }
  .print-check { display: table-cell; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   Thème « Coucher de soleil » (site public) : corail, orange et jaune
   ===================================================================== */
.area-public {
  --bg: #fff8ec; --surface-2: #fff0d9; --border: #f6e1c2;
  --primary: #f25c2a; --primary-dark: #d4461a; --primary-soft: #ffe5d4;
  --sun: #ffb81c;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 184, 28, .22) 0 170px, transparent 171px),
    radial-gradient(circle at 94% 30%, rgba(242, 92, 42, .12) 0 210px, transparent 211px),
    var(--bg);
}
.area-public .topbar::after { height: 4px; background: linear-gradient(90deg, #ffd23f, #ffb81c, #f2852a, #f25c2a, #d4461a); }
.area-public .hero, .area-public .hero-asso {
  background:
    radial-gradient(circle at 82% 118%, rgba(255, 233, 150, .55) 0 150px, transparent 151px),
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .2) 0 60px, transparent 61px),
    linear-gradient(180deg, #f25c2a 0%, #f7842b 55%, #ffb81c 100%);
}
.area-public .hero-tag { background: rgba(255, 255, 255, .25); }
.area-public .hero .btn-primary { background: #fff; border-color: #fff; color: #d4461a; }
.area-public .hero .btn-primary:hover { background: #ffd23f; border-color: #ffd23f; color: #6b2c0d; }
.area-public .btn-primary { background: linear-gradient(180deg, #ff7a3d, #f25c2a); border-color: #d4461a; }
.area-public .nav a.active, .area-public .nav a.nav-cta { background: #f25c2a; }
.area-public .dt { background: linear-gradient(170deg, #f25c2a, #ffb81c); }
.area-public .site-footer { background: #3b2416; color: #f4dfcf; }
.area-public .site-footer a { color: #f4dfcf; }
.area-public .sf-brand p { color: #d2b29d; }
.area-public .how-n { background: #fff0d9; color: #d4461a; }

/* =====================================================================
   Partenaire : LTAC Informatique
   ===================================================================== */
.ltac-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .82rem; font-weight: 700; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ltac-badge img { height: 22px; width: auto; display: block; }
a.ltac-badge:hover, .area-public .footer a.ltac-badge:hover { border-color: #1b2f57; box-shadow: var(--shadow); transform: translateY(-1px); color: var(--text); }
.ltac-badge-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .8); }
.ltac-badge-dark img { height: 26px; }
a.ltac-badge-dark:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); color: #fff; }
.sf-ltac { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
.sf-ltac-txt { font-size: .88rem; opacity: .8; }
.site-footer .sf-ltac-txt a { display: inline; padding: 0; text-decoration: underline; }
.ltac-card { display: flex; align-items: center; gap: 24px; margin: 34px 0 10px; padding: 22px 26px; border-radius: var(--radius); background: linear-gradient(120deg, #f2f5fb, #fff 70%); border: 1px solid #dfe5f1; box-shadow: var(--shadow); }
.ltac-card img { width: 190px; height: auto; flex: none; }
.ltac-card p { margin: 0; color: #4a5470; }
.ltac-card .ltac-card-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1b2f57; margin-bottom: 4px; }
.ltac-card strong { color: #1b2f57; }
.ltac-card .ltac-card-btn { margin-left: auto; flex: none; background: #1b2f57; border-color: #1b2f57; color: #fff; box-shadow: none; }
.ltac-card .ltac-card-btn:hover { background: #12213f; border-color: #12213f; color: #fff; }
@media (max-width: 760px) {
  .ltac-card { flex-direction: column; text-align: center; }
  .ltac-card .ltac-card-btn { margin-left: 0; }
}
@media print { .ltac-card, .sf-ltac { display: none !important; } }
.site-footer a.ltac-badge { display: inline-flex; padding: 9px 18px 9px 20px; white-space: nowrap; }
.site-footer .ltac-badge-dark img { height: 30px; }

/* ---------- Matériel & locations ---------- */
.badge-orange { background: #ffedd2; color: #8a4b00; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.tabs a { padding: 9px 16px; border-radius: 12px; font-weight: 800; text-decoration: none; color: var(--text); background: var(--surface); border: 1.5px solid var(--border); }
.tabs a:hover { border-color: #c8d0e3; }
.tabs a.active { background: #23264a; border-color: #23264a; color: #fff; }
.tabs a .badge { margin-left: 4px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { width: auto; flex: 1 1 200px; margin: 0; }
.holders { list-style: none; padding: 0; margin: 0 0 12px; }
.holders li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.holders li:last-child { border-bottom: 0; }
.holders .staff-avatar { flex: none; }
.holders .grow { flex: 1; }
.holders .qty-form { display: flex; gap: 6px; align-items: center; }
.holders .qty-form input { width: 76px; margin: 0; padding: 6px 8px; }
.qty-input { width: 90px !important; display: inline-block; margin: 0 !important; padding: 6px 8px !important; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.kv dt { font-weight: 800; color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; }
tr.row-alert td { background: #fff7ec; }
tr.row-danger td { background: #fdf0f0; }
.sign-box { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.sign-box div { border-top: 1px solid #999; padding-top: 6px; min-height: 80px; font-size: .9rem; }
@media (max-width: 640px) {
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .sign-box { grid-template-columns: 1fr; }
}

/* =========================================================
   Accueil association (admin) : pôles d'activité
   ========================================================= */
.poles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 8px 0 28px; }
.pole {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 5px solid var(--accent); transition: transform .2s, box-shadow .2s;
}
.pole:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.pole-icon { font-size: 2rem; line-height: 1.1; }
.pole strong { font-family: var(--font-title); font-weight: 600; font-size: 1.25rem; }
.pole-big { font-family: var(--font-title); font-size: 1.7rem; font-weight: 600; line-height: 1.2; }
.pole-big small { font-family: var(--font); font-size: .9rem; font-weight: 700; color: var(--muted); }
.pole-sub { font-size: .9rem; }
.pole-anim { border-top-color: #f25c2a; }
.pole-bourse { border-top-color: var(--sun); }
.pole-mat { border-top-color: var(--mint); }
.pole-loc { border-top-color: var(--sky); }
.pole-loto { border-top-color: var(--grape); }
.pole-data { border-top-color: #6b7280; }
.pole-fact { border-top-color: #17633a; }
.pole-avis { border-top-color: #f2a20c; }
.pole-mail { border-top-color: #e0457b; }
.pole-trombi { border-top-color: #b7791f; }
.pole-dons { border-top-color: #ef4444; }
.pole-team { border-top-color: #23264a; }
.pole-param, .pole-journal { border-top-color: #9ca3af; }
.pole-part { border-top-color: #0d9488; }

/* Sous-menu de la bourse aux jouets */
.subnav { background: #fff; border-bottom: 1px solid var(--border); position: relative; z-index: 5; }
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: thin; }
.subnav a { white-space: nowrap; text-decoration: none; color: var(--text); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.subnav a:hover { background: var(--primary-soft); }
.subnav a.active { background: var(--accent); color: #fff; }
.subnav a.today:not(.active) { box-shadow: inset 0 0 0 2px var(--sun); }
.subnav-n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: .72rem; margin-right: 4px; }
.subnav a.active .subnav-n { background: rgba(255,255,255,.25); color: #fff; }

/* Forfaits de location */
.tarifs-table input { width: 100%; }
.tarif-list { margin: 0; padding-left: 1.1em; }
.tarif-chip { display: inline-block; white-space: nowrap; padding: 2px 8px; margin: 2px 0; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.label-like { display: block; font-weight: 700; margin-bottom: 6px; }
.forfait-pick { margin: 4px 0 14px; }
.forfait-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.forfait-opt { display: flex !important; flex-direction: column; gap: 2px; padding: 12px 14px; border: 2px solid var(--border); border-radius: 14px; cursor: pointer; background: var(--surface); position: relative; font-weight: 400; }
.forfait-opt input { position: absolute; opacity: 0; pointer-events: none; }
.forfait-opt:has(input:checked) { border-color: var(--accent); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(61, 139, 253, .15); }
.forfait-opt strong { font-size: 1rem; }
.fo-price { font-family: var(--font-title); font-size: 1.3rem; font-weight: 600; color: var(--accent-dark); }
.forfait-opt small { color: var(--muted); font-size: .82rem; }

/* Photos des animations */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.photo-grid figure { position: relative; margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--border); }
.photo-grid figcaption { position: absolute; left: 6px; top: 6px; }
.photo-grid form { position: absolute; right: 4px; top: 4px; }
.photo-grid .btn-icon { background: rgba(255, 255, 255, .92); }
.photo-grid-public { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.upload-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.upload-form input[type="file"] { flex: 1; min-width: 0; }
.anim-hero { width: calc(100% + 44px); margin: -22px -22px 16px; max-height: 420px; object-fit: cover; display: block; border-radius: var(--radius) var(--radius) 0 0; }
.anim-card.has-cover { flex-wrap: wrap; align-content: flex-start; }
.anim-card.has-cover .anim-body { align-self: stretch; }
.anim-cover { flex: 0 0 calc(100% + 44px); width: calc(100% + 44px); margin: -22px -22px 0; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.dt-multi .dt-d { font-size: 1.15rem !important; letter-spacing: -.02em; }
.mt { margin-top: 1.4rem; }

/* Facebook */
.btn-fb { background: #1877f2 !important; border-color: #1877f2 !important; color: #fff !important; display: inline-flex; align-items: center; gap: 8px; }
.btn-fb:hover { background: #0e63d3 !important; }
.fb-icon { vertical-align: -3px; flex: none; }
h2 .fb-icon, h3 .fb-icon { color: #1877f2; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border); }
.fb-embed { display: flex; flex-direction: column; align-items: center; }
.fb-embed iframe { background: #fff; border-radius: 12px; }
.fb-section .fb-embed { margin-bottom: 20px; }
.fb-side .fb-embed .hint { font-size: .8rem; }
.fb-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 8px;
  background: #1877f2; color: #fff !important; text-decoration: none; font-weight: 800; padding: 12px; border-radius: 999px;
  box-shadow: 0 10px 24px -8px rgba(24, 119, 242, .7); transition: transform .2s, padding .2s;
}
.fb-float .fb-icon { width: 28px; height: 28px; }
.fb-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s; }
.fb-float:hover { transform: translateY(-2px); padding-right: 18px; }
.fb-float:hover span { max-width: 120px; }
@media print { .fb-float { display: none; } }

/* Base de données */
.data-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 20px; }
.data-list { list-style: none; margin: 0; padding: 0; }
.data-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.data-list li:last-child { border-bottom: 0; }
.data-list li > a:first-child { flex: 1; text-decoration: none; color: var(--text); }
.data-list li > a:first-child:hover strong { color: var(--accent-dark); }
.search-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px; }
.search-bar input[type="search"] { flex: 1; min-width: 200px; }
.data-card { padding: 12px; }
.data-wrap { max-height: 70vh; overflow: auto; }
.data-table { font-size: .85rem; }
.data-table th { position: sticky; top: 0; background: var(--surface-2); z-index: 1; white-space: nowrap; }
.data-table th a { color: var(--text); text-decoration: none; }
.data-table td { white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.data-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pager { display: flex; align-items: center; gap: 10px; }
.purge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 14px; }
.purge-opt { display: flex !important; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 400; }
.purge-opt:has(input:checked) { border-color: var(--danger); background: #fdecec; }
.purge-opt span { display: flex; flex-direction: column; }
.purge-opt small { color: var(--muted); }

@media (max-width: 640px) {
  .fb-float { right: 12px; bottom: 12px; }
}
.fb-fallback { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 500px; margin-top: 12px; padding: 14px 18px; border-radius: 14px; background: #1877f2; color: #fff !important; text-decoration: none; box-shadow: 0 10px 24px -10px rgba(24, 119, 242, .7); }
.fb-fallback:hover { background: #0e63d3; }
.fb-fallback .fb-icon { width: 34px; height: 34px; color: #fff !important; }
.fb-fallback span:not(.fb-fallback-go) { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.fb-fallback small { opacity: .85; }
.fb-fallback-go { font-weight: 800; white-space: nowrap; }
.ltac-card-contact { margin: 6px 0 0; font-weight: 700; }

/* Bourse = animation */
.type-pick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.type-opt { display: inline-flex !important; align-items: center; gap: 8px; padding: 10px 16px; border: 2px solid var(--border); border-radius: 999px; cursor: pointer; font-weight: 800; }
.type-opt:has(input:checked) { border-color: var(--accent); background: var(--primary-soft); }
.bourse-admin-band { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; text-decoration: none; color: var(--text); border-left: 5px solid var(--sun); }
.bourse-admin-band:hover { color: var(--text); box-shadow: var(--shadow-lg); }
.bourse-admin-band .bb-icon { font-size: 2.2rem; }
.bourse-admin-band > span:nth-child(2) { flex: 1; min-width: 200px; }
.subnav-back { color: var(--muted) !important; }
.archive-pick { border-left: 5px solid var(--mint); }
.archive-pick .archive-items { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; }
[hidden] { display: none !important; }
.fb-posts { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; width: 100%; }
.fb-preview { border: 1px dashed var(--border); border-radius: 14px; padding: 14px; background: var(--surface-2); }

/* =========================================================
   Brocante
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }
.broc-price { font-size: 1.1rem; margin-bottom: 4px; }
.broc-price strong { font-family: var(--font-title); font-size: 1.6rem; color: var(--primary-dark); }
.broc-pay { padding: 12px 14px; border-radius: 12px; background: #fff8e1; border: 1px solid #f5dfa0; margin-bottom: 12px; font-size: .92rem; overflow-wrap: anywhere; }
.broc-form summary { list-style: none; cursor: pointer; margin-bottom: 12px; }
.broc-form summary::-webkit-details-marker { display: none; }
.broc-legal { border: 1px dashed var(--border); border-radius: 12px; padding: 12px 14px 4px; margin: 6px 0 14px; }
.broc-legal legend { font-weight: 800; padding: 0 6px; }
.quick-pay select { padding: 4px 6px; font-size: .82rem; width: auto; min-width: 0; }
.inline-check { display: inline-flex !important; margin: 0 8px 0 0 !important; font-weight: 600; }

/* Plan de placement */
.plan { display: grid; gap: 14px; }
.plan-row { display: grid; grid-template-columns: 110px 1fr 90px; gap: 10px; align-items: center; }
.plan-label { display: flex; flex-direction: column; line-height: 1.15; }
.plan-label strong { font-family: var(--font-title); font-size: 1.05rem; overflow-wrap: anywhere; }
.plan-label small, .plan-fill { color: var(--muted); font-size: .8rem; }
.plan-track { display: flex; height: 64px; border: 2px solid #c9d0e2; border-radius: 8px; overflow: hidden; background: #fff; }
.plan-stand, .plan-free { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; overflow: hidden; border-right: 1px solid rgba(0,0,0,.15); text-decoration: none; color: #1d2340; line-height: 1.05; padding: 2px; }
.plan-stand b { font-size: 1rem; }
.plan-stand small { font-size: .62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.plan-stand i { font-size: .6rem; font-style: normal; opacity: .75; }
.plan-stand.is-paid { background: #cdeedb; }
.plan-stand.is-unpaid { background: #ffe2b8; }
.plan-stand.is-here { box-shadow: inset 0 -5px 0 #1fa463; }
.plan-stand.is-me { outline: 3px solid var(--accent); outline-offset: -3px; z-index: 1; }
a.plan-stand:hover { filter: brightness(.94); color: #1d2340; }
.plan-free { background: repeating-linear-gradient(45deg, #f4f6fb, #f4f6fb 6px, #e9edf6 6px, #e9edf6 12px); }
.plan-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .85rem; color: var(--muted); }
.plan-legend span { display: inline-block; width: 22px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.15); vertical-align: middle; }
@media (max-width: 640px) {
  .plan-row { grid-template-columns: 1fr; gap: 4px; }
  .plan-track { width: 100% !important; overflow-x: auto; }
  .plan-stand { min-width: 34px; }
}

/* Registre imprimable */
.registre-table { font-size: .82rem; }
.registre-table td { vertical-align: top; }
.registre-table .sign-cell { width: 110px; }
@media print {
  @page { margin: 8mm; }
  .plan-print, .registre { break-inside: auto; }
  .plan-stand, .plan-free { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .registre-table th, .registre-table td { border: 1px solid #999 !important; padding: 4px 6px !important; }
  .registre-table tr { break-inside: avoid; }
  .registre-table .sign-cell { height: 46px; }
}

/* Réservation pleine largeur (brocante, repas) */
.reserve-section { margin-top: 20px; scroll-margin-top: 90px; }
.reserve-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 12px; }
.reserve-cols fieldset { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 6px; margin: 0; min-width: 0; background: var(--surface-2); }
.reserve-cols legend { font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; padding: 0 6px; }
.reserve-total { font-size: 1.05rem; margin: 4px 0 12px; }
.reserve-total strong { font-family: var(--font-title); font-size: 1.5rem; color: var(--primary-dark); }
.reserve-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.grid-2.tight { gap: 0 10px; }
@media (max-width: 980px) { .reserve-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reserve-cols { grid-template-columns: 1fr; } }

/* Repas : tarifs publics, plan des tables */
.tarif-public { list-style: none; padding: 0; margin: 0 0 10px; }
.tarif-public li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.tarif-public li strong { font-family: var(--font-title); color: var(--primary-dark); white-space: nowrap; }
.tarif-public.small-list li { padding: 3px 0; font-size: .92rem; }
.choice-title { font-weight: 800; margin: 10px 0 2px; font-size: .92rem; }
.guests-table input, .guests-table select { width: 100%; min-width: 90px; }
.guests-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.guests-foot .reserve-total { margin: 0; }
.reserve-cols.cols-3 { grid-template-columns: repeat(3, 1fr); }
.reserve-cols.cols-3 > label { margin: 0; }
@media (max-width: 760px) { .reserve-cols.cols-3 { grid-template-columns: 1fr; } }
.move-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-top: 10px; }
.move-group select { width: auto; max-width: 100%; }
.tables-plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.table-card { border: 2px solid var(--border); border-radius: 18px; background: #fff; padding: 10px 12px; break-inside: avoid; }
.table-card.is-full { border-color: #9fd8b7; }
.table-card.is-empty { opacity: .7; }
.table-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.table-disc { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #23264a; color: #fff; font-weight: 800; font-size: .9rem; flex: none; }
.table-head strong { flex: 1; font-family: var(--font-title); font-weight: 600; }
.table-count { font-size: .8rem; color: var(--muted); font-weight: 700; }
.table-card ul { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.table-card li { padding: 3px 6px; border-radius: 6px; margin: 1px 0; }
.table-card li small { display: block; color: var(--muted); font-size: .72rem; }
.table-card li a { color: inherit; text-decoration: none; }
.table-card li.is-paid { background: #e3f6eb; }
.table-card li.is-unpaid { background: #fff0d9; }
.table-card li.group-start:not(:first-child) { margin-top: 5px; border-top: 2px solid #c9d0e2; }
.table-card li.is-me { outline: 2px solid var(--accent); }
.table-card li.seat-free { color: #b3b9c9; font-style: italic; font-size: .78rem; }
.plan-legend .dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; }
.plan-legend .dot.is-paid { background: #e3f6eb; border: 1px solid #9fd8b7; }
.plan-legend .dot.is-unpaid { background: #fff0d9; border: 1px solid #f2c27c; }
.row-done td { opacity: .55; }
@media print {
  .tables-plan { grid-template-columns: repeat(4, 1fr); gap: 6mm; }
  .table-card { border-color: #888; }
  .table-card li { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .table-card li.seat-free { display: none; }
}

/* Fréquentation (accueil admin) */
.visits-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; }
.stats.compact { grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; }
.stats.compact .stat small { display: block; color: var(--muted); font-size: .78rem; }
.visits-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 6px 0 0; border-bottom: 2px solid var(--border); }
.vbar { flex: 1; min-width: 0; background: var(--accent); border-radius: 4px 4px 0 0; position: relative; opacity: .85; }
.vbar.we { background: #8fb6f5; }
.vbar.today { background: var(--sun); opacity: 1; }
.vbar:hover { opacity: 1; filter: brightness(.9); }
.vbar i { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .62rem; color: var(--muted); display: none; }
.vbar:hover i { display: block; }
.visits-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 4px; }
.top-pages { list-style: none; margin: 0; padding: 0; }
.top-pages li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; margin-bottom: 4px; font-size: .9rem; z-index: 0; }
.top-pages li i { position: absolute; inset: 0 auto 0 0; background: var(--primary-soft); border-radius: 8px; z-index: -1; }
.top-pages li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) { .visits-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .stats.compact { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .stats.compact .stat { padding: 10px; } }
.my-guests { list-style: none; padding: 0; margin: 0 0 12px; font-size: .9rem; }
.my-guests li { padding: 4px 0; border-bottom: 1px dashed var(--border); }
.my-guests .muted { display: block; font-size: .8rem; }
.contact-note { font-size: .88rem; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 10px; overflow-wrap: anywhere; }
.holder-lots { align-items: flex-start !important; }
.lot-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.lot-chip { font-size: .8rem; display: inline-flex; align-items: center; gap: 4px; }
.lot-move { gap: 6px !important; flex-wrap: nowrap; }
.lot-move select { width: auto; max-width: 180px; }
@media (max-width: 760px) { .lot-move { flex-wrap: wrap; } }
.guests-table select.no-choice { color: var(--muted); background: var(--surface-2); }
.guests-table select:invalid { border-color: #f2a27c; }

/* =========================================================
   Messages en surimpression
   ========================================================= */
.toast-stack { position: fixed; top: 86px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 14px;
  border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--border); border-left: 5px solid var(--success);
  font-size: .93rem; line-height: 1.4; animation: toast-in .25s ease-out;
}
.toast.alert-info { border-left-color: var(--sky); }
.toast.alert-warn { border-left-color: var(--warn); }
.toast-icon { font-size: 1.15rem; line-height: 1.2; }
.toast-msg { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--text); }
.toast-close { border: 0; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.toast-close:hover { color: var(--text); }
.toast.is-leaving { opacity: 0; transform: translateX(20px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.flash-modal-backdrop { position: fixed; inset: 0; z-index: 300; background: rgba(30, 33, 64, .45); display: grid; place-items: center; padding: 16px; animation: fade-in .15s ease-out; }
.flash-modal {
  width: min(460px, 100%); background: #fff; border-radius: 20px; padding: 26px 24px 22px; text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); border-top: 6px solid var(--danger); animation: modal-in .2s ease-out;
}
.flash-modal-icon { font-size: 2.6rem; line-height: 1; margin-bottom: 6px; }
.flash-modal h2 { margin: 0 0 10px; font-size: 1.3rem; }
.flash-modal p, .flash-modal ul { margin: 0 0 18px; color: var(--text); overflow-wrap: anywhere; }
.flash-modal ul { text-align: left; padding-left: 1.2em; }
.flash-modal ul li { margin: 4px 0; }
.flash-modal-backdrop.is-leaving { opacity: 0; transition: opacity .2s; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: scale(.95) translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .toast-stack { top: auto; bottom: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .toast, .flash-modal, .flash-modal-backdrop { animation: none; } }
.guests-table input:user-invalid { border-color: var(--danger); background: #fdf1f1; }

/* Plan des tables : glisser-déposer */
.js-dnd li.guest, .js-dnd li.group-label { cursor: grab; user-select: none; -webkit-user-select: none; }
.js-dnd li.guest:active, .js-dnd li.group-label:active { cursor: grabbing; }
.js-dnd li.group-label { margin-top: 6px; padding: 3px 8px; font-weight: 800; font-size: .78rem; border-radius: 6px; background: #23264a !important; color: #fff; display: flex; align-items: center; gap: 6px; }
.js-dnd li.group-label:first-child { margin-top: 0; }
.js-dnd li.group-label .group-open { margin-left: auto; color: #fff; opacity: .7; text-decoration: none; }
.js-dnd li.group-label .group-open:hover { opacity: 1; }
.js-dnd li.group-label.is-unpaid { background: #8a4b00 !important; }
.drag-handle { opacity: .75; letter-spacing: -1px; }
.js-dnd li.is-dragging { opacity: .4; }
.js-dnd li.is-picked { outline: 3px solid var(--accent); outline-offset: -2px; box-shadow: 0 4px 12px -4px rgba(61, 139, 253, .6); }
.js-dnd.dragging .table-card, .js-dnd.picking .table-card { transition: border-color .15s, background .15s; }
.js-dnd.picking .table-card { cursor: pointer; }
.js-dnd .table-card.drop-over, .js-dnd.picking .table-card:hover { border-color: var(--accent); background: #f2f7ff; box-shadow: 0 0 0 4px rgba(61, 139, 253, .15); }
.js-dnd.is-busy { opacity: .65; pointer-events: none; }
.table-card.unseated { border-style: dashed; background: #fbfbfd; }
.table-card.unseated .table-disc { background: #8a8fa8; }
.table-card.is-over { border-color: var(--danger); }
.table-card.is-over .table-count { color: var(--danger); }
@media print { .table-card.unseated, .dnd-help { display: none !important; } .js-dnd li.group-label { background: #ddd !important; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; } .group-open { display: none; } }

/* Brocante : glisser-déposer sur le plan */
.js-broc-dnd .plan-track { position: relative; }
.js-broc-dnd [data-expo] { cursor: grab; user-select: none; -webkit-user-select: none; }
.js-broc-dnd [data-expo]:active { cursor: grabbing; }
.js-broc-dnd .is-dragging { opacity: .35; }
.js-broc-dnd .is-picked { outline: 3px solid var(--accent); outline-offset: -3px; z-index: 2; }
.js-broc-dnd.picking .plan-track, .js-broc-dnd.picking .plan-unplaced { cursor: crosshair; }
.js-broc-dnd.dragging .plan-track, .js-broc-dnd.picking .plan-track { border-color: #9cc0fb; }
.js-broc-dnd.is-busy { opacity: .6; pointer-events: none; }
.drop-ghost { position: absolute; top: 0; bottom: 0; display: none; align-items: center; justify-content: center; border: 2px dashed var(--accent); background: rgba(61, 139, 253, .18); border-radius: 4px; font-size: .68rem; font-weight: 800; color: #1d4f94; pointer-events: none; white-space: nowrap; overflow: hidden; z-index: 3; }
.drop-ghost.on { display: flex; }
.plan-unplaced { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; margin-bottom: 6px; border: 2px dashed #c9d0e2; border-radius: 10px; background: #fbfbfd; min-height: 48px; }
.plan-unplaced > strong { margin-right: 6px; font-size: .9rem; }
.plan-unplaced.drop-over { border-color: var(--accent); background: #f2f7ff; }
.plan-chip { padding: 5px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; border: 1px solid rgba(0,0,0,.12); }
.plan-chip.is-paid { background: #cdeedb; }
.plan-chip.is-unpaid { background: #ffe2b8; }
@media print { .plan-unplaced, .drop-ghost { display: none !important; } }
.drop-ghost { background: var(--accent); border: 0; border-radius: 3px; box-shadow: 0 0 0 3px rgba(61, 139, 253, .25); }

/* ------------------------------------------------------------ E-mails aux familles */
.mail-compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.mail-compose fieldset { border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 14px; margin: 6px 0 14px; }
.mail-compose legend { font-weight: 800; padding: 0 6px; }
.mail-anims { max-height: 260px; overflow: auto; }
.mail-when .check { align-items: center; flex-wrap: wrap; }
.mail-when-at { width: auto; margin: 0 0 0 6px; }
.mail-test { margin-top: 14px; }
.mail-test summary { cursor: pointer; font-weight: 700; }
.mail-test .inline-form { margin-top: 8px; }
.mail-preview { position: sticky; top: 12px; }
.mail-preview iframe { width: 100%; height: 640px; border: 1.5px solid var(--border); border-radius: 12px; background: #f6f1ea; }
.mail-rcpt { max-height: 420px; overflow: auto; }
.inline-actions { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; margin: 0; }
.input-xs { width: 80px !important; display: inline-block; }
.newsletter-box { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--bg, #f6f7fb); }
@media (max-width: 900px) {
  .mail-compose { grid-template-columns: 1fr; }
  .mail-preview { position: static; }
  .mail-preview iframe { height: 520px; }
}

/* Brocante : sens de tassement d'une rangée */
.plan-sens { margin: 4px 0 0; }
.plan-sens .btn-xs { padding: 2px 8px; font-size: .72rem; border-radius: 999px; white-space: nowrap; }
.plan-sens-txt { font-size: .72rem; }
.plan-row.is-right .plan-track { box-shadow: inset -3px 0 0 var(--accent, #3d8bfd); }
.plan-row:not(.is-right) .plan-track { box-shadow: inset 3px 0 0 var(--accent, #3d8bfd); }

/* Locations : consommables fournis */
.conso-pick { border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 14px; margin: 10px 0 14px; }
.conso-pick legend { font-weight: 800; padding: 0 6px; }
.conso-row { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; flex-wrap: wrap; }
.conso-row select { flex: 1 1 240px; margin: 0; }
.conso-row input { width: 90px; flex: 0 0 90px; margin: 0; }
.conso-row > span { flex: 1 1 200px; }

/* ------------------------------------------------------------ Trombinoscope */
.trombi { margin: 34px 0 10px; }
.trombi .lead { margin-top: 0; }
.trombi-group { margin: 22px 0 10px; font-family: var(--font-title); }
.trombi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.trombi-card { margin: 0; background: var(--surface, #fff); border: 1.5px solid var(--border); border-radius: 18px; padding: 18px 14px 16px; text-align: center; box-shadow: 0 8px 20px -14px rgba(42, 36, 56, .35); }
.trombi-img { display: block; width: 120px; height: 120px; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--primary, #f25c2a); background: #f1ece6; }
.trombi-initials { display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 2.2rem; font-weight: 600; color: #fff; background: linear-gradient(135deg, #f7934c, #f25c2a); }
.trombi-card strong { display: block; font-size: 1.05rem; }
.trombi-role { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: #fff1e8; color: #a1401a; font-size: .8rem; font-weight: 800; }
.trombi-card p { margin: 8px 0 0; font-size: .88rem; color: var(--muted); }
.trombi-admin { display: flex; flex-direction: column; gap: 10px; }
.trombi-admin-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 14px; }
.trombi-admin-row.is-hidden { opacity: .55; }
.trombi-admin-txt { flex: 1 1 220px; }
.trombi-thumb { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; flex: none; }
.trombi-thumb.trombi-initials { font-size: 1.1rem; }
.trombi-form-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.trombi-photo-edit { text-align: center; }
.trombi-photo-edit .trombi-img { width: 160px; height: 160px; }
@media (max-width: 700px) {
  .trombi-form-grid { grid-template-columns: 1fr; }
  .trombi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trombi-img { width: 96px; height: 96px; }
}

/* Devis de location */
.grid-devis { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.devis-sheet { padding: 28px; }
@media (max-width: 900px) { .grid-devis { grid-template-columns: 1fr; } }
@media print {
  .grid-devis { display: block; }
  .devis-sheet { box-shadow: none; border: 0; padding: 0; }
}

/* ------------------------------------------------------------ Accueil : photo dans le bloc orange */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-photo-cote { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 34px; align-items: center; text-align: left; padding: 48px 44px 52px; }
.hero-photo-cote > .hero-toys { position: absolute; inset: 0; pointer-events: none; }
.hero-photo-cote .hero-text { position: relative; order: 1; }
.hero-photo-cote .hero-pic { order: 2; }
.hero-photo-cote .hero-logo { width: 110px; height: 110px; margin: 0 0 8px; }
.hero-photo-cote h1 { justify-content: flex-start; font-size: 2.6rem; }
.hero-photo-cote .lead { margin-left: 0; }
.hero-photo-cote .actions.center { justify-content: flex-start; }
.hero-pic { position: relative; margin: 0; transform: rotate(2deg); }
.hero-pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; border: 7px solid #fff; box-shadow: 0 22px 40px -18px rgba(90, 30, 0, .55); background: #fff3e0; }
.hero-pic::after { content: '📸'; position: absolute; top: -18px; left: -14px; font-size: 2.2rem; transform: rotate(-12deg); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .2)); }
.area-public .hero.hero-photo-fond {
  background:
    linear-gradient(180deg, rgba(242, 92, 42, .86) 0%, rgba(247, 132, 43, .78) 55%, rgba(255, 184, 28, .74) 100%),
    var(--hero-img) center / cover no-repeat;
}
.hero-photo-fond h1, .hero-photo-fond .lead { text-shadow: 0 2px 10px rgba(110, 35, 0, .45); }
@media (max-width: 860px) {
  .hero-photo-cote { grid-template-columns: 1fr; text-align: center; padding: 30px 18px 40px; gap: 18px; }
  .hero-photo-cote .hero-pic { order: 0; max-width: 460px; margin: 0 auto; transform: rotate(1deg); }
  .hero-photo-cote .hero-logo { margin: 0 auto 6px; width: 90px; height: 90px; }
  .hero-photo-cote h1 { justify-content: center; font-size: 2rem; }
  .hero-photo-cote .lead { margin-left: auto; }
  .hero-photo-cote .actions.center { justify-content: center; }
}
.section-links { font-weight: 700; }
.hero-admin { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.hero-admin-img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: linear-gradient(180deg, #f25c2a, #ffb81c); color: #fff; font-weight: 800; }
@media (max-width: 700px) { .hero-admin { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Animations : à venir / passées */
.anim-tabs { display: inline-flex; gap: 6px; padding: 6px; margin: 0 0 20px; border-radius: 999px; background: var(--surface, #fff); border: 1.5px solid var(--border); box-shadow: 0 6px 16px -12px rgba(42, 36, 56, .35); flex-wrap: wrap; }
.anim-tabs a { padding: 9px 18px; border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--text) !important; }
.anim-tabs a:hover { background: var(--primary-soft, #fff1e8); }
.anim-tabs a.active { background: linear-gradient(180deg, #ff7a3d, #f25c2a); color: #fff !important; box-shadow: 0 6px 14px -6px rgba(242, 92, 42, .8); }
.anim-tabs-n { display: inline-block; min-width: 1.6em; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, .08); font-size: .8rem; text-align: center; }
.anim-tabs a.active .anim-tabs-n { background: rgba(255, 255, 255, .28); }
.year-title { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.anim-grid.past .anim-card { opacity: .93; }

/* ------------------------------------------------------------ Page « L'association » */
.asso-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: stretch; }
.asso-top .card, .asso-bottom .card { margin: 0; }
.asso-side { display: flex; flex-direction: column; gap: 20px; }
.asso-side .card { flex: 1; }
.join-band { display: flex; align-items: center; gap: 20px; margin: 10px 0 20px; flex-wrap: wrap; }
.join-band > div { flex: 1 1 320px; }
.join-band h3 { margin: 0 0 4px; }
.join-band p { margin: 0; }
.join-emoji { font-size: 2.6rem; }
.asso-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin: 30px 0 10px; }
.asso-bottom.no-fb { grid-template-columns: 1fr; }
.asso-bottom h2 { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ci { font-size: 1.3rem; line-height: 1.2; }
.fb-side .fb-embed iframe { width: 100%; }
@media (max-width: 900px) {
  .asso-top, .asso-bottom { grid-template-columns: 1fr; }
}

/* Confirmation de l'adresse e-mail */
.verif-notice { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border: 2px solid #ffc78f; background: #fff6ec; }
.verif-notice > div { flex: 1 1 320px; }
.verif-notice form { margin: 0; }
.verif-icon { font-size: 2rem; }

/* ------------------------------------------------------------ Dons aux écoles */
.dons { margin: 34px 0 10px; }
.dons .lead { margin-top: 0; }
.dons-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 0 0 16px; }
.dons-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--surface, #fff); border: 1.5px solid var(--border); }
.dons-kpi span { color: var(--muted); font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.dons-kpi strong { font-family: var(--font-title); font-size: 1.7rem; line-height: 1.1; }
.dons-kpi small { color: var(--muted); }
.dons-kpi-main { background: linear-gradient(160deg, #fff1e8, #fff 70%); border-color: #ffc78f; }
.dons-kpi-main strong { font-size: 2.3rem; color: #c2410c; }
.dons-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: none; margin-right: 6px; vertical-align: middle; }
.dons-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.dons-legend span { display: inline-flex; align-items: center; }
.dons-table th[scope="row"] { font-weight: 800; white-space: nowrap; }
.dons-table th[scope="row"] small { display: block; font-weight: 600; color: var(--muted); white-space: normal; max-width: 260px; font-size: .8rem; }
.dons-table tfoot th, .dons-table tfoot td { border-top: 2px solid var(--border); }
.dons-table tr.dons-zero { color: var(--muted); }
.dons-bar-col { width: 34%; min-width: 120px; }
.dons-bar { display: flex; gap: 2px; height: 14px; min-width: 6px; }
.dons-bar span { display: block; height: 100%; min-width: 3px; }
.dons-bar span:first-child { border-radius: 4px 0 0 4px; }
.dons-bar span:last-child { border-radius: 0 4px 4px 0; }
.dons-bar span:only-child { border-radius: 4px; }
.dons-bar span:hover { filter: brightness(1.12); }
.dons-admin .dons-input { width: 110px; text-align: right; margin: 0; }
.dons-admin td input { margin: 0; }
.dons-ecole { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.dons-ecole .inline-form { flex: 1 1 220px; }
@media (max-width: 700px) { .dons-bar-col { display: none; } }

/* ------------------------------------------------------------ Illustration automatique des animations sans photo */
.anim-art { position: relative; overflow: hidden; display: block;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, .28) 0 18%, transparent 19%),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, .18) 0 22%, transparent 23%),
    linear-gradient(var(--rot, 135deg), var(--c1), var(--c2)); }
.anim-art.anim-hero { aspect-ratio: 21 / 8; max-height: 300px; }
.anim-art .art-main { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(3.4rem, 9vw, 5.6rem); line-height: 1;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); transition: transform .35s cubic-bezier(.2, 1.6, .4, 1); }
.anim-art.anim-hero .art-main { font-size: clamp(4.5rem, 12vw, 8rem); }
.anim-art .art-deco { position: absolute; transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--s)); font-size: 1.9rem; line-height: 1; opacity: .85;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .2)); animation: artFloat 6s ease-in-out infinite; animation-delay: var(--d); }
.anim-art.anim-hero .art-deco { font-size: 2.6rem; }
@keyframes artFloat { 0%, 100% { margin-top: 0; } 50% { margin-top: -6px; } }
.anim-card:hover .anim-art .art-main { transform: translate(-50%, -50%) scale(1.12) rotate(-6deg); }
.anim-grid.past .anim-art { filter: saturate(.55); }
@media (prefers-reduced-motion: reduce) { .anim-art .art-deco { animation: none; } }

/* ---------- Location de matériel (site public) ---------- */
.rent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 24px 0; }
.rent-card { display: flex; flex-direction: column; gap: 10px; margin: 0; border: 2px solid transparent; transition: border-color .15s, box-shadow .15s; }
.rent-card.picked { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.rent-icon { font-size: 2.2rem; line-height: 1; }
.rent-body { flex: 1; }
.rent-body h3 { margin: 6px 0 4px; }
.rent-price { margin: 8px 0 4px; font-size: 1.05rem; }
.rent-price strong { font-family: var(--font-title); font-size: 1.5rem; color: var(--primary-dark); }
.rent-forfaits { list-style: none; padding: 0; margin: 4px 0; }
.rent-forfaits li { padding: 2px 0; border-bottom: 1px dashed var(--border); }
.rent-qty { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); margin: 0; }
.rent-qty input { width: 90px; text-align: center; }
.rent-request { scroll-margin-top: 90px; }
.rent-summary { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2, #fff0d9); color: var(--muted); }
.rent-summary.on { color: var(--text); font-weight: 700; }

/* ---------- Comptes temporaires (espace bénévoles) ---------- */
.staff-readonly main form[method="post"], .staff-readonly main .js-readonly-hide { display: none !important; }
.readonly-band { margin-top: 16px; }
.droits-table td, .droits-table th { vertical-align: middle; }
.droits-table .droit-opts { display: flex; gap: 4px; flex-wrap: wrap; }
.droit-opts label { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); cursor: pointer; font-size: .9rem; margin: 0; white-space: nowrap; }
.droit-opts input { margin: 0; width: auto; }
.droit-opts label:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); font-weight: 700; }
.droits-scroll { max-height: 340px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.staff.expired summary { opacity: .65; }
.temp-access { list-style: none; padding: 0; margin: 0; }
.temp-access li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }

/* ------------------------------------------------------------ Journal des actions */
.journal-filters select, .journal-filters input[type="search"] { flex: 1 1 170px; }
.journal-filters label.inline-form input { width: auto; }
.journal-table td { vertical-align: top; }
.journal-table .journal-day th { background: var(--bg-soft, rgba(0,0,0,.04)); text-align: left; font-size: .9rem; padding-top: 10px; }
.journal-table tr.journal-err td { background: rgba(220, 53, 69, .06); }
.journal-table .tag-soft { text-decoration: none; margin-right: 4px; }
.journal-det { margin-top: 4px; }
.journal-det pre { white-space: pre-wrap; word-break: break-word; font-size: .8rem; margin: 4px 0; padding: 6px 8px; background: rgba(0,0,0,.04); border-radius: 6px; max-height: 260px; overflow: auto; }

/* Dons : seules les 3 dernières années sont affichées, les autres au clic */
.dons-card:not(.dons-all) .dons-old { display: none; }
.dons-table .dons-more td { text-align: center; padding: 6px; }
.dons-table tfoot th small { display: block; font-weight: 400; }

/* ------------------------------------------------------------ Devis et factures */
.plain-list { list-style: none; margin: 0 0 12px; padding: 0; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.plain-list li:last-child { border-bottom: 0; }
.lg-row { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; flex-wrap: wrap; }
.lg-row select { flex: 1 1 200px; margin: 0; max-width: 300px; }
.lg-row .js-lg-des { flex: 3 1 240px; margin: 0; }
.lg-row .js-lg-qty { width: 70px; flex: 0 0 70px; margin: 0; }
.lg-row .js-lg-pu { width: 90px; flex: 0 0 90px; margin: 0; }
.lg-row .lg-total { min-width: 70px; }
.fa-total { font-size: 1.15rem; margin: 8px 0 14px; }
.ca-table .ca-bar-col { width: 40%; }
.ca-bar { height: 14px; border-radius: 7px; background: var(--accent); min-width: 2px; }
.client-pick select { max-width: 520px; }
@media print { .area-admin .tabs { display: none; } }

/* Photos du matériel louable */
.rent-photos { margin: -4px -4px 0; }
.rent-photo-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; border: 1px solid var(--border); }
.rent-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.rent-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; border: 1px solid var(--border); }
.rent-thumb-admin { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; float: left; margin: 0 10px 0 0; border: 1px solid var(--border); }

/* Formulaire de devis : liste unique et adresse */
.rent-row { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(160px, 1.5fr) 70px 90px 80px 34px; gap: 8px; align-items: center; margin: 0 0 8px; }
.rent-row select, .rent-row input { margin: 0; width: 100%; }
.rent-row .row-mid { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rent-row .js-pu[readonly] { background: var(--surface-2, #f5f2ee); }
.rent-row .js-line { text-align: right; font-weight: 700; }
.rows-head { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(160px, 1.5fr) 70px 90px 80px 34px; gap: 8px; padding: 0 2px 4px; }
.rows-head span:nth-child(5) { text-align: right; }
.rent-total { font-size: 1.1rem; margin: 4px 0 12px; }
@media (max-width: 760px) {
  .rows-head { display: none; }
  .rent-row { grid-template-columns: 1fr 70px 90px 34px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
  .rent-row .js-ref { grid-column: 1 / -1; }
  .rent-row .row-mid { grid-column: 1 / 2; }
  .rent-row .js-line { display: none; }
}
.adr-field { position: relative; }
.adr-suggest { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); }
.adr-suggest li { padding: 8px 12px; cursor: pointer; font-weight: 400; }
.adr-suggest li:hover { background: var(--surface-2, #f5f2ee); }
[data-a="info"].warn { color: var(--danger, #c0392b); }
.rent-livraison { align-items: flex-start; font-weight: 400; margin: 6px 0; }
.rent-livraison.is-disabled { opacity: .5; cursor: not-allowed; }
/* Adresse de livraison différente de celle du client */
.livr-box { border-left: 3px solid var(--border, #e6e1da); padding: 4px 0 2px 12px; margin: 0 0 10px; }

/* Signature électronique du contrat de location (contrat.php) */
.sign-card { margin-top: 18px; }
.sign-pad-label { font-weight: 600; margin-bottom: 6px; }
.sign-pad { position: relative; border: 2px dashed var(--border); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; }
.sign-pad canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; touch-action: none; cursor: crosshair; }
.sign-pad::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 22%; border-bottom: 1px solid #d8d0c4; pointer-events: none; }
.sign-clear { position: absolute; top: 6px; right: 6px; }

/* Avis des visiteurs (avis.php, admin/avis.php) */
.stars { color: #e3dccf; letter-spacing: 1px; white-space: nowrap; font-size: 1.1rem; }
.stars .on { color: #f2a20c; }
.stars-lg { font-size: 1.6rem; }
.avis-summary { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; margin: 22px 0; }
.avis-score { text-align: center; }
.avis-score strong { font-family: Fredoka, sans-serif; font-size: 3rem; line-height: 1; }
.avis-unit { color: var(--muted); font-weight: 700; margin-left: 2px; }
.avis-score .stars { display: block; margin: 4px 0; }
.avis-bars { display: grid; gap: 6px; }
.avis-bar { display: grid; grid-template-columns: 42px 1fr 32px; gap: 10px; align-items: center; font-weight: 700; font-size: .92rem; }
.avis-bar-track { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.avis-bar-track div { height: 100%; background: #f2a20c; border-radius: 99px; }
.avis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; align-items: start; }
.avis-admin { display: grid; gap: 14px; }
.avis-card { margin: 0; }
.avis-card.is-focus { outline: 3px solid var(--sun); }
.avis-head { display: flex; align-items: center; gap: 12px; }
.avis-head > div { flex: 1; min-width: 0; line-height: 1.3; }
.avis-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); font-weight: 800; font-size: 1.1rem; }
.avis-sujet { margin: 10px 0 4px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.avis-text { margin: 0 0 8px; overflow-wrap: anywhere; }
.avis-reponse { margin-top: 10px; padding: 10px 14px; border-left: 4px solid var(--mint); background: var(--surface-2); border-radius: 0 10px 10px 0; font-size: .95rem; }
.avis-repondre { margin-top: 10px; }
.avis-repondre summary { cursor: pointer; font-weight: 700; }
.avis-pager { justify-content: center; margin: 18px 0; flex-wrap: wrap; gap: 6px; }
.avis-form-card { max-width: 720px; margin: 26px auto; scroll-margin-top: 20px; }
.star-label { font-weight: 700; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin: 0 0 6px; position: relative; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 2.2rem; line-height: 1; color: #e3dccf; cursor: pointer; padding: 0 2px; transition: transform .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f2a20c; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 6px; }
.nav-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); vertical-align: middle; }
@media (max-width: 640px) { .avis-summary { grid-template-columns: 1fr; gap: 12px; } }

/* Partenaires (partenaires.php, association.php, admin/partenaires.php) */
.partners-group { margin: 26px 0; }
.partners-group > h2 { margin-bottom: 12px; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.partner-card { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
a.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.partner-card h3 { margin: 6px 0 0; font-size: 1.1rem; color: var(--text); }
.partner-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.partner-logo { width: 100%; height: 110px; display: grid; place-items: center; }
.partner-logo img { max-width: 80%; max-height: 110px; object-fit: contain; }
.partner-link { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: .9rem; color: var(--primary-dark); }
.partner-initials { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; background: var(--primary-soft); color: var(--primary-dark); font-family: var(--font-title); font-size: 1.6rem; font-weight: 600; }
.partners-cta { margin: 30px 0; }
.partners-teaser { display: block; text-decoration: none; color: var(--text); }
.partners-teaser h3 { margin-top: 0; }
.partners-teaser-logos { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 10px; }
.partners-teaser-logos img { height: 44px; max-width: 90px; object-fit: contain; }
.partners-teaser-logos .partner-initials { width: 44px; height: 44px; border-radius: 12px; font-size: 1rem; }
.partner-cell-logo { width: 70px; }
.partner-cell-logo img { width: 56px; height: 56px; object-fit: contain; }
.partner-cell-logo .partner-initials { width: 48px; height: 48px; border-radius: 12px; font-size: 1.1rem; }
.partner-logo-preview { max-width: 180px; max-height: 100px; object-fit: contain; display: block; margin-bottom: 6px; }
.narrow-form { max-width: 680px; }

/* Modules Facebook en attente d'accord */
.fb-consent { width: 100%; margin: 0 auto; }
.fb-consent-box { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 28px 20px; background: #f3f6fc; border: 1px dashed #b9c6e4; border-radius: 12px; }
.fb-consent-box svg { width: 40px; height: 40px; color: #1877f2; fill: currentColor; }
.fb-consent-box p { margin: 0; font-size: .92rem; color: #4a4f6a; }
/* Mentions légales */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { margin-top: 0; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
.legal table td, .legal table th { vertical-align: top; }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }

/* Double authentification */
.totp-qr { width: 220px; height: 220px; margin: 8px auto; padding: 8px; background: #fff; border-radius: 12px; border: 1px solid #e6e1d8; }
.totp-qr svg { width: 100%; height: 100%; display: block; }
.totp-key { display: inline-block; margin-top: 6px; font-size: 1.05rem; letter-spacing: .04em; user-select: all; word-break: break-all; }
.totp-input { font-size: 1.6rem !important; letter-spacing: .25em; text-align: center; font-family: ui-monospace, Menlo, monospace; }
.totp-input-sm { width: 110px; text-align: center; letter-spacing: .1em; font-family: ui-monospace, Menlo, monospace; }
.totp-setup h2 { font-size: 1.05rem; margin: 18px 0 4px; }
.totp-setup h2:first-of-type { margin-top: 0; }
.totp-codes { columns: 2; font-size: 1.15rem; line-height: 2; padding-left: 1.6em; }

/* Fréquentation : jour cliquable et détail heure par heure */
a.vbar { display: block; text-decoration: none; }
.vbar.sel { background: var(--primary, #f25c2a); opacity: 1; box-shadow: 0 0 0 2px rgba(242, 92, 42, .25); }
.visits-day { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }
.visits-day .section-head h3 { margin: 0; }
.hours-chart { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding-top: 16px; border-bottom: 2px solid var(--border); }
.hbar-wrap { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.hbar-wrap.now .hbar { outline: 2px solid var(--sun); }
.hbar { position: relative; width: 100%; background: #c9dafa; border-radius: 4px 4px 0 0; display: flex; align-items: flex-end; }
.hbar-v { display: block; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; }
.hbar i { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .62rem; color: var(--muted); }
.hours-axis { display: flex; gap: 3px; font-size: .72rem; color: var(--muted); margin: 3px 0 6px; }
.hours-axis span { flex: 1; min-width: 0; text-align: center; white-space: nowrap; }
.legend-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
span.legend-sw.hbar { background: #c9dafa; }
@media (max-width: 600px) { .hbar i { display: none; } }

/* Concours */
.concours-lots { background: #fff6e5; border-radius: 12px; padding: 10px 14px; margin: 8px 0 12px; }
.concours-info { line-height: 1.6; }
.concours-winners { margin: 4px 0 12px; padding-left: 1.4em; font-weight: 700; }
.concours-winners li { padding: 2px 0; }
.concours-win { font-size: 1.05rem; }
.concours-fs { border: 1px dashed #e9d9c4; border-radius: 14px; padding: 12px 16px; margin: 8px 0 14px; }
.concours-fs legend { font-weight: 700; padding: 0 6px; }

/* Ma famille (espace famille) */
.famille-list { list-style: none; margin: 0 0 14px; padding: 0; }
.famille-list > li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid #f0e6da; }
.fam-ico { font-size: 1.6rem; }
.fam-main { flex: 1 1 200px; }
.fam-edit { flex-basis: auto; }
.fam-edit summary { list-style: none; cursor: pointer; }
.fam-edit summary::-webkit-details-marker { display: none; }
.fam-edit[open] { flex-basis: 100%; }
.fam-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 8px 0; }
.fam-form > input, .fam-form > select { flex: 1 1 140px; width: auto; }
.fam-add label { flex: 1 1 160px; margin: 0; }
.fam-add .btn { flex: 0 0 auto; }

/* Animations réservées aux enfants */
.kids-pick { display: grid; gap: 8px; margin: 6px 0 10px; }
.kid-opt { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #eadfce; border-radius: 12px; cursor: pointer; margin: 0; }
.kid-opt input { width: auto; margin: 0; }
.kid-opt:has(input:checked) { border-color: #f25c2a; background: #fff4ee; }
.kid-opt.is-off { opacity: .55; cursor: not-allowed; }
.kid-opt.is-off small { color: #b3261e; }
.kid-add { margin-top: 12px; }
.kid-add summary { cursor: pointer; font-weight: 700; color: #f25c2a; }
.kids-opt { margin: 4px 0 10px; }
.badge-purple { background: #efe7fb; color: #5b3a9e; }

/* ------------------------------------------------------------ Sondages */
.nav-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; vertical-align: middle; }
.sondage-q { margin: 14px 0; border: 0; padding: 0; }
.sondage-q h3, .sondage-q legend { font-size: 1.02rem; font-weight: 700; margin: 0 0 8px; padding: 0; }
.sondage-choice { display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin: 6px 0; border: 1px solid var(--border, #e6e1da); border-radius: 10px; cursor: pointer; }
.sondage-choice:has(input:checked) { border-color: var(--primary); background: var(--surface-2); }
.sondage-mine { margin: 4px 0; }
.sondage-bars { list-style: none; margin: 0; padding: 0; }
.sondage-bars li { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr auto; gap: 10px; align-items: center; margin: 7px 0; }
.sondage-bars .sb-track { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.sondage-bars .sb-fill { display: block; height: 100%; border-radius: 99px; background: #9fb4d8; }
.sondage-bars li.top .sb-fill { background: var(--primary); }
.sondage-bars li.mine .sb-label { font-weight: 700; }
.sondage-bars .sb-val { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .sondage-bars li { grid-template-columns: 1fr auto; } .sondage-bars .sb-track { grid-column: 1 / -1; grid-row: 2; } }
.sondage-textes { margin: 0; padding-left: 18px; }
.sondage-textes li { margin: 8px 0; }
.sondage-form .sq { border: 1px solid var(--border, #e6e1da); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
.sondage-form .sq legend { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sondage-form .sq-oblig { align-self: end; }
.sondage-q-ro li { margin: 6px 0; }
