/* ==========================================================================
   agence-de-nettoyage-fribourg.ch — « Campagne propre »
   Vert olive du favicon (#65a30d) et ses nuances, beige clair, blanc.
   Header sur une rangée : navigation à gauche, cartouche du logo au centre,
   bouton à droite. Footer en deux blocs sur olive très foncé.
   Polices système : Trebuchet MS (marque, titres), Segoe UI (texte).
   ========================================================================== */

:root {
  --cp-olive: #65a30d;        /* teinte du favicon */
  --cp-olive-fonce: #4d7c0f;  /* boutons : blanc lisible (> 4,5:1) */
  --cp-olive-encre: #3f6212;  /* liens sur fond clair */
  --cp-olive-nuit: #1a2e05;   /* fond du footer */
  --cp-olive-pale: #ecfccb;   /* carte d'arguments */
  --cp-beige: #f7f8ef;        /* beige clair légèrement olive */
  --cp-trait: #d9e4c3;        /* séparateurs */
}

/* ---------- 1. HEADER DESKTOP ---------- */
header.site-header.hdr-centered {
  background: var(--cp-beige);
  border-bottom: 3px solid var(--cp-olive);
  box-shadow: 0 2px 10px rgba(26, 46, 5, .08);
  font-family: "Segoe UI", Arial, sans-serif;
}

/* Cartouche olive du logo, en Trebuchet MS */
header.site-header.hdr-centered .brand {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
  background: var(--cp-olive-fonce);
  padding: 7px 16px 7px 8px;
  border-radius: 4px;
  gap: 10px;
  text-decoration: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18);
  animation: cp-cartouche .6s ease-out both;
}
header.site-header.hdr-centered .brand .brand-logo {
  background: #fff;
  border-radius: 3px;
  padding: 3px;
  width: 30px;
  height: 30px;
}

header.site-header.hdr-centered .nav-link,
header.site-header.hdr-centered .dropdown-trigger {
  color: var(--cp-olive-encre);
  font-weight: 600;
  font-size: .92rem;
  border-radius: 4px;
  background-image: linear-gradient(var(--cp-olive), var(--cp-olive));
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: 50% 100%;
  transition: background-size .25s ease, background-color .2s ease;
}
/* le gabarit peint le déclencheur en olive plein : on le rend discret */
header.site-header.hdr-centered .dropdown .dropdown-trigger {
  background-color: transparent;
  box-shadow: none;
}
/* bouton « Connexion » : contour olive, texte foncé lisible */
header.site-header .btn.btn-outline,
.mobile-drawer .btn.btn-outline {
  color: var(--cp-olive-encre) !important;
  border: 2px solid var(--cp-olive);
  border-radius: 4px;
  min-height: 44px;
  background: #fff !important;
}
header.site-header.hdr-centered .nav-link:hover,
header.site-header.hdr-centered .dropdown-trigger:hover {
  background-color: rgba(101, 163, 13, .1);
  background-size: 70% 2px;
}

/* Menu « Nos districts » */
header.site-header .dropdown .dropdown-panel {
  border: 1px solid var(--cp-trait);
  border-top: 3px solid var(--cp-olive);
  border-radius: 4px;
  background: #fff;
}
header.site-header .dropdown .dropdown-item:hover { background: var(--cp-beige); }
header.site-header .dropdown .dropdown-item-keyword { color: var(--cp-olive-encre); }
header.site-header .dropdown .dropdown-dot { background: var(--cp-olive); }

/* Bouton olive plein, coins 4 px */
header.site-header .btn.btn-primary,
.mobile-drawer .btn.btn-primary,
.ie-wrap .btn.btn-primary {
  background: var(--cp-olive-fonce) !important;
  border: 2px solid var(--cp-olive-fonce);
  color: #fff !important;
  border-radius: 4px;
  min-height: 44px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 700;
  transition: transform .2s ease, background-color .2s ease;
}
header.site-header .btn.btn-primary:hover,
.mobile-drawer .btn.btn-primary:hover,
.ie-wrap .btn.btn-primary:hover {
  background: var(--cp-olive-encre) !important;
  border-color: var(--cp-olive-encre);
  transform: translateY(-1px);
}

