/* =========================================================
   Arche de Noé — feuille de style principale
   ========================================================= */

:root {
  --color-primary: #2f6f5e;
  --color-primary-dark: #1f4d40;
  --color-primary-light: #e4f0ec;
  --color-accent: #e8935a;
  --color-accent-dark: #cf7842;
  --color-cream: #fbf6ee;
  --color-cream-alt: #f4ece0;
  --color-text: #2b2620;
  --color-muted: #6f6759;
  --color-border: #e6ddcc;
  --color-white: #ffffff;
  --color-danger: #b3462c;
  --color-success: #2f6f5e;

  --font-head: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(43, 38, 32, 0.08);
  --shadow-md: 0 8px 24px rgba(43, 38, 32, 0.12);
  --shadow-lg: 0 20px 48px rgba(43, 38, 32, 0.16);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  font-size: 17px;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-primary-dark);
}
h1 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary);
  color: #fff; padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Topbar ---------- */
.topbar { background: var(--color-primary-dark); color: #fff; font-size: 0.85rem; }
.topbar-inner { display: flex; gap: 22px; padding: 7px 20px; overflow-x: auto; white-space: nowrap; }
.topbar-item { color: #eef5f2; opacity: 0.92; }
.topbar-item:hover { opacity: 1; text-decoration: underline; }
.topbar-fb { margin-left: auto; font-weight: 700; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--color-cream); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-size: 2.1rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--color-primary-dark); white-space: nowrap; }
.brand-sub { font-size: 0.76rem; color: var(--color-muted); white-space: nowrap; }
.brand:hover { text-decoration: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--color-primary-dark); border-radius: 3px; }

.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 0; margin: 0; padding: 0; flex-wrap: nowrap; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 12px 9px; color: var(--color-text); font-weight: 700; font-size: 0.88rem;
  border-radius: var(--radius-sm); white-space: nowrap;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.is-active > a { color: var(--color-primary-dark); background: var(--color-primary-light); text-decoration: none; }
.has-children > a::after { content: " ▾"; font-size: 0.7em; }
.submenu {
  display: none; position: absolute; top: 100%; left: 0; background: #fff; list-style: none;
  min-width: 220px; padding: 8px; margin: 4px 0 0; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.has-children:hover .submenu, .has-children:focus-within .submenu { display: block; }
.submenu li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--color-text); font-weight: 600; font-size: 0.92rem; }
.submenu li a:hover, .submenu li.is-active a { background: var(--color-primary-light); color: var(--color-primary-dark); text-decoration: none; }
.nav-cta { margin-left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-family: var(--font-body); border: 2px solid transparent; cursor: pointer;
  font-size: 0.95rem; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff; padding: 64px 0 84px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(232,147,90,.35), transparent 70%); border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; position: relative; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; opacity: 0.95; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-card {
  background: #fff; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); color: var(--color-text);
}
.hero-card h3 { margin-top: 0; }
.hero-hours { list-style: none; padding: 0; margin: 0; }
.hero-hours li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--color-border); font-size: .95rem; }
.hero-hours li:last-child { border-bottom: none; }
.hero-hours .closed { color: var(--color-danger); font-weight: 700; }

/* Motif de petites pattes en fond du bandeau d'accueil, façon confettis */
.hero-paws {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M35 55c-4 0-7 4-7 9s3 9 7 9 7-4 7-9-3-9-7-9zm50 0c-4 0-7 4-7 9s3 9 7 9 7-4 7-9-3-9-7-9zM48 40c-3.5 0-6 3.5-6 8s2.5 8 6 8 6-3.5 6-8-2.5-8-6-8zm24 0c-3.5 0-6 3.5-6 8s2.5 8 6 8 6-3.5 6-8-2.5-8-6-8zM60 68c-9 0-18 7-18 17 0 7 6 11 18 11s18-4 18-11c0-10-9-17-18-17z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 700; font-size: .82rem;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px; backdrop-filter: blur(2px);
}

