@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Source+Sans+3:wght@400;600&display=swap');
@import './tokens.css';

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-primary);
}

/* ===== VISUAL PLACEHOLDERS (WEB-715) ===== */
.visual-placeholder {
  display: block;
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-primary) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-primary) 10%, var(--color-bg)) 55%,
      color-mix(in srgb, var(--color-secondary) 18%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-aspect="4:3"]  { aspect-ratio: 4 / 3;  }
.visual-placeholder[data-aspect="1:1"]  { aspect-ratio: 1 / 1;  }
.visual-placeholder[data-aspect="3:4"]  { aspect-ratio: 3 / 4;  }
.visual-placeholder[data-aspect="21:9"] { aspect-ratio: 21 / 9; }

.visual-placeholder[data-tone="secondary"] {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-secondary) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-secondary) 10%, var(--color-bg)) 55%,
      color-mix(in srgb, var(--color-primary) 16%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-tone="accent"] {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-accent, var(--color-primary)) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-primary) 12%, var(--color-bg)) 60%,
      color-mix(in srgb, var(--color-secondary) 16%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-tone="muted"] {
  background: color-mix(in srgb, var(--color-text) 8%, var(--color-bg));
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4rem 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-secondary);
  color: #fff;
}
.btn-primary:hover { background: #b45309; }

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary); color: #fff; }

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}
.btn-accent:hover { background: #1e40af; }

/* ===== HEADER / NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo img { width: 180px; height: auto; filter: brightness(0) invert(1); }
.nav-logo:hover { text-decoration: none; }

nav ul {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav ul li a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  text-transform: uppercase;
}
nav ul li a:hover { color: var(--color-secondary); text-decoration: none; }
nav ul li a[aria-current="page"] { color: var(--color-secondary); }

.nav-cta {
  display: none;
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu open */
.nav-menu-open nav ul {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-primary);
  padding: 1.5rem 1.25rem;
  gap: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Tablet+ */
@media (min-width: 768px) {
  nav ul { display: flex; }
  .nav-cta { display: block; }
  .nav-toggle { display: none; }
  .nav-menu-open nav ul {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-placeholder-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-placeholder-wrap .visual-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  border-radius: 0;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(61,61,68,0.72) 0%,
    rgba(61,61,68,0.55) 60%,
    rgba(61,61,68,0.80) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
  color: #fff;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(1.75rem, 5vw, 3rem);
  max-width: 700px;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-tagline {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
}
.hero-badge .stars { color: var(--color-secondary); letter-spacing: -2px; }

/* ===== SECTION TITLES ===== */
.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.section-intro {
  max-width: 620px;
  color: #4b5563;
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--color-bg);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }

.service-card .visual-placeholder { border-radius: 0; }

.service-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: color-mix(in srgb, var(--color-secondary) 15%, var(--color-bg));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: #6b7280;
  flex: 1;
}

.service-card .btn { margin-top: 1.25rem; font-size: 0.875rem; padding: 0.625rem 1.25rem; }

/* ===== ATOUTS ===== */
.atouts-section { background: color-mix(in srgb, var(--color-primary) 5%, var(--color-bg)); }

.atouts-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .atouts-grid { grid-template-columns: repeat(3, 1fr); } }

.atout-card {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-top: 4px solid var(--color-secondary);
}

.atout-card h3 { font-size: 1.125rem; margin-bottom: 0.75rem; }
.atout-card p { font-size: 0.9375rem; color: #4b5563; }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--color-secondary);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
}

