/* ============================================
   PREVENTIS-CONSEILS - EXVIA DESIGN SYSTEM
   ============================================ */

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

/* ============================================
   VARIABLES
   ============================================ */
:root {
  --black: #25375E;
  --white: #FFFFFF;
  --base-black: #172744;
  --subtle: #EEF5FB;
  --border: #DCE7F2;
  --blue: #2379C9;
  --focus: #2D8AE3;
  --text-primary: #25375E;
  --text-secondary: rgba(37, 55, 94, 0.68);
  --text-muted: rgba(37, 55, 94, 0.46);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --ease-out-quart: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
::selection { background: var(--blue); color: var(--white); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--subtle); }
::-webkit-scrollbar-thumb { background: rgba(37,55,94,0.28); border-radius: 3px; }

/* ============================================
   LOADING OVERLAY
   ============================================ */
.load-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black); display: flex;
  align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease-out-quart), visibility 0.6s;
}
.load-overlay.done { opacity: 0; visibility: hidden; pointer-events: none; }
.load-bar {
  width: 200px; height: 2px; background: rgba(255,255,255,0.1);
  border-radius: 1px; overflow: hidden;
}
.load-bar-inner {
  width: 0; height: 100%; background: var(--white);
  border-radius: 1px; animation: loadProgress 1.2s var(--ease-out-quart) forwards;
}
@keyframes loadProgress { to { width: 100%; } }

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 2.5rem;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(37,55,94,0.12);
  box-shadow: 0 12px 35px rgba(23,39,68,0.08);
  transition: padding 0.42s var(--ease-out-quart), box-shadow 0.42s var(--ease-out-quart), background 0.42s ease;
}
.main-nav.scrolled {
  background: rgba(255,255,255,0.98);
  padding: 0.5rem 2.5rem;
  box-shadow: 0 10px 30px rgba(23,39,68,0.1);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: inline-flex; align-items: center; text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  display: block;
  width: auto;
  height: 76px;
  max-width: 420px;
  transition: height 0.42s var(--ease-out-quart), max-width 0.42s var(--ease-out-quart);
}
.main-nav.scrolled .nav-logo img {
  height: 46px;
  max-width: 260px;
}
.nav-links {
  display: flex; align-items: center; gap: 2.5rem; list-style: none;
}
.nav-links a {
  color: rgba(37,55,94,0.62); text-decoration: none; font-size: 0.92rem;
  font-weight: 500; transition: color 0.3s ease; position: relative;
}
.main-nav.scrolled .nav-links a { font-size: 0.85rem; }
.main-nav .btn-primary {
  padding: 0.85rem 1.55rem !important;
  font-size: 0.85rem !important;
}
.main-nav.scrolled .btn-primary {
  padding: 0.6rem 1.25rem !important;
  font-size: 0.8rem !important;
}
.nav-links a:hover, .nav-links a.active { color: var(--black); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--blue);
  transition: width 0.3s var(--ease-out-quart);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 0.75rem); left: -1rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: 0 14px 40px rgba(23,39,68,0.12);
  padding: 0.5rem; min-width: 260px; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: all 0.3s ease; z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 0.65rem 1rem; color: var(--text-secondary);
  text-decoration: none; font-size: 0.82rem; border-radius: var(--radius-sm);
  transition: all 0.2s ease; white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--subtle); color: var(--blue); }

/* Mobile */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--black); transition: all 0.3s ease; border-radius: 1px; }
.mobile-panel {
  position: fixed; inset: 0; z-index: 99; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.mobile-panel.open { opacity: 1; visibility: visible; }
.mobile-panel a { font-size: 1.5rem; color: var(--black); text-decoration: none; font-weight: 500; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; background: var(--base-black); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.62) saturate(0.95);
  transform: scale(1.01);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(23,39,68,0.88) 0%, rgba(23,39,68,0.58) 48%, rgba(35,121,201,0.2) 100%),
    linear-gradient(0deg, rgba(23,39,68,0.68) 0%, rgba(23,39,68,0.08) 58%);
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 4; max-width: 1400px; margin: 0 auto;
  width: 100%; padding: 7rem 2.5rem 3rem;
}
.hero-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.72); margin-bottom: 1.5rem;
  transform: translateX(4px);
}
.hero-name {
  font-size: clamp(3.25rem, 8vw, 6.8rem); font-weight: 600; line-height: 0.95;
  color: var(--white); letter-spacing: -0.04em; margin-bottom: 2rem;
}
.hero-desc {
  font-size: 1.1rem; color: rgba(255,255,255,0.74); max-width: 500px;
  line-height: 1.7; margin-bottom: 2.5rem;
}
.hero-roles {
  display: flex; gap: 3rem; margin-top: 3rem;
}
.hero-role {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.56);
  writing-mode: vertical-lr; transform: rotate(180deg);
}
.hero .btn:not(.btn-white) {
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.58) !important;
  background: rgba(255,255,255,0.08) !important;
}
.hero .btn:not(.btn-white):hover {
  background: rgba(255,255,255,0.16) !important;
  border-color: rgba(255,255,255,0.85) !important;
}

