:root{
    --container: 1100px;

    /* Colors */
    --text: #0b0b1e;
    --muted: #5b6473;
    --bg: #ffffff;
    --surface: #ffffff;
    --border: #e7e9ee;

    /* Brand (adjusted) */
    --primary: #2e856c; /* darker green */
    --accent-purple: #7b5fa8; /* used for icons */

    /* Radius / shadow */
    --radius: 16px;
    --shadow: 0 10px 30px rgba(12, 18, 28, 0.08);

    /* Spacing */
    --section-y: 64px;
}

html, body { margin: 0; padding: 0; }
body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

a { color: inherit; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.section { padding: var(--section-y) 0; }

.muted { color: var(--muted); }

h1,h2,h3 { letter-spacing: -0.02em; }

.page-title { font-size: 38px; line-height: 1.15; margin: 0 0 10px; }
.page-lead { max-width: 75ch; margin: 0; }

@media (max-width: 900px){
    :root { --section-y: 48px; }
    .page-title { font-size: 30px; }
}

/* Header with integrated topbar */
.site-header {
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  max-width: var(--container);
  margin: 16px auto;
  margin-top: 0;
  position: relative;
  z-index: 1100;
}

/* Integrated topbar styling */
.topbar-integrated {
  background: rgba(248, 253, 251, 0.8);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 24px;
}

.topbar-content .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-content .link {
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.topbar-content .link:hover {
  color: var(--primary);
}

.topbar-content .sep {
  opacity: 0.35;
}

/* Main header navigation */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: #fff;
}
.brand .logo { height:44px; }
a.logo { display:flex; align-items:center; }
.site-nav { display:flex; gap:14px; align-items:center; height: 50px; }
.site-nav a { text-decoration:none; color:inherit; opacity:0.85; display:flex; height: 100%; align-items: center; }
.site-nav a.active { opacity:1; font-weight:600; }
.cta { padding:8px 10px; border:1px solid var(--border); border-radius:10px; }

/* Contact icons in header (mobile only) */
.header-right { display: contents; }
.header-contact-icons { display: none; }

/* Burger + drawer for mobile */
.burger{ display:none; border:1px solid #eee; background:white; border-radius:12px; padding:10px; cursor:pointer; }
.burger .line{ display:block; width:20px; height:2px; background:#111; margin:4px 0; }
.drawer{ border-top:1px solid #eee; }
.drawerNav{ display:grid; gap:10px; padding:10px 0 16px; }
.drawerNav a{ text-decoration:none; padding:10px 8px; border-radius:12px; }

@media (max-width:850px){
  .site-nav { display:none; }
  .topbar-integrated { display: none; }

  .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
  }

  .header-contact-icons {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .header-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #eee;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
  }

  .burger { display:block; }
}

/* PageHeader */
.page-header { padding: 10px 0 4px; }
.kicker { margin:0 0 10px; font-weight:800; opacity:.7; }
.title { margin:0 0 10px; font-size:38px; line-height:1.15; }
.lead { margin:0; max-width:75ch; }
.actions { margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; }
@media (max-width:900px){ .title{ font-size:30px; } }

/* Buttons (refine) */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 14px; border-radius:14px; text-decoration:none; cursor:pointer; border:1px solid transparent; font-weight:700; }
.btn.primary{ background:var(--primary); color:white; border-color:var(--primary); }
.btn.outline{ background:transparent; border-color:var(--border); color:var(--text); }

/* Card variants */
.base-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); }

