/* Harmonisé sur la couleur primaire #92400e (favicon) — outils/design_harmoniser.py */
/* ============================================================
   Charpentes en Bois — direction « charpente chaleureuse »
   Brun bois #92400e · sable #faddcb · vert sapin #5e2909
   Police arrondie système : Trebuchet MS
   ============================================================ */

/* ------------------------------------------------------------
   HEADER DESKTOP — sable texturé bois, logo à droite, nav à gauche
   ------------------------------------------------------------ */
header.site-header.hdr-minimal {
  position: relative; /* ancre le liseré animé */
  background:
    repeating-linear-gradient(
      115deg,
      rgba(123, 54, 12, .07) 0px,
      rgba(123, 54, 12, .07) 2px,
      transparent 2px,
      transparent 15px
    ),
    #faddcb;
  border-bottom: 1px solid #ef9157;
  box-shadow: 0 1px 0 rgba(123, 54, 12, .12);
}

/* logo à droite, navigation à gauche : on inverse le sens du flex */
.hdr-minimal .header-inner {
  flex-direction: row-reverse;
  min-height: 62px;
}

.hdr-minimal .brand {
  color: #7b360c;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-weight: 800;
}
.hdr-minimal .brand-logo {
  background: #fdf3ed;
  border: 1.5px solid #ac4c11;
  border-radius: 8px;
  padding: 3px;
}