.page-hero {
  position: relative;
  padding: 10rem 2.5rem 3.5rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23,39,68,0.88) 0%, rgba(23,39,68,0.64) 48%, rgba(35,121,201,0.2) 100%),
    linear-gradient(0deg, rgba(23,39,68,0.58) 0%, rgba(23,39,68,0.16) 70%);
  pointer-events: none;
}
.page-hero .section-inner {
  position: relative;
  z-index: 1;
}
.page-hero .breadcrumb a,
.page-hero .breadcrumb span {
  color: rgba(255,255,255,0.68);
}
.page-hero p {
  color: rgba(255,255,255,0.74) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
a.btn, a.btn-primary, a.btn-outline, a.btn-white {
  color: inherit !important;
}
.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1rem 2rem; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  transition: all 0.3s var(--ease-out-quart); cursor: pointer;
  border: none; font-family: var(--font-sans); position: relative; overflow: hidden;
  -webkit-appearance: none; appearance: none;
}
.btn-primary, a.btn-primary {
  background: var(--blue); color: var(--white) !important;
}
.btn-primary:hover { background: var(--black); transform: translateY(-2px); }
.btn-outline, a.btn-outline {
  background: transparent; color: var(--black) !important; border: 1.5px solid rgba(37,55,94,0.22);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue) !important; }
.btn-white, a.btn-white {
  background: var(--white); color: var(--black) !important;
}
.btn-white:hover { background: rgba(255,255,255,0.9); }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 6rem 2.5rem; }
.section-inner { max-width: 1400px; margin: 0 auto; }
.section-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; display: block;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 600;
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.5rem;
}
.section-desc {
  font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; line-height: 1.7;
}

/* Dark section */
.section-dark { background: var(--black); color: var(--white); }
.section-dark .section-label { color: rgba(255,255,255,0.4); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-desc { color: rgba(255,255,255,0.55); }

/* ============================================
   CARDS
   ============================================ */
.card {
  position: relative;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out-quart), border-color 0.35s ease, box-shadow 0.35s ease;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(35,121,201,0.11), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card,
.card:visited {
  color: var(--text-primary);
}
.card h3 {
  color: var(--black);
  transition: color 0.25s ease, transform 0.35s var(--ease-out-quart);
}
.card:hover {
  border-color: rgba(35,121,201,0.28); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(23,39,68,0.08);
}
.card:hover::before {
  opacity: 1;
}
.card:hover h3,
.card:hover h4 {
  color: var(--blue);
  transform: translateX(4px);
}
.card-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--subtle); border-radius: var(--radius-sm); margin-bottom: 1.25rem;
}
.card-icon svg { width: 22px; height: 22px; color: var(--blue); }

/* ============================================
   GRIDS
   ============================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.bento-item:first-child { grid-column: span 2; }
.bento-item:last-child { grid-column: span 3; }

/* ============================================
   CHECKLIST
   ============================================ */
.checklist { list-style: none; }
.checklist li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.6rem 0; color: var(--text-secondary); font-size: 0.92rem;
}
.check {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  background: var(--black); border-radius: 50%; flex-shrink: 0; margin-top: 2px;
}
.check svg { width: 12px; height: 12px; color: var(--white); }

/* ============================================
   STEPS
   ============================================ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.step { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.step-num {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--black); color: var(--white); border-radius: 50%;
  font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem;
}

/* ============================================
   SERVICE DETAIL PAGES
   ============================================ */