/* Reserve bold width so hover doesn't cause layout shift */
.nav-label {
  display: flex;
  flex-direction: column;
}
.nav-label::after {
  content: attr(data-text);
  font-weight: 700;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Active state for nav */
.site-nav a.active, .site-nav a:hover { opacity: 1; font-weight: 700; color: var(--primary); }
.site-nav a.active { box-shadow: inset 0 -2px 0 var(--primary); }
.btn.active { box-shadow: 0 6px 20px rgba(47,179,230,0.12); }

/* Focus styles for accessibility */
a:focus, button:focus { outline: 3px solid rgba(47,179,230,0.18); outline-offset: 3px; }
.burger:focus { outline: 3px solid rgba(47,179,230,0.22); }

/* Drawer */
.drawer { display: none; background: white; position: absolute; left: 0; right: 0; top: 100%; z-index: 50; box-shadow: 0 10px 30px rgba(12,18,28,0.08); }
.drawer[aria-hidden="false"] { display: block; }
.drawerNav a { display: block; padding: 12px 8px; border-radius: 8px; }

/* Drawer animation */
.drawer {
  display: block; /* always present; visibility controlled via aria-hidden */
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(.2,.9,.2,1);
}
.drawer[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .drawer { transition: none; }
}

/* Drawer active state - match desktop */
.drawerNav a.active, .drawerNav a:hover { color: var(--primary); font-weight: 700; }
.drawerNav a.active { box-shadow: inset 0 -2px 0 var(--primary); }
.drawerNav .ctaLink.active { box-shadow: 0 6px 20px rgba(47,179,230,0.12); }

/* Trap focus helper (visually hidden) */
.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; }

/* Submenu (desktop) */
.has-submenu { position: relative; display: flex; height: 100%; align-items: center; justify-content: center; }
.submenu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  list-style: none;
  padding: 6px;
  margin: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(12,18,28,0.10), 0 2px 6px rgba(12,18,28,0.06);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms cubic-bezier(.2,.9,.2,1);
  z-index: 60;
}
/* Hover bridge: invisible area connecting nav item to submenu */
.submenu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.has-submenu:focus-within .submenu,
.has-submenu:hover .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.submenu li { list-style: none; }
.submenu a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  transition: background 140ms ease, color 140ms ease;
}
.submenu a:hover, .submenu a:focus { background: rgba(47,179,230,0.08); color: var(--primary); font-weight: 600; }

/* Caret for submenu */
.caret {
  display: inline-block;
  margin-left: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform-origin: center 60%;
  transform: rotate(45deg); /* default: pointing down ∨ */
  transition: transform 180ms ease;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.has-submenu:focus-within > a .caret,
.has-submenu:hover > a .caret,
.has-submenu > a[aria-current="page"] .caret {
  transform: rotate(-135deg); /* open: pointing up ∧ */
}

/* Scrim overlay behind mobile drawer */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 40;
}
.scrim[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width:850px){
  .has-submenu .submenu { display: none; }
}

/* Homepage: Hero Banner */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('/hero_same_services_77.webp');
  background-size: cover;
  background-position: 68% 50%;
  background-repeat: no-repeat;
  border-radius: 0 0 20px 20px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22, 92, 74, 0.85) 0%, rgba(46, 133, 108, 0.75) 50%, rgba(22, 92, 74, 0.8) 100%);
  border-radius: 0 0 20px 20px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.1;
  margin: 0 0 24px;
  color: white;
  font-weight: 800;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
  margin-top: 130px;
}

.hero-subtitle {
  font-size: 22px;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  margin-top: 100px;
}

.hero-ctas .btn {
  font-size: 18px;
  padding: 14px 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 220ms ease;
}

.hero-ctas .btn.large {
  padding: 16px 32px;
  font-size: 18px;
}

.hero-ctas .btn.primary {
  background: white;
  color: var(--primary);
  border-color: white;
}

.hero-ctas .btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.hero-ctas .btn.outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: white;
}

.hero-ctas .btn.outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-3px);
}

.hero-trust {
  background: white;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-trust__list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-trust li {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px;
  border-right: 1px solid var(--border);
}

.hero-trust li:last-child {
  border-right: none;
}

.hero-trust__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 6px;
  background: linear-gradient(135deg, #f0f8f5 0%, #eef9f4 100%);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(46, 133, 108, 0.2);
  color: var(--primary);
}

@media (max-width: 900px) {
  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding: 60px 16px;
  }

  .hero-content h1 {
    font-size: 36px;
    margin-bottom: 18px;
  }

  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 28px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
    box-sizing: border-box;
  }

}

