/* ============================================================
   DOUCHE SENIOR LOCAL — Styles principaux
   Design : Rassurant, moderne, orienté conversion
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

/* ---- Variables ---- */
:root {
  --primary: #0077B6;
  --primary-dark: #005f92;
  --primary-light: #e0f4ff;
  --secondary: #90E0EF;
  --secondary-dark: #00b4d8;
  --accent: #f77f00;
  --accent-dark: #d96a00;
  --success: #27ae60;
  --text: #1a2332;
  --text-muted: #5a6a7e;
  --text-light: #8899aa;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --bg-gray: #f0f2f5;
  --border: #dde4ed;
  --shadow-sm: 0 2px 8px rgba(0,119,182,.08);
  --shadow-md: 0 4px 20px rgba(0,119,182,.12);
  --shadow-lg: 0 8px 40px rgba(0,119,182,.16);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --font: 'Inter', system-ui, sans-serif;
  --font-head: 'Poppins', system-ui, sans-serif;
  --space: 8px;
  --max-w: 1200px;
  --transition: 0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 calc(var(--space) * 2.5); }
@media (min-width: 768px) { .container { padding: 0 calc(var(--space) * 3); } }
.section { padding: calc(var(--space) * 9) 0; }
.section-sm { padding: calc(var(--space) * 5) 0; }
.section-lg { padding: calc(var(--space) * 12) 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font); font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); white-space: nowrap;
  text-align: center; justify-content: center;
}
.btn-primary {
  background: var(--primary); color: white;
  box-shadow: 0 4px 16px rgba(0,119,182,.35);
}
.btn-primary:hover {
  background: var(--primary-dark); color: white;
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,119,182,.45);
}
.btn-accent {
  background: var(--accent); color: white;
  box-shadow: 0 4px 16px rgba(247,127,0,.35);
}
.btn-accent:hover {
  background: var(--accent-dark); color: white;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-white {
  background: white; color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: .9rem; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  padding: 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.2rem; color: var(--primary); text-decoration: none;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo:hover { color: var(--primary-dark); }
.logo .tagline { font-size: .75rem; color: var(--text-muted); font-weight: 400; font-family: var(--font); display: block; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  color: var(--text); font-size: .9rem; font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover { background: var(--primary-light); color: var(--primary); }
.nav-links .nav-cta {
  background: var(--primary); color: white !important;
  border-radius: 50px; padding: 10px 20px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.nav-links .nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0; border-radius: 2px;
  transition: all var(--transition);
}
.mobile-nav { display: none; background: var(--bg-soft); border-top: 1px solid var(--border); }
.mobile-nav a {
  display: block; padding: 14px 20px;
  color: var(--text); font-weight: 500; font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { background: var(--primary-light); color: var(--primary); }
.mobile-nav .mobile-cta {
  display: block; margin: 16px 20px 20px;
  text-align: center; background: var(--primary); color: white !important;
  border-radius: 50px; padding: 14px; font-weight: 700;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; flex-direction: column; }
  .mobile-nav.open { display: block; }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #0077B6 0%, #005f92 60%, #004d80 100%);
  color: white; position: relative; overflow: hidden;
  padding: calc(var(--space) * 10) 0 calc(var(--space) * 8);
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://images.pexels.com/photos/8583810/pexels-photo-8583810.jpeg?auto=compress&cs=tinysrgb&h=650&w=940') center/cover no-repeat;
  opacity: .12;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px; border-radius: 50px;
  font-size: .85rem; font-weight: 500; margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero h1 { color: white; margin-bottom: 20px; }
.hero-lead {
  font-size: 1.15rem; color: rgba(255,255,255,.9);
  margin-bottom: 32px; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2);
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; color: rgba(255,255,255,.9);
}
.trust-item svg { flex-shrink: 0; }

.hero-widget-wrap {
  background: white; border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-lg);
}
.hero-widget-wrap h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.2rem; }
.hero-widget-wrap p { color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 0 50px; }
}

