@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');
:root{--green:#263f20;--green-dark:#1c3218;--green-soft:#405b35;--brown:#80502d;--brown-light:#c49a68;--cream:#f7f0e4;--paper:#fffdf8;--ink:#211f1a;--muted:#777168;--line:#dfd1bd;--shadow:0 4px 12px rgba(62,43,22,.10)}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:105px}
body{margin:0;width:100%;max-width:none;background:var(--paper);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;line-height:1.5;overflow-x:hidden}
button,input,textarea{font:inherit}
.topbar{width:100%;min-height:92px;padding:8px clamp(14px,2.4vw,36px);display:flex;align-items:center;gap:20px;background:var(--green-dark);color:#fff;position:sticky;top:0;z-index:20;border-bottom:3px solid var(--brown-light);box-shadow:0 2px 8px #0002}
.brand{flex:0 0 auto;display:flex;align-items:center;justify-content:center;text-decoration:none;border-right:1px solid rgba(255,255,255,.5);padding-right:20px;min-width:0}
.brand img{display:block;width:66px;height:66px;object-fit:contain}
.header-filters{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px}
.filter-title{font-weight:700;white-space:nowrap;font-size:14px;color:#fff8eb}
.tag-list{display:flex;align-items:center;gap:7px;min-width:0}
.header-filters .tag-list{width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#b99160 transparent;padding:2px 2px 5px}
.tag{position:relative;display:inline-flex;flex:0 0 auto;cursor:pointer}
.tag input{position:absolute;width:1px;height:1px;opacity:0}
.tag span{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border:1px solid #d5b98f;border-radius:24px;padding:7px 12px;background:#fff8ec;color:#382a1c;font-size:12px;transition:background .15s,color .15s,border-color .15s}
.tag input:checked+span{background:#d9b17b;border-color:#f4d7aa;color:#1d3219;box-shadow:inset 0 0 0 1px #fff7}
.tag input:focus-visible+span{outline:3px solid #fff;outline-offset:2px}
.request-link{flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:9px 18px;border:2px solid #d8b47e;border-radius:28px;background:var(--green);color:#fff;text-decoration:none;font-weight:700;font-size:15px;white-space:nowrap;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);transition:background .15s,transform .15s,box-shadow .15s}
.request-link:hover{background:var(--green-soft);transform:translateY(-1px);box-shadow:0 3px 10px #0003}
.cart-icon{font-size:22px;line-height:1;filter:grayscale(1) brightness(0) invert(1)}
.count{display:inline-grid;place-items:center;min-width:25px;height:25px;padding:0 6px;background:#f8f0df;color:var(--green-dark);border-radius:50%;font-size:13px;font-weight:700}
.hero{width:100%;min-height:104px;padding:16px 24px;display:flex;align-items:center;justify-content:center;background:var(--cream);border-bottom:1px solid #eadbc6;text-align:center}
.hero-copy{max-width:1100px;margin:0 auto}
.hero h1{margin:0;color:var(--green);font-family:'Playfair Display',Georgia,serif;font-size:clamp(24px,2.2vw,32px);font-style:italic;font-weight:700;line-height:1.18}
.hero h1:after{content:"";display:block;width:min(300px,45%);height:3px;border-radius:50%;background:var(--green);margin:8px auto 0;transform:rotate(-1deg)}
.hero p{margin:6px 0 0;color:var(--brown);font-size:13px}
.catalogue{width:100%;max-width:none;margin:0;padding:16px clamp(16px,3.7vw,58px) 12px}
.catalogue-meta{height:0;display:flex;justify-content:flex-end}
.result-count{font-size:12px;color:var(--muted)}
.gallery{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.product-card{min-width:0;overflow:hidden;display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);padding:8px}
.product-card>img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:9px;background:var(--cream)}
.product-info{display:flex;flex-direction:column;align-items:flex-start;flex:1;padding:9px 6px 5px}
.product-info h2,.product-info h3{font-family:'Playfair Display',Georgia,serif;font-size:clamp(17px,1.45vw,22px);line-height:1.2;margin:0 0 4px;color:#171b14}
.product-info p{font-size:13px;color:var(--muted);margin:0 0 8px}
.product-tags{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0 11px}
.product-tags span{display:inline-flex;align-items:center;border:1px solid #d6bd9b;border-radius:20px;background:#fbf2e3;color:#392b1e;padding:4px 9px;font-size:11px;white-space:nowrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #152a12;border-radius:11px;background:var(--green);color:#fff;padding:11px 16px;font-weight:700;cursor:pointer;text-decoration:none;transition:background .15s,transform .15s}
.btn:hover{background:var(--green-soft);transform:translateY(-1px)}
.btn:focus-visible,.request-link:focus-visible{outline:3px solid #c99d62;outline-offset:3px}
.add-btn{margin-top:auto;width:100%;font-size:14px;min-height:44px}
.empty-state{padding:28px;text-align:center;color:var(--muted);background:var(--cream);border-radius:12px}
.request-section{width:100%;max-width:none;margin:0;padding:14px clamp(20px,5vw,76px) 38px;background:var(--cream)}
.request-heading{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:26px;margin:0 0 12px}
.request-heading h2{margin:0;color:var(--green);font-family:'Playfair Display',Georgia,serif;font-style:italic;font-size:clamp(32px,3vw,43px);white-space:nowrap}
.request-explanation{border-left:2px solid var(--brown-light);padding:4px 0 4px 25px;font-size:15px}
.cart-items{margin:0 0 16px}
.cart-items>.muted{margin:0;color:var(--muted);font-size:14px}
.cart-row{display:grid;grid-template-columns:64px 1fr auto;gap:13px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.cart-row img{width:64px;height:64px;object-fit:cover;border-radius:8px}
.cart-row h4{margin:0;font-size:14px}
.cart-row p{margin:3px 0 0;color:var(--muted);font-size:12px}
.remove-item{border:0;background:none;color:#8a392b;text-decoration:underline;cursor:pointer;font-size:13px}
.request-form{width:100%;max-width:none;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:20px 22px;box-shadow:var(--shadow)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 26px}
.form-grid label{display:flex;flex-direction:column;gap:5px;font-weight:700;font-size:14px}
.form-grid .wide{grid-column:1/-1}
.form-grid input,.form-grid textarea,.modal-panel input{width:100%;border:1px solid #cbbda9;border-radius:7px;padding:10px 12px;background:#fffdfa;color:var(--ink);outline:none}
.form-grid input:focus,.form-grid textarea:focus,.modal-panel input:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(38,63,32,.12)}
.form-grid textarea{resize:vertical;min-height:76px}
.form-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:12px}
.consent{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600}
.consent input{width:20px;height:20px;accent-color:var(--green);flex:0 0 auto}
.submit-btn{min-width:270px;border-radius:28px;font-size:16px;padding:11px 22px}
.submit-btn span{font-size:20px}
.form-message{font-weight:700;margin:10px 0 0}
.privacy-note{font-size:11px;color:var(--muted);margin:5px 0 0}
footer{width:100%;padding:20px;text-align:center;background:var(--green-dark);color:#f6efe2}
footer img{width:54px;height:54px;object-fit:contain}
footer p{font-size:12px;margin:5px}
footer a{color:#e4c18e;font-size:12px}
.modal{position:fixed;inset:0;background:rgba(20,25,17,.72);z-index:40;display:grid;place-items:center;padding:18px}
.modal[hidden]{display:none}
.modal-panel{position:relative;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:28px;width:min(520px,100%);max-height:90vh;overflow:auto;box-shadow:0 15px 45px #0004}
.modal-panel h2{font-family:'Playfair Display',Georgia,serif;color:var(--green);margin-top:0}
.modal-panel>label{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:14px}
.modal-close{position:absolute;right:13px;top:8px;border:0;background:none;font-size:30px;cursor:pointer;color:var(--brown)}
.personal-field{margin:13px 0}
.personal-field label{display:block;font-size:13px;font-weight:700;margin-bottom:5px}
.personal-field input{width:100%;border:1px solid var(--line);border-radius:7px;padding:10px}
#confirmAdd{width:100%;margin-top:10px}
@media(max-width:1150px){.topbar{gap:14px}.brand{padding-right:14px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.tag span{padding:6px 10px;font-size:11px}.filter-title{font-size:13px}}
@media(max-width:760px){html{scroll-padding-top:145px}.topbar{min-height:0;padding:8px 12px;display:grid;grid-template-columns:auto 1fr auto;gap:8px 10px}.brand{border:0;padding:0;justify-content:flex-start}.brand img{width:66px;height:66px}.header-filters{grid-column:1/-1;grid-row:2;display:flex;gap:3px}.filter-title{display:block;margin:0 0 1px}.header-filters .tag-list{gap:6px;padding:2px 0 6px}.tag span{font-size:11px;padding:6px 9px}.request-link{grid-column:3;grid-row:1;padding:8px 12px;min-height:42px;font-size:13px;gap:7px}.cart-icon{font-size:18px}.count{min-width:22px;height:22px;font-size:11px}.hero{min-height:0;padding:14px 14px}.hero h1{font-size:22px}.hero p{font-size:12px}.catalogue{padding:12px 12px 9px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-card{padding:5px;border-radius:11px}.product-card>img{border-radius:7px}.product-info{padding:8px 4px 4px}.product-info h2,.product-info h3{font-size:16px}.product-info p{font-size:11px}.product-tags{gap:4px;margin:5px 0 8px}.product-tags span{font-size:9px;padding:3px 6px}.add-btn{font-size:11px;min-height:39px;padding:8px 5px;border-radius:8px}.request-section{padding:13px 13px 28px}.request-heading{grid-template-columns:1fr;gap:5px;margin-bottom:10px}.request-heading h2{font-size:34px}.request-explanation{border-left:0;border-top:1px solid var(--brown-light);padding:7px 0 0;font-size:13px}.request-form{padding:14px;border-radius:11px}.form-grid{grid-template-columns:1fr;gap:10px}.form-grid .wide{grid-column:auto}.form-grid label{font-size:13px}.form-grid input,.form-grid textarea{padding:10px}.form-bottom{align-items:stretch;flex-direction:column;gap:12px}.consent{font-size:12px;align-items:flex-start}.submit-btn{width:100%;min-width:0;font-size:15px}.cart-row{grid-template-columns:48px 1fr auto;gap:8px}.cart-row img{width:48px;height:48px}.cart-row h4{font-size:12px}.cart-row p{font-size:11px}.remove-item{font-size:11px}}
@media(max-width:420px){.brand img{width:58px;height:58px}.request-link{padding:7px 9px;font-size:12px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.product-info h2,.product-info h3{font-size:14px}.add-btn{font-size:10px}.hero h1{font-size:19px}}
@media(max-width:340px){.gallery{grid-template-columns:1fr}.topbar{grid-template-columns:auto 1fr}.request-link{grid-column:2;grid-row:1;justify-self:end}}

/* V1.8 – ajustements ciblés du header et du bouton Ma demande */
.brand{gap:8px;min-width:0}
.brand-icon{width:66px;height:66px;object-fit:contain;flex:0 0 66px}
.brand-wordmark{display:block;width:168px;height:auto;max-height:56px;object-fit:contain;flex:0 1 168px}
.request-link{min-width:168px;min-height:48px;padding:8px 15px;gap:9px;border:1px solid #d8b47e;border-radius:28px;background:linear-gradient(180deg,#35552b 0%,#203a1b 100%);box-shadow:0 2px 0 #142812,inset 0 1px 0 rgba(255,255,255,.22);letter-spacing:.1px}
.request-link:hover{background:linear-gradient(180deg,#45683a 0%,#2b4724 100%);transform:translateY(-1px)}
.cart-icon{width:23px;height:23px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;filter:none;flex:0 0 23px}
.request-link .count{min-width:25px;height:25px;border:1px solid #d7c39e;background:#f7f0e4;color:#243b1e;box-shadow:0 1px 2px #0002}
/* Neutralise les anciens contrôles de remise à zéro qui pouvaient rester dans le cache HTML */
#clearFilters,.clear-filters,.clear-filter,.tag-clear,.reset-filters{display:none!important}
@media(max-width:1150px){.brand-wordmark{width:145px;flex-basis:145px}.topbar{gap:12px}.request-link{min-width:150px;padding-inline:12px}}
@media(max-width:760px){.brand{gap:5px}.brand-icon{width:58px;height:58px;flex-basis:58px}.brand-wordmark{width:132px;max-height:45px;flex-basis:132px}.request-link{min-width:0;grid-column:3;grid-row:1;padding:7px 10px}.cart-icon{width:19px;height:19px;flex-basis:19px}}
@media(max-width:420px){.brand-icon{width:52px;height:52px;flex-basis:52px}.brand-wordmark{width:105px;flex-basis:105px}.request-link{gap:6px;padding:6px 8px}.request-link>span:nth-child(2){font-size:11px}}

/* V1.9 : retire le symbole decoratif residuel de l'ancien bandeau. */
.hero-mark{display:none!important}

/* V2.0 – liste de demande, confirmation en modale et lightbox */
.brand-wordmark{height:66px;width:auto;max-height:none;max-width:215px;flex:0 1 auto;object-fit:contain}
@media(max-width:1150px){.brand-wordmark{height:58px;width:auto;max-width:190px;flex-basis:auto}}
@media(max-width:760px){.brand-wordmark{height:58px;width:auto;max-width:170px;max-height:none;flex-basis:auto}}
@media(max-width:420px){.brand-wordmark{height:52px;width:auto;max-width:135px;flex-basis:auto}}

.product-photo{display:block;width:100%;padding:0;border:0;border-radius:9px;overflow:hidden;background:var(--cream);cursor:zoom-in;line-height:0}
.product-photo img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;transition:transform .25s ease}
.product-photo:hover img{transform:scale(1.025)}
.product-photo:focus-visible{outline:3px solid var(--brown-light);outline-offset:3px}

.cart-items{display:grid;gap:9px;margin:0 0 16px}
.cart-row{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:14px;align-items:center;padding:11px 14px;background:rgba(255,253,248,.78);border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 7px rgba(62,43,22,.06)}
.cart-row .cart-thumb{width:76px;height:76px;object-fit:cover;border-radius:9px;border:1px solid var(--line)}
.cart-details{min-width:0}
.cart-title-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cart-title-line h4{font-size:15px;color:var(--green-dark);margin:0}
.cart-qty{display:inline-flex;align-items:center;justify-content:center;min-width:34px;padding:3px 9px;border-radius:20px;background:#e9ddc9;color:var(--green-dark);font-size:12px;font-weight:700}
.cart-personalizations{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:7px 0 0;padding:0}
.cart-personalizations li{display:flex;gap:5px;align-items:center;max-width:100%;padding:4px 8px;border:1px solid #e4d4bd;border-radius:7px;background:#fffaf1;font-size:11px}
.cart-personalizations li span{color:var(--muted);white-space:nowrap}
.cart-personalizations li strong{font-weight:600;overflow-wrap:anywhere}
.remove-item{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border:1px solid #e4c9bc;border-radius:8px;background:#fff8f4;color:#8a392b;text-decoration:none;font-weight:600}
.remove-item:hover{background:#f7e6dd}
.remove-item span{font-size:17px;line-height:1}

body.has-modal,body.has-lightbox{overflow:hidden}
.success-modal{z-index:80}
.success-panel{text-align:center;width:min(520px,100%);padding:34px 30px 28px}
.success-mark{width:58px;height:58px;display:grid;place-items:center;margin:0 auto 14px;border-radius:50%;background:#e5efdf;color:var(--green);font-size:34px;font-weight:700}
.success-panel h2{margin:0 0 8px;font-size:27px}
.success-panel>p{margin:0 auto 14px;color:var(--muted);max-width:390px}
.reference-box{display:flex;flex-direction:column;gap:4px;padding:12px;margin:15px 0;border:1px dashed #c9ad82;border-radius:10px;background:#fbf2e3}
.reference-box span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.reference-box strong{font-size:16px;color:var(--green-dark);overflow-wrap:anywhere}
.success-hint{font-size:12px}
#successOk{min-width:180px;margin-top:8px}

.lightbox{position:fixed;inset:0;z-index:100;background:rgba(10,14,9,.94);display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;justify-items:center;padding:58px 22px 28px}
.lightbox[hidden]{display:none}
.lightbox figure{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:100%;max-height:100%;min-width:0}
.lightbox figure img{display:block;max-width:min(88vw,1500px);max-height:calc(100vh - 125px);width:auto;height:auto;object-fit:contain;border-radius:5px;box-shadow:0 12px 45px #0008}
.lightbox figcaption{margin-top:12px;color:#fff8ec;font-size:15px;font-weight:600;text-align:center}
.lightbox-close,.lightbox-prev,.lightbox-next{display:grid;place-items:center;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(255,255,255,.1);color:#fff;cursor:pointer;transition:background .15s}
.lightbox-close:hover,.lightbox-prev:hover,.lightbox-next:hover{background:rgba(255,255,255,.24)}
.lightbox-close{position:absolute;top:17px;right:22px;width:44px;height:44px;font-size:32px;line-height:1}
.lightbox-prev,.lightbox-next{width:48px;height:48px;font-size:36px;line-height:1}
@media(max-width:760px){.cart-row{grid-template-columns:58px minmax(0,1fr);gap:9px;padding:9px}.cart-row .cart-thumb{width:58px;height:58px}.cart-title-line h4{font-size:13px}.cart-personalizations{gap:4px}.cart-personalizations li{font-size:10px}.remove-item{grid-column:2;justify-self:start;padding:4px 8px;font-size:11px}.lightbox{grid-template-columns:38px minmax(0,1fr) 38px;padding:60px 8px 20px;gap:4px}.lightbox-prev,.lightbox-next{width:34px;height:34px;font-size:27px}.lightbox figure img{max-width:calc(100vw - 100px);max-height:calc(100vh - 135px)}.lightbox-close{right:12px;top:12px;width:38px;height:38px;font-size:28px}.success-panel{padding:30px 20px 22px}.success-panel h2{font-size:23px}}


/* V2.1 – logo de marque à la même hauteur visuelle que l'icône outil */
.brand .brand-wordmark{
  display:block;width:auto;height:66px;max-width:215px;max-height:none;
  flex:0 1 auto;object-fit:contain;
}
@media(max-width:1150px){.brand .brand-wordmark{height:58px;max-width:190px}}
@media(max-width:760px){.brand .brand-wordmark{height:58px;max-width:170px}}
@media(max-width:420px){.brand .brand-wordmark{height:52px;max-width:135px}}

/* Affichage explicite et persistant de la modale de confirmation */
#successModal.is-open{display:grid!important;visibility:visible!important;opacity:1!important}
#successModal[hidden]:not(.is-open){display:none!important}
#successModal .success-panel{animation:successModalIn .18s ease-out both}
@keyframes successModalIn{
  from{opacity:0;transform:translateY(8px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

/* V2.2 – filtres regroupés dans une fenêtre dédiée */
.header-filters{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px}
.filter-trigger{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:9px 16px;border:1px solid #d8b47e;border-radius:26px;background:#314c29;color:#fff8eb;font-weight:700;font-size:14px;cursor:pointer;transition:background .15s,transform .15s}
.filter-trigger:hover{background:#405b35;transform:translateY(-1px)}
.filter-trigger:focus-visible,.filter-cancel:focus-visible,.text-button:focus-visible{outline:3px solid #d8b47e;outline-offset:3px}
.filter-trigger svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.filter-count{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:50%;background:#f8f0df;color:var(--green-dark);font-size:12px}
.filter-summary{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e8dcc7;font-size:11px;line-height:1.2}
.filter-panel{width:min(680px,100%);padding:27px 30px 22px}
.filter-modal-heading{padding-right:32px;margin-bottom:19px}
.filter-eyebrow{color:var(--brown);font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.filter-modal-heading h2{margin:4px 0 5px;font-size:29px}
.filter-modal-heading p{margin:0;color:var(--muted);font-size:13px}
.filter-search-label{display:block;margin:0 0 6px;font-size:12px;font-weight:700;color:var(--green-dark)}
.modal-panel .filter-search{width:100%;padding:11px 13px;border:1px solid #cbbda9;border-radius:8px;background:#fffdfa;color:var(--ink);outline:none}
.modal-panel .filter-search:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(38,63,32,.12)}
.filter-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:19px 0 10px;color:var(--green-dark);font-size:13px}
.text-button{border:0;background:none;color:var(--brown);font-size:12px;font-weight:700;text-decoration:underline;cursor:pointer}
.filter-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:min(34vh,290px);overflow:auto;padding:2px 3px 4px 2px}
.tag-option{position:relative;display:block;min-width:0;cursor:pointer}
.tag-option input{position:absolute;width:1px;height:1px;opacity:0}
.tag-option span{display:flex;align-items:center;min-height:42px;padding:9px 12px;border:1px solid #dfd1bd;border-radius:9px;background:#fffdfa;color:#382f24;font-size:13px;transition:background .15s,border-color .15s,box-shadow .15s}
.tag-option input:checked+span{border-color:#9b784b;background:#eee2ce;color:#20391c;font-weight:700;box-shadow:inset 0 0 0 1px #c6a475}
.tag-option input:focus-visible+span{outline:3px solid #c49a68;outline-offset:2px}
.tag-option[hidden]{display:none}
.no-tag-match{margin:12px 0;color:var(--muted);font-size:13px;text-align:center}
.filter-modal-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:19px;padding-top:15px;border-top:1px solid var(--line)}
.draft-filter-count{color:var(--muted);font-size:12px}
.filter-actions{display:flex;align-items:center;gap:10px}
.filter-cancel{border:1px solid var(--line);border-radius:9px;background:#fffdfa;color:var(--green-dark);padding:10px 14px;font-size:13px;font-weight:700;cursor:pointer}
#applyFilters{padding:10px 16px;font-size:13px}
@media(max-width:1150px){.header-filters{gap:3px}.filter-trigger{min-height:41px;padding:8px 13px;font-size:13px}}
@media(max-width:760px){
 .topbar{grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto;align-items:center;gap:8px;padding:8px 10px}
 .brand{grid-column:1;grid-row:1;min-width:0;justify-content:flex-start}
 .header-filters{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;min-width:0}
 .filter-trigger{min-height:40px;padding:7px 10px;gap:6px;font-size:12px;white-space:nowrap}
 .filter-trigger svg{width:17px;height:17px}
 .filter-summary{display:none}
 .request-link{grid-column:3;grid-row:1;padding:7px 9px;min-height:40px;gap:6px}
 .filter-panel{padding:24px 18px 17px}
 .filter-modal-heading h2{font-size:25px}
 .filter-options{max-height:42vh;gap:7px}
 .tag-option span{min-height:40px;padding:8px 9px;font-size:12px}
 .filter-modal-footer{align-items:stretch;flex-direction:column;gap:10px}
 .draft-filter-count{text-align:center}
 .filter-actions{width:100%}
 .filter-actions button{flex:1}
}
@media(max-width:420px){
 .topbar{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto}
 .brand{grid-column:1;grid-row:1}
 .request-link{grid-column:2;grid-row:1}
 .header-filters{grid-column:1/-1;grid-row:2;align-items:flex-start}
 .filter-trigger{width:100%;justify-content:center}
 .filter-options{grid-template-columns:1fr}
 .filter-panel{padding:22px 15px 15px}
}


/* Correctif mobile V2.2.1 : actions de la modale toujours visibles */
.filter-modal .filter-panel{
  display:flex;
  flex-direction:column;
  max-height:calc(100vh - 36px);
  max-height:calc(100dvh - 36px);
  overflow:hidden;
}
.filter-modal-body{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.filter-modal-footer{
  flex:0 0 auto;
  background:var(--paper);
  margin-top:12px;
  padding-top:12px;
}
@media(max-width:760px){
  .filter-modal{padding:12px;align-items:center}
  .filter-modal .filter-panel{
    width:100%;
    max-height:calc(100vh - 24px);
    max-height:calc(100dvh - 24px);
    padding:20px 16px 14px;
  }
  .filter-modal-body{padding-right:2px}
  .filter-modal .filter-options{
    max-height:none;
    overflow:visible;
  }
  .filter-modal .filter-modal-footer{
    flex-direction:column;
    align-items:stretch;
    gap:9px;
    padding-bottom:env(safe-area-inset-bottom, 0px);
  }
  .filter-modal .draft-filter-count{text-align:center}
  .filter-modal .filter-actions{
    display:grid;
    grid-template-columns:minmax(0,0.8fr) minmax(0,1.5fr);
    width:100%;
    gap:8px;
  }
  .filter-modal .filter-actions button{
    min-height:44px;
    padding:10px 8px;
    white-space:normal;
    line-height:1.2;
  }
}


/* V2.3.1 – Mobile : afficher 3 tags puis +N pour développer */
.more-tags{display:none}
@media(max-width:760px){
  .product-tags>span:nth-of-type(n+4){display:none}
  .product-card.show-all-tags .product-tags>span:nth-of-type(n+4){display:inline-flex}
  .product-tags>.more-tags{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:25px;
    padding:3px 9px;
    border:1px solid #cdb58f;
    border-radius:20px;
    background:#e9dfc9;
    color:#4b3a27;
    font-size:9px;
    font-weight:700;
    line-height:1.2;
    cursor:pointer;
    white-space:nowrap;
  }
  .product-card.show-all-tags .product-tags>.more-tags{background:#f5ecdc}
}


/* V2.4.2 – Partage du lien de recherche depuis la modale */
.filter-share{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 15px;border:1px solid #cdb58f;border-radius:9px;background:#f4ecdd;color:var(--green-dark);font-size:13px;font-weight:700;cursor:pointer;white-space:normal}
.filter-share:hover{background:#eadcc3}
.filter-share:focus-visible{outline:3px solid #d8b47e;outline-offset:3px}
@media(max-width:760px){.filter-modal .filter-share{width:100%;min-height:44px}}


/* V2.4.4 – PC : afficher 5 tags puis +N (mobile conserve 3 tags) */
@media(min-width:761px){
  .product-tags>span:nth-of-type(n+6){display:none}
  .product-card.show-all-tags .product-tags>span:nth-of-type(n+6){display:inline-flex}
  .product-tags>.more-tags{display:inline-flex;align-items:center;justify-content:center;min-height:25px;padding:3px 9px;border:1px solid #cdb58f;border-radius:20px;background:#e9dfc9;color:#4b3a27;font-size:10px;font-weight:700;line-height:1.2;cursor:pointer;white-space:nowrap}
  .product-card.show-all-tags .product-tags>.more-tags{background:#f5ecdc}
}