@media (max-width: 900px) {
  .features {
    margin-top: 0;
  }

  .hero-trust {
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .hero-trust li {
    flex-direction: column;
    text-align: center;
    font-size: 12px;
    padding: 12px 8px;
    gap: 6px;
    border-right: none;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 450px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
}

/* Features section with separate colored cards */
.features {
  background: white;
  padding: 48px 0;
  padding-bottom: 0;
}
.features .container {
  padding: 0 16px;
}
.features-grid {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.feature {
  padding: 40px 32px;
  flex: 1;
  max-width: 360px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(30px);
}

/* Scroll animation classes */
.feature.animate-in {
  animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation delays */
.feature:nth-child(1).animate-in { animation-delay: 0.1s; }
.feature:nth-child(2).animate-in { animation-delay: 0.2s; }
.feature:nth-child(3).animate-in { animation-delay: 0.3s; }

/* Different background colors for each feature */
.feature:nth-child(1) {
  background: linear-gradient(135deg, #f0f8f5 0%, #e8f5f0 100%);
}
.feature:nth-child(2) {
  background: linear-gradient(135deg, #f3f0f8 0%, #ede8f5 100%);
}
.feature:nth-child(3) {
  background: linear-gradient(135deg, #f0f5f3 0%, #e8f0ed 100%);
}

/* Text colors for light backgrounds */
.feature h3 {
  color: var(--text);
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.feature p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.feature-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: white;
  color: var(--primary);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Different icon colors for each feature */
.feature:nth-child(1) .feature-icon {
  color: var(--primary);
}

.feature:nth-child(2) .feature-icon {
  color: var(--accent-purple);
}

.feature:nth-child(3) .feature-icon {
  color: #4a9b7f;
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}


@media (max-width:900px){
  .features { padding: 32px 0; padding-top: 0; margin-top: 0; }
  .feature {
    max-width: 100%;
    min-width: 280px;
  }
}

/* Services section */
.services {
  background: linear-gradient(180deg, #ffffff 0%, #f8fdfb 100%);
  padding-bottom: 0;
}

.services h2 {
  text-align: center;
  font-size: 36px;
  color: var(--text);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.service-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 0;
  min-height: 450px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(46, 133, 108, 0.3) 0%, rgba(46, 133, 108, 0.5) 60%, rgba(46, 133, 108, 0.75) 100%);
  z-index: 2;
}

/* Different background images for each service */
.service-card:nth-child(1)::before {
  background-image: url('/maintien-a-dom.webp');
  filter: blur(3px);
}

.service-card:nth-child(2)::before {
  background-image: url('/menage.webp');
}

.service-card:nth-child(2)::after {
  background: linear-gradient(180deg, rgba(123, 95, 168, 0.3) 0%, rgba(123, 95, 168, 0.5) 60%, rgba(123, 95, 168, 0.75) 100%);
}

.service-card-content {
  position: relative;
  z-index: 3;
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-card h4 {
  margin: 0 0 16px;
  color: white;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.service-card-body {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-height: 115px;
  justify-content: space-between;
}

.service-card p {
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

.service-card .btn {
  align-self: flex-start;
}

.service-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width:900px){
  .services h2 {
    font-size: 28px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Steps section with flow design */
.steps {
  background: linear-gradient(180deg, #f8fdfb 0%, #ffffff 100%);
  position: relative;
}

.steps h2 {
  text-align: center;
  font-size: 36px;
  color: var(--text);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 18px;
  position: relative;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  background: white;
  padding: 32px 32px;
  border: 2px solid var(--border);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin: 0 auto;
}

/* First step: chevron pointing right */
.step:nth-child(1) {
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 50%, calc(100% - 40px) 100%, 0 100%);
  border-radius: 20px 0 0 20px;
  padding-right: 56px;
  background: linear-gradient(135deg, #f0f8f5 0%, #e8f5f0 100%);
  border-right: none;
}

/* Middle step: chevrons on both sides - recessed on left */
.step:nth-child(2) {
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 50%, calc(100% - 40px) 100%, 0 100%, 40px 50%);
  padding-left: 64px;
  padding-right: 64px;
  z-index: 2;
  background: linear-gradient(135deg, #f3f0f8 0%, #ede8f5 100%);
  border-left: none;
  border-right: none;
}

/* Last step: chevron pointing left (receiving) - recessed on left */
.step:nth-child(3) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40px 50%);
  border-radius: 0 20px 20px 0;
  padding-left: 64px;
  background: linear-gradient(135deg, #f0f5f3 0%, #e8f0ed 100%);
  border-left: none;
}

/* Scroll animation - steps start visible, animation is optional enhancement */
.step.animate-in {
  animation: slideUpStep 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpStep {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step:nth-child(1).animate-in { animation-delay: 0.1s; }
.step:nth-child(2).animate-in { animation-delay: 0.25s; }
.step:nth-child(3).animate-in { animation-delay: 0.4s; }

/* Step numbers with gradient - now containing PNG images */
.step .num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #3a9d82 100%);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(46, 133, 108, 0.25);
  transition: all 0.3s ease;
  padding: 18px;
}

.step .num img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.step:nth-child(2) .num {
  background: linear-gradient(135deg, var(--accent-purple) 0%, #9277bd 100%);
  box-shadow: 0 6px 20px rgba(123, 95, 168, 0.25);
}

.step:nth-child(3) .num {
  background: linear-gradient(135deg, #4a9b7f 0%, #5eb396 100%);
  box-shadow: 0 6px 20px rgba(74, 155, 127, 0.25);
}

.step h4 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--text);
  font-weight: 700;
}

.step p {
  margin: 0;
  line-height: 1.6;
  font-size: 15px;
}

@media (max-width:900px){
  .steps h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step:nth-child(1) {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 50% 100%, 0 calc(100% - 40px));
    border-radius: 20px 20px 0 0;
    padding: 32px 24px 72px;
    border: 2px solid var(--border);
    border-bottom: none;
    margin: 0;
    z-index: auto;
  }

  .step:nth-child(2) {
    clip-path: polygon(0 0, 50% 40px, 100% 0, 100% calc(100% - 40px), 50% 100%, 0 calc(100% - 40px));
    border-radius: 0;
    padding: 60px 24px 72px;
    border: 2px solid var(--border);
    border-top: none;
    border-bottom: none;
    margin: 0;
    z-index: auto;
  }

  .step:nth-child(3) {
    clip-path: polygon(0 0, 50% 40px, 100% 0, 100% 100%, 0 100%);
    border-radius: 0 0 20px 20px;
    padding: 60px 24px 32px;
    border: 2px solid var(--border);
    border-top: none;
    margin: 0;
    z-index: auto;
  }

  .step:not(:last-child) { margin-bottom: 0; }
  .step:not(:last-child)::after { display: none; }
}

/* Testimonials */
.testimonials { background: linear-gradient(180deg, #f7fdfb 0%, #fff 100%); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.testimonial {
  position: relative;
  background: white;
  padding: 24px 24px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(12,18,28,0.06);
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 64px;
  line-height: 1;
  color: var(--primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  pointer-events: none;
}
.testimonial-stars {
  color: #f5a623;
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.testimonial p {
  margin: 0;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
}
.testimonial footer {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted, #666);
}
.testimonial footer cite {
  font-style: normal;
}
.testimonial footer cite::before { content: '— '; }
@media (max-width:900px){ .testimonials-grid { grid-template-columns: 1fr; } }

/* Contact CTA */
.contact-cta {
  background: var(--primary);
  padding: 64px 0;
  border-radius: 20px 20px 0 0;
}
.contact-cta-inner {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.contact-cta-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.contact-cta h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 2rem;
}
.contact-cta-desc {
  margin: 0 0 28px;
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.6;
}
.contact-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-btn-primary {
  background: white;
  color: var(--primary);
  border-color: white;
  font-weight: 700;
}
.contact-btn-primary:hover {
  background: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.88);
}
.contact-btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.45);
}
.contact-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}
@media (max-width:600px) {
  .contact-cta-actions { flex-direction: column; align-items: stretch; }
  .contact-cta h2 { font-size: 1.6rem; }
}

/* ensure feature icon SVGs use currentColor and are properly sized */
.feature-icon svg { width: 48px; height: 48px; }

/* ensure submenu caret color matches primary */
.caret { border-right-color: var(--primary); border-bottom-color: var(--primary); }

/* scrim color slight tweak */
.scrim { background: rgba(10,20,15,0.38); }

/* Site footer — mirrors .site-header card style */
.site-footer {
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  max-width: var(--container);
  margin: 16px auto 0;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding: 36px 24px 32px;
}

.footer-logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

.footer-contact {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.9rem;
}

.footer-contact a {
  color: var(--text);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-contact a:hover { color: var(--primary); }

.footer-contact span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-col h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  opacity: 0.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.75;
  transition: opacity 150ms ease, color 150ms ease;
}

.footer-col ul a:hover { opacity: 1; color: var(--primary); }

/* Bottom bar — mirrors .topbar-integrated */
.footer-bottom {
  background: rgba(248, 253, 251, 0.8);
  border-top: 1px solid var(--border);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  font-size: 13px;
  color: var(--muted);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-legal-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-legal-link:hover { color: var(--primary); }

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 28px 16px 24px;
  }

  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 12px 16px;
  }
}


/* Prestations index */
.service-card-heading {
  margin: 0 0 16px;
  color: white;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.service-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card-list li {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-card-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.prestations-modes-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(46, 133, 108, 0.05);
  border: 1px solid rgba(46, 133, 108, 0.18);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 40px;
  margin-bottom: 8px;
}

.prestations-modes-hint h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.prestations-modes-hint p { margin: 0; }

/* Shared solid button variants for inner pages */
.btn-primary-solid {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
}

.btn-primary-solid:hover { opacity: 0.9; }

.btn-outline-solid {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline-solid:hover { border-color: var(--primary); color: var(--primary); }

/* Prestations detail */
.prestation-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin-top: 36px;
  align-items: start;
}

.prestation-section-title {
  font-size: 1.15rem;
  margin: 0 0 18px;
  color: var(--text);
}

.prestation-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prestation-bullets li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(46,133,108,0.07) 0%, rgba(46,133,108,0.02) 100%);
  border-radius: 12px;
  border-left: 3px solid var(--primary);
  line-height: 1.5;
  font-size: 0.95rem;
  transition: background 150ms ease, transform 150ms ease;
}

.prestation-bullets li:hover {
  background: linear-gradient(135deg, rgba(46,133,108,0.12) 0%, rgba(46,133,108,0.05) 100%);
  transform: translateX(4px);
}

.prestation-bullets li::before {
  content: '✓';
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  min-width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(46,133,108,0.35);
}

.prestation-modes-note {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  padding: 14px 16px;
  border-left: 3px solid var(--primary);
  background: rgba(46, 133, 108, 0.04);
  border-radius: 0 8px 8px 0;
}

.prestation-modes-note a {
  color: var(--primary);
  display: block;
  margin-top: 6px;
  font-weight: 600;
  text-decoration: none;
}

.prestation-modes-note a:hover { text-decoration: underline; }

/* Info boxes (aside) */
.prestation-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(12,18,28,0.05);
}

.info-box-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(46, 133, 108, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.info-box h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--text);
}

.info-box p {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* "Découvrez aussi" section */
.prestation-also {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  margin-bottom: 8px;
}

.prestation-also h2 {
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.prestation-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.prestation-also-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.prestation-also-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(11,44,33,0.78) 100%);
  transition: background 200ms ease;
}

.prestation-also-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.18);
}

.prestation-also-card:hover::after {
  background: linear-gradient(to bottom, rgba(0,0,0,0.12) 0%, rgba(11,44,33,0.88) 100%);
}

.prestation-also-card-content {
  position: relative;
  z-index: 1;
  padding: 20px 24px;
  width: 100%;
}

.prestation-also-card strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.prestation-also-card span {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
}

.prestation-also-card-arrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: color 150ms ease;
}

.prestation-also-card:hover .prestation-also-card-arrow {
  color: white;
}

@media (max-width: 768px) {
  .prestation-layout { grid-template-columns: 1fr; }
  .prestations-modes-hint { flex-direction: column; align-items: stretch; }
}

/* Service page hero banner */
.service-page-hero {
  position: relative;
  height: 360px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  max-width: var(--container);
  margin: 0 auto;
}

.service-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(11,44,33,0.78) 100%);
}

.service-page-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 36px;
}