.hdr-minimal .nav-link {
  color: #92400e;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-weight: 600;
  border-radius: 999px;
}
.hdr-minimal .nav-link:hover { background: rgba(146, 64, 14, .12); color: #7b360c; }

.hdr-minimal .nav-sep { background: rgba(123, 54, 12, .3); }

/* bouton "Cantons" : brun bois, très arrondi comme le CTA */
.hdr-minimal .dropdown-trigger {
  background: #92400e;
  color: #faddcb;
  border-radius: 999px;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.hdr-minimal .dropdown-trigger:hover {
  background: #7b360c;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(123, 54, 12, .3);
}

/* panneau des cantons : ton bois clair */
.hdr-minimal .dropdown-panel {
  background: #fdf3ed;
  border: 1.5px solid #ef9157;
}
.hdr-minimal .dropdown-item:hover { background: #f9d3bc; }
.hdr-minimal .dropdown-item-keyword { color: #7b360c; }
.hdr-minimal .dropdown-item-sub { color: #99430f; }
.hdr-minimal .dropdown-dot { background: #5e2909; }

/* CTA "+ Ajouter mon entreprise" : vert sapin, très arrondi */
.hdr-minimal .btn.btn-primary {
  background: #5e2909;
  border-color: #5e2909;
  color: #faddcb;
  border-radius: 999px;
  padding: 8px 20px;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.hdr-minimal .btn.btn-primary:hover {
  background: #492007;
  border-color: #492007;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(94, 41, 9, .35);
}

/* "Connexion" (espace pro) : reste dans la palette, jamais le rose du thème d'origine */
.hdr-minimal .btn.btn-outline {
  border-color: #92400e;
  color: #92400e;
}
.hdr-minimal .btn.btn-outline:hover {
  background: #f9d3bc;
  border-color: #7b360c;
  color: #7b360c;
}

.hdr-minimal .hamburger { color: #7b360c; }
.hdr-minimal .hamburger:hover { background: rgba(146, 64, 14, .12); }

/* liseré brun qui se déroule sous le header, une fois au chargement */
header.site-header.hdr-minimal::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, #92400e 0%, #5e2909 100%);
  transform-origin: left center;
  animation: cb-liseré-deroule .9s cubic-bezier(.4, 0, .2, 1) both;
  pointer-events: none;
}
@keyframes cb-liseré-deroule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ------------------------------------------------------------
   TIROIR + VOILE MOBILE — sable, liens bruns
   ------------------------------------------------------------ */
body .mobile-overlay { background: rgba(123, 54, 12, .42); }

body .mobile-drawer {
  background: #faddcb;
  border-left: 4px solid #92400e;
}

body .mobile-close {
  background: #f9d3bc;
  color: #7b360c;
}

body .mobile-nav-link {
  color: #7b360c;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(123, 54, 12, .15);
}
body .mobile-nav-link:hover { background: #f9d3bc; }

body .mobile-section-title { color: #99430f; }

body .mobile-auth .btn.btn-primary {
  background: #5e2909;
  border-color: #5e2909;
  color: #faddcb;
  border-radius: 999px;
  min-height: 44px;
  transition: transform .18s ease, background .18s ease;
}
body .mobile-auth .btn.btn-primary:hover { background: #492007; transform: translateY(-2px); }

body .mobile-auth .btn.btn-outline {
  border-color: #92400e;
  color: #92400e;
  min-height: 44px;
}
body .mobile-auth .btn.btn-outline:hover { background: #f9d3bc; border-color: #7b360c; color: #7b360c; }

/* ------------------------------------------------------------
   FOOTER — brun bois, une rangée, marque à droite, liens en pastilles
   ------------------------------------------------------------ */
footer.site-footer.ftr-compact {
  background: #92400e;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
}

.ftr-compact-inner {
  flex-wrap: nowrap;
}

/* la marque (copyright) passe à droite */
footer.ftr-compact .footer-copy {
  order: 2;
  margin-left: auto;
  color: #faddcb;
  font-weight: 700;
  white-space: nowrap;
}

/* les liens passent à gauche, en pastilles sable (nav + connexion éventuelle) */
footer.ftr-compact .ftr-compact-links,
footer.ftr-compact .ftr-compact-auth {
  order: 1;
  gap: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
footer.ftr-compact .ftr-compact-links a,
footer.ftr-compact .ftr-compact-auth a {
  background: #faddcb;
  color: #7b360c;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}
footer.ftr-compact .ftr-compact-links a:hover,
footer.ftr-compact .ftr-compact-auth a:hover {
  background: #f9d3bc;
  color: #5e2909;
  transform: translateY(-2px);
}
/* plus de point de séparation : les pastilles se suffisent */
footer.ftr-compact .ftr-compact-links a:not(:last-child)::after { content: none; }

@media (max-width: 768px) {
  footer.ftr-compact .ftr-compact-inner {
    flex-direction: column;
    flex-wrap: wrap;
  }
  footer.ftr-compact .footer-copy { margin-left: 0; order: 2; }
  footer.ftr-compact .ftr-compact-links,
  footer.ftr-compact .ftr-compact-auth { order: 1; justify-content: center; }
}

/* ------------------------------------------------------------
   PAGE « AJOUTER MON ENTREPRISE » — carte sable, arguments en chevrons
   ------------------------------------------------------------ */
.ie-wrap {
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
}

.ie-wrap .page-header h1 { color: #7b360c; }
.ie-wrap .page-header p { color: #57534e; }

.ie-wrap .card.ie-card {
  background: #fdf3ed;
  border: 2px solid #92400e;
  border-radius: 14px;
}

.ie-wrap .qf-section {
  color: #92400e;
  border-bottom: 2px dotted #ef9157;
  padding-bottom: 6px;
}

.ie-wrap .quote-field input,
.ie-wrap .quote-field select,
.ie-wrap .quote-field textarea {
  border-color: #ef9157;
  background: #fff;
}
.ie-wrap .quote-field input:focus,
.ie-wrap .quote-field select:focus,
.ie-wrap .quote-field textarea:focus {
  border-color: #5e2909;
  box-shadow: 0 0 0 3px rgba(94, 41, 9, .18);
}
.ie-wrap .quote-field label { color: #7b360c; }

/* bouton final : vert sapin marquant, qui s'élève au survol */
.ie-form button[type="submit"].btn-primary {
  background: #5e2909;
  border-color: #5e2909;
  color: #faddcb;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 1rem;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.ie-form button[type="submit"].btn-primary:hover {
  background: #492007;
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(94, 41, 9, .35);
}

/* cartes latérales : arguments à droite, sable, puces en chevrons */
.ie-side .card.ie-why {
  background: #fdf3ed;
  border: 1.5px solid #ef9157;
}
.ie-side .ie-why h2 { color: #7b360c; }
.ie-side .ie-why p { color: #57534e; }

.ie-side .ie-why ul {
  list-style: none;
  padding-left: 0;
}
.ie-side .ie-why ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
}
.ie-side .ie-why ul li::before {
  content: "\276F";
  position: absolute;
  left: 0;
  top: 0;
  color: #5e2909;
  font-weight: 700;
}

/* ------------------------------------------------------------
   ACCESSIBILITÉ — coupe toutes les animations
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  header.site-header.hdr-minimal::after {
    animation: none;
    transform: scaleX(1);
  }
  .hdr-minimal .btn.btn-primary,
  .hdr-minimal .dropdown-trigger,
  body .mobile-auth .btn.btn-primary,
  footer.ftr-compact .ftr-compact-links a,
  .ie-form button[type="submit"].btn-primary {
    transition: none;
  }
  .hdr-minimal .btn.btn-primary:hover,
  .hdr-minimal .dropdown-trigger:hover,
  body .mobile-auth .btn.btn-primary:hover,
  footer.ftr-compact .ftr-compact-links a:hover,
  .ie-form button[type="submit"].btn-primary:hover {
    transform: none;
  }
}