/* ---- Widget standalone ---- */
.widget-section {
  background: linear-gradient(135deg, var(--primary-light) 0%, #e0f7fa 100%);
  padding: calc(var(--space) * 6) 0;
  border-bottom: 2px solid var(--secondary);
}
.widget-wrap {
  background: white; border-radius: var(--radius-lg);
  padding: 32px 36px; box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-light);
}
.widget-wrap-header { text-align: center; margin-bottom: 24px; }
.widget-wrap-header h2 { color: var(--primary); font-size: 1.5rem; margin-bottom: 8px; }
.widget-wrap-header p { color: var(--text-muted); }

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: var(--bg-soft); padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 4px;
  font-size: .85rem; color: var(--text-muted);
  align-items: center;
}
.breadcrumb li { display: flex; align-items: center; gap: 4px; }
.breadcrumb li::after { content: '›'; color: var(--text-light); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Cards ---- */
.card {
  background: white; border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icon {
  width: 52px; height: 52px;
  background: var(--primary-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { color: var(--primary); }
.card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ---- Grids ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Section headers ---- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .label {
  display: inline-block;
  background: var(--primary-light); color: var(--primary);
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 50px;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

/* ---- Benefits / Features ---- */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 24px; }
.benefit-item {
  display: flex; gap: 16px; padding: 20px;
  background: var(--bg-soft); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.benefit-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--primary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.benefit-icon svg { color: white; }
.benefit-text h4 { margin-bottom: 4px; font-size: 1rem; }
.benefit-text p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ---- Prix section ---- */
.prix-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.prix-card {
  background: white; border-radius: var(--radius);
  padding: 24px; text-align: center;
  border: 2px solid var(--border);
  transition: all var(--transition);
}
.prix-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.prix-card .prix-label { font-size: .85rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.prix-card .prix-value { font-size: 1.8rem; font-weight: 800; color: var(--primary); font-family: var(--font-head); line-height: 1; }
.prix-card .prix-unit { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }
.prix-card .prix-detail { font-size: .85rem; color: var(--text-muted); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ---- Steps ---- */
.steps { counter-reset: steps; }
.step-item {
  display: flex; gap: 24px; padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--primary); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
}
.step-content h3 { margin-bottom: 6px; }
.step-content p { color: var(--text-muted); margin: 0; }

/* ---- Aides section ---- */
.aides-box {
  background: linear-gradient(135deg, #e0f4ff 0%, #e0f7fa 100%);
  border: 2px solid var(--secondary);
  border-radius: var(--radius-lg); padding: 36px;
}
.aides-box h3 { color: var(--primary); margin-bottom: 12px; }
.aides-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.aide-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: white; padding: 14px 16px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.aide-item svg { flex-shrink: 0; color: var(--success); margin-top: 2px; }
.aide-item span { font-size: .95rem; color: var(--text); }
.aide-warning {
  background: #fff8e1; border: 1px solid #ffe082;
  border-radius: var(--radius); padding: 14px 16px;
  margin-top: 16px; display: flex; gap: 10px; align-items: flex-start;
}
.aide-warning svg { flex-shrink: 0; color: #f59e0b; }
.aide-warning span { font-size: .85rem; color: #78600a; }

/* ---- Services grid ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.service-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all var(--transition); background: white;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-card-img { height: 180px; background: var(--bg-gray); position: relative; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 20px; }
.service-card-body h3 { margin-bottom: 8px; font-size: 1.1rem; }
.service-card-body p { font-size: .9rem; color: var(--text-muted); margin-bottom: 16px; }

/* ---- Regions section ---- */
.regions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; }
.region-link {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all var(--transition); color: var(--text);
  font-weight: 500; font-size: .95rem;
}
.region-link:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.region-link svg { color: var(--text-light); transition: color var(--transition); }
.region-link:hover svg { color: var(--primary); }

/* ---- Villes grid ---- */
.villes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 10px; }
.ville-link {
  display: block; padding: 10px 14px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 8px; font-size: .9rem; color: var(--text);
  transition: all var(--transition); font-weight: 500;
}
.ville-link:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.ville-link .cp { font-size: .8rem; color: var(--text-light); font-weight: 400; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; cursor: pointer; user-select: none;
  background: white; transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-soft); }
.faq-question h3 { font-size: 1rem; font-weight: 600; color: var(--text); }
.faq-question svg {
  flex-shrink: 0; transition: transform var(--transition);
  color: var(--primary);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  padding: 0 20px; max-height: 0; overflow: hidden;
  transition: all 0.35s ease;
}
.faq-answer.open { padding: 0 20px 18px; max-height: 500px; }
.faq-answer p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; text-align: center;
  padding: calc(var(--space) * 10) 0;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(144,224,239,.15) 0%, transparent 60%);
}
.cta-banner h2 { color: white; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-banner .cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---- Local page hero ---- */
.local-hero {
  background: linear-gradient(135deg, #0077B6 0%, #005f92 100%);
  padding: 48px 0 40px; color: white;
}
.local-hero h1 { color: white; margin-bottom: 12px; }
.local-hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 700px; }
.local-meta {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px;
}
.local-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .9rem; color: rgba(255,255,255,.9);
}

/* ---- Split section ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-img { order: 2; }
.split.reverse .split-text { order: 1; }
.split-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; height: 380px; object-fit: cover; }
.split-text .label { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 50px; margin-bottom: 16px; }
.split-text h2 { margin-bottom: 16px; }
.split-text p { color: var(--text-muted); margin-bottom: 20px; }
.split-text ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.split-text ul li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-muted); font-size: .95rem; }
.split-text ul li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
@media (max-width: 768px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---- Table prix ---- */
.price-table {
  width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table th {
  background: var(--primary); color: white; padding: 14px 16px;
  text-align: left; font-size: .9rem; font-weight: 600;
}
.price-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: var(--bg-soft); }
.price-table .highlight td { background: var(--primary-light) !important; font-weight: 600; color: var(--primary); }

/* ---- Equipements ---- */
.equip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 16px; }
.equip-item {
  text-align: center; padding: 20px 14px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all var(--transition);
}
.equip-item:hover { background: var(--primary-light); border-color: var(--primary); }
.equip-item .equip-icon { font-size: 2rem; margin-bottom: 10px; }
.equip-item h4 { font-size: .9rem; color: var(--text); margin-bottom: 4px; }
.equip-item p { font-size: .8rem; color: var(--text-muted); margin: 0; }

/* ---- Dépts pagination ---- */
.depts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 14px; }
.dept-link {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: .9rem; transition: all var(--transition); font-weight: 500;
}
.dept-link:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.dept-code {
  background: var(--primary); color: white; font-size: .8rem; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; min-width: 36px; text-align: center;
}

/* ---- Footer ---- */
.site-footer {
  background: #0f1e2e; color: rgba(255,255,255,.75);
  padding: calc(var(--space) * 8) 0 calc(var(--space) * 4);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand .logo .tagline { color: rgba(255,255,255,.5); }
.footer-brand p { font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.footer-col h4 { color: white; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .85rem; color: rgba(255,255,255,.45); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.55); font-size: .85rem; }
.footer-bottom a:hover { color: var(--secondary); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---- Alert / Notice boxes ---- */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius);
  margin: 16px 0;
}
.notice-info { background: var(--primary-light); border: 1px solid var(--secondary); }
.notice-info svg { color: var(--primary); flex-shrink: 0; }
.notice-warn { background: #fff8e1; border: 1px solid #ffd54f; }
.notice-warn svg { color: #f59e0b; flex-shrink: 0; }
.notice p { font-size: .9rem; color: var(--text); margin: 0; }

/* ---- Stat boxes ---- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 20px; }
.stat-box {
  text-align: center; padding: 24px 16px;
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.stat-box .stat-val { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-box .stat-label { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }

/* ---- Scroll reveal ---- */
.reveal-on-scroll {
  opacity: 1; transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

/* ---- Tags ---- */
.tag {
  display: inline-block;
  background: var(--primary-light); color: var(--primary);
  font-size: .8rem; font-weight: 600; padding: 3px 10px;
  border-radius: 50px;
}
.tag-success { background: #d4edda; color: #155724; }
.tag-warn { background: #fff3cd; color: #856404; }

/* ---- Pagination ---- */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap; margin-top: 40px;
}
.page-link, .page-current {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  font-size: .9rem; font-weight: 600;
}
.page-link { background: white; border: 1px solid var(--border); color: var(--text); transition: all var(--transition); }
.page-link:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.page-current { background: var(--primary); color: white; }

/* ---- Misc ---- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: calc(var(--space)*1); }
.mt-2 { margin-top: calc(var(--space)*2); }
.mt-3 { margin-top: calc(var(--space)*3); }
.mt-4 { margin-top: calc(var(--space)*4); }
.mb-4 { margin-bottom: calc(var(--space)*4); }
.mb-6 { margin-bottom: calc(var(--space)*6); }
.gap-2 { gap: calc(var(--space)*2); }
.bg-soft { background: var(--bg-soft); }
.bg-primary-light { background: var(--primary-light); }
hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ---- Responsive utilities ---- */
@media (max-width: 768px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .split { gap: 28px; }
  .section { padding: 48px 0; }
  .section-lg { padding: 64px 0; }
}