/* Disposition desktop : navigation | logo | bouton, sur une seule rangée */
@media (min-width: 861px) {
  header.site-header.hdr-centered .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  header.site-header.hdr-centered .hdr-centered-top { display: contents; }
  header.site-header.hdr-centered .hdr-centered-nav {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    border-top: 0;
    padding: 0;
    gap: 4px;
  }
  header.site-header.hdr-centered .brand { grid-column: 2; grid-row: 1; }
  header.site-header.hdr-centered .hdr-centered-auth {
    grid-column: 3;
    grid-row: 1;
    position: static;
    transform: none;
    justify-content: flex-end;
  }
  header.site-header.hdr-centered .hamburger { display: none; }
}

/* ---------- 2. BARRE ET TIROIR MOBILE ---------- */
@media (max-width: 860px) {
  header.site-header.hdr-centered .hdr-centered-top {
    justify-content: space-between;
    padding: 10px 0;
    gap: 10px;
  }
  header.site-header.hdr-centered .brand {
    font-size: .92rem;
    line-height: 1.2;
    min-width: 0;
    flex: 0 1 auto;
    max-width: calc(100% - 60px);
    white-space: normal;
    overflow: hidden;
  }
  header.site-header.hdr-centered .brand .brand-logo { flex-shrink: 0; }
  header.site-header.hdr-centered .hamburger {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
  }
  header.site-header.hdr-centered .hdr-centered-nav,
  header.site-header.hdr-centered .hdr-centered-auth { display: none; }
}
header.site-header .hamburger {
  color: var(--cp-olive-encre);
  border: 2px solid var(--cp-olive);
  border-radius: 4px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
header.site-header .hamburger:hover { background: var(--cp-olive-pale); }

.mobile-drawer#mobileDrawer {
  background: var(--cp-beige);
  border-left: 4px solid var(--cp-olive);
  font-family: "Segoe UI", Arial, sans-serif;
}
.mobile-drawer .mobile-close {
  background: #fff;
  color: var(--cp-olive-encre);
  border: 2px solid var(--cp-trait);
  border-radius: 4px;
  width: 44px;
  height: 44px;
}
.mobile-drawer .mobile-nav-link {
  color: var(--cp-olive-encre);
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  border-bottom: 1px solid var(--cp-trait);
}
.mobile-drawer .mobile-nav-link:hover { background: var(--cp-olive-pale); }
.mobile-drawer .mobile-section-title {
  color: var(--cp-olive-encre);
  font-family: "Trebuchet MS", Arial, sans-serif;
  border-bottom: 2px solid var(--cp-olive);
  margin: 8px 0 4px;
}