.service-detail {
  background:
    linear-gradient(180deg, var(--white) 0 18rem, #F5F9FC 18rem 100%);
}
.service-detail .page-hero {
  min-height: auto;
  display: block;
  padding-bottom: 3.5rem;
}
.service-detail .page-hero h1 {
  max-width: 850px;
  font-size: clamp(2.5rem, 6vw, 4rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
}
.service-detail .page-hero .breadcrumb {
  margin-left: 0;
}
.service-detail .page-hero p {
  font-size: 1.08rem !important;
  line-height: 1.75;
}
.service-detail > .section {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}
.service-detail .page-hero + .section {
  position: relative;
  z-index: 2;
  margin-top: -3rem;
  padding-top: 0 !important;
  padding-bottom: 2.75rem !important;
}
.service-detail .page-hero + .section .section-inner {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(35,121,201,0.18);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 70px rgba(23,39,68,0.12);
  padding: 2.5rem;
}
.service-detail .page-hero + .section .section-desc {
  max-width: 980px !important;
  color: var(--text-secondary);
}
.service-detail > .section:nth-of-type(3),
.service-detail > .section:nth-of-type(5),
.service-detail > .section:nth-of-type(7) {
  background: var(--subtle);
}
.service-detail > .section:nth-of-type(3) .grid-2 {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(35,121,201,0.16);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 20px 55px rgba(23,39,68,0.08);
}
.service-detail > .section:nth-of-type(3) .grid-2 > div {
  border-left: 0 !important;
  padding: 2.75rem !important;
}
.service-detail > .section:nth-of-type(3) .grid-2 > div:first-child {
  background:
    radial-gradient(circle at 12% 15%, rgba(35,121,201,0.1), transparent 32%),
    var(--white);
}
.service-detail > .section:nth-of-type(3) .grid-2 > div:last-child {
  background:
    linear-gradient(135deg, var(--black), var(--base-black)) !important;
  border-radius: 0 !important;
}
.service-detail .card,
.service-detail .step {
  border-color: rgba(35,121,201,0.16);
  box-shadow: 0 14px 36px rgba(23,39,68,0.055);
}
.service-detail .card {
  min-height: 100%;
}
.service-detail .card p {
  line-height: 1.75;
}
.service-detail .steps {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  counter-reset: service-step;
}
.service-detail .step {
  position: relative;
  background: var(--white);
  overflow: hidden;
}
.service-detail .step::after {
  content: '';
  position: absolute;
  right: -28px;
  top: -28px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(35,121,201,0.08);
}
.service-detail .step-num {
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(35,121,201,0.22);
}
.service-detail > .section:nth-of-type(7) .reveal {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.12), transparent 28%),
    linear-gradient(135deg, var(--black), var(--base-black)) !important;
  box-shadow: 0 24px 70px rgba(23,39,68,0.18);
}
.service-detail > .section:nth-of-type(8) {
  padding-top: 1.5rem !important;
  padding-bottom: 3rem !important;
  background: var(--white);
}
.service-detail > .section:nth-of-type(8) .section-inner {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.service-detail > .section:nth-of-type(8) a {
  color: var(--black) !important;
  font-weight: 600;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--white);
  transition: all 0.25s ease;
}
.service-detail > .section:nth-of-type(8) a:hover {
  border-color: rgba(35,121,201,0.35);
  color: var(--blue) !important;
  transform: translateY(-2px);
}

/* ============================================
   FORMS
   ============================================ */
