.seo-page {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #0f172a;
  background: #f1f5f9;
  line-height: 1.65;
  padding-bottom: 72px;
}

.seo-page--vtc { --seo-accent: #0d9488; --seo-accent-dark: #0f766e; --seo-soft: #ccfbf1; }
.seo-page--taxi { --seo-accent: #d97706; --seo-accent-dark: #b45309; --seo-soft: #ffedd5; }
.seo-page--sante { --seo-accent: #2563eb; --seo-accent-dark: #1d4ed8; --seo-soft: #dbeafe; }
.seo-page--credit { --seo-accent: #6366f1; --seo-accent-dark: #4f46e5; --seo-soft: #e0e7ff; }
.seo-page--auto { --seo-accent: #dc2626; --seo-accent-dark: #b91c1c; --seo-soft: #fee2e2; }
.seo-page--habitation { --seo-accent: #0284c7; --seo-accent-dark: #0369a1; --seo-soft: #e0f2fe; }
.seo-page--prevoyance { --seo-accent: #7c3aed; --seo-accent-dark: #6d28d9; --seo-soft: #ede9fe; }
.seo-page--animaux { --seo-accent: #ea580c; --seo-accent-dark: #c2410c; --seo-soft: #ffedd5; }
.seo-page--niche { --seo-accent: #64748b; --seo-accent-dark: #475569; --seo-soft: #f1f5f9; }

.seo-container {
  width: min(1040px, 92vw);
  margin: 0 auto;
}

.seo-topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 40;
}

.seo-topbar .seo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.seo-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.95rem;
}

.seo-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 98, 255, 0.16);
  /* Fallback si ancien HTML (SVG shield) encore en cache */
  background-image: url(/assets/brand/logo-mark.png);
  background-size: cover;
  background-position: center;
}
.seo-logo-icon svg { display: none; }
.seo-logo-icon .logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seo-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 1px;
}
.seo-logo .logo-name { font-weight: 800; font-size: 0.9rem; }
.seo-logo .logo-tagline {
  font-weight: 600;
  font-size: 0.58rem;
  color: #64748b;
}
@media (max-width: 640px) {
  .seo-logo .logo-tagline { display: none; }
}

.seo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.seo-nav a {
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 6px 10px;
  border-radius: 8px;
}

.seo-nav a:hover {
  color: var(--seo-accent-dark);
  background: #f8fafc;
}

.seo-nav .seo-cta {
  background: var(--seo-accent);
  color: #fff !important;
  padding: 9px 14px;
  border-radius: 10px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--seo-accent) 35%, transparent);
}

.seo-breadcrumb {
  padding: 20px 0 10px;
  font-size: 0.84rem;
  color: #64748b;
}

.seo-breadcrumb a {
  color: var(--seo-accent-dark);
  text-decoration: none;
  font-weight: 600;
}

.seo-hero {
  background: linear-gradient(135deg, #fff 0%, var(--seo-soft) 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.seo-hero--media {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
}

.seo-hero-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
}

.seo-hero-figure img,
.seo-figure img,
.seo-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.seo-figure {
  margin: 0 0 16px;
  border-radius: 14px;
  overflow: hidden;
}

.seo-figure figcaption,
.seo-hero-figure figcaption,
.seo-gallery-item figcaption {
  font-size: 0.78rem;
  color: #64748b;
  padding: 8px 2px 0;
}

.seo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.seo-gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 800px) {
  .seo-hero--media {
    grid-template-columns: 1fr;
    padding: clamp(16px, 4vw, 28px);
  }
}

.seo-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--seo-accent-dark);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--seo-accent) 25%, #e2e8f0);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.seo-hero h1 {
  margin: 0 0 14px;
  line-height: 1.12;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  max-width: 18ch;
}

.seo-intro {
  color: #475569;
  font-size: 1.08rem;
  max-width: 62ch;
  margin: 0 0 20px;
}

