/* 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 */
  .hero {
    background: linear-gradient(135deg, var(--bleu), var(--rose));
    height: 70vh;
  }
  
  /* 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);
 }
