/* NightCode V11.48 — retour de la carte d'origine V11.35, depuis le ZIP client.
   Un seul modèle pour /catalogue et scripts.php ; styles contenus dans le catalogue. */
.nc-v1148-catalogue,
body.nc-catalogue-v4 .nc-cat-wrap{
  width:min(1420px,calc(100% - 48px)) !important;
  max-width:1420px !important;
  margin-inline:auto !important;
  padding:112px 0 80px !important;
  box-sizing:border-box;
}
.nc-v1148-page-title,.nc-catalogue-v4 .nc-cat-head{margin:0 0 24px!important}
.nc-v1148-page-title>span{color:#fa5660;font:800 11px/1.5 Outfit,system-ui,sans-serif;letter-spacing:.16em}
.nc-v1148-page-title h1{font:800 clamp(34px,4.2vw,53px)/1.08 Outfit,system-ui,sans-serif;letter-spacing:-.03em;margin:7px 0 10px;color:#fff}
.nc-v1148-page-title p{font:400 15px/1.6 Outfit,system-ui,sans-serif;color:#b4b4bb;margin:0}
body.nc-catalogue-v4 .nc-cat-tools{display:none!important} /* la maquette originale n'a pas ce grand panneau */
body.nc-catalogue-v4 .nc-cat-head h1{font-family:Outfit,system-ui,sans-serif!important}
body.nc-catalogue-v4 .nc-cat-head p{max-width:65ch}
.nc-v1148-grid,
body.nc-catalogue-v4 .nc-v1148-grid{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;padding:0!important;align-items:stretch;
}
/* Normalize the one extra wrapper needed for scripts.php client-side sorting */
.nc-cat-card-wrap.nc-cat-card{display:block!important;min-width:0;overflow:visible!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important}
.nc-v1148-card{
 min-width:0;display:flex;flex-direction:column;overflow:hidden;isolation:isolate;
 border:1px solid #37373b;border-radius:20px;background:linear-gradient(180deg,#232323,#1c1c1c);
 box-shadow:0 18px 46px rgba(0,0,0,.31);height:100%;box-sizing:border-box;
 transition:border-color .18s ease,transform .18s ease;
}
.nc-v1148-card:hover{border-color:rgba(255,85,104,.5);transform:translateY(-2px)}
.nc-v1148-cover{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;background:linear-gradient(160deg,#242428,#17171a);text-decoration:none}
.nc-v1148-cover img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;z-index:2;filter:none!important;transform:none!important;image-rendering:auto!important;will-change:auto!important}
.nc-v1148-cover-fallback{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;gap:7px;color:#52525a;font:800 26px/1 Outfit,system-ui,sans-serif;letter-spacing:.02em}
.nc-v1148-cover-fallback small{font:700 9px/1 Outfit,system-ui,sans-serif;letter-spacing:.26em;color:#66636b}
.nc-v1148-cover-badge{position:absolute;z-index:3;top:14px;right:14px;padding:6px 12px;border-radius:99px;font:800 11px/1 Outfit,system-ui,sans-serif;background:linear-gradient(180deg,#ff5a66,#de2c3f 58%,#a81425);color:#fff;box-shadow:0 5px 15px rgba(95,5,18,.36)}
.nc-v1148-card-info{padding:22px 22px 18px;display:flex;flex-direction:column;gap:10px;flex:1;min-height:0}
.nc-v1148-title-price{display:flex;align-items:baseline;justify-content:flex-start;gap:15px;flex-wrap:wrap}
.nc-v1148-title-price h2{flex:0 1 auto;min-width:0;margin:0;color:#fff;font:750 20px/1.22 Outfit,system-ui,sans-serif;letter-spacing:-.022em;overflow-wrap:anywhere}
.nc-v1148-title-price h2 a{color:#fff;text-decoration:none}
.nc-v1148-footer-price{flex:0 0 auto;color:#ff5a66;font:800 19px/1.2 Outfit,system-ui,sans-serif;white-space:nowrap}
.nc-v1148-frameworks{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:28px}
.nc-v1148-frameworks span{padding:6px 13px;border-radius:999px;border:1px solid rgba(255,95,113,.70);background:linear-gradient(180deg,#ff5a66 0%,#de2c3f 58%,#a81425 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 5px 13px rgba(130,14,29,.16);color:#fff;font:700 12px/1.15 Outfit,system-ui,sans-serif}
.nc-v1148-card-info p{margin:0;color:#bdbdc5;font:400 14px/1.55 Outfit,system-ui,sans-serif;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:0}
.nc-v1148-card-footer{margin-top:auto;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 21px;border-top:1px solid rgba(255,255,255,.11);background:rgba(0,0,0,.19);box-sizing:border-box}
.nc-v1148-footer-price{margin-right:auto;flex:0 1 auto;min-width:0;overflow-wrap:anywhere}
.nc-v1148-footer-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 auto}
.nc-v1148-card-footer form{margin:0;display:flex}
.nc-v1148-see{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 17px;border:1px solid rgba(255,100,117,.72);border-radius:13px;background:linear-gradient(180deg,#fa5660,#e22d41 52%,#ab1527);color:#fff!important;text-decoration:none!important;font:800 13px/1 Outfit,system-ui,sans-serif;box-shadow:inset 0 1px rgba(255,255,255,.20),0 12px 22px rgba(130,13,30,.22)}
.nc-v1148-cart{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:0;border-radius:13px;border:1px solid rgba(255,90,106,.48);background:linear-gradient(180deg,#42444b,#202127);color:#fff!important;text-decoration:none!important;cursor:pointer;box-shadow:inset 0 1px rgba(255,255,255,.10);box-sizing:border-box}
.nc-v1148-cart svg{height:18px;width:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nc-v1148-see:hover,.nc-v1148-cart:hover{filter:brightness(1.09)}
.nc-v1148-db-warning{padding:16px 20px;border:1px solid rgba(255,92,105,.35);color:#ff9caa;border-radius:14px;background:rgba(165,15,36,.08);margin:12px 0 22px;font:500 14px/1.5 Outfit,system-ui,sans-serif}
@media(max-width:1090px){.nc-v1148-grid,body.nc-catalogue-v4 .nc-v1148-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){.nc-v1148-catalogue,body.nc-catalogue-v4 .nc-cat-wrap{width:calc(100% - 30px)!important;padding-top:110px!important}.nc-v1148-grid,body.nc-catalogue-v4 .nc-v1148-grid{grid-template-columns:minmax(0,1fr)!important;gap:20px!important}.nc-v1148-card-info{padding:19px 18px 17px}.nc-v1148-card-footer{padding:14px 18px}.nc-v1148-title-price h2{font-size:19px}.nc-v1148-footer-price{font-size:18px}}
@media(max-width:380px){.nc-v1148-title-price{gap:7px}.nc-v1148-see{padding-inline:12px;font-size:12px}}

/* V11.48.1 : prix en bas a gauche ; les deux actions groupees en bas a droite.
   Aucun changement de dimensions des cartes ni de nombre de colonnes. */
.nc-v1148-card-footer{flex-wrap:wrap;row-gap:11px}
.nc-v1148-card-footer .nc-v1148-footer-actions{align-self:center}
@media(max-width:380px){.nc-v1148-card-footer{column-gap:8px}.nc-v1148-footer-actions{gap:6px}}


/* V11.55 — SEULEMENT les deux boutons de carte, inspirés de la maquette V12.
   Spécificité volontairement plus forte que le CSS de secours intégré à index.php
   en V11.54. Pas de changement de grille, hauteur, prix ni composants hors cartes. */
.nc-v1148-card-footer .nc-v1148-footer-actions .nc-v1148-see {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:44px;
  padding:0 14px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.15) !important;
  background:rgba(255,255,255,.035) !important;
  color:#f5f5f8 !important;
  text-decoration:none !important;
  font:790 12px/1 'Outfit',system-ui,sans-serif;
  box-shadow:none !important;
  white-space:nowrap;
  transition:background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.nc-v1148-card-footer .nc-v1148-footer-actions .nc-v1148-see:hover {
  transform:translateY(-2px);
  background:rgba(255,255,255,.075) !important;
  border-color:rgba(255,255,255,.28) !important;
  box-shadow:0 8px 18px rgba(0,0,0,.15) !important;
}
.nc-v1148-card-footer .nc-v1148-footer-actions .nc-v1148-cart {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  min-width:44px;
  padding:0;
  border-radius:13px;
  border:1px solid rgba(255,123,136,.50) !important;
  background:linear-gradient(180deg,#ff636f 0%,#ef3c51 48%,#a80c21 100%) !important;
  color:#fff !important;
  box-shadow:inset 0 1px rgba(255,255,255,.18),0 12px 23px rgba(169,10,28,.19) !important;
  transition:transform .2s,box-shadow .2s,filter .2s;
}
.nc-v1148-card-footer .nc-v1148-footer-actions .nc-v1148-cart:hover {
  transform:translateY(-2px);
  filter:brightness(1.035);
  box-shadow:inset 0 1px rgba(255,255,255,.2),0 16px 26px rgba(169,10,28,.29) !important;
}
.nc-v1148-card-footer .nc-v1148-footer-actions .nc-v1148-see svg,
.nc-v1148-card-footer .nc-v1148-footer-actions .nc-v1148-cart svg {
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:none;
}
.nc-v1148-card-footer .nc-v1148-footer-actions .nc-v1148-see:focus-visible,
.nc-v1148-card-footer .nc-v1148-footer-actions .nc-v1148-cart:focus-visible {
  outline:2px solid #ff7b87;
  outline-offset:3px;
}
@media (max-width:380px) {
  .nc-v1148-card-footer .nc-v1148-footer-actions .nc-v1148-see {
    padding-inline:10px;
    gap:5px;
  }
}


/* NIGHTCODE STUDIO V11.60 — NOIR PUR, catalogue V11.48/V11.55.
   UNIQUEMENT décor : ne touche ni grille, ni actions panier, ni images.
   Identifiant de vérification: NC-V1160-CAT. */
html, html body.nc-catalogue-v4, html body.nc-catalogue-maquette,
html body.nc-catalogue-maquette main,
html body.nc-catalogue-maquette .nc-v1148-catalogue,
html body.nc-catalogue-maquette .nc-cat-wrap,
html body.nc-catalogue-maquette .nc-cat-seo,
html body.nc-catalogue-maquette .nc-cat-guide,
html body.nc-catalogue-maquette .nc-mock-catalogue{
  background-color:#000!important;
  background-image:none!important;
}
/* La carte V11.48 est un composant autonome : c'est elle qui restait grise. */
html body .nc-v1148-card,
html body.nc-catalogue-maquette .nc-v1148-card,
html body.nc-catalogue-v4 .nc-v1148-card,
html body.nc-catalogue-maquette .nc-cat-card:not(.nc-cat-card-wrap),
html body.nc-catalogue-maquette .nc-cat-guide-grid article,
html body.nc-catalogue-v4 .nc-cat-guide-grid article{
  background:#000!important;
  background-image:none!important;
  border-color:rgba(255,255,255,.14)!important;
  box-shadow:none!important;
}
html body .nc-v1148-card:hover,
html body.nc-catalogue-maquette .nc-v1148-card:hover,
html body.nc-catalogue-maquette .nc-cat-card:hover{
  border-color:rgba(242,81,101,.60)!important;
  box-shadow:none!important;
}
/* Le fond des couvertures de produit est noir, mais les images restent présentes. */
html body .nc-v1148-cover,
html body.nc-catalogue-maquette .nc-cat-cover,
html body .nc-v1148-card-footer,
html body .nc-v1148-card-info,
html body.nc-catalogue-maquette .nc-cat-purchase{
  background-color:#000!important;
  background-image:none!important;
}
/* Le wrapper doit rester transparent pour ne pas redessiner une double carte. */
html body .nc-cat-card-wrap.nc-cat-card{background:transparent!important;border:0!important;box-shadow:none!important}
/* Actions V11.55 volontairement préservées, notamment le bouton panier rouge.
   On remplace seulement les petites commandes grises restantes. */
html body.nc-catalogue-maquette .nc-cat-add-info,
html body.nc-catalogue-maquette .nc-cat-favorite .nc-fav-btn:not(.is-favorite){
  background:#000!important;
  background-image:none!important;
  border-color:rgba(255,255,255,.18)!important;
  box-shadow:none!important;
}
