/* Palette personnalisée */
:root {
    --noir: #1D1D1B;
    --jaune: #FFD600;
    --rose: #EC008C;
    --bleu: #2E9AD6;
    --blanc: #FFFFFF;
  }

 /* Media block beside cards */
 .decor-media {
   width: 100%;
   aspect-ratio: 4 / 3; /* cohérence visuelle */
   overflow: hidden;
   border-radius: 1rem;
   background: #f8f9fa;
 }
 .decor-media .decor-img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
 }
  
  /* Hero / Carousel */
  .hero {
    height: 70vh;
    min-height: 420px;
  }
  .hero.carousel .carousel-inner,
  .hero.carousel .carousel-item {
    height: 100%;
  }
  .hero-overlay {
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    padding: 2rem 1rem;
  }
  .hero-slide-1 {
    background: linear-gradient(135deg, var(--bleu), var(--rose));
  }
  .hero-slide-2 {
    background: linear-gradient(135deg, var(--rose), var(--jaune));
  }
  .hero-slide-3 {
    background: linear-gradient(135deg, var(--noir), var(--bleu));
  }
  .hero .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 0;
  }
  .hero .carousel-indicators .active {
    background-color: var(--jaune);
  }
  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 8%;
  }
  
  /* Bouton funky */
  .btn-funky {
    background-color: var(--rose);
    border: none;
    transition: 0.3s;
  }
  .btn-funky:hover {
    background-color: var(--jaune);
    color: var(--noir) !important;
  }
  
  /* Cartes funky */
  .funky-card {
    border-radius: 1rem;
    background: var(--blanc);
    transition: 0.3s;
  }
  .funky-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }

  /* Logo navbar */
  .logo-img {
    height: 80px;
    width: auto;
  }

  /* Préchargeur infini */
  body.loading {
    overflow: hidden;
  }
  #preloader {
    position: fixed;
    inset: 0;
    background: var(--blanc);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    text-align: center;
  }
  .preloader-logo {
    position: absolute;
    top: 16px;
    left: 16px;
    height: 40px;
    width: auto;
  }
  .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top-color: var(--rose);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }

ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  /* background: rgba(255,255,255,0.05); */
  /* box-shadow: 0 8px 16px rgba(0,0,0,0.3); */
}

ul li {
  list-style: none;
}

ul li a {
  position: relative;
  /* display: block; */
  /*padding: 15px 25px;*/
  /*font-size: 1.2rem;*/
  /*font-weight: 600;*/
  /*text-decoration: none;*/
  color: #f8f9fa;
  transition: color 0.4s;
  z-index: 1;
}

ul li a::before,
ul li a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--rose);
  transform: scaleX(0);
  transition: transform 1s ease;
  z-index: -1;
}

ul li a::before {
  top: 0;
  left: 0;
  transform-origin: left;
}

ul li a::after {
  bottom: 0;
  right: 0;
  transform-origin: right;
}

ul li a:hover::before,
ul li a:hover::after {
  transform: scaleX(1);
}

 .decor-card {
   font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
   border: 1px solid #e9ecef !important; /* contour léger */
   --dx: 0px; /* offset horizontal */
   --dy: 0px; /* offset vertical */
   transform: translate(var(--dx), var(--dy));
   transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
 }
 .decor-card .card-title {
   font-weight: 700;
   letter-spacing: 0.2px;
 }
 .decor-card .card-text {
   font-size: 1rem;
   line-height: 1.8; /* aération */
   color: #495057;
 }
 .decor-card .card-text + .card-text { /* espacement entre paragraphes */
   margin-top: 0.85rem;
 }
.decor-card:hover { /* conserver le décalage en ajoutant un léger lift */
  transform: translate(var(--dx), calc(var(--dy) - 4px));
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  border-color: #dee2e6;
}
@media (min-width: 992px) {
  .decor-card .card-title { font-size: 1.5rem; }
}

