/* Harmonisé sur la couleur primaire #6d28d9 (favicon) — outils/design_harmoniser.py */
/* ============================================================
   École de Danse — direction « Scène »
   Violet #6d28d9, rose #cdb5f2, noir #180830.
   Marque en Georgia italique, reste en Segoe UI (police système).
   Quatre zones : en-tête, tiroir mobile, pied de page, page d'inscription.
   ============================================================ */

/* ---------- EN-TÊTE DESKTOP ---------- */

header.site-header.hdr-centered {
  background: #180830;
  border-bottom: 1px solid #2c0f58;
  overflow: hidden;
}

/* Liseré dégradé qui glisse en haut du bandeau. */
header.site-header.hdr-centered::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6d28d9, #cdb5f2, #6d28d9, #cdb5f2);
  background-size: 200% 100%;
  animation: ecd-glisse 7s linear infinite;
}

@keyframes ecd-glisse {
  from { background-position: 0 0; }
  to   { background-position: 200% 0; }
}

/* Rangée du haut : logo à droite, bouton et menu au fil de la barre. */
header.site-header.hdr-centered .hdr-centered-top {
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 14px;
}

header.site-header.hdr-centered .hdr-centered-auth {
  position: static;
  transform: none;
}

header.site-header.hdr-centered .brand {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.5rem;
  color: #cdb5f2;
  letter-spacing: -0.01em;
}
header.site-header.hdr-centered .brand:hover { color: #fff; opacity: 1; }

header.site-header.hdr-centered .brand-logo {
  border-radius: 50%;
  box-shadow: 0 0 0 2px #cdb5f2, 0 0 0 4px rgba(205, 181, 242, 0.25);
}

/* Rangée du bas : navigation à gauche. */
header.site-header.hdr-centered .hdr-centered-nav {
  justify-content: flex-start;
  border-top: 1px solid #2c0f58;
}

header.site-header.hdr-centered .hdr-centered-nav .nav-link {
  position: relative;
  color: #d4cbe1;
}
header.site-header.hdr-centered .hdr-centered-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  background: #cdb5f2;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
header.site-header.hdr-centered .hdr-centered-nav .nav-link:hover {
  background: transparent;
  color: #fff;
}
header.site-header.hdr-centered .hdr-centered-nav .nav-link:hover::after {
  transform: scaleX(1);
}

/* Bouton « Nos cantons » : violet, arrondi. */
header.site-header.hdr-centered .dropdown-trigger {
  background: #6d28d9;
  border-radius: 999px;
  font-weight: 700;
}
header.site-header.hdr-centered .dropdown-trigger:hover {
  background: #45188b;
}

header.site-header.hdr-centered .dropdown-panel {
  border-color: #f2ebfc;
  border-top: 3px solid #cdb5f2;
}
header.site-header.hdr-centered .dropdown-item:hover { background: #efe8fb; }
header.site-header.hdr-centered .dropdown-item-keyword { color: #4b1b97; }

/* Bouton « + Ajouter mon entreprise » : rose sur noir, arrondi, texte sombre pour le contraste. */
header.site-header.hdr-centered .hdr-centered-auth .btn-primary {
  background: #cdb5f2;
  border-color: #cdb5f2;
  color: #2d105b;
  border-radius: 999px;
  font-weight: 700;
  min-height: 44px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
header.site-header.hdr-centered .hdr-centered-auth .btn-primary:hover {
  background: #dccbf6;
  border-color: #dccbf6;
  color: #2d105b;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(205, 181, 242, 0.55);
}

header.site-header.hdr-centered .hamburger { color: #cdb5f2; }
header.site-header.hdr-centered .hamburger:hover { background: rgba(205, 181, 242, 0.12); }

/* Lien « Connexion » (visible pour un compte déjà créé) : contour rose, assorti au bouton plein. */
header.site-header.hdr-centered .hdr-centered-auth .btn-outline {
  background: transparent;
  border-color: #cdb5f2;
  color: #cdb5f2;
  border-radius: 999px;
  min-height: 44px;
}
header.site-header.hdr-centered .hdr-centered-auth .btn-outline:hover {
  background: rgba(205, 181, 242, 0.14);
  border-color: #fff;
  color: #fff;
}

/* ---------- TIROIR MOBILE ---------- */

.mobile-overlay { background: rgba(45, 16, 91, 0.55); }

.mobile-drawer {
  background: #180830;
  border-left: 1px solid #2c0f58;
}

.mobile-close {
  background: rgba(205, 181, 242, 0.15);
  color: #cdb5f2;
}
.mobile-close:hover { background: rgba(205, 181, 242, 0.28); }

.mobile-nav-link {
  color: #e7dbf9;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-nav-link:hover { background: rgba(205, 181, 242, 0.12); color: #cdb5f2; }

.mobile-section-title {
  color: #cdb5f2;
  border-top: 1px solid #2c0f58;
  margin-top: 6px;
}

.mobile-auth .btn-primary {
  background: #cdb5f2;
  border-color: #cdb5f2;
  color: #2d105b;
  border-radius: 999px;
  font-weight: 700;
  min-height: 46px;
}
.mobile-auth .btn-primary:hover { background: #dccbf6; border-color: #dccbf6; }

.mobile-auth .btn-outline {
  background: transparent;
  border-color: #cdb5f2;
  color: #cdb5f2;
  border-radius: 999px;
  min-height: 46px;
}
.mobile-auth .btn-outline:hover { background: rgba(205, 181, 242, 0.14); }

/* ---------- PIED DE PAGE ---------- */

footer.site-footer.ftr-columns {
  background: linear-gradient(180deg, #311263 0%, #2d105b 100%);
  color: #d3bef4;
}

/* Trois colonnes, marque déplacée à droite pour répondre au logo du header
   (uniquement au-delà du point de rupture : en dessous, la pile verticale
   d'origine reste en une colonne). */
@media (min-width: 769px) {
  footer.site-footer.ftr-columns .footer-grid {
    grid-template-columns: 1fr 1fr 1.2fr;
  }
  footer.site-footer.ftr-columns .footer-grid > div:nth-child(1) { order: 3; text-align: right; }
  footer.site-footer.ftr-columns .footer-grid > div:nth-child(2) { order: 1; }
  footer.site-footer.ftr-columns .footer-grid > div:nth-child(3) { order: 2; }
}

footer.site-footer.ftr-columns .footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.3rem;
  color: #cdb5f2;
}
footer.site-footer.ftr-columns .footer-tagline { color: #d3bef4; }

footer.site-footer.ftr-columns .footer-grid > div:nth-child(1) .btn-primary {
  background: #cdb5f2;
  border-color: #cdb5f2;
  color: #2d105b;
  border-radius: 999px;
  font-weight: 700;
  min-height: 44px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
footer.site-footer.ftr-columns .footer-grid > div:nth-child(1) .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(205, 181, 242, 0.5);
}

footer.site-footer.ftr-columns .footer-heading { color: #cdb5f2; }

footer.site-footer.ftr-columns .footer-links a {
  position: relative;
  color: #d3bef4;
}
footer.site-footer.ftr-columns .footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: #cdb5f2;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s 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 rose. */
footer.site-footer.ftr-columns .footer-bottom {
  margin-top: 28px;
  padding: 14px 20px;
  border-radius: 12px;
  border-top: none;
  background: linear-gradient(120deg, #cdb5f2, #c9b0f1);
}
footer.site-footer.ftr-columns .footer-copy { color: #2d105b; }
footer.site-footer.ftr-columns .footer-bottom-links a { color: #2d105b; font-weight: 600; }
footer.site-footer.ftr-columns .footer-bottom-links a:hover { color: #180830; }

/* ---------- PAGE « AJOUTER MON ENTREPRISE » ---------- */

.ie-wrap .page-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: #4b1b97;
}

/* Bandeau dégradé au-dessus, formulaire sur fond blanc en dessous. */
.ie-wrap .ie-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ie-wrap .ie-side {
  order: -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 26px;
  border-radius: 18px;
  background: linear-gradient(120deg, #6d28d9 0%, #561ead 55%, #cdb5f2 100%);
  box-shadow: 0 14px 30px -14px rgba(109, 40, 217, 0.5);
}
.ie-wrap .ie-side .ie-why {
  flex: 1 1 260px;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}
.ie-wrap .ie-side .ie-why:hover { box-shadow: none; }
.ie-wrap .ie-side .ie-why h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: #fff;
}
.ie-wrap .ie-side .ie-why p,
.ie-wrap .ie-side .ie-why li { color: rgba(255, 255, 255, 0.94); }

.ie-wrap .ie-card {
  order: 1;
  margin-top: 0;
  background: #fff;
  border: 1px solid #f2ebfc;
  border-top: 4px solid #6d28d9;
  border-radius: 18px;
}

.ie-wrap .qf-section {
  color: #6d28d9;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  text-transform: none;
  font-size: 0.95rem;
}
.ie-wrap .qf-section + .quote-lead-grid + .qf-section { border-top-color: #e7dbf9; }

.ie-wrap .ie-form input,
.ie-wrap .ie-form select,
.ie-wrap .ie-form textarea {
  border-radius: 14px;
  border-color: #e7dbf9;
  min-height: 44px;
}
.ie-wrap .ie-form textarea { min-height: 110px; }
.ie-wrap .ie-form input:focus,
.ie-wrap .ie-form select:focus,
.ie-wrap .ie-form textarea:focus {
  border-color: #6d28d9;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.18);
}

.ie-wrap .quote-lead-actions .btn-primary {
  background: #6d28d9;
  border-color: #6d28d9;
  border-radius: 12px;
  min-height: 46px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ie-wrap .quote-lead-actions .btn-primary:hover {
  background: #45188b;
  border-color: #45188b;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(109, 40, 217, 0.5);
}

/* ---------- ADAPTATIONS MOBILES ---------- */

@media (max-width: 600px) {
  header.site-header.hdr-centered .brand { font-size: 1.2rem; }
}

/* ---------- MOUVEMENT RÉDUIT ---------- */

@media (prefers-reduced-motion: reduce) {
  header.site-header.hdr-centered::before { animation: none; }
  header.site-header.hdr-centered .hdr-centered-nav .nav-link::after,
  footer.site-footer.ftr-columns .footer-links a::after,
  header.site-header.hdr-centered .hdr-centered-auth .btn-primary,
  .mobile-auth .btn-primary,
  footer.site-footer.ftr-columns .footer-grid > div:nth-child(1) .btn-primary,
  .ie-wrap .quote-lead-actions .btn-primary {
    transition: none;
  }
  header.site-header.hdr-centered .hdr-centered-auth .btn-primary:hover,
  footer.site-footer.ftr-columns .footer-grid > div:nth-child(1) .btn-primary:hover,
  .ie-wrap .quote-lead-actions .btn-primary:hover {
    transform: none;
  }
}