.form-input {
  width: 100%; padding: 0.9rem 1.25rem; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font-size: 0.9rem; font-family: var(--font-sans); color: var(--text-primary);
  transition: all 0.3s ease;
}
.form-input:focus { outline: none; border-color: var(--black); }
.form-input::placeholder { color: var(--text-muted); }
.form-feedback {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.6;
  border: 1px solid transparent;
}
.form-feedback-success {
  background: rgba(35,121,201,0.08);
  border-color: rgba(35,121,201,0.2);
  color: var(--black);
}
.form-feedback-error {
  background: rgba(194,76,76,0.1);
  border-color: rgba(194,76,76,0.18);
  color: #842f2f;
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.consent-check input {
  margin-top: 0.18rem;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.consent-check a {
  color: var(--black);
  font-weight: 600;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem;
}
.breadcrumb a, .breadcrumb span { font-size: 0.78rem; color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-primary); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--base-black); color: var(--white); padding: 5rem 2.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 18px 32px rgba(0,0,0,0.12);
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 4rem;
}
.footer-brand { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.footer-desc { color: rgba(255,255,255,0.45); font-size: 0.85rem; line-height: 1.7; max-width: 300px; }
.footer-title { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1.25rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: color 0.2s ease; }
.footer-links span { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; display: flex; justify-content: space-between; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.78rem; }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 300;
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(35,121,201,0.18);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 18px 55px rgba(23,39,68,0.18);
  backdrop-filter: blur(10px);
}
.cookie-banner-copy strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--black);
}
.cookie-banner-copy p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
}
.cookie-link {
  color: var(--black);
  font-weight: 600;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ============================================
   ADMIN
   ============================================ */
.admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(35,121,201,0.12), transparent 28%),
    linear-gradient(180deg, #F7FBFF 0%, #EEF5FB 100%);
}
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.admin-login-card {
  width: min(100%, 560px);
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(35,121,201,0.18);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 70px rgba(23,39,68,0.14);
  padding: 2.2rem;
}
.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-login-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.admin-login-form span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.admin-login-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}
.admin-login-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
}
.admin-login-links a:hover {
  color: var(--black);
}
.admin-topbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 7rem 2.5rem 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-topbar-actions form {
  margin: 0;
}
.admin-stat-card {
  min-height: 100%;
}
.admin-stat-value {
  font-size: 2.35rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}
.admin-message-list {
  display: grid;
  gap: 1.25rem;
}
.admin-message-card {
  padding: 2rem;
}
.admin-message-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin-message-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
}
.admin-message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(35,121,201,0.1);
  color: var(--blue);
  font-weight: 600;
}
.admin-message-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin-message-grid div {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--subtle);
}
.admin-message-grid strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.admin-message-grid span {
  color: var(--black);
  font-size: 0.9rem;
  word-break: break-word;
}
.admin-message-body {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  line-height: 1.75;
  white-space: normal;
}
.admin-empty {
  text-align: center;
  padding: 3rem 2rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s var(--ease-out-quart); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item:first-child, .bento-item:last-child { grid-column: span 2; }
  .service-detail > .section:nth-of-type(3) .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav { padding: 0.9rem 1.5rem; }
  .main-nav.scrolled { padding: 0.65rem 1.5rem; }
  .nav-logo img { height: 58px; max-width: 70vw; }
  .main-nav.scrolled .nav-logo img { height: 38px; max-width: 62vw; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .bento, .bento-item:first-child, .bento-item:last-child { grid-template-columns: 1fr; grid-column: span 1; }
  .section { padding: 4rem 1.5rem; }
  .hero-inner { padding: 6.5rem 1.5rem 3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero-roles { display: none; }
  .service-detail .page-hero {
    padding: 7rem 1.5rem 4rem;
  }
  .service-detail .page-hero + .section {
    margin-top: -2rem;
  }
  .service-detail .page-hero + .section .section-inner,
  .service-detail > .section:nth-of-type(3) .grid-2 > div {
    padding: 1.5rem !important;
  }
  .service-detail > .section {
    padding: 3.5rem 1.5rem !important;
  }
  .service-detail > .section:nth-of-type(8) .section-inner {
    flex-direction: column;
    align-items: stretch !important;
    gap: 1rem;
  }
  .service-detail > .section:nth-of-type(8) a {
    text-align: center;
  }
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  .cookie-banner-inner,
  .admin-topbar,
  .admin-message-header {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions,
  .admin-topbar-actions {
    width: 100%;
    flex-direction: column;
  }
  .cookie-banner-actions .btn,
  .admin-topbar-actions .btn,
  .admin-topbar-actions form,
  .admin-topbar-actions form .btn {
    width: 100%;
  }
  .admin-topbar {
    padding: 6rem 1.5rem 0;
  }
  .admin-message-grid {
    grid-template-columns: 1fr;
  }
  .admin-login-card,
  .admin-message-card {
    padding: 1.5rem;
  }
  .admin-login-links {
    flex-direction: column;
  }
}
