/* Harmonisé sur la couleur primaire #0e7490 (favicon) — outils/design_harmoniser.py */
/* =========================================================================
   Ferblanterie Couverture — habillage « toiture zinc »
   Bleu ardoise (var(--primary) = #0e7490), zinc #cbdce1, cuivre #118bac.
   Le cuivre porte les appels à l'action, l'ardoise structure, le zinc
   habille les surfaces neutres. Typographie système robuste (Segoe UI).
   ========================================================================= */

:root {
  --zinc: #cbdce1;
  --zinc-clair: #e8f8fd;
  --ardoise-fonce: #073643;   /* fond profond du tiroir et du pied de page */
  --cuivre: #118bac;
  --cuivre-pale: #e1f6fc;     /* panneau d'arguments, page d'inscription */
  --cuivre-texte: #0c627a;    /* titres sur fond pâle */
}

/* ── Une seule fois : bande cuivre qui s'étire, et l'élévation au survol ── */
@keyframes fc-etirer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fc-apparaitre { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* =========================== HEADER (desktop) =========================== */
header.site-header.hdr-classic {
  position: relative;
  background: var(--zinc);
  border-bottom: 1px solid #a9c4cb;
  box-shadow: none;
}
header.site-header.hdr-classic::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--cuivre);
}
header.site-header.hdr-classic .header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: auto;
  min-height: 68px;
  padding-top: 5px;
  gap: 18px;
}

/* Logo à gauche, encadré cuivre */
header.site-header.hdr-classic .brand {
  color: var(--primary-dark);
  font-family: "Segoe UI", Verdana, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
}
header.site-header.hdr-classic .brand-logo {
  border: 2px solid var(--cuivre);
  border-radius: 8px;
  background: #fff;
  padding: 2px;
  transition: transform .18s ease;
}
header.site-header.hdr-classic .brand:hover .brand-logo { transform: translateY(-2px); }

