/* Catalogue (catalogue.html) : mise en page, filtres, cartes produit, pagination. Chargé après les styles de la page, qu'il remplace.
   Même langage visuel que les fiches (css/fiche.css) : coins arrondis, fond clair, prix en avant. */

/* En-tête de page plus compact */
.page-hero{padding:6.6rem 0 1.6rem}
.page-hero h1{font-size:clamp(2rem,3.4vw,3rem);margin:.4rem 0 .5rem}
.page-hero p{max-width:720px;font-size:.95rem;opacity:.75}

/* Mise en page : filtres | produits */
.catalogue-wrapper{background:#fff;max-width:1560px;margin:0 auto;gap:0}
.catalogue-sidebar{width:280px;border-right:1px solid #eee;padding:.4rem 0 1rem;top:80px;height:calc(100vh - 80px);scrollbar-width:thin}
.sidebar-top,.sidebar-sort,.sidebar-brand,.sidebar-guide,.sidebar-filters{padding-left:1.2rem!important;padding-right:1.2rem!important}
.sidebar-label{font-family:var(--font-corps);font-size:.75rem;font-weight:700;letter-spacing:.04em;color:#222;text-transform:uppercase}
.search-wrap input,.sidebar-sort select,.sidebar-brand select{border-radius:10px!important;border:1px solid #e3e3e3!important;background:#fafafa!important;font-size:.88rem!important;height:42px}
.search-wrap input:focus,.sidebar-sort select:focus,.sidebar-brand select:focus{border-color:var(--noir)!important;background:#fff!important;outline:none}
.sidebar-guide-btn{border-radius:14px!important;border:1.5px solid #f2c7c8!important;background:#fff6f6!important}
.cat-accordion{border-top:1px solid #f0f0f0}
.cat-tabs-label{font-family:var(--font-corps)!important;font-size:.75rem!important;font-weight:700!important;letter-spacing:.04em;color:#222!important;padding:.9rem 1.2rem!important}
.cat-tab{padding:.5rem 1.2rem;border-left:0!important;border-radius:0 10px 10px 0;margin-right:.8rem;font-size:.86rem;color:#555;width:calc(100% - .8rem)}
.cat-tab:hover{background:#f6f6f6;color:#111}
.cat-tab.active{background:var(--noir)!important;color:#fff!important}
.cat-tab.active i,.cat-tab.active em{color:#fff!important;opacity:.8}
.cat-tab em{font-style:normal;margin-left:auto;font-size:.75rem;color:#999;background:none}
.ff-chip{border-radius:99px!important}
.ff-chip.on{background:var(--noir)!important;border-color:var(--noir)!important;color:#fff!important}

/* Barre d'outils */
.catalogue-main{min-width:0;background:#fff}
.catalogue-toolbar{top:72px;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-bottom:1px solid #eee;padding:.85rem 1.75rem}
.toolbar-count strong{font-family:var(--font-titre);font-size:1.15rem;letter-spacing:.02em}
.toolbar-guide,.toolbar-devis{border-radius:10px!important}

/* Grille et cartes */
.book-frame{background:#fff;min-height:400px}
.book-corner{display:none}
.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:2rem 1.4rem;padding:1.75rem}
.product-card{border:0;border-radius:16px;background:#fff;overflow:visible}
.product-card:hover{transform:none;box-shadow:none}
.product-card__media{aspect-ratio:4/5;border-radius:16px;background:#f4f4f2;overflow:hidden}
.product-card__img{object-fit:cover}
.product-card:hover .product-card__img{transform:scale(1.04)}
.product-card__view-hint{background:linear-gradient(to top,rgba(0,0,0,.45),transparent 45%);align-items:flex-end;justify-content:flex-start;padding:1rem;font-family:var(--font-corps);font-size:.8rem;font-weight:600}
.product-card__featured-badge{width:30px;height:30px;top:.7rem;left:.7rem;font-size:.75rem}
.product-card__stock{position:absolute;left:.7rem;bottom:.7rem;background:#fff!important;box-shadow:0 2px 8px rgba(0,0,0,.08);font-size:.7rem!important;padding:.25em .65em!important}
.product-card:hover .product-card__stock{opacity:0}
.product-card__body{padding:.85rem .15rem .3rem;gap:.3rem}
.product-card__meta{gap:.4rem}
.product-card__brand{font-size:.74rem}
.product-card__ref{font-family:var(--font-corps);font-size:.7rem;color:#aaa}
.product-card__name{font-size:1.12rem;line-height:1.12;flex:0}
.product-card__swatches{margin-top:.15rem}
.product-card__swatch{width:15px;height:15px}
.product-card__sizes{margin-top:0;font-size:.74rem}
.product-card__price{margin-top:.25rem;padding-top:0;font-size:.8rem;color:#777}
.product-card__price b{font-size:1.25rem;color:var(--noir)}
.product-card__footer{border-top:0;padding:.55rem .15rem 0;margin-top:auto;gap:.45rem;justify-content:flex-start}
.product-card__devis{flex:1;justify-content:center;background:var(--orange)!important;color:#fff;font-size:.82rem!important;padding:.6em .8em!important;border-radius:10px!important;letter-spacing:.05em}
.product-card__devis:hover{background:var(--orange-dark)!important}
.product-card__add,.product-card__wa{width:38px;height:38px;padding:0!important;justify-content:center;border-radius:10px!important;font-size:.9rem!important;background:#fff!important;border:1.5px solid #e2e2e2;color:#333!important}
.product-card__add:hover,.product-card__add.added{background:var(--noir)!important;border-color:var(--noir);color:#fff!important}
.product-card__wa{color:#1a9e4b!important;border-color:#cdeed9}
.product-card__wa:hover{background:#25D366!important;border-color:#25D366;color:#fff!important}
.product-card__why{border-radius:10px}

/* Pagination */
.page-progress{background:#f2f2f2}
.flip-nav{background:#fff;border-top:0;padding:1.25rem 1.5rem 2rem}
.flip-nav-btn{width:46px;height:46px;border-radius:12px!important;border:1.5px solid #e2e2e2!important;background:#fff!important}
.flip-nav-btn:hover:not(:disabled){background:var(--noir)!important;border-color:var(--noir)!important;color:#fff!important}
.flip-nav-pages input{border-radius:10px!important;height:40px}
.info-strip{background:#fff;border-top:1px solid #f0f0f0}
.info-strip-shortcut{display:none}

/* Fenêtre produit (aperçu rapide) */
.pmodal-box{border-radius:20px!important;overflow:hidden}
.pmodal-main-img-wrap{border-radius:14px;background:#f4f4f2}
.pmodal-devis-btn{border-radius:12px!important;justify-content:center}
.pmodal-add-btn,.pmodal-wa-btn,.pmodal-share-btn{border-radius:12px!important}

@media(max-width:1250px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){
  .catalogue-sidebar{top:0;height:100vh;padding-top:0;border-radius:0 18px 18px 0}
  .catalogue-toolbar{top:0;padding:.7rem 1rem}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem .8rem;padding:1rem}
}
@media(max-width:600px){
  .page-hero{padding:5.6rem 0 1.1rem}
  .page-hero p{font-size:.86rem}
  .product-card__name{font-size:.98rem}
  .product-card__price b{font-size:1.1rem}
  .product-card__sizes{display:none}
  .product-card__footer{gap:.35rem}
  .product-card__devis{font-size:.74rem!important;padding:.55em .4em!important}
  .product-card__add,.product-card__wa{width:34px;height:34px}
  .product-card__stock{font-size:.62rem!important}
}

/* Toute la largeur de l'écran */
.page-hero .container{max-width:none;padding:0 clamp(1rem,2vw,1.75rem)}
.catalogue-wrapper{max-width:none}
@media(min-width:1600px){.product-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