.service-page-hero-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin: 0 0 10px;
}

.service-page-hero h1 {
  margin: 0 0 10px;
  font-size: 2.4rem;
  color: white;
  line-height: 1.15;
}

.service-page-hero-lead {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 60ch;
}

@media (max-width: 768px) {
  .service-page-hero { height: 280px; }
  .service-page-hero h1 { font-size: 1.8rem; }
}

/* Service detail — enriched fields */
.prestation-description {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 28px;
  max-width: 65ch;
}

.prestation-for-who {
  margin-bottom: 32px;
}

.for-who-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.for-who-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  padding: 10px 14px;
  background: rgba(46, 133, 108, 0.05);
  border: 1px solid rgba(46, 133, 108, 0.15);
  border-radius: 8px;
}

.for-who-list li::before {
  content: '→';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .for-who-list { grid-template-columns: 1fr; }
}

/* Modes d'intervention */
.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.mode-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 12px rgba(12,18,28,0.05);
  display: flex;
  flex-direction: column;
}

.mode-card-header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
}

.mode-card--prestataire .mode-card-header {
  background: linear-gradient(135deg, rgba(46,133,108,0.07) 0%, rgba(46,133,108,0.02) 100%);
}

.mode-card--mandataire .mode-card-header {
  background: linear-gradient(135deg, rgba(123,95,168,0.07) 0%, rgba(123,95,168,0.02) 100%);
}