/* Nav centrée, liseré cuivre qui s'étire au survol */
header.site-header.hdr-classic .nav-desktop {
  justify-content: center;
}
header.site-header.hdr-classic .nav-link {
  position: relative;
  color: var(--primary-dark);
  font-weight: 600;
}
header.site-header.hdr-classic .nav-link:hover { background: transparent; color: var(--primary); }
header.site-header.hdr-classic .nav-link::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 3px;
  height: 2px;
  background: var(--cuivre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
header.site-header.hdr-classic .nav-link:hover::after { transform: scaleX(1); }

/* Bouton « Nos cantons » : reste bleu ardoise, forme pilule, légère élévation */
header.site-header.hdr-classic .dropdown-trigger {
  border-radius: 999px;
  padding: 8px 16px 8px 15px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
header.site-header.hdr-classic .dropdown-trigger:hover { transform: translateY(-2px); }
header.site-header.hdr-classic .dropdown-panel {
  border-top: 3px solid var(--cuivre);
  border-radius: 12px;
}
header.site-header.hdr-classic .dropdown.open .dropdown-panel { animation: fc-apparaitre .18s ease both; }
header.site-header.hdr-classic .dropdown-item:hover { background: var(--cuivre-pale); }
header.site-header.hdr-classic .dropdown-item-keyword { color: var(--primary-dark); }

/* Bouton « + Ajouter mon entreprise » : bleu ardoise, arête cuivre, élévation */
header.site-header.hdr-classic .nav-desktop .btn.btn-primary {
  border-radius: 999px;
  border-bottom: 2px solid var(--cuivre-texte);
  padding: 8px 18px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
header.site-header.hdr-classic .nav-desktop .btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -4px rgba(7, 54, 67,.35);
}

header.site-header.hdr-classic .hamburger { color: var(--primary-dark); }
header.site-header.hdr-classic .hamburger:hover { background: var(--zinc-clair); }

/* =========================== TIROIR MOBILE =========================== */
.mobile-drawer {
  background: var(--ardoise-fonce);
  color: var(--zinc-clair);
}
.mobile-close {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.mobile-close:hover { background: rgba(255,255,255,.22); }

.mobile-nav-link {
  color: var(--zinc-clair);
  border-bottom: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-nav-link:hover { background: rgba(255,255,255,.08); }

.mobile-section-title {
  color: var(--cuivre);
  opacity: .95;
}

.mobile-auth .btn.btn-primary {
  background: var(--cuivre);
  border-color: var(--cuivre);
  min-height: 44px;
}
.mobile-auth .btn.btn-primary:hover { background: var(--cuivre-texte); border-color: var(--cuivre-texte); }
.mobile-auth .btn.btn-outline {
  background: transparent;
  color: var(--zinc-clair);
  border-color: rgba(255,255,255,.3);
  min-height: 44px;
}
.mobile-auth .btn.btn-outline:hover { background: rgba(255,255,255,.1); }

/* ============================== FOOTER ============================== */
footer.site-footer.ftr-columns {
  background: var(--ardoise-fonce);
  color: #a1e4f6;
}
footer.site-footer.ftr-columns .footer-inner { padding-bottom: 0; }

/* Deux blocs asymétriques : la marque à part (1/3), les liens en deux
   colonnes (2/3) — la grille de base est déjà 1/3-2/3, on affirme le panneau */
footer.site-footer.ftr-columns .footer-grid {
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
}
footer.site-footer.ftr-columns .footer-grid > div:first-child {
  background: rgba(14, 116, 144,.28);
  border: 1px solid rgba(203, 220, 225,.18);
  border-left: 4px solid var(--cuivre);
  border-radius: 10px;
  padding: 18px 20px;
}
footer.site-footer.ftr-columns .footer-brand {
  color: #fff;
  font-family: "Segoe UI", Verdana, Arial, sans-serif;
}
footer.site-footer.ftr-columns .footer-tagline { color: #9fc4ce; }
footer.site-footer.ftr-columns .footer-grid > div:first-child .btn.btn-primary {
  background: var(--cuivre);
  border-color: var(--cuivre);
  border-radius: 999px;
  transition: transform .18s ease, background .18s ease;
}
footer.site-footer.ftr-columns .footer-grid > div:first-child .btn.btn-primary:hover {
  background: var(--cuivre-texte);
  border-color: var(--cuivre-texte);
  transform: translateY(-2px);
}

footer.site-footer.ftr-columns .footer-heading {
  color: var(--zinc-clair);
  border-bottom: 2px solid var(--cuivre);
  padding-bottom: 6px;
  display: inline-block;
}
footer.site-footer.ftr-columns .footer-links a { color: #c3dbe2; position: relative; }
footer.site-footer.ftr-columns .footer-links a::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: var(--cuivre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
footer.site-footer.ftr-columns .footer-links a:hover { color: #fff; }
footer.site-footer.ftr-columns .footer-links a:hover::after { transform: scaleX(1); }

/* Bas de page cuivre */
footer.site-footer.ftr-columns .footer-bottom {
  background: var(--cuivre);
  border-top: none;
  margin: 24px -20px 0;
  padding: 14px 20px;
  border-radius: 10px 10px 0 0;
}
footer.site-footer.ftr-columns .footer-copy { color: #e5f7fc; }
footer.site-footer.ftr-columns .footer-bottom-links a { color: #e5f7fc; }
footer.site-footer.ftr-columns .footer-bottom-links a:hover { color: #fff; text-decoration: underline; }

/* ==================== PAGE « AJOUTER MON ENTREPRISE » ==================== */
.ie-wrap .page-header h1 { color: var(--primary-dark); }
.ie-wrap .page-header { border-bottom: 3px solid var(--cuivre); padding-bottom: 14px; }

.ie-card {
  border-top: 4px solid var(--primary);
  border-radius: 12px;
}
.ie-form .qf-section {
  color: var(--primary-dark);
  border-bottom: 1px dashed var(--zinc);
  padding-bottom: 6px;
}

/* Champs à bord bleu ardoise */
.ie-form input,
.ie-form select,
.ie-form textarea {
  border-color: var(--primary);
  min-height: 44px;
}
.ie-form textarea { min-height: 96px; }
.ie-form input:focus,
.ie-form select:focus,
.ie-form textarea:focus {
  border-color: var(--cuivre);
  box-shadow: 0 0 0 3px rgba(17, 139, 172,.16);
}

/* Bouton cuivre pour la validation */
.ie-form button.btn-primary {
  background: var(--cuivre);
  border-color: var(--cuivre);
  min-height: 46px;
  border-radius: 8px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.ie-form button.btn-primary:hover {
  background: var(--cuivre-texte);
  border-color: var(--cuivre-texte);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -6px rgba(12, 98, 122,.4);
}

/* Arguments cuivre pâle, à droite */
.ie-side .card.ie-why {
  background: var(--cuivre-pale);
  border: 1px solid #b3e9f8;
  border-radius: 12px;
  animation: fc-apparaitre .4s ease both;
}
.ie-side .card.ie-why h2 { color: var(--cuivre-texte); }
.ie-side .card.ie-why ul { list-style: none; padding-left: 0; }
.ie-side .card.ie-why ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}
.ie-side .card.ie-why ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 9px; height: 9px;
  background: var(--cuivre);
  border-radius: 2px;
}
.ie-side .card.ie-why p { color: #0d6982; }

/* ================================ MOBILE ================================ */
@media (max-width: 768px) {
  footer.site-footer.ftr-columns .footer-grid { grid-template-columns: 1fr; }
  footer.site-footer.ftr-columns .footer-grid > div:first-child { border-left-width: 4px; }
}
@media (max-width: 640px) {
  header.site-header.hdr-classic .header-inner { min-height: 60px; gap: 10px; }
  header.site-header.hdr-classic .brand { font-size: 1rem; }
  footer.site-footer.ftr-columns .footer-bottom { margin: 20px -20px 0; }
}

/* Coupe toute animation pour qui la demande */
@media (prefers-reduced-motion: reduce) {
  header.site-header.hdr-classic .brand-logo,
  header.site-header.hdr-classic .nav-link::after,
  header.site-header.hdr-classic .dropdown-trigger,
  header.site-header.hdr-classic .nav-desktop .btn.btn-primary,
  header.site-header.hdr-classic .dropdown.open .dropdown-panel,
  footer.site-footer.ftr-columns .footer-grid > div:first-child .btn.btn-primary,
  footer.site-footer.ftr-columns .footer-links a::after,
  .ie-form button.btn-primary,
  .ie-side .card.ie-why {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

