/* ==========================================================================
   Agences Pub — direction « agence créative »
   Indigo #4338ca / lime #a3e635 / noir #0f172a, sans-serif géométrique.
   Header noir à bloc lime en diagonale, tiroir noir à liens lime,
   footer indigo en deux blocs asymétriques à pastilles lime,
   page d'inscription à bordure indigo et arguments en cartes noires.
   ========================================================================== */

:root {
  --ap-indigo: #4338ca;
  --ap-indigo-clair: #6d5ce8;
  --ap-lime: #a3e635;
  --ap-lime-sombre: #84c91f;
  --ap-noir: #0f172a;
}

/* -------------------------------------------------------------------- */
/* HEADER DESKTOP                                                       */
/* -------------------------------------------------------------------- */

header.site-header.hdr-classic {
  background: var(--ap-noir);
  border-bottom: 3px solid var(--ap-lime);
  font-family: "Segoe UI Black", "Segoe UI", Arial, sans-serif;
}

header.site-header.hdr-classic .header-inner {
  min-height: 76px;
}

/* Bloc lime en diagonale derrière le logo */
header.site-header.hdr-classic .brand {
  position: relative;
  z-index: 1;
  padding: 10px 26px 10px 10px;
  color: var(--ap-noir);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.15rem;
}

header.site-header.hdr-classic .brand::before {
  content: "";
  position: absolute;
  inset: -6px -12px -6px -10px;
  z-index: -1;
  background: var(--ap-lime);
  clip-path: polygon(0 0, 86% 0, 100% 100%, 10% 100%);
  transform: translateX(-16px);
  opacity: 0;
  animation: ap-bloc-glisse .55s cubic-bezier(.2, .8, .3, 1) .05s forwards;
}

header.site-header.hdr-classic .brand:hover { opacity: 1; }

header.site-header.hdr-classic .brand-logo {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 1px 0 rgba(15, 23, 42, .25));
}