.mode-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  background: rgba(46,133,108,0.12);
  color: var(--primary);
}

.mode-badge--alt {
  background: rgba(123,95,168,0.12);
  color: var(--accent-purple);
}

.mode-card-header h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.mode-card-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.mode-card-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mode-section h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
  opacity: 0.7;
}

.mode-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.mode-list--pros li::before {
  content: '✓';
  color: white;
  background: var(--primary);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}

.mode-list--cons li::before {
  content: '–';
  color: var(--muted);
  background: rgba(91,100,115,0.1);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}

.mode-card-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}

/* Decision helper */
.modes-choice {
  margin-top: 48px;
  padding: 36px;
  background: rgba(46,133,108,0.04);
  border: 1px solid rgba(46,133,108,0.14);
  border-radius: 16px;
}

.modes-choice h2 {
  margin: 0 0 20px;
  font-size: 1.2rem;
}

.modes-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.choice-item {
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  border-left: 3px solid transparent;
}

.choice-item p { margin: 0; }

.choice-item--prestataire {
  background: rgba(46,133,108,0.07);
  border-left-color: var(--primary);
}

.choice-item--mandataire {
  background: rgba(123,95,168,0.07);
  border-left-color: var(--accent-purple);
}

.modes-choice-note {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .modes-grid { grid-template-columns: 1fr; }
  .modes-choice-grid { grid-template-columns: 1fr; }
  .modes-choice { padding: 24px; }
}

