/* Harmonisé sur la couleur primaire #1d4ed8 (favicon) — outils/design_harmoniser.py */
/* bureau-dingenieur.ch — « Plan technique » : bleu #1d4ed8 sur blanc et
   fond quadrille, Consolas pour le logo, cadre a coins qui se dessine,
   boutons rectangulaires, footer deux colonnes bleu profond, inscription
   en sections numerotees avec bande bleue d'arguments en bas de page. */

@keyframes bdi-trait {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* 1. HEADER DESKTOP (hdr-classic) */

header.site-header.hdr-classic {
  background:
    linear-gradient(90deg, rgba(29, 78, 216, .08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(0deg, rgba(29, 78, 216, .08) 1px, transparent 1px) 0 0 / 24px 24px,
    #ffffff;
  border-bottom: 3px solid #1d4ed8;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

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

header.site-header.hdr-classic .brand {
  position: relative;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
  color: #071232;
  padding: 8px 16px 8px 10px;
}
header.site-header.hdr-classic .brand-logo {
  border: 1.5px solid #1d4ed8;
  border-radius: 3px;
  background: #ffffff;
}
header.site-header.hdr-classic .brand::before,
header.site-header.hdr-classic .brand::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #1d4ed8;
  transform: scaleX(0);
  animation: bdi-trait .55s cubic-bezier(.2, .7, .3, 1) .12s forwards;
}
header.site-header.hdr-classic .brand::before {
  top: -5px;
  left: -5px;
  border-right: none;
  border-bottom: none;
  transform-origin: left;
}
header.site-header.hdr-classic .brand::after {
  bottom: -5px;
  right: -5px;
  border-left: none;
  border-top: none;
  transform-origin: right;
}

header.site-header.hdr-classic .nav-desktop { gap: 5px; }

header.site-header.hdr-classic .nav-link {
  font-family: Consolas, "Courier New", monospace;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #143594;
  background: #f0f3fd;
  border: 1.5px solid #cdd8f8;
  border-radius: 3px;
  padding: 8px 13px;
  position: relative;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
header.site-header.hdr-classic .nav-link:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

header.site-header.hdr-classic .dropdown-trigger {
  font-family: Consolas, "Courier New", monospace;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 3px;
  border: 1.5px solid #1d4ed8;
  padding: 8px 13px;
}
header.site-header.hdr-classic .dropdown-trigger:hover {
  background: #143594;
  border-color: #143594;
}

header.site-header.hdr-classic .nav-sep {
  width: 0;
  background: none;
  height: 24px;
  border-left: 1.5px dashed #9eb4f2;
  margin: 0 6px;
}

header.site-header.hdr-classic .dropdown-panel {
  border: 1.5px solid #cdd8f8;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(7, 18, 50, .14);
}
header.site-header.hdr-classic .dropdown-item {
  border-radius: 3px;
}
header.site-header.hdr-classic .dropdown-item:hover {
  background: #f0f3fd;
}
header.site-header.hdr-classic .dropdown-item-sub {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: .03em;
}

/* Bouton d'action : rectangulaire, bleu */
header.site-header.hdr-classic .btn-primary,
.mobile-drawer .btn-primary,
footer.site-footer.ftr-columns .btn-primary,
.ie-form .btn-primary {
  border-radius: 0;
  padding: 13px 22px;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: transform .18s ease, box-shadow .18s ease,
    background-color var(--transition), border-color var(--transition);
}
header.site-header.hdr-classic .btn-primary:hover,
.mobile-drawer .btn-primary:hover,
footer.site-footer.ftr-columns .btn-primary:hover,
.ie-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(29, 78, 216, .3);
}
.mobile-auth .btn-primary,
.ie-form .quote-lead-actions .btn-primary {
  width: 100%;
}

/* Connexion / Dashboard : meme famille, contour seulement */
header.site-header.hdr-classic .btn-outline,
header.site-header.hdr-classic .btn-ghost,
.mobile-drawer .btn-outline,
.mobile-drawer .btn-ghost {
  border-radius: 0;
  border-width: 1.5px;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.mobile-auth .btn-outline { width: 100%; }

/* 2. BARRE MOBILE + TIROIR (< 992px) */

header.site-header.hdr-classic .hamburger {
  border: 1.5px solid #1d4ed8;
  border-radius: 3px;
  color: #1d4ed8;
}
header.site-header.hdr-classic .hamburger:hover { background: #f0f3fd; }

.mobile-overlay { background: rgba(9, 24, 65, .55); }

.mobile-drawer {
  background:
    linear-gradient(90deg, rgba(29, 78, 216, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(0deg, rgba(29, 78, 216, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    #ffffff;
  border-left: 3px solid #1d4ed8;
  padding: 18px 16px;
}

.mobile-close {
  background: #1d4ed8;
  color: #ffffff;
  border-radius: 3px;
}
.mobile-close:hover { background: #143594; }

.mobile-section-title {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: .08em;
  border-bottom: 1px dashed #cdd8f8;
  padding-bottom: 8px;
}

.mobile-nav-link {
  font-family: Consolas, "Courier New", monospace;
  font-size: .84rem;
  background: #ffffff;
  border: 1.5px solid #dfe6fb;
  border-radius: 3px;
  margin-bottom: 6px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-nav-link:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.mobile-auth { padding-top: 18px; border-top: 1px dashed #cdd8f8; margin-top: 8px; }

/* 3. FOOTER (ftr-columns) — deux colonnes sur bleu profond */

footer.site-footer.ftr-columns {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(0deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 26px 26px,
    #0a1c4e;
  color: #c1cff7;
}

footer.site-footer.ftr-columns .footer-grid {
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 48px;
  row-gap: 26px;
}
footer.site-footer.ftr-columns .footer-grid > div:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}
footer.site-footer.ftr-columns .footer-grid > div:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
footer.site-footer.ftr-columns .footer-grid > div:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  border-top: 1px dashed rgba(255, 255, 255, .18);
  padding-top: 18px;
}
@media (max-width: 768px) {
  footer.site-footer.ftr-columns .footer-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  footer.site-footer.ftr-columns .footer-grid > div:nth-child(1),
  footer.site-footer.ftr-columns .footer-grid > div:nth-child(2),
  footer.site-footer.ftr-columns .footer-grid > div:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
  }
}

footer.site-footer.ftr-columns .footer-brand {
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #ffffff;
}
footer.site-footer.ftr-columns .footer-tagline { color: #7c99ed; }

footer.site-footer.ftr-columns .footer-heading {
  font-family: Consolas, "Courier New", monospace;
  color: #dfe6fb;
  border-bottom: 1px dashed rgba(255, 255, 255, .2);
  padding-bottom: 8px;
}
footer.site-footer.ftr-columns .footer-links a { color: #9fb5f2; }
footer.site-footer.ftr-columns .footer-links a:hover { color: #ffffff; }

footer.site-footer.ftr-columns .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
}
footer.site-footer.ftr-columns .footer-copy,
footer.site-footer.ftr-columns .footer-bottom-links a {
  font-family: Consolas, "Courier New", monospace;
  font-size: .76rem;
  color: #7d8fc0;
}
footer.site-footer.ftr-columns .footer-bottom-links a:hover { color: #ffffff; }

/* 4. PAGE « AJOUTER MON ENTREPRISE » (.ie-*) */

.ie-wrap .page-header h1 {
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 1.6rem;
  color: #071232;
  position: relative;
}
.ie-wrap .page-header h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: #1d4ed8;
  margin: 16px auto 0;
}
.ie-wrap .page-header p {
  max-width: 620px;
  margin: 14px auto 0;
}

.ie-wrap .ie-grid {
  grid-template-columns: 1fr;
  gap: 26px;
}

.ie-wrap .card.ie-card {
  position: relative;
  max-width: 760px;
  margin: 20px auto 0;
  border: 1.5px solid #cdd8f8;
  border-radius: 4px;
  padding: 32px 32px 26px;
  background:
    linear-gradient(90deg, rgba(29, 78, 216, .05) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(0deg, rgba(29, 78, 216, .05) 1px, transparent 1px) 0 0 / 26px 26px,
    #ffffff;
}
.ie-wrap .card.ie-card::before,
.ie-wrap .card.ie-card::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid #1d4ed8;
}
.ie-wrap .card.ie-card::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.ie-wrap .card.ie-card::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

/* Sections numerotees : un repere carre par etape, ligne pointillee */
.ie-form .qf-section {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 26px 0 16px;
  padding-bottom: 9px;
  border-bottom: 1px dashed #cdd8f8;
  font-family: Consolas, "Courier New", monospace;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #143594;
}
.ie-form .qf-section:first-of-type { margin-top: 2px; }
.ie-form .qf-section::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  background: #1d4ed8;
}
.ie-form .qf-section:nth-of-type(2)::before {
  box-shadow: 15px 0 0 #9eb4f2;
  margin-right: 15px;
}
.ie-form .qf-section + .quote-lead-grid + .qf-section {
  border-top: none;
  padding-top: 0;
}

/* Champs mono-colonne, larges */
.ie-form .quote-lead-grid {
  grid-template-columns: 1fr;
  gap: 15px;
}
.ie-form label {
  font-family: Consolas, "Courier New", monospace;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #475069;
}
.ie-form .qf-opt {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: #949db8;
}
.ie-form input,
.ie-form select,
.ie-form textarea {
  padding: 13px 16px;
  font-size: .98rem;
  border: 1.5px solid #cbd1e1;
  border-radius: 3px;
  min-height: 46px;
}
.ie-form textarea { min-height: 118px; }
.ie-form input:focus,
.ie-form select:focus,
.ie-form textarea:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .16);
}

.ie-form .quote-lead-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid #1d4ed8;
}
.ie-form .quote-lead-actions small {
  font-family: Consolas, "Courier New", monospace;
  font-size: .72rem;
  color: #646e8b;
}

/* Arguments : bande bleue en bas de page */
.ie-wrap .ie-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 6px;
  padding: 30px 28px;
  border-radius: 4px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0a1c4e 100%);
}
@media (max-width: 640px) {
  .ie-wrap .ie-side { grid-template-columns: 1fr; }
}
.ie-wrap .ie-side .card.ie-why {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.ie-wrap .ie-side .ie-why h2 {
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .86rem;
  color: #ffffff;
  border-bottom: 1px dashed rgba(255, 255, 255, .35);
  padding-bottom: 9px;
  margin-bottom: 11px;
}
.ie-wrap .ie-side .ie-why ul,
.ie-wrap .ie-side .ie-why p {
  color: #d9e2fa;
}
.ie-wrap .ie-side .ie-why li::marker { color: #9eb4f2; }

/* 5. Mouvement reduit : on coupe toute animation */
@media (prefers-reduced-motion: reduce) {
  header.site-header.hdr-classic .brand::before,
  header.site-header.hdr-classic .brand::after {
    animation: none;
    transform: scaleX(1);
  }
  header.site-header.hdr-classic .btn-primary,
  .mobile-drawer .btn-primary,
  footer.site-footer.ftr-columns .btn-primary,
  .ie-form .btn-primary {
    transition: none;
  }
  header.site-header.hdr-classic .btn-primary:hover,
  .mobile-drawer .btn-primary:hover,
  footer.site-footer.ftr-columns .btn-primary:hover,
  .ie-form .btn-primary:hover {
    transform: none;
  }
}
