/* Pages catégories — mêmes couleurs et polices que l'accueil */
:root{
  --terracotta:#C86D51;--terracotta-fonce:#B0563C;--terracotta-clair:#F7ECE8;
  --beige:#FAF6F0;--or:#D4AF37;--encre:#2D2B2A;
}
*{box-sizing:border-box}
body{margin:0;background:var(--beige);color:var(--encre);font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.5;min-height:100vh;display:flex;flex-direction:column}
main{flex:1}
a{color:inherit}
:focus-visible{outline:3px solid var(--or);outline-offset:3px}
.serif,h1,h2,.marque,.pied p{font-family:"Playfair Display",Georgia,serif}

.entete{position:sticky;top:0;z-index:40;background:rgba(250,246,240,.95);backdrop-filter:blur(10px);border-bottom:1px solid rgba(200,109,81,.12);
  display:flex;align-items:center;justify-content:space-between;gap:1rem 2rem;flex-wrap:wrap;padding:1rem clamp(1rem,4vw,2rem)}
.marque{font-size:1.5rem;font-weight:700;text-decoration:none}
.marque:hover{color:var(--terracotta)}
nav{display:flex;flex-wrap:wrap;gap:.25rem 1.75rem;font-size:.9rem;font-weight:500}
nav a{text-decoration:none;padding:.25rem 0;border-bottom:2px solid transparent}
nav a:hover{color:var(--terracotta)}
nav a[aria-current="page"]{border-bottom-color:var(--terracotta);color:var(--terracotta)}
.pc-bouton-panier{position:relative;width:44px;height:44px;border-radius:50%;border:1px solid rgba(200,109,81,.25);background:#fff;color:var(--encre);cursor:pointer;display:grid;place-items:center}
.pc-bouton-panier:hover{background:var(--terracotta);color:#fff}
.pc-bouton-panier svg{width:20px;height:20px}
.pc-bouton-panier span{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 4px;border-radius:10px;background:var(--terracotta);color:#fff;font-size:.7rem;font-weight:700;display:grid;place-items:center;border:2px solid var(--beige)}

.titre{max-width:80rem;margin:0 auto;padding:clamp(2rem,6vw,4rem) clamp(1rem,4vw,2rem) clamp(1.25rem,3vw,2rem);display:flex;align-items:baseline;gap:1rem 1.5rem;flex-wrap:wrap}
.titre h1{margin:0;font-size:clamp(2.4rem,7vw,4rem);line-height:1.1;font-weight:700}
.titre p{margin:0;color:var(--terracotta);font-weight:600}

.grille{list-style:none;margin:0 auto;max-width:80rem;padding:0 clamp(1rem,4vw,2rem) clamp(3rem,7vw,5rem);display:grid;gap:clamp(1rem,3vw,2rem);grid-template-columns:repeat(2,1fr)}
@media (min-width:760px){.grille{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1100px){.grille{grid-template-columns:repeat(4,1fr)}}
.produit{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid rgba(200,109,81,.15);border-radius:24px;overflow:hidden;padding-bottom:1.1rem;transition:box-shadow .3s}
.produit:hover{box-shadow:0 14px 34px rgba(45,43,42,.1)}
.photo{display:block;overflow:hidden;background:var(--beige);cursor:zoom-in}
.photo img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;transition:transform .5s}
.photo:hover img{transform:scale(1.04)}
.produit h2{margin:.9rem 1.1rem .15rem;font-size:1.05rem;line-height:1.3;font-weight:700}
.prix{margin:0 1.1rem .8rem;font-family:"Playfair Display",Georgia,serif;font-weight:700;font-size:1.15rem;color:var(--terracotta)}
.prix-vide{font-family:inherit;font-weight:500;font-size:.9rem;color:rgba(45,43,42,.6)}
.ajouter{margin:auto 1.1rem 0;padding:.7rem 1rem;border-radius:999px;border:0;background:var(--terracotta-clair);color:var(--terracotta);font:inherit;font-size:.85rem;font-weight:600;cursor:pointer;transition:background .2s,color .2s}
.ajouter:hover:not(:disabled){background:var(--terracotta);color:#fff}
.ajouter:disabled{opacity:.55;cursor:not-allowed}

.pied{background:var(--encre);color:#fff;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.75rem 2rem;padding:1.75rem clamp(1rem,4vw,2rem);font-size:.85rem}
.pied p{margin:0;font-size:1.3rem;color:var(--terracotta-clair)}
.pied nav a:hover{color:#fff}

dialog{border:0;padding:0;background:var(--beige);color:var(--encre);border-radius:24px;max-width:min(92vw,520px);max-height:92vh;overflow:auto}
dialog::backdrop{background:rgba(45,43,42,.7)}
dialog img{display:block;width:100%;height:auto}
dialog p{margin:0;padding:.8rem 1.1rem;font-family:"Playfair Display",Georgia,serif;font-size:1.2rem;font-weight:700}
.fermer{position:absolute;top:.6rem;right:.6rem;width:2.5rem;height:2.5rem;border:0;border-radius:50%;background:rgba(255,255,255,.9);font-size:1.6rem;line-height:1;cursor:pointer;color:var(--encre)}
@media (prefers-reduced-motion:reduce){.photo img,.produit,.ajouter{transition:none}.photo:hover img{transform:none}}

/* message quand une catégorie est vide */
.vide{grid-column:1/-1;padding:2rem 0;color:rgba(45,43,42,.75)}
.vide a{color:var(--terracotta);font-weight:600}