@keyframes ap-bloc-glisse {
  from { transform: translateX(-16px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Nav à droite */
header.site-header.hdr-classic .nav-desktop {
  gap: 4px;
}

header.site-header.hdr-classic .nav-link {
  color: #e6ffb0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .04em;
  background: transparent;
  border-radius: 0;
  position: relative;
  padding: 8px 12px;
}

header.site-header.hdr-classic .nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--ap-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

header.site-header.hdr-classic .nav-link:hover {
  background: rgba(163, 230, 53, .1);
  color: var(--ap-lime);
}

header.site-header.hdr-classic .nav-link:hover::after { transform: scaleX(1); }

header.site-header.hdr-classic .nav-sep {
  background: rgba(163, 230, 53, .35);
  width: 1px;
  align-self: stretch;
  margin: 6px 4px;
}

/* Menu déroulant « Nos cantons » */
header.site-header.hdr-classic .dropdown-trigger {
  background: transparent;
  border: 1px solid rgba(163, 230, 53, .4);
  color: var(--ap-lime);
  border-radius: 0;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .04em;
  font-weight: 600;
}

header.site-header.hdr-classic .dropdown-trigger:hover {
  background: var(--ap-lime);
  color: var(--ap-noir);
  border-color: var(--ap-lime);
  box-shadow: none;
}

header.site-header.hdr-classic .dropdown-panel {
  background: var(--ap-noir);
  border: 1px solid rgba(163, 230, 53, .3);
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .45);
}

header.site-header.hdr-classic .dropdown-item-keyword {
  color: var(--ap-lime);
  font-weight: 700;
}

header.site-header.hdr-classic .dropdown-item-sub {
  color: #cbd5e1;
}

header.site-header.hdr-classic .dropdown-item:hover {
  background: rgba(163, 230, 53, .1);
}

/* Bouton lime sur noir, carré */
header.site-header.hdr-classic .nav-desktop .btn.btn-primary {
  background: var(--ap-lime);
  color: var(--ap-noir) !important;
  border: 2px solid var(--ap-noir);
  border-radius: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .82rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  box-shadow: 3px 3px 0 var(--ap-lime-sombre);
}

header.site-header.hdr-classic .nav-desktop .btn.btn-primary:hover {
  background: var(--ap-lime-sombre);
  border-color: var(--ap-noir);
  box-shadow: 1px 1px 0 var(--ap-noir);
  transform: translate(2px, 2px);
}

header.site-header.hdr-classic .hamburger { color: var(--ap-lime); }
header.site-header.hdr-classic .hamburger:hover { background: rgba(163, 230, 53, .12); }

/* -------------------------------------------------------------------- */
/* BARRE + TIROIR MOBILE (< 992px)                                      */
/* -------------------------------------------------------------------- */

.mobile-overlay { background: rgba(15, 23, 42, .72); }

.mobile-drawer {
  background: var(--ap-noir);
  border-left: 3px solid var(--ap-lime);
  font-family: "Segoe UI Black", "Segoe UI", Arial, sans-serif;
}

.mobile-close {
  color: var(--ap-lime);
  background: rgba(163, 230, 53, .1);
  border-radius: 0;
}

.mobile-close:hover { background: rgba(163, 230, 53, .22); }

.mobile-section-title {
  color: var(--ap-lime);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: .78rem;
  border-bottom: 1px solid rgba(163, 230, 53, .25);
  padding-bottom: 6px;
}

.mobile-drawer .mobile-nav-link {
  color: #f1f5f9;
  border-bottom: 1px solid rgba(163, 230, 53, .14);
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.mobile-drawer .mobile-nav-link:hover {
  background: rgba(163, 230, 53, .12);
  color: var(--ap-lime);
}

.mobile-auth { border-top: 1px solid rgba(163, 230, 53, .25); }

.mobile-auth .btn.btn-primary {
  background: var(--ap-lime);
  color: var(--ap-noir) !important;
  border: 2px solid var(--ap-lime);
  border-radius: 0;
  font-weight: 800;
  text-transform: uppercase;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-auth .btn.btn-primary:hover { background: var(--ap-lime-sombre); }

/* -------------------------------------------------------------------- */
/* FOOTER — indigo en deux blocs asymétriques, pastilles lime           */
/* -------------------------------------------------------------------- */

footer.site-footer.ftr-columns {
  background: var(--ap-indigo);
  font-family: "Segoe UI Black", "Segoe UI", Arial, sans-serif;
  padding-top: 0;
}

footer.site-footer.ftr-columns .footer-inner { padding-top: 0; }

/* Grille asymétrique : grand bloc marque à gauche, bloc liens à droite,
   séparés par une bordure lime verticale sur desktop. */
footer.site-footer.ftr-columns .footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

footer.site-footer.ftr-columns .footer-grid > div {
  padding: 36px 28px;
}

footer.site-footer.ftr-columns .footer-grid > div:first-child {
  background: rgba(15, 23, 42, .22);
  border-right: 3px solid var(--ap-lime);
}

footer.site-footer.ftr-columns .footer-grid > div:not(:first-child) {
  background: transparent;
}

footer.site-footer.ftr-columns .footer-grid > div:nth-child(2) {
  border-right: 1px solid rgba(163, 230, 53, .2);
}

footer.site-footer.ftr-columns .footer-brand {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 900;
}

footer.site-footer.ftr-columns .footer-tagline {
  color: rgba(255, 255, 255, .88);
}

footer.site-footer.ftr-columns .footer-grid .btn.btn-primary {
  background: var(--ap-lime);
  color: var(--ap-noir) !important;
  border: 2px solid var(--ap-noir);
  border-radius: 0;
  font-weight: 800;
  text-transform: uppercase;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

footer.site-footer.ftr-columns .footer-grid .btn.btn-primary:hover {
  background: var(--ap-lime-sombre);
}

footer.site-footer.ftr-columns .footer-heading {
  color: var(--ap-lime);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 800;
  font-size: .85rem;
}

/* Liens en pastilles lime */
footer.site-footer.ftr-columns .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

footer.site-footer.ftr-columns .footer-links a {
  display: inline-flex;
  align-items: center;
  background: var(--ap-lime);
  color: var(--ap-noir);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease;
}

footer.site-footer.ftr-columns .footer-links a:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* Bas noir */
footer.site-footer.ftr-columns .footer-bottom {
  background: var(--ap-noir);
  border-top: none;
  padding: 16px 28px;
}

footer.site-footer.ftr-columns .footer-copy { color: rgba(255, 255, 255, .68); }

footer.site-footer.ftr-columns .footer-bottom-links {
  flex-wrap: wrap;
  row-gap: 6px;
}

footer.site-footer.ftr-columns .footer-bottom-links a {
  color: var(--ap-lime);
  font-weight: 600;
  white-space: nowrap;
}

footer.site-footer.ftr-columns .footer-bottom-links a:hover { color: #fff; }

@media (max-width: 760px) {
  footer.site-footer.ftr-columns .footer-grid { grid-template-columns: 1fr; }
  footer.site-footer.ftr-columns .footer-grid > div:first-child {
    border-right: none;
    border-bottom: 3px solid var(--ap-lime);
  }
  footer.site-footer.ftr-columns .footer-grid > div:nth-child(2) { border-right: none; }
}

/* -------------------------------------------------------------------- */
/* PAGE « AJOUTER MON ENTREPRISE »                                      */
/* -------------------------------------------------------------------- */

.ie-wrap .page-header h1 {
  color: var(--ap-indigo);
  font-family: "Segoe UI Black", "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.ie-wrap .ie-grid {
  grid-template-columns: 1.6fr 1fr;
  align-items: start;
}

/* Formulaire à bord indigo */
.ie-wrap .ie-card.card {
  border: 3px solid var(--ap-indigo);
  border-radius: 4px;
  box-shadow: 6px 6px 0 rgba(67, 56, 202, .12);
}

/* Sections lime */
.ie-wrap .ie-form .qf-section {
  background: var(--ap-lime);
  color: var(--ap-noir);
  padding: 7px 12px;
  margin: 18px 0 12px;
  border-radius: 3px;
  display: inline-block;
}

.ie-wrap .ie-form .qf-section:first-of-type { margin-top: 0; }

.ie-wrap .ie-form .qf-section + .quote-lead-grid + .qf-section {
  border-top: none;
  padding-top: 7px;
}

.ie-wrap .quote-field label {
  color: var(--ap-indigo);
  font-weight: 700;
}

.ie-wrap .quote-field input,
.ie-wrap .quote-field select,
.ie-wrap .quote-field textarea {
  min-height: 44px;
  border: 1px solid #c7d2fe;
  border-radius: 3px;
}

.ie-wrap .quote-field textarea { min-height: 96px; }

.ie-wrap .quote-field input:focus,
.ie-wrap .quote-field select:focus,
.ie-wrap .quote-field textarea:focus {
  border-color: var(--ap-indigo);
  outline: 2px solid rgba(67, 56, 202, .28);
  outline-offset: 1px;
}

/* Bouton final indigo, marquant */
.ie-wrap .quote-lead-actions .btn.btn-primary {
  background: var(--ap-indigo);
  color: #fff !important;
  border: none;
  border-radius: 3px;
  min-height: 48px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 0 28px;
  box-shadow: 4px 4px 0 var(--ap-noir);
  transition: transform .18s ease, box-shadow .18s ease;
}

.ie-wrap .quote-lead-actions .btn.btn-primary:hover {
  background: var(--ap-indigo-clair);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ap-noir);
}

/* Arguments en cartes noires à droite */
.ie-wrap .ie-side .ie-why.card {
  background: var(--ap-noir);
  border: none;
  border-radius: 4px;
  border-left: 4px solid var(--ap-lime);
}

.ie-wrap .ie-side .ie-why h2 {
  color: var(--ap-lime);
  font-family: "Segoe UI Black", "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: .02em;
}

.ie-wrap .ie-side .ie-why p,
.ie-wrap .ie-side .ie-why li {
  color: #e2e8f0;
}

.ie-wrap .ie-side .ie-why li::marker { color: var(--ap-lime); }

@media (max-width: 860px) {
  .ie-wrap .ie-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------- */
/* Mouvement réduit                                                     */
/* -------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  header.site-header.hdr-classic .brand::before {
    animation: none;
    opacity: 1;
    transform: translateX(0);
  }
  header.site-header.hdr-classic .nav-link::after,
  footer.site-footer.ftr-columns .footer-links a,
  .ie-wrap .quote-lead-actions .btn.btn-primary,
  header.site-header.hdr-classic .nav-desktop .btn.btn-primary {
    transition: none;
  }
}