/* Décalage diagonal des 4 cartes (désactivé sur mobile) */
@media (min-width: 768px) {
  .decor-section .row > .col-md-6:nth-child(1) .decor-card { --dx: -8px; --dy: -8px; }
  .decor-section .row > .col-md-6:nth-child(2) .decor-card { --dx: 8px;  --dy: -8px; }
  .decor-section .row > .col-md-6:nth-child(3) .decor-card { --dx: -8px; --dy: 8px; }
  .decor-section .row > .col-md-6:nth-child(4) .decor-card { --dx: 8px;  --dy: 8px; }
}

 /* Category thumbnails (vetements.php) */
 .category-thumb {
   width: 100%;
   aspect-ratio: 1 / 1;
   object-fit: cover;
   border-radius: 0.75rem;
   display: block;
   background: #f8f9fa;
   margin-bottom: 0.5rem;
 }

 /* Category cards states */
 .category-card {
   transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
 }
 .category-card:hover {
   transform: translateY(-2px);
   box-shadow: 0 10px 20px rgba(0,0,0,0.12);
 }
 .category-card.category-active {
   border: 2px solid var(--rose) !important;
   box-shadow: 0 0 0 4px rgba(236, 0, 140, 0.12);
 }

 /* ===== SIDEBAR FILTRES (categorie.php) ===== */
 .filters-sidebar {
   background: #fff;
   border: 1px solid #e9ecef;
   border-radius: 1rem;
   padding: 1.25rem;
 }

 .filter-section {
   border-top: 1px solid #e9ecef;
   padding-top: 1rem;
   margin-top: 1rem;
 }

 .filter-header {
   cursor: pointer;
   user-select: none;
 }
 .filter-header:hover h6 {
   color: var(--rose);
 }
 .filter-chevron {
   transition: transform 0.2s;
   font-size: 0.75rem;
   margin-top: 2px;
 }
 .collapsed .filter-chevron,
 [aria-expanded="false"] .filter-chevron {
   transform: rotate(-90deg);
 }

 .filter-options {
   max-height: 220px;
   overflow-y: auto;
   scrollbar-width: thin;
 }
 .filter-options::-webkit-scrollbar {
   width: 5px;
 }
 .filter-options::-webkit-scrollbar-thumb {
   background: #ccc;
   border-radius: 3px;
 }

 .filter-option {
   padding: 4px 0;
   cursor: pointer;
   font-size: 0.875rem;
   border-radius: 4px;
   transition: background 0.15s;
 }
 .filter-option:hover {
   background: #f8f9fa;
 }
 .filter-option-name {
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   max-width: 140px;
   display: inline-block;
 }

 .filter-options-sizes {
   display: flex;
   flex-wrap: wrap;
   gap: 6px;
 }
 .size-filter-btn {
   min-width: 44px;
   font-size: 0.8rem;
 }

 .filter-tag {
   font-size: 0.8rem;
   padding: 0.35em 0.65em;
 }

 /* Responsive: sidebar empilée sur mobile */
 @media (max-width: 991.98px) {
   .filters-sidebar {
     position: static !important;
     margin-bottom: 1rem;
   }
 }

/* Pied de page */
.footer-main {
  font-size: 0.9rem;
}

.footer-main h5 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-links,
.footer-contact {
  display: block !important;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li,
.footer-contact li {
  display: block !important;
  text-align: left;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.footer-links a,
.footer-contact a {
  display: inline-block;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--jaune);
}

.footer-contact .footer-label {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  display: block;
}

.footer-bottom {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

.footer-bottom .footer-tagline {
  color: rgba(255,255,255,0.65);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s, transform 0.2s;
}

.social-icons a:hover {
  color: var(--jaune);
  transform: translateY(-2px);
}

/* Pages légales */
.legal-content h2 {
  color: var(--noir);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 1rem;
}

.legal-content ul {
  display: block !important;
  text-align: left;
  list-style: disc;
  padding-left: 1.5rem;
}

.legal-content ul li {
  display: list-item !important;
  margin-bottom: 0.5rem;
}