.cta-band .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-white {
  background: #fff;
  color: var(--color-secondary);
}
.btn-white:hover { background: #fef3c7; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); text-decoration: none; }

/* ===== REVIEWS ===== */
.reviews-section { background: var(--color-bg); }

.reviews-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.google-badge:hover { background: #f3f4f6; text-decoration: none; }

.rating-display {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}
.rating-display .stars { color: #f59e0b; }

.reviews-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-stars { color: #f59e0b; letter-spacing: -2px; }

.review-text {
  font-size: 0.9375rem;
  color: #4b5563;
  font-style: italic;
  flex: 1;
}

.review-author {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-primary);
}
.review-date { font-size: 0.8125rem; color: #9ca3af; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--color-primary);
  padding: 3.5rem 1.25rem;
  text-align: center;
  color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.0625rem; }
.page-hero .breadcrumb { font-size: 0.875rem; margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb span { color: var(--color-secondary); }

/* ===== SERVICES PAGE ===== */
.service-full {
  display: grid;
  gap: 2rem;
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.service-full:last-child { border-bottom: none; margin-bottom: 0; }

@media (min-width: 768px) {
  .service-full { grid-template-columns: 1fr 1fr; align-items: start; }
  .service-full.reverse { direction: rtl; }
  .service-full.reverse > * { direction: ltr; }
}

.service-full-content h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: 1rem; }
.service-full-content p { color: #4b5563; margin-bottom: 1rem; }
.service-full-content ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.service-full-content ul li { padding-left: 1.5rem; position: relative; color: #4b5563; font-size: 0.9375rem; }
.service-full-content ul li::before { content: "✓"; position: absolute; left: 0; color: var(--color-secondary); font-weight: 700; }

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 2fr; align-items: start; } }

.about-content h2 { font-size: clamp(1.25rem, 3vw, 1.875rem); margin-bottom: 1rem; }
.about-content p { color: #4b5563; margin-bottom: 1.25rem; line-height: 1.75; }

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
}
.stat-label { font-size: 0.875rem; color: #6b7280; }

/* ===== ZONE D'INTERVENTION ===== */
.zones-section { background: color-mix(in srgb, var(--color-primary) 4%, var(--color-bg)); }

.zones-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.zone-badge {
  background: var(--color-bg);
  border: 1px solid #d1d5db;
  border-radius: 50px;
  padding: 0.375rem 1rem;
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
  font-family: var(--font-display);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.contact-detail-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-secondary) 15%, var(--color-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-detail-text strong { display: block; font-family: var(--font-display); font-size: 0.875rem; color: var(--color-primary); margin-bottom: 0.125rem; }
.contact-detail-text span, .contact-detail-text a { font-size: 0.9375rem; color: #4b5563; }
.contact-detail-text a:hover { color: var(--color-accent); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label { font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; color: var(--color-primary); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 15%, transparent);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

.rgpd-note { font-size: 0.8125rem; color: #9ca3af; line-height: 1.5; }

/* Map */
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  margin-top: 2rem;
  border: 1px solid #e5e7eb;
}
.map-wrap iframe { display: block; width: 100%; border: none; height: 320px; }

/* ===== FOOTER ===== */
footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.75);
  padding: 3rem 1.25rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand img { filter: brightness(0) invert(1); width: 200px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; }
.footer-brand .footer-phone { display: block; color: var(--color-secondary); font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; margin-top: 0.75rem; }
.footer-brand .footer-phone:hover { text-decoration: none; color: #fbbf24; }

.footer-nav h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 1rem; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-nav ul li a:hover { color: var(--color-secondary); text-decoration: none; }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}

/* ===== FADE-IN ANIMATIONS (Intersection Observer) ===== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =======================================================
   ANIMATION PASS — LOT 11  [WEB-1432]  2026-05-31
   AnimationDesigner — CSS-first, GPU-safe, a11y-ready
   Toutes les animations sont protégées par
   prefers-reduced-motion: no-preference
   ======================================================= */

/* ── 1. MPA inter-page crossfade (View Transitions API, Chrome 126+) ── */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  @keyframes _vt-out {
    to { opacity: 0; transform: translateX(-14px); }
  }
  @keyframes _vt-in {
    from { opacity: 0; transform: translateX(14px); }
  }

  ::view-transition-old(root) {
    animation: 260ms cubic-bezier(.4,0,.2,1) both _vt-out;
  }
  ::view-transition-new(root) {
    animation: 260ms cubic-bezier(.4,0,.2,1) 40ms both _vt-in;
  }
}

/* ── 2. Nav underline glide (scaleX slide) ── */
@media (prefers-reduced-motion: no-preference) {
  nav ul li a {
    position: relative;
    padding-bottom: 3px;
  }
  nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-secondary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.26s ease;
  }
  nav ul li a:hover::after,
  nav ul li a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* ── 3. Header scroll-shrink (paired with JS .scrolled class) ── */
@media (prefers-reduced-motion: no-preference) {
  header .nav-inner {
    transition: height 0.3s ease;
  }
  header.scrolled .nav-inner {
    height: 52px;
  }
}

/* ── 4. Hero content staggered entrance ── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes _hero-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero-eyebrow    { animation: _hero-rise .55s ease both  .08s; }
  .hero-content h1 { animation: _hero-rise .65s ease both  .22s; }
  .hero-tagline    { animation: _hero-rise .55s ease both  .38s; }
  .hero-ctas       { animation: _hero-rise .55s ease both  .52s; }
  .hero-badge      { animation: _hero-rise  .5s ease both  .66s; }
}

/* ── 5. Service icon twist on card hover ── */
@media (prefers-reduced-motion: no-preference) {
  .service-icon { transition: transform 0.32s ease; }
  .service-card:hover .service-icon {
    transform: scale(1.14) rotate(-8deg);
  }
}

/* ── 6. Visual placeholder gradient glide on hover ── */
@media (prefers-reduced-motion: no-preference) {
  .visual-placeholder {
    background-size: 200% 200%;
    transition: background-position 0.7s ease;
  }
  *:hover > .visual-placeholder,
  .service-card:hover .visual-placeholder {
    background-position: 100% 100%;
  }
}

/* ── 7. CTA click ripple ── */
@media (prefers-reduced-motion: no-preference) {
  .btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%,-50%) scale(0);
    opacity: 0;
  }
  @keyframes _btn-ripple {
    from { opacity: .38; transform: translate(-50%,-50%) scale(0); }
    to   { opacity: 0;   transform: translate(-50%,-50%) scale(2.8); }
  }
  .btn:active::after {
    animation: _btn-ripple 0.42s ease-out forwards;
  }
}

/* ── 8. Zone badges pop-in (CSS scroll-driven, Chromium 115+) ── */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes _badge-pop {
      from { opacity: 0; transform: translateY(10px) scale(.88); }
      to   { opacity: 1; transform: translateY(0)    scale(1); }
    }
    .zone-badge {
      animation: _badge-pop linear both;
      animation-timeline: view();
      animation-range: entry  0% entry 60%;
    }
    .zone-badge:nth-child(2) { animation-range: entry  8% entry 65%; }
    .zone-badge:nth-child(3) { animation-range: entry 16% entry 70%; }
    .zone-badge:nth-child(4) { animation-range: entry 24% entry 75%; }
    .zone-badge:nth-child(5) { animation-range: entry 32% entry 80%; }
    .zone-badge:nth-child(6) { animation-range: entry 40% entry 85%; }
    .zone-badge:nth-child(7) { animation-range: entry 48% entry 90%; }
  }
}

/* ── 9. CTA band scroll reveal (CSS scroll-driven) ── */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes _cta-band-in {
      from { opacity: .5; transform: translateY(12px); }
      to   { opacity: 1;  transform: translateY(0); }
    }
    .cta-band {
      animation: _cta-band-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 50%;
    }
  }
}

/* ── 10. Enhanced focus-visible rings ── */
.btn:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
}
nav ul li a:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 5px;
  border-radius: 2px;
}
a:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== TABLET / DESKTOP OVERRIDES ===== */
@media (min-width: 768px) {
  section { padding: 5rem 0; }
}

@media (min-width: 1024px) {
  .hero-content { padding: 6rem 1.25rem 5rem; }
}
