/* =====================================================================
   Visuels créés avec Canva (public/img/canva) : bandeau d'accueil et
   photos des catégories. Sans ces fichiers, le site garde son ancien rendu.
   ===================================================================== */

/* Bandeau d'accueil avec photo */
.hero.hero-photo {
  background:
    linear-gradient(90deg, #070c2a 0%, rgba(7, 12, 42, .94) 34%, rgba(7, 12, 42, .45) 62%, rgba(7, 12, 42, 0) 100%),
    url("/static/img/canva/hero.jpg?v=2") right center / cover no-repeat,
    #070c2a;
}
.hero.hero-photo::after { display: none; }
.hero-photo .hero-grid { grid-template-columns: minmax(0, 600px); min-height: 400px; align-content: center; }

/* Cartes de catégories avec photo */
.cat-card.has-photo { padding-top: 0; }
.cat-card.has-photo::after { display: none; }
.cat-photo { display: block; height: 170px; margin: 0 -24px 0; overflow: hidden; background: #070c2a; }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card.has-photo:hover .cat-photo img { transform: scale(1.06); }
.cat-card.has-photo .cat-icon { margin-top: -28px; box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(0, 0, 0, .25); }

@media (max-width: 1024px) {
  .hero-photo .hero-grid { min-height: 340px; }
}
@media (max-width: 680px) {
  .hero.hero-photo {
    background:
      linear-gradient(180deg, rgba(7, 12, 42, .9) 0%, rgba(7, 12, 42, .78) 55%, rgba(7, 12, 42, .92) 100%),
      url("/static/img/canva/hero.jpg?v=2") 70% center / cover no-repeat,
      #070c2a;
  }
  .hero-photo .hero-grid { min-height: 0; }
  .cat-photo { height: 140px; }
}
