/* Catalogue — mission 4B. Règles confinées à body.page-catalogue : aucune autre page n'est affectée.
   Réutilise les composants de pages.css sans les modifier. */

/* ---------- utilitaires ---------- */
.page-catalogue .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.page-catalogue .link-btn{background:none;border:0;padding:0;font:inherit;color:var(--forest-d);text-decoration:underline;cursor:pointer;min-height:44px;display:inline-flex;align-items:center}
.page-catalogue :focus-visible{outline:3px solid #f0a52e;outline-offset:2px}
.page-catalogue .cat-layout>*{min-width:0}

/* ---------- contrastes (confinés au catalogue) ---------- */
.page-catalogue .fam-ble{background:#2f6fb0}
.page-catalogue .fam-loc{background:#5f7487}
.page-catalogue .fam-rf{background:#a85407}
.page-catalogue .box{border-color:#646963}
.page-catalogue .rc,.page-catalogue .fchk .n{color:#4f5c55}
.page-catalogue .f-sec summary,.page-catalogue .sb-title{color:var(--ink)}

/* ---------- en-tête : bouton « Mon comparateur » adapté à la largeur ---------- */
.page-catalogue .hdr-right .btn,.page-catalogue .hdr-right .icon-btn,.page-catalogue .burger,.page-catalogue .logo{min-height:44px}
.page-catalogue .hdr-right .btn .cnt{white-space:nowrap}
@media (max-width:1100px){.page-catalogue .hdr{gap:12px}}
@media (max-width:600px){
  .page-catalogue .hdr{gap:8px}
  .page-catalogue .hdr-right{gap:8px}
  .page-catalogue .hdr-right .btn{padding:9px 12px;gap:6px}
  .page-catalogue .logo-mark{width:38px;height:38px}
  .page-catalogue .logo-text b{font-size:22px}
  .page-catalogue .logo-text small{font-size:10px}
}
@media (max-width:440px){.page-catalogue .hdr-right .icon-btn.ring{display:none}}

/* ---------- hero : emplacement photographique ---------- */
.page-catalogue .hero-cat{min-height:208px}
.page-catalogue .hero-cat .hero-copy{max-width:760px}
.page-catalogue .hero-photo{position:absolute;right:0;top:0;bottom:0;width:48%;z-index:1;overflow:hidden}
.page-catalogue .hero-photo picture,.page-catalogue .hero-photo img{display:block;width:100%;height:100%}
.page-catalogue .hero-photo img{object-fit:cover;object-position:var(--focus,50% 50%)}
.page-catalogue .hero-photo.has-photo{-webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.4) 14%,#000 42%);mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.4) 14%,#000 42%)}
.page-catalogue .hp-frame{position:absolute;inset:12px 24px 12px 16%;border:2px dashed #8fae95;border-radius:20px;background:linear-gradient(135deg,rgba(226,236,222,.85),rgba(250,244,230,.7));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;color:#456050;font-size:14px;line-height:1.35;padding:12px}
.page-catalogue .hp-frame .ic{width:38px;height:38px;stroke-width:1.4}
.page-catalogue .hp-frame small{font-size:12.5px;color:#4b6454}
@media (max-width:1100px){.page-catalogue .hero-photo{width:52%}}
@media (max-width:820px){
  .page-catalogue .hero-cat{padding-bottom:0}
  .page-catalogue .hero-photo{position:relative;width:100%;height:300px;margin-top:20px}
  .page-catalogue .hero-photo.has-photo{-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 14%);mask-image:linear-gradient(180deg,transparent 0,#000 14%)}
  .page-catalogue .hp-frame{inset:8px 16px}
}
@media (max-width:600px){.page-catalogue .hero-photo{height:250px}.page-catalogue .hero-photo img{object-position:var(--focus-m,var(--focus,50% 50%))}}

/* ---------- mise en page générale ---------- */
.page-catalogue .cat-layout{padding-bottom:44px}
body.page-catalogue.has-cbar{padding-bottom:calc(var(--bar-h,0px) + 28px)}
body.page-catalogue.shot.has-cbar{padding-bottom:0}

/* ---------- recherche ---------- */
.page-catalogue .cat-search{position:relative;display:flex;align-items:center;gap:10px;background:#fff;border:1.5px solid #b9b19c;border-radius:14px;padding:0 6px 0 16px;height:52px;margin-bottom:16px;box-shadow:var(--shadow-s)}
.page-catalogue .cat-search:focus-within{border-color:var(--forest);outline:3px solid #f0a52e;outline-offset:2px}
.page-catalogue .cat-search>.ic{width:22px;height:22px;color:#4b5851;flex:none}
.page-catalogue .cat-search input{flex:1;min-width:0;border:0;outline:0;background:none;font:inherit;font-size:16px;color:var(--ink);height:100%}
.page-catalogue .cat-search input::placeholder{color:#5e6b64}
.page-catalogue .q-clear{width:44px;height:44px;border:0;background:none;display:grid;place-items:center;border-radius:50%;color:#33413a}
.page-catalogue .q-clear[hidden]{display:none}
.page-catalogue .q-clear:hover{background:#f1ebdc}

/* ---------- barre d'outils, puces ---------- */
.page-catalogue .toolbar{margin-bottom:12px}
.page-catalogue .toolbar h2:focus{outline:none}
.page-catalogue .count{font-size:15px;color:#4f5c55;font-weight:600}
.page-catalogue .chips-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.page-catalogue .chips-row:has(.chip),.page-catalogue .chips-row:has(.copy-link:not([hidden])){margin:0 0 16px}
.page-catalogue .chip{min-height:36px}
.page-catalogue .chip button{width:28px;height:28px;border-radius:50%}
.page-catalogue .chip button:hover{background:rgba(0,0,0,.08)}
.page-catalogue .chip-reset{min-height:44px;cursor:pointer}
.page-catalogue .copy-link{font-size:14px}
.page-catalogue .sort{height:48px}
.page-catalogue .sort .select{min-height:44px;height:44px}
.page-catalogue .view-toggle button{width:46px;height:44px}
.page-catalogue .filter-btn{min-height:44px}

/* ---------- panneau de filtres ---------- */
.page-catalogue .sb-head{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 10px;padding:14px 4px 6px;font-size:17px;font-weight:700}
.page-catalogue .sb-title{display:flex;align-items:center;gap:8px;font-size:16.5px}
.page-catalogue .sb-head .btn{margin-left:0;min-height:36px;padding:5px 11px;font-size:13px}
.page-catalogue .card-cat .rating{font-size:13px;gap:4px}
.page-catalogue .card-cat .rating .rc{font-size:12.5px}
.page-catalogue .sb-close{display:none}
.page-catalogue .f-help{font-size:12.5px;line-height:1.4;color:#4f5c55;margin:0 4px 8px}
.page-catalogue .fchk{min-height:34px}
.page-catalogue .fchk.is-zero{color:#6a756f;cursor:not-allowed}
.page-catalogue .fchk.is-zero .box{border-style:dashed;border-color:#9aa19a;background:#f3f1ea}
.page-catalogue .f-sec summary{min-height:36px}
.page-catalogue .f-sec summary:focus-visible{outline:3px solid #f0a52e;outline-offset:2px;border-radius:6px}
.page-catalogue .dual input{pointer-events:none}
@media (max-width:1100px){
  .page-catalogue .sidebar{visibility:hidden;transition:transform .25s,visibility 0s linear .25s;overscroll-behavior:contain;padding-bottom:28px}
  .page-catalogue.f-open .sidebar{visibility:visible;transition:transform .25s,visibility 0s}
  .page-catalogue .sb-close{display:grid;grid-column:2;grid-row:1;width:44px;height:44px}
  .page-catalogue .sb-title{grid-column:1;grid-row:1}
  .page-catalogue .sb-head .btn{grid-column:1/-1;grid-row:2;justify-self:start;min-height:44px}
  .page-catalogue .fchk{min-height:44px}
  .page-catalogue .f-sec summary{min-height:44px}
  .page-catalogue .dual{height:36px}
  .page-catalogue .dual .track,.page-catalogue .dual .fill{top:16px}
  .page-catalogue .dual input{height:36px}
  .page-catalogue .dual-lbl{margin-top:2px}
}

/* ---------- cartes produit ---------- */
.page-catalogue .card-cat{padding:14px}
.page-catalogue .card-cat .heart{width:44px;height:44px;top:6px;right:6px;z-index:2}
.page-catalogue .card-cat .heart .ic{width:22px;height:22px}
.page-catalogue .card-cat .pill{max-width:calc(100% - 54px);font-size:12.5px;padding:5px 11px}
.page-catalogue .pill-with{background:#e1efdc;color:#1f5a35}
.page-catalogue .pill-free{background:#fbe3d9;color:#8b3a21}
.page-catalogue .cc-art{position:relative;display:block;background:linear-gradient(145deg,#f7f2e6,#ece4d0);border:1px solid #e6dcc6;border-radius:12px;overflow:hidden;margin:2px 0}
.page-catalogue .cc-art .ph-box{inset:7px;gap:3px;font-size:11px;line-height:1.25;color:#625b47;border-radius:8px}
.page-catalogue .cc-art .ph-box .ic{width:24px;height:24px}
.page-catalogue .card-cat .brand{color:#33413a;margin-bottom:2px}
.page-catalogue .card-cat h3{margin-top:0;text-wrap:balance;overflow-wrap:anywhere}
.page-catalogue .card-cat h3 a:hover{text-decoration:underline}
.page-catalogue .card-cat .rating{margin-top:2px}
.page-catalogue .cc-more{display:none}
.page-catalogue .cc-buy .btn{min-height:46px}
.page-catalogue .chk{min-height:44px;justify-content:center;padding:0 4px;cursor:pointer}
.page-catalogue .card-cat.is-sel{border:2px solid var(--forest);background:#fffefb}
.page-catalogue .cc-price .from{font-size:14px}
@media (max-width:1380px){.page-catalogue .card-cat .pill{font-size:12px}}

/* cartes compactes sur mobile : image à gauche, informations essentielles visibles */
@media (max-width:600px){
  .page-catalogue .view-toggle{display:none}
  .page-catalogue .prod-grid{grid-template-columns:1fr;gap:12px}
  .page-catalogue .card-cat{display:grid;grid-template-columns:92px minmax(0,1fr);grid-template-areas:"pill pill" "art body" "buy buy";gap:8px 12px;padding:12px}
  .page-catalogue .card-cat .pill{grid-area:pill;justify-self:start}
  .page-catalogue .card-cat .cc-art{grid-area:art;height:92px;margin:0}
  .page-catalogue .card-cat .cc-body{grid-area:body;min-width:0;gap:4px}
  .page-catalogue .card-cat .cc-body>.checks{display:none}
  .page-catalogue .card-cat .cc-more{display:block}
  .page-catalogue .cc-more summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:600;font-size:14px;color:var(--forest-d)}
  .page-catalogue .cc-more summary::-webkit-details-marker{display:none}
  .page-catalogue .cc-more summary .ic{width:18px;height:18px;transition:transform .2s}
  .page-catalogue .cc-more[open] summary .ic{transform:rotate(180deg)}
  .page-catalogue .card-cat h3{font-size:17px}
  .page-catalogue .card-cat h3{margin:-6px 0}.page-catalogue .card-cat h3 a{display:inline-flex;align-items:center;min-height:44px}
  .page-catalogue .card-cat .cc-buy{grid-area:buy;display:grid;grid-template-columns:1fr auto;gap:6px 10px;align-items:center;border-top:1px solid #eadfc9;padding-top:10px;margin:0}
  .page-catalogue .card-cat .cc-buy .chk{grid-column:1/-1;justify-content:flex-start}
  .page-catalogue .card-cat .cc-buy .btn{padding:10px 14px;font-size:15px}
  .page-catalogue .card-cat .from b{font-size:21px}
}

/* ---------- état vide ---------- */
.page-catalogue .no-results{grid-column:1/-1;text-align:left;padding:28px 26px;background:#fff;border:1px dashed #b9b19c;border-radius:16px}
.page-catalogue .no-results b{font-size:18px;font-family:var(--serif)}
.page-catalogue .no-results p{margin:8px 0 10px;color:#33413a}
.page-catalogue .sug{list-style:none;padding:0;margin:0 0 14px;display:flex;flex-wrap:wrap;gap:8px}
.page-catalogue .sug .btn{min-height:44px;font-size:14px}
.page-catalogue .sug-n{font-weight:700;color:#1d6a43;margin-left:6px}

/* ---------- barre de comparaison ---------- */
.page-catalogue .compare-bar{gap:14px;padding:10px 18px;border-radius:18px}
.page-catalogue .cb-title{font-size:17px}
.page-catalogue .cb-t b{font-weight:800}
.page-catalogue .cb-items{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0}
.page-catalogue .cb-item{position:relative;display:flex;align-items:center;gap:6px;width:auto;height:auto;background:#f4efe0;border:1px solid #cfc6b1;border-radius:22px;padding:2px 2px 2px 10px;font-size:13.5px}
.page-catalogue .cb-item .cb-ico .ic{width:16px;height:16px;color:#2a6a55;vertical-align:-3px}
.page-catalogue .cb-item .cb-nm{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.page-catalogue .cb-item button{position:static;width:36px;height:36px;border-radius:50%;background:transparent;border:0;display:grid;place-items:center;padding:0}
.page-catalogue .cb-item button:hover{background:rgba(0,0,0,.08)}
.page-catalogue .cb-item button .ic{width:14px;height:14px}
.page-catalogue .cb-text{margin:0;border-left:1px solid #e3d9c1;padding-left:18px;font-size:14.5px;line-height:1.35;flex:1;color:#33413a}
.page-catalogue .cb-go{min-height:46px;white-space:nowrap}
.page-catalogue .cb-go:disabled{opacity:.55;cursor:not-allowed;transform:none}
@media (max-width:820px){.page-catalogue .cb-text{display:none}}
@media (max-width:600px){
  .page-catalogue .compare-bar{width:calc(100% - 16px);bottom:8px;padding:8px 10px 8px 14px;display:grid;grid-template-columns:1fr auto;grid-template-areas:"t go" "x go";gap:0 10px;border-radius:16px}
  .page-catalogue .cb-title{grid-area:t;font-size:16px}
  .page-catalogue .cb-items{display:none}
  .page-catalogue .cb-text{display:block;grid-area:x;border:0;padding:0;font-size:12.5px;flex:none}
  .page-catalogue .cb-go{grid-area:go;padding:10px 14px}
}

/* ---------- fenêtre de comparaison du catalogue ---------- */
.cat-modal{position:fixed;inset:0;background:rgba(20,32,26,.55);display:none;align-items:center;justify-content:center;padding:20px;z-index:100}
.cat-modal.open{display:flex}
.cat-modal-card{background:var(--cream);border-radius:20px;max-width:1040px;width:100%;max-height:90vh;overflow:auto;padding:22px 24px 26px;box-shadow:0 20px 60px rgba(0,0,0,.35);color:var(--ink)}
.cm-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px}
.cm-head h2{font-size:26px;font-family:var(--serif)}
.cm-head .icon-btn{width:44px;height:44px}
.cm-note{font-size:13.5px;color:#4b5851;margin:0 0 14px}
.cm-table{overflow-x:auto;border-radius:14px}
.cm-table:focus-visible{outline:3px solid #f0a52e;outline-offset:2px}
.cm-table table{width:100%;min-width:640px;border-collapse:collapse;background:#fff;font-size:14.5px}
.cm-table th,.cm-table td{padding:11px 14px;border-bottom:1px solid #eadfc9;text-align:left;vertical-align:middle}
.cm-table thead th{background:#f7f0e1;vertical-align:bottom}
.cm-table thead th a{display:block;font-weight:800;margin:6px 0 2px}
.cm-table tbody th{background:#faf5e9;font-weight:600;width:170px}
.cm-table .cm-ico{display:grid;place-items:center;width:44px;height:36px;border-radius:9px;background:#efe9d8;border:1px solid #e1d8c1;color:#2a6a55}
.cm-table .cm-ico .ic{width:20px;height:20px}
.cm-table td.best,.cm-card dd.best{background:#e8f3e3;font-weight:800}
.cm-table td em,.cm-card dd em{display:block;font-size:12px;font-style:normal;color:#1d6a43;font-weight:700}
.cm-cards{display:none}
.cm-card{background:#fff;border:1px solid #e1d8c1;border-radius:16px;padding:14px;margin-bottom:12px}
.cm-card header{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.cm-card h3{font-size:17px;font-weight:800;flex:1 1 150px}
.cm-card h3 a{display:inline-flex;align-items:center;min-height:44px}
.cm-card dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
.cm-card dt{font-size:12.5px;color:#4b5851}.cm-card dd{margin:0;font-weight:600;font-size:14.5px}
.cm-act{display:flex;gap:8px;margin-top:12px}.cm-act .btn{min-height:44px;flex:1;justify-content:center}
@media (max-width:600px){
  .cat-modal{padding:8px}.cat-modal-card{padding:16px 14px;max-height:94vh}.cm-head h2{font-size:21px}
  .cm-table{display:none}.cm-cards{display:block}
}

/* ---------- contenu éditorial (composants .ed-* de pages.css) ---------- */
.page-catalogue .cat-ed{scroll-margin-top:12px}
.page-catalogue .cat-ed .ed-head{align-items:end}
.page-catalogue .ed .sec-title h2{font-size:32px}
.page-catalogue .ed-link{font-weight:600}
.page-catalogue .cat-ed .ed-more a{display:inline-flex;align-items:center;min-height:32px}
.page-catalogue .eg{padding:24px;position:static}
.page-catalogue .eg h3{font-family:var(--serif);font-size:20px;margin-bottom:10px}
.page-catalogue .eg .src{font-size:13px;line-height:1.5;color:#4b5851;margin:0}
.page-catalogue .stat-list{list-style:none;padding:0;margin:0 0 12px}
.page-catalogue .stat-list li{padding:10px 0;border-bottom:1px solid #eadfc9;font-size:15px;line-height:1.45}
.page-catalogue .stat-list li:last-child{border-bottom:0}
.page-catalogue .fam-tiles{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.page-catalogue .tile{display:flex;flex-direction:column;gap:8px;height:100%;background:#fff;border:1px solid #d6e3d0;border-radius:18px;padding:18px 18px 12px;box-shadow:var(--shadow-s);color:inherit;text-decoration:none;transition:transform .15s,box-shadow .15s}
.page-catalogue .tile:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(40,70,40,.14)}
.page-catalogue .tile-top{display:flex;justify-content:space-between;align-items:center}
.page-catalogue .tile-top>.ic{width:36px;height:36px;color:#2a6a55;stroke-width:1.5}
.page-catalogue .tile b{font-family:var(--serif);font-size:19px;line-height:1.2}
.page-catalogue .tile-n{font-size:14px;line-height:1.45;color:#33413a}
.page-catalogue .tile-go{margin-top:auto;display:inline-flex;gap:6px;align-items:center;min-height:44px;font-weight:600;color:var(--forest-d)}
.page-catalogue .tile-go .ic{width:18px;height:18px}
.page-catalogue .needs{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.page-catalogue .need{display:flex;flex-direction:column;gap:6px;height:100%;background:#fff;border:1px solid #e1d8c3;border-left:4px solid var(--forest);border-radius:14px;padding:16px 18px;color:inherit;text-decoration:none;transition:box-shadow .15s}
.page-catalogue .need:hover{box-shadow:0 10px 22px rgba(40,70,40,.12)}
.page-catalogue .need b{font-size:16.5px;line-height:1.3}
.page-catalogue .need-n{font-size:13px;font-weight:700;color:#1d6a43}
.page-catalogue .need-t{font-size:14px;line-height:1.5;color:#33413a}
.page-catalogue .read-list{margin:0}
.page-catalogue .read-list>div{display:grid;grid-template-columns:.9fr 1.6fr;gap:6px 24px;padding:15px 0;border-top:1px solid #c6d9c1}
.page-catalogue .read-list>div:first-child{border-top:0;padding-top:0}
.page-catalogue .read-list dt{font-family:var(--serif);font-weight:700;font-size:17px;line-height:1.3}
.page-catalogue .read-list dd{margin:0;font-size:15.5px;line-height:1.55;color:#26332c}
.page-catalogue .ed-q summary{min-height:48px}
@media (max-width:1100px){
  .page-catalogue .fam-tiles{grid-template-columns:repeat(2,1fr)}
  .page-catalogue .needs{grid-template-columns:repeat(2,1fr)}
  .page-catalogue .cat-ed .ed-more a{min-height:44px}
}
@media (max-width:600px){
  .page-catalogue .ed .sec-title h2{font-size:25px}
  .page-catalogue .fam-tiles,.page-catalogue .needs{grid-template-columns:1fr}
  .page-catalogue .read-list>div{grid-template-columns:1fr}
  .page-catalogue .eg{padding:18px 14px}
}
@media (prefers-reduced-motion:reduce){.page-catalogue *{transition:none!important;scroll-behavior:auto!important}}


/* curseurs : zone tactile 44 px */
.page-catalogue input[type=range]{min-height:44px}


/* lien du catalogue vers la rubrique accessoires (mission 9) */
.cat-acc-link{margin:10px 0 0;font-size:15px;line-height:1.5}

/* Carte du catalogue : lien marchand explicite (mission 10) ; la fiche reste le bouton principal */
.cc-buy-link{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin-top:8px;padding:9px 12px;border:2px solid #1c5b40;border-radius:12px;background:#fff;color:#14472f;font-weight:700;font-size:14.5px;line-height:1.25;text-align:center;text-decoration:none}
.cc-buy-link:hover{background:#eef6f1}
.cc-buy-link:focus-visible{outline:3px solid #f5b83d;outline-offset:2px}
.cc-buy-link .buy-ext{flex:none;width:16px;height:16px}
.cc-redirect{display:block;margin-top:4px;font-size:12.5px;line-height:1.4;color:#5b6b64;text-align:center}
/* le lien marchand occupe toute la largeur de la carte (mobile et bureau) */
.page-catalogue .card-cat .cc-buy .cc-buy-link,.page-catalogue .card-cat .cc-buy .cc-redirect{grid-column:1/-1;width:100%;max-width:100%;margin-top:0}
