/* Harmonisé sur la couleur primaire #1e3a8a (favicon) — outils/design_harmoniser.py */
/* ==========================================================================
   cabinet-davocat.ch — direction « cabinet feutré »
   Bleu nuit (#1e3a8a) + crème (#e4e9f9), serif Georgia pour la marque et
   les titres, filet doré fin (#2b53c5). En-tête sur deux rangées (marque
   centrée en haut, barre basse fine en petites capitales), tiroir mobile
   bleu nuit, pied de page en deux blocs asymétriques, bandeau doré pâle
   au-dessus du formulaire d'inscription.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. En-tête — ordinateur
   -------------------------------------------------------------------------- */

header.site-header {
  background: #e4e9f9;
  border-bottom: 2px solid #2b53c5;
  box-shadow: 0 1px 0 rgba(30, 58, 138, .06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

header.site-header .brand {
  color: #1e3a8a;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

header.site-header .brand-logo {
  border-radius: 4px;
}

header.site-header .nav-link {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #1e3a8a;
}
header.site-header .nav-link:hover {
  background: transparent;
  color: #2b53c5;
}

/* Bouton « Nos cantons » : texte discret plutôt que pastille pleine,
   pour rester dans l'esprit « barre fine ». */
header.site-header .dropdown-trigger {
  background: transparent;
  color: #1e3a8a;
  font-family: "Segoe UI", Arial, sans-serif;
  padding: 7px 4px;
}
header.site-header .dropdown-trigger:hover {
  background: transparent;
  color: #2b53c5;
  box-shadow: none;
}

header.site-header .nav-sep {
  background: #2b53c5;
  opacity: .5;
}

header.site-header .dropdown-panel {
  background: #f3f5fc;
  border: 1px solid #2b53c5;
  border-radius: 4px;
}
header.site-header .dropdown-item-keyword {
  font-family: Georgia, serif;
}
header.site-header .dropdown-item-sub {
  color: #2e3a5c;
}
header.site-header .dropdown-item:hover {
  background: #cad4f3;
}
header.site-header .dropdown-dot {
  background: #2b53c5;
}

/* Bouton d'action commun aux trois zones autorisées (en-tête, pied de
   page, page d'inscription) : rectangulaire, bord doré, fond bleu nuit. */
header.site-header .btn.btn-primary,
footer.site-footer .btn.btn-primary,
.auth-wrapper.ie-wrap .btn.btn-primary {
  background: #1e3a8a;
  color: #eef1fb;
  border: 2px solid #2b53c5;
  border-radius: 3px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .02em;
}
header.site-header .btn.btn-primary:hover,
footer.site-footer .btn.btn-primary:hover,
.auth-wrapper.ie-wrap .btn.btn-primary:hover {
  background: #14275e;
  border-color: #446ad6;
  box-shadow: 0 2px 8px rgba(30, 58, 138, .18);
}

/* Deux rangées : la marque seule en haut, centrée ; la navigation forme
   une barre basse fine, liens espacés en petites capitales. */
@media (min-width: 861px) {
  header.site-header .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    padding: 14px 0 0;
    row-gap: 0;
  }
  header.site-header .brand {
    order: 1;
    width: 100%;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  header.site-header .nav-desktop {
    order: 2;
    width: 100%;
    justify-content: center;
    gap: 4px;
    padding: 7px 0 9px;
    border-top: 1px solid rgba(43, 83, 197, .35);
  }
  header.site-header .nav-link,
  header.site-header .dropdown-trigger {
    font-variant: small-caps;
    letter-spacing: .07em;
    font-size: .82rem;
  }
}

/* --------------------------------------------------------------------------
   2. Barre + tiroir — mobile (< 992 px)
   -------------------------------------------------------------------------- */

header.site-header .hamburger {
  color: #1e3a8a;
}
header.site-header .hamburger:hover {
  background: #cad4f3;
}

/* Tiroir en bleu nuit, liens en crème. On ne touche ni à l'affichage ni
   au positionnement : uniquement les couleurs, la typographie et les
   bordures. */
nav.mobile-drawer {
  background: #1e3a8a;
}

nav.mobile-drawer .mobile-close {
  background: transparent;
  border: 1.5px solid rgba(228, 233, 249, .5);
  color: #e4e9f9;
}
nav.mobile-drawer .mobile-close:hover {
  background: rgba(43, 83, 197, .25);
  border-color: #2b53c5;
}

nav.mobile-drawer .mobile-nav-link {
  color: #e4e9f9;
  font-family: "Segoe UI", Arial, sans-serif;
  border-left: 3px solid transparent;
}
nav.mobile-drawer .mobile-nav-link:hover {
  background: rgba(255, 255, 255, .08);
  border-left-color: #2b53c5;
  padding-left: 11px;
}

nav.mobile-drawer .mobile-section-title {
  color: #e4e9f9;
  border-bottom: 1px solid rgba(43, 83, 197, .4);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

/* Bouton du tiroir : inversé pour rester lisible sur fond bleu nuit. */
nav.mobile-drawer .mobile-auth .btn.btn-primary {
  background: #e4e9f9;
  color: #1e3a8a;
  border-color: #2b53c5;
}
nav.mobile-drawer .mobile-auth .btn.btn-primary:hover {
  background: #ffffff;
  border-color: #446ad6;
}

/* --------------------------------------------------------------------------
   3. Pied de page — deux blocs asymétriques
   -------------------------------------------------------------------------- */

footer.site-footer {
  background: #e4e9f9;
  color: #28314a;
  border-top: 3px solid #2b53c5;
}

footer.site-footer .footer-brand {
  color: #1e3a8a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

footer.site-footer .footer-tagline {
  color: #28314a;
}

footer.site-footer .footer-heading {
  color: #14275e;
  font-family: Georgia, serif;
}

footer.site-footer .footer-links a,
footer.site-footer .footer-bottom-links a {
  color: #28314a;
  position: relative;
}
footer.site-footer .footer-links a:hover,
footer.site-footer .footer-bottom-links a:hover {
  color: #1e3a8a;
}

footer.site-footer .footer-bottom {
  border-top-color: #2b53c5;
}
footer.site-footer .footer-copy {
  color: #34426b;
}

/* Marque + phrase sur 2/3 à gauche ; les deux colonnes de liens
   resserrées à droite, en une colonne étroite et compacte. */
@media (min-width: 769px) {
  footer.site-footer .footer-grid {
    grid-template-columns: 2fr 1fr;
    column-gap: 44px;
    row-gap: 14px;
  }
  footer.site-footer .footer-grid > div:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  footer.site-footer .footer-grid > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  footer.site-footer .footer-grid > div:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
}

/* --------------------------------------------------------------------------
   4. Page « Ajouter mon entreprise »
   -------------------------------------------------------------------------- */

.auth-wrapper.ie-wrap .page-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: #1e3a8a;
}

/* Colonne unique : le bandeau d'arguments passe AU-DESSUS du formulaire
   (ordre visuel inversé, DOM inchangé). */
.auth-wrapper.ie-wrap .ie-side {
  order: -1;
  margin-bottom: 22px;
}
@media (min-width: 901px) {
  .auth-wrapper.ie-wrap .ie-grid {
    grid-template-columns: 1fr;
  }
  .auth-wrapper.ie-wrap .ie-side {
    display: flex;
    gap: 18px;
  }
  .auth-wrapper.ie-wrap .ie-side .ie-why {
    flex: 1;
    margin-top: 0;
  }
}

/* Le bandeau : fond doré pâle, filet doré. */
.auth-wrapper.ie-wrap .ie-why {
  background: #d1daf5;
  border: 1px solid #2b53c5;
}
.auth-wrapper.ie-wrap .ie-why h2 {
  font-family: Georgia, serif;
  color: #14275e;
}
.auth-wrapper.ie-wrap .ie-why p {
  color: #28314a;
}

.auth-wrapper.ie-wrap .ie-card {
  border-top: 3px solid #1e3a8a;
}

.auth-wrapper.ie-wrap .qf-section {
  color: #14275e;
  font-family: Georgia, serif;
  letter-spacing: .1em;
}
.auth-wrapper.ie-wrap .qf-section + .quote-lead-grid + .qf-section {
  border-top-color: #2b53c5;
}

.auth-wrapper.ie-wrap input:focus,
.auth-wrapper.ie-wrap select:focus,
.auth-wrapper.ie-wrap textarea:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, .15);
}

/* Bouton final marquant : pleine largeur. */
.auth-wrapper.ie-wrap .quote-lead-actions .btn.btn-primary {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-size: 1rem;
}
.auth-wrapper.ie-wrap .quote-lead-actions {
  flex-direction: column;
  align-items: stretch;
}
.auth-wrapper.ie-wrap .quote-lead-actions small {
  text-align: center;
}

/* --------------------------------------------------------------------------
   5. Animations sobres
   -------------------------------------------------------------------------- */

/* Soulignement doré qui s'étire au survol, dans l'en-tête et le pied de
   page. */
header.site-header .nav-link,
header.site-header .dropdown-trigger,
footer.site-footer .footer-links a,
footer.site-footer .footer-bottom-links a {
  position: relative;
}
header.site-header .nav-link::after,
header.site-header .dropdown-trigger::after,
footer.site-footer .footer-links a::after,
footer.site-footer .footer-bottom-links a::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -1px;
  height: 2px;
  background: #2b53c5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
header.site-header .nav-link:hover::after,
header.site-header .dropdown-trigger:hover::after,
footer.site-footer .footer-links a:hover::after,
footer.site-footer .footer-bottom-links a:hover::after {
  transform: scaleX(1);
}

/* Légère élévation de la carte du formulaire au survol / à la saisie. */
.auth-wrapper.ie-wrap .ie-card {
  transition: transform .2s ease;
}
.auth-wrapper.ie-wrap .ie-card:hover,
.auth-wrapper.ie-wrap .ie-card:focus-within {
  transform: translateY(-3px);
}

/* Apparition douce du bandeau d'arguments à l'arrivée sur la page. */
@keyframes ieWrapBandeauApparition {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-wrapper.ie-wrap .ie-side {
  animation: ieWrapBandeauApparition .5s ease both;
}

@media (prefers-reduced-motion: reduce) {
  header.site-header .nav-link::after,
  header.site-header .dropdown-trigger::after,
  footer.site-footer .footer-links a::after,
  footer.site-footer .footer-bottom-links a::after,
  .auth-wrapper.ie-wrap .ie-card {
    transition: none !important;
  }
  .auth-wrapper.ie-wrap .ie-side {
    animation: none !important;
  }
}
