/* Harmonisé sur la couleur primaire #c2410c (favicon) — outils/design_harmoniser.py */
/* ==========================================================================
   carrosserier.ch — direction « Atelier industriel »
   Anthracite #37261f, orange brûlé #c2410c, jaune signalisation #f05110.
   Header plein anthracite à bande diagonale orange, logo à droite, nav à
   gauche, bouton jaune à coins coupés. Tiroir mobile anthracite, liens en
   capitales. Footer compact en une rangée, liens séparés par des barres
   orange, marque en pastille. Page d'inscription : fond gris clair strié,
   colonne d'arguments en bas en cartes orange, champs à bord épais.
   ========================================================================== */

/* ---------- Animations ---------- */
@keyframes carr-bande-glisse {
  from { background-position: 165% 0; }
  to   { background-position: 100% 0; }
}
@keyframes carr-apparition {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   HEADER DESKTOP
   ========================================================================== */
header.site-header.hdr-centered {
  background-color: #37261f;
  background-image: linear-gradient(115deg,
      transparent 0 40%,
      #a2360a 40% 46%,
      #c2410c 46% 52%,
      #f05110 52% 55%,
      #c2410c 55% 61%,
      transparent 61% 100%);
  background-size: 230% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  border-bottom: 3px solid #f05110;
  box-shadow: 0 6px 18px rgba(10, 10, 10, .35);
  animation: carr-bande-glisse .9s cubic-bezier(.2, .7, .3, 1) both;
}

/* Une seule rangée : le bloc nav passe à gauche, le bloc marque à droite */
header.site-header.hdr-centered .container {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Bloc de droite : logo, bouton, hamburger */
header.site-header.hdr-centered .hdr-centered-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 0 0 auto;
  padding: 0;
}

/* display piloté par le gabarit (masqué < 768 px) : on ne touche pas à cette
   propriété, seulement à la position pour la faire participer à la rangée */
header.site-header.hdr-centered .hdr-centered-auth {
  position: static;
  transform: none;
}

header.site-header.hdr-centered .brand {
  color: #ffffff;
  font-weight: 800;
  font-family: "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 1.1rem;
  gap: 10px;
}
header.site-header.hdr-centered .brand:hover { opacity: .85; }

header.site-header.hdr-centered .brand-logo {
  width: 40px;
  height: 40px;
  background: #ffffff;
  padding: 4px;
  border: 2px solid #f05110;
  border-radius: 8px;
}

/* Bloc de gauche : navigation (display piloté par le gabarit, masqué
   < 768 px — on ne le déclare pas ici pour ne pas annuler ce masquage) */
header.site-header.hdr-centered .hdr-centered-nav {
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  flex: 1 1 auto;
  border-top: none;
  padding: 0;
  margin: 0;
}

header.site-header.hdr-centered .hdr-centered-nav .nav-link {
  color: #ebe7e5;
  font-weight: 700;
  font-family: "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .04em;
  padding: 10px 2px;
  position: relative;
}
header.site-header.hdr-centered .hdr-centered-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 4px;
  height: 2px;
  background: #f05110;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
header.site-header.hdr-centered .hdr-centered-nav .nav-link:hover { color: #ffffff; }
header.site-header.hdr-centered .hdr-centered-nav .nav-link:hover::after { transform: scaleX(1); }

/* Menu déroulant « Nos cantons » */
header.site-header.hdr-centered .dropdown-trigger {
  background: #351203;
  color: #f05110;
  border: 2px solid #f05110;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .04em;
  border-radius: 4px;
  padding: 8px 14px;
}
header.site-header.hdr-centered .dropdown-trigger:hover { background: #c2410c; color: #ffffff; }

header.site-header.hdr-centered .dropdown-panel {
  background: #37261f;
  border: 2px solid #c2410c;
  border-radius: 6px;
}
header.site-header.hdr-centered .dropdown-item { color: #ebe7e5; }
header.site-header.hdr-centered .dropdown-item:hover { background: #513f37; }
header.site-header.hdr-centered .dropdown-item-keyword { color: #ffffff; }
header.site-header.hdr-centered .dropdown-item-sub { color: #9ca3af; }
header.site-header.hdr-centered .dropdown-arrow { color: #f05110; }

/* Bouton « Ajouter mon entreprise » : jaune, coins coupés */
header.site-header.hdr-centered .btn.btn-primary {
  background: #f05110;
  color: #37261f;
  border: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .82rem;
  min-height: 44px;
  padding: 0 20px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .18s ease, background .18s ease;
}
header.site-header.hdr-centered .btn.btn-primary:hover {
  background: #f2662d;
  transform: translateY(-3px);
}

/* Bouton « Connexion » (visiteur déjà inscrit) */
header.site-header.hdr-centered .hdr-centered-auth .btn.btn-outline {
  background: transparent;
  color: #f05110;
  border: 2px solid #f05110;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .78rem;
  min-height: 44px;
  padding: 0 16px;
}
header.site-header.hdr-centered .hdr-centered-auth .btn.btn-outline:hover {
  background: rgba(240, 81, 16, .12);
  color: #ffffff;
  border-color: #ffffff;
}

/* Hamburger jaune */
header.site-header.hdr-centered .hamburger { color: #f05110; }
header.site-header.hdr-centered .hamburger:hover { background: rgba(240, 81, 16, .18); }

/* ==========================================================================
   TIROIR MOBILE (mécanisme d'ouverture non touché : display/position/
   transform/visibility/overflow/width laissés au gabarit)
   ========================================================================== */
.mobile-drawer {
  background: #37261f;
  border-left: 3px solid #f05110;
  padding: 22px 18px;
}

.mobile-close {
  background: #351203;
  color: #f05110;
  border: 2px solid #f05110;
}
.mobile-close:hover { background: #c2410c; color: #ffffff; }

.mobile-section-title {
  color: #f05110;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: .08em;
  border-top: 2px solid #513f37;
  margin-top: 10px;
  padding-top: 16px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #ebe7e5;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .03em;
  border-bottom: 1px solid #513f37;
  border-radius: 0;
  padding: 12px 10px;
}
.mobile-nav-link:hover { background: #351203; color: #f05110; }

.mobile-auth {
  border-top: 2px solid #513f37;
  margin-top: 12px;
  padding-top: 16px;
}
.mobile-auth .btn.btn-primary {
  background: #f05110;
  color: #37261f;
  font-weight: 800;
  text-transform: uppercase;
  min-height: 44px;
  border: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.mobile-auth .btn.btn-primary:hover { background: #f2662d; }
.mobile-auth .btn.btn-outline {
  background: #ffffff;
  color: #c2410c;
  border: 2px solid #c2410c;
  font-weight: 800;
  text-transform: uppercase;
  min-height: 44px;
}
.mobile-auth .btn.btn-outline:hover { background: #fdeae3; }

/* ==========================================================================
   FOOTER — une seule rangée compacte
   ========================================================================== */
footer.site-footer.ftr-rich {
  background: #37261f;
  color: #dbd4d1;
  padding: 0;
  border-top: 3px solid #c2410c;
}

footer.site-footer.ftr-rich .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding-top: 16px;
  padding-bottom: 16px;
}
/* Marge de respiration à droite, pour ne pas passer sous le bouton de
   devis qui reste fixé en bas de l'écran (élément hors de cette feuille) */
@media (min-width: 641px) {
  footer.site-footer.ftr-rich .container { padding-right: 210px; }
}

/* Marque, en pastille */
footer.site-footer.ftr-rich .ftr-rich-top {
  border-bottom: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  gap: 14px;
}
footer.site-footer.ftr-rich .ftr-rich-brand {
  background: #c2410c;
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  gap: 8px;
}
footer.site-footer.ftr-rich .ftr-rich-brand .brand-logo {
  width: 30px;
  height: 30px;
  background: #ffffff;
  border-radius: 50%;
  padding: 3px;
}
footer.site-footer.ftr-rich .footer-brand {
  color: #ffffff;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
footer.site-footer.ftr-rich .footer-tagline {
  font-size: .76rem;
  color: #9ca3af;
  max-width: 260px;
}

/* Liens à plat, séparés par des barres orange */
footer.site-footer.ftr-rich .ftr-rich-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  flex: 1 1 auto;
  padding: 0;
}
footer.site-footer.ftr-rich .ftr-rich-grid > div:has(.footer-links:empty) { display: none; }
footer.site-footer.ftr-rich .ftr-rich-grid > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
footer.site-footer.ftr-rich .footer-heading {
  color: #f05110;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0;
  white-space: nowrap;
}
footer.site-footer.ftr-rich .footer-links {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
}
footer.site-footer.ftr-rich .footer-links a {
  color: #ebe7e5;
  font-size: .78rem;
  padding: 2px 10px;
  border-left: 2px solid #c2410c;
}
footer.site-footer.ftr-rich .footer-links a:first-child {
  border-left: none;
  padding-left: 0;
}
footer.site-footer.ftr-rich .footer-links a:hover { color: #f05110; }

/* Barre du bas, dans la même rangée */
footer.site-footer.ftr-rich .footer-bottom {
  border-top: none;
  padding: 0;
  flex: 0 0 auto;
  gap: 10px;
}
footer.site-footer.ftr-rich .footer-copy { color: #6b7280; font-size: .74rem; }
footer.site-footer.ftr-rich .footer-bottom-links a {
  color: #f05110;
  font-weight: 700;
  font-size: .78rem;
}
footer.site-footer.ftr-rich .footer-bottom-links a:hover { color: #ffffff; }

/* ==========================================================================
   PAGE « AJOUTER MON ENTREPRISE »
   ========================================================================== */
.ie-wrap .page-header h1 {
  color: #37261f;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-family: "Segoe UI", Arial, sans-serif;
}
.ie-wrap .page-header p { color: #695147; }

/* Formulaire en pleine largeur au-dessus, arguments en dessous */
.ie-wrap .ie-grid {
  grid-template-columns: 1fr;
  gap: 26px;
}

/* Formulaire large, sur fond gris clair strié */
.ie-wrap .ie-card.auth-card {
  max-width: none;
  background: repeating-linear-gradient(135deg,
      #fef8f6 0 18px,
      #f5f0ee 18px 36px);
  border: 3px solid #37261f;
  border-radius: 4px;
  padding: 28px;
  order: 1;
}

.ie-wrap .qf-section {
  color: #c2410c;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .1em;
  border-bottom: 3px solid #f05110;
  padding-bottom: 6px;
  display: inline-block;
}

.ie-wrap .quote-lead-grid { gap: 4px 18px; }

.ie-wrap .quote-field label {
  color: #37261f;
  font-weight: 700;
  font-size: .8rem;
}

/* Champs hauts, à bord épais */
.ie-wrap .ie-form input,
.ie-wrap .ie-form select,
.ie-wrap .ie-form textarea {
  min-height: 46px;
  border: 3px solid #37261f;
  border-radius: 3px;
  background: #ffffff;
  font-size: .95rem;
}
.ie-wrap .ie-form textarea { min-height: 100px; }
.ie-wrap .ie-form input:focus,
.ie-wrap .ie-form select:focus,
.ie-wrap .ie-form textarea:focus {
  border-color: #c2410c;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, .22);
}

.ie-wrap .quote-lead-actions .btn.btn-primary {
  background: #f05110;
  color: #37261f;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  min-height: 48px;
  padding: 0 26px;
  border: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .18s ease;
}
.ie-wrap .quote-lead-actions .btn.btn-primary:hover { transform: translateY(-3px); }
.ie-wrap .quote-lead-actions small { color: #8b6f64; }

/* Colonne d'arguments, en bas, en cartes orange */
.ie-wrap .ie-side {
  order: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ie-wrap .ie-side .ie-why {
  background: #c2410c;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  margin-top: 0;
  animation: carr-apparition .5s ease both;
}
.ie-wrap .ie-side .ie-why:nth-child(2) { animation-delay: .08s; }
.ie-wrap .ie-side .ie-why h2 {
  color: #ffffff;
  text-transform: uppercase;
  font-size: .92rem;
}
.ie-wrap .ie-side .ie-why p,
.ie-wrap .ie-side .ie-why li { color: #fde2d7; }

@media (max-width: 700px) {
  .ie-wrap .ie-side { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MOUVEMENT RÉDUIT — on coupe tout
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  header.site-header.hdr-centered {
    animation: none;
    background-position: 100% 0;
  }
  header.site-header.hdr-centered .btn.btn-primary,
  .ie-wrap .quote-lead-actions .btn.btn-primary,
  header.site-header.hdr-centered .hdr-centered-nav .nav-link::after {
    transition: none;
  }
  .ie-wrap .ie-side .ie-why {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
