﻿/* Pistemiaou — prototype : tokens + composants réutilisables (en-tête, nav, boutons, badges, cartes, tableaux, pied de page) */
:root{
  --cream:#fbf7ee;--cream2:#f5eedf;--paper:#fff;--forest:#1c5b40;--forest-d:#154531;--forest-l:#2f8a57;
  --ink:#1b2b25;--muted:#5e6b64;--line:#e6dcc9;--sage:#e5eee1;--sage2:#d7e6d3;--amber:#f3b63f;--orange:#f08a24;
  --blue:#3e86c8;--blue-l:#dbeafa;--slate:#7a8fa3;--coral:#d9573b;--peach:#fbe9d7;--mint:#e3f1e1;--sky:#e1eef9;
  --serif:'Source Serif 4','Merriweather',Georgia,Cambria,'Times New Roman',serif;
  --sans:'Segoe UI','Inter',system-ui,-apple-system,Roboto,Arial,sans-serif;
  --hand:'Segoe Script','Bradley Hand','Brush Script MT',cursive;
  --r:18px;--shadow:0 8px 24px rgba(60,48,26,.09);--shadow-s:0 2px 10px rgba(60,48,26,.08);
  --wrap:1332px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--sans);font-size:16px;line-height:1.45;color:var(--ink);background:var(--cream);overflow-x:hidden}
