/* ===== La boutique de la Bagagerie — styles personnalisés ===== */

.font-display {
  font-family: 'Zilla Slab', Georgia, serif;
}

body {
  font-family: 'Lato', system-ui, sans-serif;
}

/* --- Navigation --- */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1F2937;
  border-radius: 0.375rem;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.nav-link:hover {
  color: #1D3557;
  background-color: #F0F6FC;
}
.nav-link[aria-current="page"] {
  color: #1D3557;
  background-color: #E4EFFA;
}

/* --- Dropdown desktop --- */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15rem;
  padding: 0.5rem;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 40;
}
.group:hover .dropdown,
.group:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #374151;
  border-radius: 0.375rem;
}
.dropdown a:hover {
  background: #F0F6FC;
  color: #1D3557;
}

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  background: #1D3557;
  color: #ffffff;
}
.btn-primary:hover {
  background: #16324A;
}
.btn-accent {
  background: #49A3EE;
  color: #ffffff;
}
.btn-accent:hover {
  background: #2E8BD8;
}
.btn-outline {
  border: 1.5px solid #1D3557;
  color: #1D3557;
  background: transparent;
}
.btn-outline:hover {
  background: #F0F6FC;
}

/* --- Header au défilement --- */
.header-scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

/* --- Révélation au scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Cartes produit --- */
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

/* --- Accessibilité --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #49A3EE;
  outline-offset: 2px;
}

/* --- Lisibilité du texte sur image --- */
.hero-shadow {
  text-shadow: 0 2px 14px rgba(15, 23, 42, 0.45);
}