/* ---------- 3. FOOTER : deux blocs sur olive très foncé ---------- */
footer.site-footer.ftr-rich {
  background: var(--cp-olive-nuit);
  color: #d4dfc2;
  border-top: 4px solid var(--cp-olive);
  font-family: "Segoe UI", Arial, sans-serif;
}
footer.site-footer.ftr-rich .container {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 0 48px;
}
/* Bloc gauche : liens en grille */
footer.site-footer.ftr-rich .ftr-rich-grid {
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 28px;
}
/* Bloc droit : marque et phrase */
footer.site-footer.ftr-rich .ftr-rich-top {
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
  align-items: flex-start;
  border-bottom: 0;
  border-left: 2px solid rgba(101, 163, 13, .5);
  padding: 4px 0 24px 24px;
  margin-bottom: 0;
}
footer.site-footer.ftr-rich .footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(217, 228, 195, .18);
  color: #c3d1ab;
}
footer.site-footer.ftr-rich .footer-copy { color: #c3d1ab; }
footer.site-footer.ftr-rich .footer-brand {
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: #fff;
}
footer.site-footer.ftr-rich .ftr-rich-brand .brand-logo {
  background: #fff;
  border-radius: 4px;
  padding: 3px;
}
footer.site-footer.ftr-rich .footer-tagline { color: #d4dfc2; min-width: 0; }
footer.site-footer.ftr-rich .footer-heading {
  color: #bef264;
  font-family: "Trebuchet MS", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}
footer.site-footer.ftr-rich .footer-links a,
footer.site-footer.ftr-rich .footer-bottom-links a {
  color: #e6edd9;
  text-decoration: none;
}
footer.site-footer.ftr-rich .footer-links a:hover,
footer.site-footer.ftr-rich .footer-bottom-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--cp-olive);
}
@media (max-width: 768px) {
  footer.site-footer.ftr-rich .container { grid-template-columns: minmax(0, 1fr); }
  footer.site-footer.ftr-rich .ftr-rich-top {
    grid-row: 1;
    grid-column: 1;
    border-left: 0;
    border-bottom: 1px solid rgba(217, 228, 195, .18);
    padding: 0 0 20px;
    margin-bottom: 20px;
  }
  footer.site-footer.ftr-rich .ftr-rich-grid {
    grid-row: 2;
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  footer.site-footer.ftr-rich .ftr-rich-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 4. PAGE « AJOUTER MON ENTREPRISE » ---------- */
.ie-wrap .page-header h1 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--cp-olive-encre);
}
/* Carte d'arguments à gauche, formulaire à droite */
.ie-wrap .ie-grid {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
}
.ie-wrap .ie-grid .ie-side { order: -1; }
.ie-wrap .ie-why {
  background: var(--cp-olive-pale);
  border: 1px solid #d9f99d;
  border-left: 5px solid var(--cp-olive);
  border-radius: 4px;
  color: #1a2e05;
}
.ie-wrap .ie-why h2 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--cp-olive-encre);
}
.ie-wrap .ie-why p { color: #2c4309; }
.ie-wrap .ie-why + .ie-why { background: #fff; margin-top: 14px; }
.ie-wrap .ie-card {
  border: 1px solid var(--cp-trait);
  border-top: 4px solid var(--cp-olive);
  border-radius: 4px;
  background: #fff;
}
.ie-wrap .qf-section {
  color: var(--cp-olive-encre);
  font-family: "Trebuchet MS", Arial, sans-serif;
  background: var(--cp-beige);
  border-left: 4px solid var(--cp-olive);
  padding: 6px 10px;
  border-radius: 0 4px 4px 0;
}
.ie-wrap .quote-field input,
.ie-wrap .quote-field select,
.ie-wrap .quote-field textarea {
  min-height: 44px;
  border: 1px solid #c7d5ad;
  border-radius: 4px;
  background: #fff;
  color: #1c2410;
}
.ie-wrap .quote-field input:focus,
.ie-wrap .quote-field select:focus,
.ie-wrap .quote-field textarea:focus {
  outline: 3px solid rgba(101, 163, 13, .35);
  border-color: var(--cp-olive);
}
.ie-wrap .quote-field label { color: #2c4309; font-weight: 600; }
.ie-wrap .quote-lead-actions .btn.btn-primary { padding: 12px 26px; font-size: 1rem; }
@media (max-width: 900px) {
  .ie-wrap .ie-grid { grid-template-columns: minmax(0, 1fr); }
  .ie-wrap .ie-grid .ie-side { order: 0; }
}

/* ---------- Animations ---------- */
@keyframes cp-cartouche {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  header.site-header.hdr-centered .brand { animation: none; }
  header.site-header .nav-link,
  header.site-header .dropdown-trigger,
  header.site-header .btn.btn-primary,
  .mobile-drawer .btn.btn-primary,
  .ie-wrap .btn.btn-primary { transition: none; }
}