h1,h2,h3,h4,p,ul{margin:0}ul{padding:0;list-style:none}
img,svg{max-width:100%}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.no-scroll{overflow:hidden}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.ic{width:1.25em;height:1.25em;flex:none;vertical-align:-.2em}
:focus-visible{outline:3px solid #f0a52e;outline-offset:2px;border-radius:6px}
h1,h2,h3.serif,.serif{font-family:var(--serif)}

/* bandeau démo */
.demo-bar{background:#16392d;color:#e8f2ea;font-size:12.5px;text-align:center;padding:5px 12px;letter-spacing:.01em}
.demo-bar b{color:#f3b63f;text-transform:uppercase;letter-spacing:.06em;margin-right:4px}

/* boutons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:2px solid transparent;border-radius:12px;padding:12px 22px;font-weight:600;font-size:16px;line-height:1.2;transition:transform .12s,background .15s,box-shadow .15s;white-space:nowrap}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--forest);color:#fff;box-shadow:0 3px 10px rgba(28,91,64,.28)}.btn-primary:hover{background:var(--forest-d)}
.btn-outline{background:rgba(255,255,255,.55);border-color:var(--forest);color:var(--forest-d)}.btn-outline:hover{background:#fff}
.btn-soft{background:#f4ecdc;color:#44392a;border-color:#e8dcc4}
.btn-sm{padding:9px 16px;font-size:14.5px;border-radius:11px}
.btn-block{display:flex;width:100%}
.btn-light{background:#fff;color:var(--ink);border-color:var(--line);font-weight:600}
.round-btn{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#2c6a56;color:#fff;flex:none}
.round-btn .ic{width:18px;height:18px}
.icon-btn{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-s);position:relative}
.icon-btn.ring{border:2px solid var(--forest);color:var(--forest);background:#fff}
.icon-btn.paw{background:none;border:0;box-shadow:none;color:var(--forest)}
.pill-btn{display:inline-flex;align-items:center;gap:6px;background:#fff;border-radius:99px;padding:10px 16px;box-shadow:var(--shadow-s);font-weight:700}
.link-btn{background:none;border:0;color:var(--forest);text-decoration:underline;padding:0;font-size:13px}
.arrow-link{display:inline-flex;align-items:center;gap:6px;color:var(--forest-d);font-weight:600}
.heart-badge i{position:absolute;top:-2px;right:-2px;background:var(--orange);color:#fff;font-style:normal;font-size:10px;width:16px;height:16px;border-radius:50%;display:grid;place-items:center;font-weight:700}

/* badges, tags, pilules */
.fam{display:inline-flex;align-items:center;padding:3px 11px;border-radius:7px;font-size:12px;font-weight:700;color:#fff;letter-spacing:.01em;white-space:nowrap}
.fam-gsm{background:#2f8049}.fam-ble{background:#3b84c6}.fam-loc{background:#7d90a3}.fam-rf{background:#ee8620}
.tag{display:inline-flex;align-items:center;padding:3px 10px;border-radius:7px;font-size:12px;font-weight:600;white-space:nowrap}
.tag-sub{background:#fbe8cf;color:#8b4d0e}.tag-free{background:#fbe8cf;color:#8b4d0e}.tag-soft{background:#e9f2e3;color:#2a5d3d;border:1px solid #d3e3cb}
.tags{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.pill{display:inline-flex;align-items:center;gap:7px;padding:6px 13px;border-radius:9px;font-size:13.5px;font-weight:700;width:max-content;max-width:100%}
.pill .ic{width:17px;height:17px}
.pill-choice{background:var(--forest);color:#fff}.pill-value{background:#cfe6f9;color:#1b4f82}.pill-battery{background:#d7efd0;color:#215b33}.pill-free{background:#fbe3d9;color:#8b3a21}
.stars{display:inline-block;font-size:15px;letter-spacing:1.5px;background:linear-gradient(90deg,#f3a91d var(--r),#d9d2c3 var(--r));-webkit-background-clip:text;background-clip:text;color:transparent;line-height:1}
.rating{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:14px}
.rating b{font-weight:700}.rc{color:var(--muted);font-size:13px}
.heart{position:absolute;top:14px;right:14px;width:32px;height:32px;display:grid;place-items:center;border:0;background:transparent;color:#444;border-radius:50%}
.heart .ic{width:22px;height:22px}.heart.on{color:#e0453a}.heart.on .ic{fill:#e0453a}

/* cases à cocher */
.chk{display:flex;align-items:center;gap:9px;font-size:14px;cursor:pointer;user-select:none}
.chk input,.fchk input{position:absolute;opacity:0;pointer-events:none}
.box{width:20px;height:20px;border:2px solid #8a8f89;border-radius:5px;display:grid;place-items:center;color:transparent;background:#fff;flex:none}
.box .ic{width:14px;height:14px;stroke-width:3.4}
input:checked+.box{background:var(--forest);border-color:var(--forest);color:#fff}
input:focus-visible+.box{outline:3px solid #f0a52e;outline-offset:2px}

/* ---------- en-tête ---------- */
.site-header{position:relative;z-index:30;background:linear-gradient(180deg,#fdf9f1,#f8f1e2)}
.hdr{display:flex;align-items:center;gap:28px;height:78px}
.logo{display:flex;align-items:center;gap:10px;flex:none}
.logo-mark{width:48px;height:48px}
.logo-text{display:flex;flex-direction:column;line-height:1}
.logo-text b{font-family:var(--serif);font-size:29px;color:#15222b;font-weight:800;letter-spacing:-.01em}
.logo-text small{font-size:12px;color:#44504a;margin-top:3px}
.logo-light .logo-text b{color:#fff}.logo-light .logo-text small{color:#c4d8cf}
.main-nav{flex:1}.main-nav>ul{display:flex;gap:6px;align-items:center;justify-content:center}
.nav-item{position:relative}
.nav-link{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:10px 12px;font-size:16px;font-weight:500;color:#1b2b25;border-radius:12px;white-space:nowrap}
.nav-link .chev{width:15px;height:15px;transition:transform .15s}
.nav-link:hover{background:rgba(28,91,64,.07)}
.nav-link.active{background:var(--forest);color:#fff;font-weight:600;padding:11px 18px;box-shadow:0 3px 10px rgba(28,91,64,.25)}
.nav-item.open .chev{transform:rotate(180deg)}
.sub{position:absolute;left:0;top:calc(100% + 6px);min-width:240px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:8px;display:none;z-index:50}
.nav-item.open>.sub,.nav-item.has-sub:hover>.sub{display:block}
.sub a{display:block;padding:9px 12px;border-radius:9px;font-size:15px}.sub a:hover{background:var(--sage)}
.hdr-right{display:flex;align-items:center;gap:12px;margin-left:auto}
.burger{display:none;width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:#fff;place-items:center}
.search-box{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:0 14px;height:44px;min-width:270px;box-shadow:var(--shadow-s)}
.search-box input{border:0;outline:0;background:none;font:inherit;font-size:14px;width:100%}
.hv-catalog .nav-link{padding:10px 12px}
.hv-catalog .nav-link.active{padding:11px 18px}

/* ---------- cartes génériques ---------- */
.card{background:#fff;border:1px solid rgba(225,214,192,.8);border-radius:var(--r);box-shadow:var(--shadow);position:relative}
.prod-art{display:block;width:100%;height:100%}
.card-home{display:grid;grid-template-columns:150px 1fr;gap:6px 14px;padding:16px 18px 18px;align-items:center}
.card-home .pill{grid-column:1/-1;margin-bottom:2px}
.ch-art{height:112px;display:block}
.ch-body h3{font-family:var(--serif);font-size:19.5px;line-height:1.2;margin-bottom:6px}
.ch-body p{font-size:14px;color:#33413a;line-height:1.35;margin-bottom:8px}
.ch-foot{display:flex;align-items:center;justify-content:space-between;margin-top:10px;gap:8px}
.ch-foot .fam{font-size:11.5px;background:#dff0d6;color:#215b33}.ch-foot .fam-ble{background:#d6e8fb;color:#1d5a98}.ch-foot .tag{font-size:11px}
.ch-foot .tags{gap:7px}

.card-top{padding:18px 16px 16px;display:flex;flex-direction:column;gap:9px}
.rank{position:absolute;top:-1px;left:-1px;z-index:2;display:flex;flex-direction:column;background:var(--forest);color:#fff;padding:7px 14px 8px;border-radius:16px 0 14px 0;line-height:1.1;max-width:78%}
.rank b{font-family:var(--serif);font-size:19px}.rank small{font-size:11px;font-weight:600}
.rank-2,.rank-4{background:var(--amber);color:#3a2a08}
.ct-art{height:128px;margin:6px 0 2px;display:block}
.card-top h3{font-family:var(--serif);font-size:22px;line-height:1.15}
.card-top .desc{font-size:14px;color:#33413a;min-height:3.8em;line-height:1.35}
.mini-specs{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12.5px;color:#33413a;border-top:1px solid var(--line);padding-top:10px}
.mini-specs li{display:flex;align-items:center;gap:5px}.mini-specs .ic{width:15px;height:15px;color:#4a5a52}
.price-row{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin:2px 0 4px}
.price{font-family:var(--sans);font-size:25px;font-weight:800;color:#15222b}
.sub-line{font-size:13px;color:#44504a;line-height:1.3}

.card-cat{padding:14px 14px 14px;display:flex;flex-direction:column;gap:8px}
.card-cat.is-sel{border:2px solid var(--forest);background:#fffefb}
.card-cat .pill{position:relative;z-index:1;font-size:13px;padding:5px 11px}
.cc-art{height:104px;display:block;margin:2px 0}
.brand{font-size:14px;font-weight:600;color:#33413a;line-height:1}
.card-cat h3{font-size:18.5px;font-weight:800;line-height:1.15;margin-top:-4px}
.card-cat .fam{width:max-content}
.checks{display:flex;flex-direction:column;gap:3px;font-size:13.5px}
.checks li{display:flex;gap:7px;align-items:center}.checks .ic{width:16px;height:16px;color:var(--forest);stroke-width:2.6}
.cc-buy{border-top:1px solid var(--line);padding-top:10px;margin-top:auto;display:flex;flex-direction:column;gap:7px}
.from{font-size:14px}.from b{font-size:24px;font-weight:800}
.card-cat .btn{padding:11px 14px;font-size:15px}
.card-cat .chk{justify-content:center;font-size:13.5px;margin-top:2px}
.card-cat.is-list{display:grid;grid-template-columns:170px 1fr 250px;gap:6px 20px;align-items:center;padding:16px 20px}
.card-cat.is-list .pill{grid-column:1/-1;margin-bottom:0}.card-cat.is-list .cc-buy{border:0;border-left:1px solid var(--line);padding:0 0 0 20px;margin:0}
.card-cat.is-list .cc-art{height:110px}

.card-alt{display:grid;grid-template-columns:104px 1fr auto;gap:10px;align-items:center;padding:12px 16px}
.ca-art{height:70px;display:block}.ca-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:5px}.ca-head h3{font-size:15px;font-weight:700}.ca-head .fam{font-size:11px;padding:2px 8px;background:#2f8049}
.ca-body .rating{font-size:13px}

/* tableaux */
.table-wrap{background:#fff;border:1px solid #d9cfb8;border-radius:16px;overflow:hidden;box-shadow:var(--shadow-s)}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{border-collapse:collapse;width:100%}
.data-table{min-width:980px;font-size:14px}
.data-table th{background:#f3ead8;font-weight:600;text-align:left;padding:10px 12px;font-size:13px;color:#2a362f;border-bottom:1px solid #d9cfb8;vertical-align:middle}
.data-table td{white-space:nowrap;padding:10px 12px;border-bottom:1px solid #eadfc9;vertical-align:middle}
.data-table tr:last-child td{border-bottom:0}
.data-table tbody tr:hover{background:#fcf8ef}
.data-table .prod{display:flex;align-items:center;gap:10px;font-weight:700;min-width:190px}.data-table .prod .prod-art{width:34px;height:28px;flex:none}
.data-table .tot{font-weight:800;background:#eaf3e6}
.data-table .ok{color:var(--forest);width:20px;height:20px;stroke-width:3}.data-table .no{color:#6a6f6b;width:18px;height:18px}
.data-table .star-cell{display:flex;gap:5px;align-items:center;font-weight:700}.data-table .star-cell .ic{width:15px;height:15px;color:#f3a91d}
.data-table .btn{padding:6px 12px;font-size:13px;border-radius:8px}
.data-table th button{background:none;border:0;font:inherit;font-weight:600;padding:0;display:inline-flex;gap:3px;align-items:center}

/* pied de page */
.site-footer{background:linear-gradient(180deg,#1d5149,#173e3a);color:#e6efe9;margin-top:0}
.foot-grid{display:grid;grid-template-columns:1.25fr .8fr .9fr 1.4fr;gap:40px;padding-top:34px;padding-bottom:30px}
.f-brand p{font-size:14px;line-height:1.5;margin:14px 0;color:#d2e1da;max-width:330px}
.social{display:flex;gap:16px}.social a{width:26px;height:26px;color:#fff;display:grid;place-items:center}.social .ic{width:26px;height:26px}
.site-footer h4{font-size:16px;font-weight:700;margin-bottom:12px;display:flex;align-items:center;gap:10px;color:#fff}
.f-col li{margin:6px 0;font-size:14px;color:#d2e1da}.f-col a:hover{text-decoration:underline}
.f-news p{font-size:13.5px;color:#d2e1da;margin-bottom:12px}.f-news small{display:block;margin-top:12px;font-size:12.5px;color:#c4d8cf}.f-news em{font-style:normal;opacity:.85}
.news{display:flex;gap:8px;background:#fff;border-radius:14px;padding:5px;align-items:center}
.news input{flex:1;min-width:0;border:0;outline:0;background:none;padding:10px 12px;font:inherit;font-size:14px}
.news .btn{background:#1f5a3d;padding:10px 16px}
.foot-bottom{background:#1a4741;border-top:1px solid rgba(255,255,255,.08);font-size:13.5px;color:#d2e1da}
.foot-bottom .wrap{display:flex;justify-content:space-between;gap:16px;padding-top:11px;padding-bottom:11px;flex-wrap:wrap}.foot-bottom span{display:flex;align-items:center;gap:8px}

/* fenêtre comparateur + toast */
.modal{position:fixed;inset:0;background:rgba(20,32,26,.55);display:none;align-items:center;justify-content:center;padding:20px;z-index:100}
.modal.open{display:flex}
.modal-card{background:var(--cream);border-radius:20px;max-width:1000px;width:100%;max-height:90vh;overflow:auto;padding:22px 24px 26px;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.modal-head h2{font-size:26px;display:flex;gap:10px;align-items:center}
.modal-note{font-size:13px;color:var(--muted);margin-bottom:14px}
.cmp-table{min-width:560px;background:#fff;border-radius:14px;overflow:hidden;font-size:14.5px}
.cmp-table th,.cmp-table td{padding:11px 14px;border-bottom:1px solid #eadfc9;text-align:left;vertical-align:middle}
.cmp-table thead th{vertical-align:bottom;background:#f7f0e1}.cmp-table thead th .prod-art{width:80px;height:60px}.cmp-table thead a{display:block;font-weight:800;margin:4px 0 2px}
.cmp-table tbody th{background:#faf5e9;font-weight:600;width:170px}
.cmp-table td.best{background:#e8f3e3;font-weight:800}.cmp-table td em{display:block;font-size:11.5px;font-style:normal;color:var(--forest);font-weight:600}
.cmp-table .ok{color:var(--forest)}.cmp-table .no{color:#777}
#toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,30px);background:#16392d;color:#fff;padding:12px 20px;border-radius:12px;box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:.25s;z-index:200;max-width:92vw;text-align:center;font-size:14.5px}
#toast.show{opacity:1;transform:translate(-50%,0)}

