/* ==========================================================================
   entreprise-de-nettoyage-fribourg.ch — habillage « frais et végétal »
   Une seule teinte : le vert du favicon (#16a34a) et ses nuances, sur blanc
   cassé. Header centré sur deux rangées, nav en pastilles, footer en deux
   blocs asymétriques, formulaire à gauche et carte d'arguments verte à droite.
   Nuances : #f7fbf8 (blanc cassé), #f0fdf4 / #dcfce7 (vert pâle),
   #bbf7d0 (liseré), #15803d (bouton, blanc lisible), #166534 / #14532d (textes).
   ========================================================================== */

/* ---------- 1. HEADER DESKTOP ---------- */
header.site-header.hdr-centered {
  background: #f7fbf8;
  border-bottom: 0;
  box-shadow: 0 6px 18px -12px rgba(20, 83, 45, .35);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}
/* liseré vert doux qui glisse une fois à l'arrivée */
header.site-header.hdr-centered::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #dcfce7 0%, #16a34a 35%, #15803d 50%, #16a34a 65%, #dcfce7 100%);
  background-size: 220% 100%;
  animation: nf-lisere 1.6s ease-out 1 both;
}
@keyframes nf-lisere {
  from { background-position: 100% 0; }
  to   { background-position: 0 0; }
}

/* rangée du haut : marque au centre, bouton à droite */
header.site-header.hdr-centered .hdr-centered-top {
  padding: 18px 0 12px;
}
header.site-header.hdr-centered .brand {
  flex-direction: column;
  gap: 6px;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #14532d;
  text-align: center;
}
header.site-header.hdr-centered .brand-logo {
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: 50%;
  background: #dcfce7;
  box-shadow: 0 0 0 3px #f7fbf8, 0 0 0 5px #bbf7d0;
}

/* bouton « Ajouter mon entreprise » : pastille verte arrondie */
header.site-header .btn.btn-primary,
nav.mobile-drawer .mobile-auth .btn.btn-primary {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid #15803d;
  background: #15803d !important;
  color: #ffffff !important;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  box-shadow: 0 6px 14px -8px rgba(21, 128, 61, .7);
  transition: transform .18s ease, box-shadow .18s ease;
}
header.site-header .btn.btn-primary:hover,
nav.mobile-drawer .mobile-auth .btn.btn-primary:hover {
  background: #166534 !important;
  border-color: #166534;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px -10px rgba(20, 83, 45, .8);
}

/* rangée du bas : nav en pastilles vert pâle */
header.site-header.hdr-centered .hdr-centered-nav {
  gap: 10px;
  padding: 10px 0 14px;
  border-top: 1px dashed #bbf7d0;
}
header.site-header.hdr-centered .hdr-centered-nav .nav-link,
header.site-header.hdr-centered .hdr-centered-nav .dropdown-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  background: #dcfce7 !important;
  color: #14532d !important;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
header.site-header.hdr-centered .hdr-centered-nav .nav-link:hover,
header.site-header.hdr-centered .hdr-centered-nav .dropdown-trigger:hover,
header.site-header.hdr-centered .hdr-centered-nav .dropdown.open .dropdown-trigger {
  transform: translateY(-2px);
  border-color: #16a34a;
  box-shadow: 0 6px 12px -8px rgba(20, 83, 45, .6);
}

