/**
 * Gabarit site agence (header / contenu / footer) — même rendu que voyanz.com.
 * voyanz.css est chargé avant ce fichier (commons/site/layout-default.eta).
 */
body.agencydefault.site-template-default {
  --site-primary: #fc6194;
  --site-primary-dark: #e04a7d;
  --site-accent: #f5a8c4;
  --site-navbar-bg: linear-gradient(90deg, #240046 0%, #0d1124 100%);
  --site-navbar-text: #f3eefc;
  --site-footer-bg: #0b0716;
  --site-footer-text: rgba(243, 238, 252, 0.78);
  --site-surface: #ffffff;
  --site-muted: rgba(243, 238, 252, 0.7);
  --site-text: #f3eefc;
  --site-text-on-surface: #1a1228;
  --site-content-bg: rgba(255, 255, 255, 0.04);
  --site-content-muted: rgba(243, 238, 252, 0.8);
  --site-content-border: rgba(255, 255, 255, 0.12);
  --site-content-panel-bg: rgba(255, 255, 255, 0.06);
  --vyia-bg: radial-gradient(ellipse at top, #2a1a4a 0%, #120a24 60%, #0b0716 100%);
  --vyia-gold: #f5e6c8;
  --vyia-gold-accent: #e8c547;
  --vyia-text: #f3eefc;
  --vyia-text-muted: rgba(243, 238, 252, 0.85);
  --site-page-bg: var(--vyia-bg);
  background: var(--site-page-bg);
  background-attachment: scroll;
  color: var(--site-text);
  min-height: 100vh;
}

/* Titres or sur fond sombre (repris de body.voyanz dans voyanz.css) */
body.agencydefault.site-template-default:not([id^="customer"]):not([id^="professional"]):not(#login):not(#signup)
  :is(.mainpart, .mainpart2, .h4-content, turbo-frame#main-content)
  :is(h1, h2, h3, .h4-section-title, .h4-hero-title) {
  color: var(--vyia-gold);
  text-shadow: none;
}

body.agencydefault.site-template-default
  :is(.cardpro-content, .bg-white, .bg-light, .modal-content)
  :is(h1, h2, h3, h4, h5, h6, .h4-section-title) {
  color: inherit;
}

body.agencydefault.site-template-default .h4-section-subtitle {
  color: var(--vyia-text-muted);
}

/* Masquer l’ancienne double barre Voyanz si quelque chose la réinjecte */
body.agencydefault.site-template-default .site-toptop,
body.agencydefault.site-template-default section.toptop {
  display: none !important;
}

/* —— Header —— */
body.agencydefault.site-template-default .site-shell-header {
  background: var(--site-navbar-bg);
  color: var(--site-navbar-text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  z-index: 1030;
}

body.agencydefault.site-template-default .site-shell-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
}

body.agencydefault.site-template-default .site-shell-brand-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

body.agencydefault.site-template-default .site-shell-brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

body.agencydefault.site-template-default .site-shell-logo {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

body.agencydefault.site-template-default .site-shell-nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

body.agencydefault.site-template-default .site-shell-nav-item a,
body.agencydefault.site-template-default .site-shell-nav-dropdown-btn {
  color: rgba(248, 250, 252, 0.92);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: none;
  background: transparent;
}

body.agencydefault.site-template-default .site-shell-nav-item a:hover,
body.agencydefault.site-template-default .site-shell-nav-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.agencydefault.site-template-default .site-shell-nav-item.is-active a {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body.agencydefault.site-template-default .site-shell-dropdown-menu {
  border-radius: 10px;
  border: 1px solid var(--site-content-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  padding: 0.35rem;
  background: #1a1030;
}

body.agencydefault.site-template-default .site-shell-dropdown-menu .dropdown-item {
  color: var(--site-navbar-text);
  border-radius: 6px;
}

body.agencydefault.site-template-default .site-shell-dropdown-menu .dropdown-item:hover,
body.agencydefault.site-template-default .site-shell-dropdown-menu .dropdown-item.active {
  background: rgba(252, 97, 148, 0.18);
  color: #fff;
}

body.agencydefault.site-template-default .site-shell-nav-toggle {
  color: #fff;
}

body.agencydefault.site-template-default .site-shell-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.agencydefault.site-template-default .site-shell-auth-btn.btn-primary {
  background: var(--site-primary) !important;
  border-color: var(--site-primary) !important;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
}

body.agencydefault.site-template-default .site-shell-auth-btn.btn-outline-light {
  border-radius: 999px;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  body.agencydefault.site-template-default .site-shell-header-inner {
    flex-wrap: nowrap;
    gap: 0.5rem;
    min-height: 56px;
  }

  body.agencydefault.site-template-default .site-shell-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.agencydefault.site-template-default .site-shell-brand-link {
    max-width: 100%;
  }

  body.agencydefault.site-template-default .site-shell-brand-text {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.agencydefault.site-template-default .site-shell-actions {
    order: 2;
    flex: 0 0 auto;
    gap: 0.35rem;
  }

  body.agencydefault.site-template-default .site-shell-nav-toggle {
    order: 3;
    padding: 0.25rem;
  }

  body.agencydefault.site-template-default .site-shell-auth-btn {
    padding: 0.3rem 0.7rem !important;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

/* —— Contenu —— */
body.agencydefault.site-template-default .site-shell-main {
  min-height: 50vh;
}

/* Grille home6 + cardpro + boutons h4 : rendu voyanz.css (body#homepage4), aucun override ici */

/* Pages éditables */
body.agencydefault.site-template-default .mainpart2 .col-md-8 {
  background: var(--site-content-bg);
  border: 1px solid var(--site-content-border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* —— Footer —— */
body.agencydefault.site-template-default .site-shell-footer {
  background: var(--site-footer-bg);
  color: var(--site-footer-text);
  padding: 2.75rem 0 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--site-content-border);
}

body.agencydefault.site-template-default .site-shell-footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vyia-gold);
  margin-bottom: 1rem;
}

body.agencydefault.site-template-default .site-shell-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.agencydefault.site-template-default .site-shell-footer-links a {
  color: var(--site-footer-text);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.9;
}

body.agencydefault.site-template-default .site-shell-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

body.agencydefault.site-template-default .site-shell-footer-brand {
  font-weight: 700;
  color: #fff;
}

body.agencydefault.site-template-default .site-shell-footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--site-content-border);
  font-size: 0.85rem;
  color: var(--site-muted);
}

body.agencydefault.site-template-default .site-shell-offcanvas {
  background: #120a24;
  color: var(--site-navbar-text);
}

body.agencydefault.site-template-default .site-shell-offcanvas .nav-link {
  color: var(--site-navbar-text);
}

body.agencydefault.site-template-default .site-shell-offcanvas .btn-close {
  filter: invert(1);
}