/* Boutons (pages SEO n’incluent pas main.css) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  color: #fff !important;
  background: var(--seo-accent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--seo-accent) 35%, transparent);
  box-sizing: border-box;
}
.btn:visited { color: #fff !important; text-decoration: none !important; }
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  text-decoration: none !important;
  color: #fff !important;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--seo-accent) 45%, transparent);
}
.btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--seo-accent) 45%, #fff);
  outline-offset: 2px;
}
.btn-primary,
.btn-primary:visited {
  background: linear-gradient(135deg, var(--seo-accent), var(--seo-accent-dark, var(--seo-accent)));
  color: #fff !important;
  border-color: transparent;
}
.btn-ghost,
.btn-outline,
.btn-ghost:visited,
.btn-outline:visited {
  background: #fff;
  color: #0f172a !important;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.btn-ghost:hover,
.btn-ghost:focus-visible,
.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--seo-accent-dark, var(--seo-accent)) !important;
  border-color: var(--seo-accent);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}
.btn-lg {
  padding: 15px 28px;
  font-size: 1.05rem;
  border-radius: 16px;
}

.seo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.seo-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--seo-accent) 15%, #e2e8f0);
  font-size: 0.85rem;
  color: #64748b;
}

.seo-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.seo-trust svg {
  color: var(--seo-accent);
  flex-shrink: 0;
}

.seo-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

.seo-main {
  display: grid;
  gap: 16px;
}

.seo-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.seo-card h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.seo-card p {
  margin: 0 0 12px;
  color: #475569;
}

.seo-card p:last-child {
  margin-bottom: 0;
}

.seo-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.seo-benefit {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}

.seo-benefit strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
}

.seo-benefit p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.seo-steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.seo-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.seo-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--seo-soft);
  color: var(--seo-accent-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seo-step strong {
  display: block;
  margin-bottom: 4px;
}

.seo-step p {
  margin: 0;
  font-size: 0.92rem;
  color: #64748b;
}

.seo-list {
  margin: 0;
  padding-left: 20px;
  color: #475569;
}

.seo-list li {
  margin-bottom: 8px;
}

.seo-aside {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
}

.seo-aside-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.seo-aside-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.seo-aside-card p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: #64748b;
}

.seo-aside-card .btn,
.seo-aside-card .btn-primary {
  width: 100%;
}

.seo-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.seo-related a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--seo-accent-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.seo-related a:hover {
  border-color: var(--seo-accent);
  background: var(--seo-soft);
}

.seo-faq-block h2 {
  margin-bottom: 12px;
}

.seo-faq {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}

.seo-faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 16px;
  list-style: none;
}

.seo-faq summary::-webkit-details-marker {
  display: none;
}

.seo-faq p {
  margin: 0;
  padding: 0 16px 14px;
  color: #475569;
  font-size: 0.95rem;
}

.seo-footer {
  margin-top: 32px;
  padding: 24px 0 16px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.88rem;
}

.seo-footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.seo-footer a {
  color: var(--seo-accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.seo-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e2e8f0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.seo-mobile-cta .btn,
.seo-mobile-cta .btn-primary {
  width: 100%;
}

@media (max-width: 900px) {
  .seo-layout {
    grid-template-columns: 1fr;
  }
  .seo-aside {
    position: static;
  }
  .seo-benefits {
    grid-template-columns: 1fr;
  }
}

.seo-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.seo-city-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.seo-city-link:hover {
  border-color: var(--seo-accent);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

@media (max-width: 700px) {
  .seo-nav a:not(.seo-cta) {
    display: none;
  }
  .seo-mobile-cta {
    display: block;
  }
  .seo-page {
    padding-bottom: 88px;
  }
}

/* Catalogue garanties VTC */
.seo-guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 8px 0 16px;
}
.seo-guarantee-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.seo-guarantee-chip strong { font-size: 0.92rem; color: #0f172a; }
.seo-guarantee-chip span { font-size: 0.78rem; color: #64748b; line-height: 1.35; }
.seo-guarantee-chip:hover {
  transform: translateY(-2px);
  border-color: var(--seo-accent, #0d9488);
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.12);
}
.seo-guarantee-details { margin-top: 12px; }
.seo-callout {
  margin: 14px 0 0 !important;
  padding: 12px 14px;
  border-radius: 12px;
  border-left: 4px solid var(--seo-accent, #0d9488);
  background: var(--seo-soft, #ccfbf1);
  color: #134e4a !important;
  font-size: 0.92rem;
  font-weight: 600;
}
.seo-card[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  .seo-guarantee-chip { transition: none; }
  .seo-guarantee-chip:hover { transform: none; }
}