/* Zone d'intervention */
.zone-map-wrap {
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(12,18,28,0.06);
}

#zone-map {
  height: 400px;
  width: 100%;
}

/* Custom Leaflet markers */
.map-pin {
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.map-pin--sector {
  width: 18px;
  height: 18px;
  background: var(--primary);
}

.map-pin--office {
  width: 24px;
  height: 24px;
  background: #2c3e50;
}

.zone-sectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.zone-sector {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(12,18,28,0.04);
}

.zone-sector h2 {
  font-size: 1rem;
  margin: 0 0 14px;
  color: var(--primary);
  font-weight: 700;
}

.zone-sector-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.zone-verify {
  margin-top: 32px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 2px 10px rgba(12,18,28,0.04);
}

.zone-verify-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zone-verify-text strong {
  font-size: 1rem;
  color: var(--text);
}

.zone-verify-text .muted {
  margin: 0;
  font-size: 0.9rem;
  max-width: 55ch;
}

@media (max-width: 640px) {
  .zone-sectors { grid-template-columns: 1fr; }
  #zone-map { height: 300px; }
  .zone-verify { flex-direction: column; align-items: flex-start; }
}

/* ── Tarifs page ─────────────────────────────────────────── */
.tarif-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.tarif-card-header { display: flex; flex-direction: column; gap: 6px; }
.tarif-card-header h2 { font-size: 1.15rem; margin: 0; }
.tarif-card-header .muted { margin: 0; font-size: 0.9rem; }

/* Prestataire: rate hero + list side by side */
.tarif-prestataire-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}

