/* Layout principal pour coller le footer en bas */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* JARVIS reste désactivé dans le CRM pour le moment */
body.crm-body #lrf-web-jarvis {
  display: none !important;
}

main {
  flex: 1;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header / Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-image: none;
  background-size: cover;
  background-position: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: #FFD700 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 215, 0, 0.8);
  letter-spacing: 0.08em;
}

header nav a {
  transition: var(--transition-smooth);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  color: #000000 !important;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

header nav a:hover {
  background-color: #FFD700 !important;
  color: #000000 !important;
  text-shadow: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

header nav a:active,
header nav a.active {
  background-color: #FFD700 !important;
  color: #000000 !important;
  text-shadow: none;
}

.hero-banner {
  padding: 160px 0 80px;
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--color-white);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 37, 48, 0.7);
  z-index: 1;
}

.hero-banner .container {
  position: relative;
  z-index: 2;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  padding: 0.5rem;
}

.burger-btn span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: #000000;
  transition: var(--transition-smooth);
}

.burger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

@media (max-width: 900px) {
  header nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem !important;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  header nav ul.active { right: 0; }
  header nav ul.active a { color: #000000 !important; text-shadow: none; }
  header nav ul.active a:hover { background-color: #FFD700 !important; color: #000000 !important; }
  .burger-btn { display: flex; }

  /* CRM smartphone : aucun logo LRF flottant/central sur la page. */
  html body.crm-body:not(.crm-menu-open) aside.crm-sidebar > .sidebar-brand {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Le logo peut rester dans le panneau uniquement lorsque le menu est réellement ouvert. */
  html body.crm-body.crm-menu-open aside.crm-sidebar > .sidebar-brand {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.crm-body .crm-mobile-logo,
  body.crm-body #crm-mobile-logo,
  body.crm-body .lrf-mobile-logo {
    display: none !important;
  }

  body.crm-body .lrf-mobile-actions {
    display: none !important;
  }

  body.crm-body {
    padding-bottom: 0 !important;
  }
}

footer {
  background-image: none;
  background-size: cover;
  background-position: center;
  padding: 3rem 0 2rem;
  margin-top: auto;
}

footer p {
  color: #000000 !important;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.card-premium, .card, .partner-card, .inspiration-card, .realisation-card, #grid-catalogues > div {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #FFFFFF;
}

.card-premium:hover, .card:hover, .partner-card:hover, .inspiration-card:hover, .realisation-card:hover, #grid-catalogues > div:hover {
  border-color: #FFD700;
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.35), 0 8px 25px rgba(0, 0, 0, 0.04);
}

.card-premium.is-selected, .card.is-selected, .partner-card.is-selected, .inspiration-card.is-selected, .realisation-card.is-selected, #grid-catalogues > div.is-selected {
  border-color: #FFD700 !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.5), 0 8px 25px rgba(0, 0, 0, 0.04) !important;
}

body:has(#grid-tarifs) #login-section { max-width: 560px !important; }
body:has(#grid-tarifs) .pro-login-grid { grid-template-columns: minmax(0, 1fr) 190px !important; }
body:has(#grid-tarifs) #pro-dept { width: 100% !important; min-width: 0 !important; }

@media (max-width: 600px) {
  body:has(#grid-tarifs) .pro-login-grid { grid-template-columns: 1fr !important; }

  /* CRM : une vraie barre de recherche mobile, sans grand rectangle vide */
  body.crm-body .crm-toolbar { gap:.7rem!important;padding:.8rem!important;align-items:stretch!important; }
  body.crm-body .crm-toolbar .search-wrapper { flex:0 0 100%!important;min-width:0!important;width:100%!important;height:auto!important;min-height:0!important; }
  body.crm-body .crm-toolbar .search-box { min-height:48px!important;height:48px!important;padding:.55rem .8rem!important;border-radius:12px!important;align-items:center!important; }
  body.crm-body .crm-toolbar .search-box input { min-height:0!important;height:32px!important;padding:0!important;font-size:16px!important;line-height:32px!important; }
  body.crm-body .crm-toolbar .search-box span { flex:0 0 auto!important;font-size:1rem!important; }
  body.crm-body .crm-toolbar .select-filters { width:100%!important;display:grid!important;grid-template-columns:1fr!important;gap:.55rem!important; }
  body.crm-body .crm-toolbar .crm-select { width:100%!important;min-height:46px!important; }
}

/* Contact public : associer les logos selon l'adresse e-mail, pas selon l'ordre des cartes */
body:not(.crm-body) .agent-stack > .agent-info-card {
  position: relative !important;
  padding-right: 6.8rem !important;
  min-height: 7.2rem;
}

body:not(.crm-body) .agent-stack > .agent-info-card::after {
  content: '';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 4.7rem;
  height: 4.7rem;
  border-radius: 50%;
  border: 2px solid #D4AF37;
  background-color: #fff;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 5px 14px rgba(0,0,0,.18), 0 0 0 3px rgba(255,255,255,.85);
}

body:not(.crm-body) .agent-stack > .agent-info-card:has(a[href^="mailto:jerome@leroyfactory.fr"])::after {
  background-image: url('../jeromelogo.png?v=20260904-contact3');
}

body:not(.crm-body) .agent-stack > .agent-info-card:has(a[href^="mailto:coryne@leroyfactory.fr"])::after {
  background-image: url('../compat/corynelogo-20260903.png');
}

@media (max-width: 600px) {
  body:not(.crm-body) .agent-stack > .agent-info-card {
    padding-right: 7.6rem !important;
    min-height: 8.4rem;
  }

  body:not(.crm-body) .agent-stack > .agent-info-card::after {
    width: 5.6rem;
    height: 5.6rem;
    top: 1rem;
    right: 1rem;
  }

  body:not(.crm-body) .agent-stack > .agent-info-card h3 {
    max-width: calc(100% - 1rem);
  }
}


/* Onglet Promo Cersaie 2026 : texte simple, sans asset. */
html body .main-nav > li > a.lrf-promo-cersaie-tab {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: .62rem .35rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
  letter-spacing: .035em !important;
  line-height: 1 !important;
  transform: none !important;
}
html body .main-nav > li > a.lrf-promo-cersaie-tab::before,
html body .main-nav > li > a.lrf-promo-cersaie-tab::after {
  content: none !important;
  display: none !important;
}
html body .main-nav > li > a.lrf-promo-cersaie-tab:hover,
html body .main-nav > li > a.lrf-promo-cersaie-tab:focus {
  color: #FFE36E !important;
  background: transparent !important;
  box-shadow: inset 0 -2px 0 rgba(255,215,0,.95) !important;
}
@media (max-width: 900px) {
  html body .main-nav > li > a.lrf-promo-cersaie-tab {
    min-height: 46px !important;
    padding: .72rem 1.1rem !important;
    font-size: 1.08rem !important;
  }
}

