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

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

main {
  flex: 1;
}

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

/* Header / Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-image: url('../img/bandeau01.png');
  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 LE ROY FACTORY : Or vif, brillant et lumineux */
.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;
}

/* Onglets du menu : Noirs, plus grands et bien lisibles */
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;
}

/* Bannière Hero commune pour les pages intérieures */
.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;
}

/* Menu Burger & Responsive */
.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);
}

/* Animation des barres du menu burger en croix (X) */
.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;
  }
}

/* Footer : Bandeau fleuri avec texte en noir */
footer {
  background-image: url('../img/bandeau01.png');
  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);
}

/* --- EFFET CHIC : TRAIT DORÉ OR VIF & SURBRILLANCE SANS CHANGEMENT DE FOND --- */
.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;
}