.tarif-rate-hero {
  background: rgba(46,133,108,0.06);
  border: 1px solid rgba(46,133,108,0.15);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  white-space: nowrap;
}

.tarif-rate-main { display: flex; align-items: baseline; gap: 6px; }

.tarif-rate-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.tarif-rate-unit { font-size: 0.9rem; color: var(--muted); }

.tarif-rate-after { display: flex; align-items: baseline; gap: 6px; }

.tarif-rate-after-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.7;
}

.tarif-rate-after-label { font-size: 0.8rem; color: var(--muted); }

.tarif-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 10px;
}

.tarif-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tarif-list li {
  font-size: 0.9rem;
  padding-left: 18px;
  position: relative;
  color: var(--text);
}

.tarif-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.5;
}

.tarif-card-footer {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tarif-special { display: flex; flex-direction: column; gap: 6px; }
.tarif-special-label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.tarif-special-rates { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tarif-special-main { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.tarif-special-after { font-size: 0.82rem; color: var(--muted); }

.tarif-km-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

/* Mandataire: full table */
.tarif-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: inset -10px 0 12px -8px rgba(0,0,0,0);
  transition: box-shadow 0.25s, border-top-right-radius 0.15s, border-bottom-right-radius 0.15s;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.tarif-table-wrap::-webkit-scrollbar {
  height: 4px;
}

.tarif-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.tarif-table-wrap::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

.tarif-table-wrap.scroll-right {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: inset -10px 0 12px -8px rgba(0,0,0,0.14);
}

.tarif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.tarif-table thead tr {
  background: rgba(46,133,108,0.06);
  border-bottom: 2px solid rgba(46,133,108,0.2);
}

.tarif-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  vertical-align: top;
  line-height: 1.3;
}

.tarif-th-sub {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
}

.tarif-th-rate { text-align: center; min-width: 120px; }
.tarif-th-rate--after { color: var(--muted); font-weight: 600; }

.tarif-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.tarif-table tbody tr:last-child { border-bottom: none; }

.tarif-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.015); }

.tarif-td-label {
  padding: 12px 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.tarif-td-rate {
  padding: 12px 14px;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
}

.tarif-td-after {
  padding: 12px 14px;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.65;
  font-size: 0.85rem;
}

.tarif-row--formula .tarif-td-rate {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.tarif-tax-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-top: 8px;
}

.tarif-tax-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: rgba(46,133,108,0.1);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tarif-tax-block strong { font-size: 1rem; display: block; margin-bottom: 6px; }
.tarif-tax-block .muted { margin: 0; font-size: 0.9rem; }
.tarif-tax-note { font-size: 0.8rem; color: var(--muted); font-style: italic; margin: 8px 0 0; }

@media (max-width: 700px) {
  .tarif-prestataire-body { grid-template-columns: 1fr; }
  .tarif-rate-hero { white-space: normal; }
}

/* ── Aides financières page ───────────────────────────────── */
.aides-credit-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
}

.aides-credit-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.aides-credit-badge {
  min-width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(46,133,108,0.1);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aides-credit-header h2 { font-size: 1.2rem; margin: 0 0 6px; }
.aides-credit-header .muted { margin: 0; font-size: 0.92rem; }

.aides-credit-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.aides-credit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.aides-credit-table thead tr {
  background: rgba(46,133,108,0.06);
  border-bottom: 2px solid rgba(46,133,108,0.2);
}

.aides-credit-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.aides-credit-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.aides-credit-table tbody tr:last-child td { border-bottom: none; }
.aides-credit-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.015); }