/* menu « Nos districts » : panneau blanc liseré vert (mécanisme intact) */
header.site-header .dropdown .dropdown-panel {
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 32px -18px rgba(20, 83, 45, .55);
}
header.site-header .dropdown .dropdown-item { border-radius: 12px; }
header.site-header .dropdown .dropdown-item:hover { background: #f0fdf4; }
header.site-header .dropdown .dropdown-dot { background: #16a34a; }
header.site-header .dropdown .dropdown-item-keyword { color: #14532d; }
header.site-header .dropdown .dropdown-item-sub { color: #166534; }

/* ---------- 2. BARRE + TIROIR MOBILE ---------- */
header.site-header .hamburger {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #14532d;
}
header.site-header .hamburger:hover { background: #bbf7d0; }

nav.mobile-drawer {
  background: #f0fdf4;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}
nav.mobile-drawer .mobile-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dcfce7;
  color: #14532d;
}
nav.mobile-drawer .mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 0 0 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  background: #ffffff;
  color: #14532d;
  font-weight: 600;
}
nav.mobile-drawer .mobile-nav-link:hover { background: #dcfce7; }
nav.mobile-drawer .mobile-section-title {
  margin-top: 8px;
  padding: 14px 18px 8px;
  border-top: 1px dashed #86efac;
  color: #166534;
  letter-spacing: .1em;
}
nav.mobile-drawer .mobile-auth {
  padding: 18px 0 0;
  margin-top: 10px;
  border-top: 1px dashed #86efac;
}

/* ---------- 3. FOOTER : deux blocs asymétriques ---------- */
footer.site-footer.ftr-compact {
  background: #f0fdf4;
  color: #14532d;
  border-top: 4px solid #bbf7d0;
  padding: 34px 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}
footer.site-footer .ftr-compact-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
/* bloc gauche (2/3) : la marque en toutes lettres */
footer.site-footer.ftr-compact .footer-copy {
  font-size: 1.15rem;
  font-weight: 700;
  color: #14532d;
  line-height: 1.4;
  padding-left: 16px;
  border-left: 4px solid #16a34a;
}
/* bloc droit (1/3) : liens en pastilles */
footer.site-footer .ftr-compact-links {
  justify-content: flex-end;
  gap: 8px;
}
footer.site-footer .ftr-compact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: .8rem;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease;
}
footer.site-footer .ftr-compact-links a:hover {
  background: #dcfce7;
  color: #14532d;
  transform: translateY(-2px);
}
footer.site-footer .ftr-compact-links a:not(:last-child)::after { content: none; }
footer.site-footer .ftr-compact-auth:empty { display: none; }

@media (max-width: 768px) {
  footer.site-footer .ftr-compact-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }
  footer.site-footer .ftr-compact-links { justify-content: flex-start; }
}

/* ---------- 4. PAGE « AJOUTER MON ENTREPRISE » ---------- */
.ie-wrap .page-header h1 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: #14532d;
}
.ie-wrap .ie-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}
.ie-wrap .card.ie-card {
  border: 1px solid #bbf7d0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 36px -28px rgba(20, 83, 45, .6);
}
.ie-wrap .ie-form .qf-section {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #dcfce7;
  color: #14532d;
  letter-spacing: .08em;
}
.ie-wrap .ie-form .quote-field input,
.ie-wrap .ie-form .quote-field select,
.ie-wrap .ie-form .quote-field textarea {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid #bbf7d0;
  background: #f7fbf8;
  color: #14532d;
}
.ie-wrap .ie-form .quote-field input:focus,
.ie-wrap .ie-form .quote-field select:focus,
.ie-wrap .ie-form .quote-field textarea:focus {
  border-color: #16a34a;
  background: #ffffff;
  outline: 3px solid #bbf7d0;
  outline-offset: 1px;
}
.ie-wrap .ie-form .quote-field label { color: #166534; font-weight: 600; }
.ie-wrap .ie-form .quote-lead-actions .btn.btn-primary {
  min-height: 50px;
  padding: 12px 28px;
  border-radius: 999px;
  border-color: #15803d;
  background: #15803d !important;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ie-wrap .ie-form .quote-lead-actions .btn.btn-primary:hover {
  background: #166534 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px -10px rgba(20, 83, 45, .8);
}

/* colonne de droite : carte d'arguments verte, puis carte pâle */
.ie-wrap .ie-side { position: sticky; top: 150px; display: grid; gap: 16px; }
.ie-wrap .ie-side .card.ie-why {
  border-radius: 22px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
}
.ie-wrap .ie-side .card.ie-why p { color: #166534; }
.ie-wrap .ie-side .card.ie-why:first-child {
  background: #15803d;
  border-color: #15803d;
  color: #ffffff;
}
.ie-wrap .ie-side .card.ie-why:first-child h2 { color: #ffffff; }
.ie-wrap .ie-side .card.ie-why:first-child ul { list-style: none; padding-left: 0; }
.ie-wrap .ie-side .card.ie-why:first-child li {
  padding: 8px 0 8px 14px;
  border-left: 3px solid #86efac;
  margin-bottom: 8px;
  color: #ffffff;
}
.ie-wrap .ie-side .card.ie-why h2 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: #14532d;
}

@media (max-width: 900px) {
  .ie-wrap .ie-grid { grid-template-columns: minmax(0, 1fr); }
  .ie-wrap .ie-side { position: static; }
}

/* ---------- mouvement réduit : tout est coupé ---------- */
@media (prefers-reduced-motion: reduce) {
  header.site-header.hdr-centered::after { animation: none; }
  header.site-header *,
  footer.site-footer *,
  nav.mobile-drawer *,
  .ie-wrap * { transition: none !important; }
  header.site-header .btn.btn-primary:hover,
  header.site-header.hdr-centered .hdr-centered-nav .nav-link:hover,
  header.site-header.hdr-centered .hdr-centered-nav .dropdown-trigger:hover,
  footer.site-footer .ftr-compact-links a:hover,
  .ie-wrap .ie-form .quote-lead-actions .btn.btn-primary:hover { transform: none; }
}

/* ---------- correctifs après captures ---------- */
/* lien « Connexion » du pied : lisible, rangé sous la marque */
footer.site-footer .ftr-compact-auth { grid-column: 1; }
footer.site-footer .ftr-compact-auth a {
  color: #166534;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* boutons du tiroir : 44 px minimum, bouton secondaire en pastille */
nav.mobile-drawer .mobile-auth .btn {
  min-height: 44px;
  border-radius: 999px;
}
/* barre mobile : marque à gauche sur une rangée, bouton menu rond à droite */
@media (max-width: 860px) {
  header.site-header.hdr-centered .hdr-centered-top {
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
  }
  header.site-header.hdr-centered .brand {
    flex-direction: row;
    gap: 10px;
    min-width: 0;
    font-size: 1.05rem;
    text-align: left;
    white-space: normal;
    line-height: 1.25;
  }
  header.site-header.hdr-centered .brand-logo { width: 34px; height: 34px; padding: 5px; }
  header.site-header .hamburger { flex-shrink: 0; }
}
/* entre 769 et 860 px : le bouton passe dans le tiroir, il ne chevauche plus le menu */
@media (max-width: 860px) {
  header.site-header.hdr-centered .hdr-centered-auth { display: none; }
}