/* Petites photos de chats bien visibles sous les boutons d'action, en aperçu cliquable */
.hero-avatars { position: relative; margin-top: 26px; }
.hero-avatars-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.avatar-bubble {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.28); flex-shrink: 0; transition: transform .15s ease, box-shadow .15s ease;
}
.avatar-bubble:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,.32); }
.avatar-bubble img { width:100%; height:100%; object-fit:cover; }
.avatar-more {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; text-align: center;
  background: rgba(255,255,255,.14); border: 2px dashed rgba(255,255,255,.6); color: #fff;
  font-weight: 700; font-size: .78rem; line-height: 1.15; transition: background .15s ease, transform .15s ease;
}
.avatar-more span { font-size: 1rem; }
.avatar-more:hover { background: rgba(255,255,255,.24); text-decoration: none; transform: translateY(-4px); color: #fff; }

/* ---------- Bandeau parrainage / dons ---------- */
.donate-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--color-accent) 0%, #e2694f 55%, #c2494f 100%);
  color: #fff; padding: 48px 44px; box-shadow: var(--shadow-lg);
}
.donate-band::before {
  content: "🐾"; position: absolute; font-size: 14rem; opacity: .12; right: -30px; top: -50px;
  transform: rotate(-18deg); pointer-events:none;
}
.donate-band-inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.donate-band .eyebrow { color: #fff; opacity: .9; }
.donate-band h2 { color: #fff; }
.donate-band p { color: rgba(255,255,255,.94); }
.donate-stats { display: flex; gap: 26px; margin: 18px 0 24px; flex-wrap: wrap; }
.donate-stat { }
.donate-stat .num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; line-height:1; }
.donate-stat .label { font-size: .8rem; opacity: .9; }
.donate-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.donate-band .btn-accent { background:#fff; color: var(--color-accent-dark); }
.donate-band .btn-accent:hover { background:#fff4ee; color: var(--color-accent-dark); }
.donate-card {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius-md);
  padding: 22px; backdrop-filter: blur(3px);
}
.donate-card .avatar-row { display:flex; }
.avatar-row { display: flex; }
.avatar-row img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff;
  margin-left: -12px; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.avatar-row img:first-child { margin-left: 0; }

/* Photo d'un chat à adopter, utilisée en illustration (ex: bloc stérilisation) */
.spotlight-card {
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); background: #fff;
  border: 1px solid var(--color-border);
}
.spotlight-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.spotlight-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; flex-wrap: wrap;
}
.spotlight-caption span { font-size: .95rem; color: var(--color-text); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--color-cream-alt); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head .eyebrow { display:inline-block; color: var(--color-accent-dark); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; margin-bottom: 8px; }
.section-head p { color: var(--color-muted); }
.page-hero {
  background: var(--color-primary-light); padding: 40px 0; border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { margin-bottom: 6px; }
.breadcrumb { font-size: .85rem; color: var(--color-muted); }
.breadcrumb a { color: var(--color-muted); }
.prose { max-width: 780px; }
.prose p { color: #3a352c; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.cat-card { display: flex; flex-direction: column; }
.cat-card .cat-photo { aspect-ratio: 4/3; overflow: hidden; background: var(--color-cream-alt); }
.cat-card .cat-photo img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .cat-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.cat-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.cat-meta { font-size: .82rem; color: var(--color-muted); margin-bottom: 10px; display:flex; gap:10px; flex-wrap:wrap; }
.cat-meta span { background: var(--color-primary-light); color: var(--color-primary-dark); padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.cat-card p { font-size: .93rem; color: #45402f; flex: 1; }
.badge-sexe { font-size: 1.1rem; }

.empty-state {
  text-align: center; padding: 50px 20px; background: #fff; border-radius: var(--radius-md);
  border: 1px dashed var(--color-border); color: var(--color-muted);
}

/* ---------- Barre de filtres (page "tous les chats") ---------- */
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--color-border);
  color: var(--color-text); font-weight: 700; font-family: var(--font-body); font-size: .92rem;
  padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.filter-chip .pill { background: var(--color-cream-alt); color: var(--color-muted); font-weight: 700; padding: 1px 8px; }
.filter-chip:hover { border-color: var(--color-primary); }
.filter-chip.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.filter-chip.is-active .pill { background: rgba(255,255,255,.25); color: #fff; }
.filter-bar-sep { width: 1px; height: 22px; background: var(--color-border); margin: 0 4px; }
.filter-link { font-size: .85rem; color: var(--color-muted); }
@media (max-width: 720px) {
  .filter-bar-sep { display: none; }
  .filter-link { display: none; }
}

/* ---------- Featured cat ---------- */
.featured { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 34px; align-items: center;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.featured img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.featured-body { padding: 30px 34px 30px 0; }
.featured .eyebrow { color: var(--color-accent-dark); font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; }

/* ---------- Info tiles (home) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile { background: #fff; border-radius: var(--radius-md); padding: 26px; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.tile .tile-icon { font-size: 2rem; margin-bottom: 10px; }

/* ---------- Alert / notice ---------- */
.notice { background: #fff3e7; border: 1px solid #f0c79b; color: #7a4a1f; padding: 18px 22px; border-radius: var(--radius-md); }
.notice.notice-danger { background: #fdecea; border-color: #f3b3a6; color: #7a2b1a; }
.notice.notice-success { background: var(--color-primary-light); border-color: #bcdcd0; color: var(--color-primary-dark); }

/* ---------- Perdu/Trouvé listings ---------- */
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.pt-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.pt-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pt-card .pt-status { display:inline-block; font-weight: 800; font-size: .72rem; letter-spacing:.04em; padding: 4px 10px; border-radius: 999px; margin: 12px 0 8px 14px; }
.pt-status.status-perdu { background: #fdecea; color: var(--color-danger); }
.pt-status.status-trouve { background: var(--color-primary-light); color: var(--color-primary-dark); }
.pt-card p { padding: 0 14px 16px; font-size: .9rem; color: #43402f; }

/* ---------- Sponsors ---------- */
.sponsor-card { display: grid; grid-template-columns: 120px 1fr; gap: 16px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }
.sponsor-portrait { width: 100%; aspect-ratio: 1/1; border-radius: 50%; object-fit: cover; border: 3px solid var(--color-primary-light); }
.sponsor-cats { display:flex; gap:6px; flex-wrap:wrap; margin: 8px 0; }
.sponsor-cats img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }
.sponsor-badges { display:flex; gap:4px; flex-wrap:wrap; margin-top: 8px; }
.sponsor-badges img { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; opacity: .85; }

/* ---------- Archives ---------- */
.archive-years { display:flex; flex-wrap:wrap; gap: 10px; margin-bottom: 30px; }
.archive-years a { background:#fff; border:1px solid var(--color-border); padding:10px 18px; border-radius:999px; font-weight:700; }
.archive-years a.is-current, .archive-years a:hover { background: var(--color-primary); color:#fff; text-decoration:none; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.archive-item { text-align:center; }
.archive-item img { width:100%; aspect-ratio:1/1; object-fit:cover; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.archive-item span { display:block; font-size: .8rem; margin-top: 6px; color: var(--color-muted); }

/* ---------- Forms (contact / admin) ---------- */
.form-grid { display: grid; gap: 16px; }
label { font-weight: 700; font-size: .9rem; display:block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], textarea, select {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--color-border);
  font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--color-text);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.field-hint { font-size: .8rem; color: var(--color-muted); margin-top: 4px; }
fieldset { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px 20px; margin: 0 0 20px; }
legend { font-family: var(--font-head); font-weight: 700; padding: 0 8px; color: var(--color-primary-dark); }

/* ---------- Tables (conditions/tarifs) ---------- */
.table-tarifs { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.table-tarifs th, .table-tarifs td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--color-border); }
.table-tarifs th { background: var(--color-primary-light); color: var(--color-primary-dark); }
.table-tarifs td.prix { font-weight: 800; color: var(--color-accent-dark); white-space: nowrap; }

/* ---------- Map / iframe ---------- */
.map-embed { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display:block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-dark); color: #e9f1ee; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; padding: 48px 20px 30px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.brand-footer .brand-name { color: #fff; }
.footer-col p, .footer-col a { color: #d9e6e1; }
.footer-col a:hover { color: #fff; }
.footer-hours, .footer-links { list-style:none; padding:0; margin:0; }
.footer-hours li { display:flex; justify-content: space-between; padding: 4px 0; font-size: .88rem; border-bottom: 1px dashed rgba(255,255,255,.12); }
.footer-links li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 20px; text-align:center; font-size: .82rem; color: #b9cbc4; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align:center; }
.flex { display:flex; } .items-center { align-items:center; } .justify-between { justify-content:space-between; } .gap-2{gap:8px;} .gap-3{gap:16px;}
.stack { display:flex; flex-direction:column; gap: 10px; }
.pill { display:inline-block; padding: 4px 12px; border-radius:999px; background: var(--color-primary-light); color: var(--color-primary-dark); font-weight:700; font-size:.78rem; }

/* ---------- Admin ---------- */
.admin-body { background: #f1f0ea; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: var(--color-primary-dark); color: #fff; padding: 24px 0; flex-shrink: 0; overflow-y: auto; }
.admin-sidebar .brand-name, .admin-sidebar .brand-sub { color: #fff; }
.admin-sidebar nav ul { list-style:none; padding:0; margin: 18px 0 0; }
.admin-sidebar nav a { display:block; padding: 11px 24px; color: #d9e6e1; font-weight:700; font-size: .93rem; }
.admin-sidebar nav li.is-active a, .admin-sidebar nav a:hover { background: rgba(255,255,255,.1); color:#fff; text-decoration:none; }
.admin-sidebar nav li.nav-group-label {
  padding: 16px 24px 6px; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.admin-main { flex: 1; padding: 32px 36px; max-width: 1100px; }
.admin-topline { display:flex; justify-content:space-between; align-items:center; margin-bottom: 24px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.admin-table { width:100%; min-width: 640px; border-collapse: collapse; background:#fff; }
.admin-table th, .admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--color-border); text-align:left; vertical-align: middle; }
.admin-table th { background: var(--color-cream-alt); font-family: var(--font-head); font-size:.85rem; text-transform:uppercase; letter-spacing:.03em; color:var(--color-muted); }
.admin-table img.thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.admin-card { background:#fff; border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); border:1px solid var(--color-border); margin-bottom: 24px; }
.admin-login { min-height: 100vh; display:flex; align-items:center; justify-content:center; background: var(--color-primary-dark); }
.admin-login .admin-card { width: 380px; }
.row-actions { display:flex; gap:8px; }
.row-actions a, .row-actions button { font-size:.8rem; padding: 6px 12px; }
.stat-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap:18px; margin-bottom: 30px; }
.stat-card { background:#fff; border-radius: var(--radius-md); padding:20px; box-shadow: var(--shadow-sm); border:1px solid var(--color-border); }
.stat-card .num { font-family: var(--font-head); font-size: 2.1rem; color: var(--color-primary); }
.upload-preview { display:flex; align-items:center; gap:14px; margin-bottom: 10px; }
.upload-preview img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; border:1px solid var(--color-border); }
.toggle-row { display:flex; align-items:center; gap:10px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured img { min-height: 220px; }
  .featured-body { padding: 26px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .donate-band-inner { grid-template-columns: 1fr; }
  .donate-band { padding: 34px 26px; }
  .donate-band::before { font-size: 9rem; right: -20px; top: -30px; }
  .admin-sidebar { position: fixed; left: -240px; top:0; bottom:0; z-index: 200; transition: left .2s; }
  .admin-sidebar.open { left: 0; }
  .admin-main { padding: 20px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md); max-height: 80vh; overflow-y:auto;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 10px 14px 18px; }
  .submenu { display: block; position: static; box-shadow:none; border:none; padding-left: 12px; margin:0; }
  .has-children:hover .submenu { display:block; }
  .nav-cta { margin: 10px 0 0; }
  .tiles, .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .sponsor-card { grid-template-columns: 80px 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-header-inner { flex-wrap: wrap; }
}