.aides-credit-amount {
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

.aides-credit-plafond {
  font-weight: 600;
  color: var(--text);
  text-align: center;
  opacity: 0.75;
}

.aides-credit-notes {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.aides-credit-notes li {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  padding-left: 14px;
  position: relative;
}

.aides-credit-notes li::before {
  content: '*';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-style: normal;
}

.aides-other-title {
  font-size: 1.1rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.aides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.aide-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aide-card-header { display: flex; flex-direction: column; gap: 4px; }

.aide-acronym {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: white;
  background: var(--primary);
  border-radius: 6px;
  padding: 2px 8px;
  align-self: flex-start;
}

.aide-full-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.aide-desc { margin: 0; font-size: 0.88rem; line-height: 1.6; }

@media (max-width: 640px) {
  .aides-grid { grid-template-columns: 1fr; }
  .aides-credit-header { flex-direction: column; gap: 12px; }
}

/* ── Contact page ─────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info-block h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 12px;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.contact-info-row:last-child { border-bottom: none; }
a.contact-info-row:hover { color: var(--primary); }

.contact-info-icon {
  width: 20px;
  min-width: 20px;
  height: 20px;
  color: var(--primary);
  margin-top: 1px;
}

.contact-info-icon svg { width: 18px; height: 18px; display: block; }

.contact-info-zone {
  background: rgba(46,133,108,0.05);
  border: 1px solid rgba(46,133,108,0.15);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info-zone-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin: 0;
}

.contact-info-zone .muted { margin: 0; font-size: 0.88rem; }

.contact-form-wrap {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.contact-flash {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.contact-flash--success {
  background: rgba(46,133,108,0.08);
  border: 1px solid rgba(46,133,108,0.25);
  color: #1d6b52;
}

.contact-flash--error {
  background: rgba(220,53,69,0.07);
  border: 1px solid rgba(220,53,69,0.2);
  color: #b02a37;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-row { display: flex; flex-direction: column; gap: 16px; }
.contact-form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.contact-required { color: var(--primary); }

.contact-field input:not([type="checkbox"]),
.contact-field select,
.contact-field textarea {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.contact-field input:not([type="checkbox"]):focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,133,108,0.1);
}

.contact-field textarea { resize: vertical; min-height: 120px; }

.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.contact-required-note { font-size: 0.8rem; margin: 0; }

.contact-field--consent { margin-top: 4px; }

.contact-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}

.contact-consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: white;
  cursor: pointer;
  margin-top: 2px;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  padding: 0;
  box-sizing: border-box;
}

.contact-consent-label input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.contact-consent-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.contact-consent-label input[type="checkbox"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,133,108,0.1);
}

.contact-consent-label a {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 780px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-row--2 { grid-template-columns: 1fr; }
  .contact-form-footer { flex-direction: column; align-items: flex-start; }
}

/* ── Mentions légales / legal pages ──────────────────────── */
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  overflow: hidden;
}

.legal-section {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 14px;
}

.legal-section p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 10px;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section a { color: var(--primary); font-weight: 500; }
.legal-section a:hover { text-decoration: underline; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.legal-table tbody tr:last-child th,
.legal-table tbody tr:last-child td { border-bottom: none; }

.legal-table th {
  width: 200px;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.legal-table td { color: var(--text); }
.legal-table td a { color: var(--primary); }

.legal-list {
  margin: 10px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.legal-list li { font-size: 0.92rem; color: var(--text); line-height: 1.6; }

@media (max-width: 600px) {
  .legal-section { padding: 20px 18px; }
  .legal-table th { width: auto; white-space: normal; }
  .legal-table th, .legal-table td { display: block; padding: 6px 0; border-bottom: none; }
  .legal-table tr { border-bottom: 1px solid var(--border); padding: 8px 0; display: block; }
  .legal-table tbody tr:last-child { border-bottom: none; }
}
