:root {
            --bleu: #12a6a1;
            --bleu-dark: #0e8f8b;
            --orange: #cc582c;
            --jaune: #f7ae42;
            --creme: #f5f2eb;
            --noir: #1a1a1a;
            --blanc: #ffffff;
            --gris: #8a8a8a;
            --gris-light: #f0eeea;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Montserrat', sans-serif; background-color: var(--creme); color: var(--noir); min-height: 100vh; line-height: 1.6; }

        /* ===== HEADER ===== */
        .header { background: var(--blanc); padding: 16px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 20px rgba(0,0,0,0.06); }
        .header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
        .logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
        .logo-text { font-size: 20px; font-weight: 800; color: var(--noir); letter-spacing: -0.5px; }
        .search-wrapper { flex: 1; max-width: 460px; }
        .search-container { position: relative; width: 100%; }
        .search-input { width: 100%; padding: 12px 18px 12px 44px; border: 2px solid var(--gris-light); border-radius: 30px; background: var(--gris-light); color: var(--noir); font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 500; transition: all 0.3s ease; }
        .search-input::placeholder { color: var(--gris); }
        .search-input:focus { outline: none; background: var(--blanc); border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(18,166,161,0.1); }
        .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; opacity: 0.45; pointer-events: none; }
        .cart-btn { position: relative; background: var(--bleu); border: none; border-radius: 12px; width: 46px; height: 46px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; flex-shrink: 0; }
        .cart-btn:hover { background: var(--bleu-dark); transform: scale(1.05); }
        .cart-btn svg { width: 20px; height: 20px; fill: var(--blanc); }
        .cart-count { position: absolute; top: -5px; right: -5px; background: var(--orange); color: var(--blanc); font-size: 10px; font-weight: 800; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

        /* ===== MAIN ===== */
        .main { max-width: 1200px; margin: 0 auto; padding: 32px 20px; }

        /* ── HERO BANNER ── */
        .hero-banner { background: linear-gradient(135deg, #0a3d3a 0%, #12a6a1 65%, #1ec8b8 100%); border-radius: 24px; padding: 52px 40px; text-align: center; margin-bottom: 40px; position: relative; overflow: hidden; }
        .hero-banner::before { content:''; position:absolute; top:-70px; right:-70px; width:260px; height:260px; background:rgba(255,255,255,0.06); border-radius:50%; }
        .hero-banner::after  { content:''; position:absolute; bottom:-90px; left:-50px; width:320px; height:320px; background:rgba(255,255,255,0.04); border-radius:50%; }
        .hero-banner h2 { font-size: 38px; font-weight: 900; color: #fff; letter-spacing: -0.5px; margin-bottom: 10px; position: relative; z-index: 1; }
        .hero-banner p  { font-size: 15px; color: rgba(255,255,255,0.82); font-weight: 500; max-width: 420px; margin: 0 auto; line-height: 1.7; position: relative; z-index: 1; }

        /* ── SECTION CATÉGORIES ── */
        .cat-section { margin-bottom: 40px; }
        .cat-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
        .cat-section-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--noir); }
        .cat-section-title svg { width: 20px; height: 20px; fill: var(--bleu); }
        .voir-tout { font-size: 13px; font-weight: 700; color: var(--bleu); background: none; border: none; font-family: 'Montserrat', sans-serif; cursor: pointer; display: flex; align-items: center; gap: 4px; transition: color .2s; }
        .voir-tout:hover { color: var(--bleu-dark); }
        .voir-tout svg { width: 15px; height: 15px; fill: currentColor; }
        .cat-grid {
            display: flex;
            flex-wrap: nowrap;
            gap: 12px;
            overflow-x: auto;
            overflow-y: visible;
            padding-bottom: 8px;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
        }
        /* Masquer la scrollbar sur desktop, la garder fonctionnelle */
        .cat-grid::-webkit-scrollbar { height: 4px; }
        .cat-grid::-webkit-scrollbar-track { background: transparent; }
        .cat-grid::-webkit-scrollbar-thumb { background: var(--gris-light); border-radius: 2px; }
        .cat-grid.expanded { flex-wrap: wrap; overflow-x: hidden; }
        /* Cartes adaptatives : remplissent tout l'espace, scroll si débordement */
        .cat-grid .cat-card { flex: 1 1 120px; min-width: 110px; scroll-snap-align: start; }

        /* Modal toutes catégories */
        .all-cats-overlay { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(26,26,26,0.55); backdrop-filter: blur(14px); z-index: 4000; display: flex; align-items: flex-end; justify-content: center; opacity:0; visibility:hidden; transition: all .35s ease; }
        .all-cats-overlay.active { opacity:1; visibility:visible; }
        .all-cats-sheet { background: var(--blanc); border-radius: 28px 28px 0 0; padding: 28px 24px 48px; width:100%; max-width:700px; transform:translateY(100%); transition: transform .4s cubic-bezier(0.23,1,0.32,1); max-height: 80vh; overflow-y: auto; }
        .all-cats-overlay.active .all-cats-sheet { transform:translateY(0); }
        .all-cats-handle { width:40px; height:4px; background:var(--gris-light); border-radius:2px; margin:0 auto 22px; }
        .all-cats-title { font-size:17px; font-weight:800; color:var(--noir); margin-bottom:20px; display:flex; align-items:center; gap:10px; }
        .all-cats-title svg { width:18px; height:18px; fill:var(--bleu); }
        .all-cats-grid { display:flex; flex-wrap:wrap; gap:12px; }
        .cat-card { background: var(--blanc); border: 1.5px solid var(--gris-light); border-radius: 16px; padding: 20px 10px 16px; text-align: center; cursor: pointer; transition: all .25s ease; display: flex; flex-direction: column; align-items: center; gap: 10px; }
        .cat-card:hover { border-color: var(--bleu); box-shadow: 0 6px 20px rgba(18,166,161,0.12); transform: translateY(-3px); }
        .cat-card.active { border-color: var(--bleu); background: linear-gradient(135deg,#e8faf9,#f0fffe); }
        .cat-icon { width: 46px; height: 46px; background: var(--gris-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: background .25s; }
        .cat-card:hover .cat-icon, .cat-card.active .cat-icon { background: rgba(18,166,161,0.12); }
        .cat-icon svg { width: 22px; height: 22px; fill: var(--bleu); }
        .cat-name { font-size: 11px; font-weight: 700; color: var(--noir); line-height: 1.3; }

        /* ── TITRE CATALOGUE ── */
        .catalogue-title { font-size: 17px; font-weight: 800; color: var(--noir); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
        .catalogue-title svg { width: 18px; height: 18px; fill: var(--bleu); }
        .reset-filter-btn { display:none; align-items:center; gap:6px; background:var(--gris-light); border:none; border-radius:20px; padding:6px 14px; font-family:'Montserrat',sans-serif; font-size:12px; font-weight:700; color:var(--noir); cursor:pointer; transition:all .2s ease; margin-left:auto; }
.reset-filter-btn.visible { display:flex; }
.reset-filter-btn:hover { background:var(--orange); color:var(--blanc); }

        /* Loading */
        .loading { text-align: center; padding: 100px 20px; }
        .loading-spinner { width: 40px; height: 40px; border: 3px solid var(--gris-light); border-top-color: var(--bleu); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
        @keyframes spin { to { transform: rotate(360deg); } }
        .loading p { color: var(--gris); font-weight: 500; font-size: 14px; }

        /* ===== PRODUCTS GRID ===== */
        .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
        .product-card { background: var(--blanc); border-radius: 20px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.04); transition: all 0.5s cubic-bezier(0.23,1,0.32,1); cursor: pointer; border: 1px solid rgba(0,0,0,0.04); position: relative; }
        .product-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(18,166,161,0.12); border-color: rgba(18,166,161,0.15); }
        .product-card:hover .product-image { transform: scale(1.08); padding: 4px; }
        .product-image-wrapper { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; position: relative; background: #ffffff; border-bottom: 1px solid rgba(0,0,0,0.05); }
        .product-image { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; transition: transform 0.7s cubic-bezier(0.23,1,0.32,1); padding: 8px; }
        .product-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #c0c0c0; }
        .product-image-placeholder svg { width: 48px; height: 48px; opacity: 0.3; }
        .product-image-placeholder span { font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }

        /* Badges */
        .badge { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; z-index: 2; }
        .badge-promo { background: var(--orange); color: var(--blanc); }
        .badge-rupture { background: #c62828; color: var(--blanc); }

        .product-info { padding: 20px; }
        .product-category { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--bleu); margin-bottom: 6px; }
        .product-name { font-size: 16px; font-weight: 700; color: var(--noir); line-height: 1.3; }
        .product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gris-light); }
        .product-price { font-size: 20px; font-weight: 800; color: var(--orange); }
        .product-price span { font-size: 12px; font-weight: 600; color: var(--gris); }
        .add-to-cart { background: var(--creme); color: var(--noir); border: none; border-radius: 10px; width: 38px; height: 38px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
        .add-to-cart:hover:not(:disabled) { background: var(--bleu); color: var(--blanc); transform: scale(1.1); }
        .add-to-cart:disabled { opacity: 0.35; cursor: not-allowed; }
        .add-to-cart svg { width: 18px; height: 18px; fill: currentColor; }
        .rupture-label { font-size: 11px; font-weight: 700; color: #c62828; }


        /* ===== FILTRE CATEGORIE (select) ===== */
        .filters-bar { display: flex; margin-bottom: 28px; }
        .filter-select-wrap { position: relative; display: inline-flex; align-items: center; }
        .filter-select-wrap::after { content:''; position:absolute; right:14px; top:50%; transform:translateY(-50%); width:0; height:0; border-left:5px solid transparent; border-right:5px solid transparent; border-top:6px solid var(--bleu); pointer-events:none; }
        .filter-select { appearance:none; -webkit-appearance:none; background:var(--blanc); border:2px solid var(--gris-light); border-radius:30px; padding:10px 42px 10px 18px; font-family:'Montserrat',sans-serif; font-size:13px; font-weight:700; color:var(--noir); cursor:pointer; transition:border-color .25s; outline:none; }
        .filter-select:hover, .filter-select:focus { border-color:var(--bleu); }
        .filter-select.active { border-color:var(--bleu); color:var(--bleu); }
        /* ===== PARTAGE (modal seulement) ===== */
        .modal-share-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--gris-light); border: none; border-radius: 12px; padding: 12px 16px; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--noir); transition: all 0.25s ease; margin-top: 12px; }
        .modal-share-btn:hover { background: var(--bleu); color: var(--blanc); }
        .modal-share-btn svg { width: 16px; height: 16px; fill: currentColor; }

        /* No Results */
        .no-results { text-align: center; padding: 80px 20px; grid-column: 1 / -1; }
        .no-results svg { width: 64px; height: 64px; fill: #e0e0e0; margin-bottom: 20px; }
        .no-results h3 { font-size: 20px; font-weight: 700; color: var(--noir); margin-bottom: 8px; }
        .no-results p { color: var(--gris); font-weight: 500; }

        /* ===== QUANTITY PICKER ===== */
        .qty-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(26,26,26,0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 5000; display: flex; align-items: flex-end; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
        .qty-overlay.active { opacity: 1; visibility: visible; }
        .qty-sheet { background: var(--blanc); border-radius: 28px 28px 0 0; padding: 32px 28px 48px; width: 100%; max-width: 480px; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.23,1,0.32,1); }
        .qty-overlay.active .qty-sheet { transform: translateY(0); }
        .qty-handle { width: 40px; height: 4px; background: var(--gris-light); border-radius: 2px; margin: 0 auto 24px; }
        .qty-product-name { font-size: 17px; font-weight: 800; color: var(--noir); margin-bottom: 4px; }
        .qty-product-price { font-size: 22px; font-weight: 900; color: var(--orange); margin-bottom: 28px; }
        .qty-product-price span { font-size: 13px; color: var(--gris); font-weight: 600; }
        .qty-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gris); margin-bottom: 16px; }
        .qty-controls { display: flex; align-items: center; background: var(--gris-light); border-radius: 18px; width: fit-content; margin-bottom: 16px; overflow: hidden; }
        .qty-btn { width: 52px; height: 52px; background: none; border: none; cursor: pointer; font-size: 22px; font-weight: 700; color: var(--noir); display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
        .qty-btn:hover { background: rgba(0,0,0,0.06); }
        .qty-value { font-size: 22px; font-weight: 800; color: var(--noir); min-width: 56px; text-align: center; }
        /* Message d'erreur stock */
        .qty-stock-error { display: none; background: #fff5f5; border: 1.5px solid #ffcdd2; border-radius: 12px; padding: 12px 16px; color: #c62828; font-size: 13px; font-weight: 700; margin-bottom: 20px; align-items: center; gap: 8px; }
        .qty-stock-error.visible { display: flex; }
        .qty-confirm { width: 100%; background: var(--bleu); color: var(--blanc); border: none; border-radius: 16px; padding: 18px; font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(18,166,161,0.25); }
        .qty-confirm:hover { background: var(--bleu-dark); transform: translateY(-2px); }
        .qty-confirm svg { width: 20px; height: 20px; fill: currentColor; }

        /* ===== CART REMINDER NOTIFICATION ===== */
        .cart-reminder { position: fixed; top: 80px; right: 20px; z-index: 1200; background: var(--blanc); border-radius: 18px; padding: 14px 18px 14px 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 0 0 1px rgba(18,166,161,0.12); display: flex; align-items: center; gap: 12px; max-width: 290px; transform: translateX(calc(100% + 30px)); opacity: 0; transition: all 0.5s cubic-bezier(0.23,1,0.32,1); pointer-events: none; }
        .cart-reminder.visible { transform: translateX(0); opacity: 1; pointer-events: auto; }
        .cart-reminder-icon { width: 40px; height: 40px; background: var(--bleu); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; animation: reminderPulse 2s ease-in-out infinite; }
        .cart-reminder-icon svg { width: 20px; height: 20px; fill: var(--blanc); }
        @keyframes reminderPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(18,166,161,0.4); } 50% { box-shadow: 0 0 0 8px rgba(18,166,161,0); } }
        .cart-reminder-text { flex: 1; }
        .cart-reminder-title { font-size: 13px; font-weight: 800; color: var(--noir); margin-bottom: 2px; line-height: 1.3; }
        .cart-reminder-sub { font-size: 11px; font-weight: 500; color: var(--gris); line-height: 1.4; }
        .cart-reminder-close { background: none; border: none; cursor: pointer; color: var(--gris); font-size: 16px; padding: 2px; flex-shrink: 0; opacity: 0.5; line-height: 1; transition: opacity 0.2s; }
        .cart-reminder-close:hover { opacity: 1; }
        .cart-reminder-arrow { position: absolute; top: -8px; right: 28px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid var(--blanc); filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.06)); }

        /* ===== TOAST ===== */
        .toast { position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--noir); color: var(--blanc); padding: 14px 24px; border-radius: 50px; font-size: 14px; font-weight: 700; white-space: nowrap; opacity: 0; transition: all 0.4s cubic-bezier(0.23,1,0.32,1); z-index: 6000; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); pointer-events: none; }
        .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
        .toast-icon { font-size: 18px; }

        /* ===== PRODUCT DETAIL MODAL ===== */
        .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(26,26,26,0.65); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 3000; opacity: 0; visibility: hidden; transition: all 0.4s ease; display: flex; align-items: center; justify-content: center; padding: 20px; }
        .modal-overlay.active { opacity: 1; visibility: visible; }
        .modal-content { background: var(--blanc); border-radius: 32px; max-width: 920px; width: 100%; max-height: 90vh; overflow: hidden; transform: scale(0.92) translateY(30px); transition: all 0.5s cubic-bezier(0.23,1,0.32,1); position: relative; box-shadow: 0 25px 80px rgba(0,0,0,0.18); display: flex; flex-direction: column; }
        .modal-overlay.active .modal-content { transform: scale(1) translateY(0); }
        .modal-close { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,0.95); border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.1); z-index: 10; transition: all 0.3s ease; }
        .modal-close:hover { transform: rotate(90deg) scale(1.1); background: var(--orange); }
        .modal-close:hover svg { fill: var(--blanc); }
        .modal-close svg { width: 20px; height: 20px; fill: var(--noir); transition: fill 0.3s; }

        /* Modal body : grille 2 colonnes, hauteur fixe */
        .modal-body { display: grid; grid-template-columns: 1fr 1fr; flex: 1; min-height: 0; }

        /* ===== CAROUSEL IMAGE MODAL ===== */
        .modal-image-section { position: relative; background: #ffffff; overflow: hidden; border-radius: 32px 0 0 32px; display: flex; align-items: stretch; }
        .carousel { width: 100%; position: relative; overflow: hidden; display: flex; align-items: stretch; }
        .carousel-track { display: flex; transition: transform 0.45s cubic-bezier(0.23,1,0.32,1); width: 100%; }
        /* ratio 1:1 garanti sur chaque slide via padding-bottom */
        .carousel-slide { min-width: 100%; flex-shrink: 0; position: relative; background: #ffffff; }
        .carousel-slide::before { content: ''; display: block; padding-bottom: 100%; }
        .carousel-slide img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 24px; }
        .carousel-slide .modal-image-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; color: #b0b0b0; }
        .carousel-slide .modal-image-placeholder svg { width: 80px; height: 80px; opacity: 0.25; }
        .carousel-slide .modal-image-placeholder span { font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
        .carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.92); border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.12); transition: all 0.25s ease; z-index: 3; }
        .carousel-btn:hover { background: var(--blanc); transform: translateY(-50%) scale(1.08); }
        .carousel-btn svg { width: 18px; height: 18px; fill: var(--noir); }
        .carousel-prev { left: 12px; }
        .carousel-next { right: 12px; }
        .carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
        .carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: all 0.3s ease; padding: 0; }
        .carousel-dot.active { background: var(--blanc); transform: scale(1.3); }
        .carousel-count { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,0.45); color: var(--blanc); font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 20px; z-index: 3; display: none; }
        .modal-badge { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; z-index: 4; }

        /* Info section — scroll interne, pas d'espace vide */
        .modal-info-section { padding: 44px; display: flex; flex-direction: column; justify-content: flex-start; background: var(--blanc); border-radius: 0 32px 32px 0; overflow-y: auto; -webkit-overflow-scrolling: touch; border-left: 1px solid rgba(0,0,0,0.06); }
        .modal-category { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--bleu); margin-bottom: 14px; }
        .modal-name { font-size: 28px; font-weight: 800; color: var(--noir); margin-bottom: 10px; line-height: 1.2; letter-spacing: -0.5px; }
        .modal-price { font-size: 34px; font-weight: 900; color: var(--orange); margin-bottom: 18px; }
        .modal-price span { font-size: 16px; font-weight: 600; color: var(--gris); }
        .modal-description-box { background: #f9f8f6; border-left: 4px solid var(--bleu); border-radius: 0 12px 12px 0; padding: 16px 18px; margin-bottom: 28px; }
        .modal-description { font-size: 14px; color: #333; line-height: 1.9; }
        .modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
        .modal-btn-primary { flex: 1; min-width: 180px; background: var(--bleu); color: var(--blanc); border: none; border-radius: 14px; padding: 16px 24px; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(18,166,161,0.25); }
        .modal-btn-primary:hover:not(:disabled) { background: var(--bleu-dark); transform: translateY(-2px); }
        .modal-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
        .modal-btn-primary svg { width: 18px; height: 18px; fill: currentColor; }
        .modal-btn-secondary { flex: 1; min-width: 180px; background: transparent; color: var(--noir); border: 2px solid var(--gris-light); border-radius: 14px; padding: 16px 24px; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s ease; }
        .modal-btn-secondary:hover { border-color: var(--orange); color: var(--orange); }
        .modal-btn-secondary svg { width: 18px; height: 18px; fill: currentColor; }
        .modal-rupture-notice { background: #fff5f5; border: 1px solid #ffcdd2; border-radius: 12px; padding: 12px 16px; color: #c62828; font-size: 13px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
        .rupture-contact-link { display: inline-flex; align-items: center; gap: 6px; background: #25D366; color: #fff; font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 20px; text-decoration: none; white-space: nowrap; transition: background 0.2s; }
        .rupture-contact-link:hover { background: #128C7E; }

        /* ===== CART SIDEBAR ===== */
        .cart-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(26,26,26,0.4); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
        .cart-overlay.active { opacity: 1; visibility: visible; }
        .cart-sidebar { position: fixed; top: 0; right: 0; width: 100%; max-width: 420px; height: 100%; height: 100dvh; background: var(--blanc); z-index: 2001; transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.23,1,0.32,1); display: flex; flex-direction: column; box-shadow: -10px 0 60px rgba(0,0,0,0.1); }
        .cart-sidebar.active { transform: translateX(0); }
        .cart-header { padding: 24px 24px 20px; border-bottom: 1px solid rgba(0,0,0,0.06); display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
        .cart-header h2 { font-size: 19px; font-weight: 800; color: var(--noir); display: flex; align-items: center; gap: 10px; }
        .cart-header h2 svg { width: 22px; height: 22px; fill: var(--orange); }
        .close-cart { background: none; border: none; cursor: pointer; padding: 8px; border-radius: 50%; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
        .close-cart:hover { background: var(--gris-light); transform: rotate(90deg); }
        .close-cart svg { width: 22px; height: 22px; fill: var(--gris); }
        /* Scroll du panier — fix mobile */
        .cart-items { flex: 1; overflow-y: scroll; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; padding: 20px; min-height: 0; }
        .cart-item { display: flex; gap: 14px; padding: 14px; background: var(--blanc); border-radius: 18px; margin-bottom: 10px; align-items: center; box-shadow: 0 2px 12px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.04); }
        .cart-item-image { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; background: var(--gris-light); flex-shrink: 0; }
        .cart-item-info { flex: 1; min-width: 0; }
        .cart-item-name { font-size: 13px; font-weight: 700; color: var(--noir); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .cart-item-qty { font-size: 11px; color: var(--gris); font-weight: 600; }
        .cart-item-price { font-size: 14px; font-weight: 800; color: var(--orange); margin-top: 2px; }
        .remove-item { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 50%; transition: all 0.2s; color: var(--gris); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .remove-item:hover { background: #fee2e2; color: #dc2626; }
        .remove-item svg { width: 16px; height: 16px; fill: currentColor; }
        .cart-empty { text-align: center; padding: 60px 20px; }
        .cart-empty-icon { width: 72px; height: 72px; background: var(--gris-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
        .cart-empty-icon svg { width: 32px; height: 32px; fill: var(--gris); }
        .cart-empty h3 { font-size: 16px; font-weight: 700; color: var(--noir); margin-bottom: 6px; }
        .cart-empty p { color: var(--gris); font-weight: 500; font-size: 13px; }
        .cart-footer { padding: 24px; border-top: 1px solid rgba(0,0,0,0.06); background: #fafaf9; flex-shrink: 0; }
        .cart-totals { margin-bottom: 20px; }
        .cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; }
        .cart-total-row.final { border-top: 2px solid var(--gris-light); padding-top: 12px; margin-top: 4px; }
        .cart-total-label { font-weight: 600; color: var(--gris); }
        .cart-total-label.final { font-size: 14px; color: var(--noir); font-weight: 700; }
        .cart-total-price { font-weight: 700; color: var(--noir); }
        .cart-total-price.final { font-size: 24px; font-weight: 900; color: var(--orange); }
        .whatsapp-btn { width: 100%; background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); color: var(--blanc); border: none; border-radius: 16px; padding: 18px; font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(37,211,102,0.25); margin-bottom: 10px; }
        .whatsapp-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,211,102,0.35); }
        .whatsapp-btn svg { width: 22px; height: 22px; fill: currentColor; }
        .clear-cart { width: 100%; background: none; border: 2px solid var(--gris-light); color: var(--gris); border-radius: 12px; padding: 12px; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
        .clear-cart:hover { border-color: #dc2626; color: #dc2626; background: #fee2e2; }

        /* ===== FOOTER ===== */
        .footer { background: var(--noir); color: var(--blanc); padding: 50px 20px; text-align: center; margin-top: 100px; }
        .footer-logo { font-size: 26px; font-weight: 900; margin-bottom: 10px; letter-spacing: -0.5px; }
        .footer-tagline { font-size: 13px; opacity: 0.5; font-weight: 500; margin-bottom: 16px; }
        .footer-number { font-size: 16px; font-weight: 700; opacity: 0.75; letter-spacing: 0.5px; }

        /* ===== BOUTON FLOTTANT WA ===== */
        .floating-wa { position: fixed; bottom: 28px; right: 28px; z-index: 1500; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
        .floating-menu { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.35s cubic-bezier(0.23,1,0.32,1); }
        .floating-wa.open .floating-menu { opacity: 1; visibility: visible; transform: translateY(0); }
        .floating-menu-item { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; }
        .floating-menu-label { background: var(--noir); color: var(--blanc); font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; padding: 9px 16px; border-radius: 30px; white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: all 0.2s ease; }
        .floating-menu-item:hover .floating-menu-label { background: #333; }
        .floating-menu-icon { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.18); flex-shrink: 0; transition: transform 0.2s ease; }
        .floating-menu-item:hover .floating-menu-icon { transform: scale(1.08); }
        .floating-menu-icon.call { background: var(--bleu); }
        .floating-menu-icon.wa { background: #25D366; }
        .floating-menu-icon svg { width: 20px; height: 20px; fill: var(--blanc); }
        .floating-main-btn { width: 60px; height: 60px; background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 28px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.12); cursor: pointer; transition: all 0.35s cubic-bezier(0.23,1,0.32,1); border: 3px solid rgba(255,255,255,0.25); flex-shrink: 0; position: relative; }
        .floating-main-btn:hover { box-shadow: 0 14px 40px rgba(37,211,102,0.55); }
        .floating-wa.open .floating-main-btn { transform: rotate(45deg); background: linear-gradient(135deg, #cc582c, #e06030); }
        .floating-main-btn .icon-wa, .floating-main-btn .icon-close { position: absolute; transition: all 0.3s ease; }
        .floating-main-btn .icon-wa { opacity: 1; transform: scale(1); }
        .floating-main-btn .icon-close { opacity: 0; transform: scale(0.5); }
        .floating-wa.open .floating-main-btn .icon-wa { opacity: 0; transform: scale(0.5); }
        .floating-wa.open .floating-main-btn .icon-close { opacity: 1; transform: scale(1); }
        .floating-main-btn svg { width: 28px; height: 28px; fill: var(--blanc); }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .header-container { flex-wrap: wrap; gap: 10px; }
            .logo { order: 1; }
            .cart-btn { order: 2; margin-left: auto; }
            .search-wrapper { order: 3; max-width: 100%; width: 100%; flex-basis: 100%; }
            .hero-banner h2 { font-size: 26px; } .hero-banner { padding: 36px 24px; }
            .cat-grid { grid-template-columns: repeat(3, 1fr); }
            .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
            /* Modal mobile : empilement vertical, scroll sur la section info */
            .modal-content { max-height: 95vh; border-radius: 24px; }
            .modal-body { grid-template-columns: 1fr; overflow-y: auto; -webkit-overflow-scrolling: touch; }
            .modal-image-section { aspect-ratio: 1 / 1; border-radius: 24px 24px 0 0; min-height: 260px; background: #ffffff; border-left: none; border-bottom: 1px solid rgba(0,0,0,0.06); }
            .modal-info-section { padding: 28px; border-radius: 0 0 24px 24px; overflow-y: visible; border-left: none; }
            .modal-name { font-size: 22px; }
            .modal-price { font-size: 26px; }
            .modal-actions { flex-direction: column; }
            .cart-sidebar { max-width: 100%; }
            .floating-wa { bottom: 20px; right: 20px; }
            .cart-reminder { top: 74px; right: 12px; max-width: calc(100vw - 24px); }
        }
        @media (max-width: 480px) {
            .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
            .product-info { padding: 14px; }
            .product-name { font-size: 14px; }
            .product-price { font-size: 17px; }
            .hero-banner h2 { font-size: 22px; }
        }
        ::-webkit-scrollbar { width: 5px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--bleu); }

/* ===== ÉTAPE 1 : menu commun, pages Accueil / Panier / À propos ===== */
.header-container { flex-wrap: nowrap; }
.nav { display: flex; gap: 22px; margin-left: auto; margin-right: 6px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--noir); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--bleu-dark); border-bottom-color: var(--bleu); }
a.cart-btn { text-decoration: none; }
.search-main { max-width: none; margin-bottom: 28px; }
.footer-links { margin: 10px 0 4px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer-links a { color: inherit; opacity: .8; font-size: 13px; text-decoration: none; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 768px) {
  .header-container { flex-wrap: wrap; row-gap: 8px; }
  .cart-btn { order: 2; margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; justify-content: center; margin: 0; gap: 26px; }
}

/* Boutons */
.btn { display: inline-block; padding: 14px 26px; border-radius: 30px; font-family: inherit; font-size: 15px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; position: relative; z-index: 1; }
.btn-light { background: #fff; color: var(--bleu-dark); }
.btn-wa { background: #25d366; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* Accueil */
.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.atout { background: #fff; border-radius: 18px; padding: 24px; }
.atout h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.atout p { font-size: 14px; color: #555; }

/* Panier */
.panier, .apropos { max-width: 760px; margin: 0 auto; padding: 32px 20px 48px; }
.panier h1, .apropos h1 { font-size: 28px; font-weight: 900; margin-bottom: 20px; }
.p-line { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.p-line img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; background: var(--gris-light); flex-shrink: 0; }
.p-info { flex: 1; min-width: 0; }
.p-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.p-unit { font-size: 12px; color: var(--gris); }
.p-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.p-qty button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--gris-light); background: #fff; font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1; }
.p-qty span { min-width: 20px; text-align: center; font-weight: 700; }
.p-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.p-sum { font-weight: 800; color: var(--bleu-dark); white-space: nowrap; }
.p-remove { border: none; background: none; color: var(--gris); font-family: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.p-warn { font-size: 12px; color: var(--orange); margin-top: 4px; }
.p-total { background: #fff; border-radius: 16px; padding: 18px; display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 18px; }
.p-note { font-size: 12px; color: var(--gris); margin: 8px 4px 18px; }
.p-empty { background: #fff; border-radius: 18px; padding: 40px 20px; text-align: center; }
.p-empty p { margin-bottom: 18px; color: #555; }
.p-empty .btn { background: var(--bleu); color: #fff; }
.p-order { width: 100%; justify-content: center; display: flex; align-items: center; gap: 10px; }
.p-clear { display: block; margin: 14px auto 0; border: none; background: none; color: var(--gris); font-family: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }

/* À propos */
.card { background: #fff; border-radius: 18px; padding: 24px; margin-bottom: 16px; }
.card h2 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.card p, .card li { font-size: 15px; margin-bottom: 8px; }
.card ol, .card ul { padding-left: 22px; }

/* Panier : livraison / retrait */
.p-h2 { font-size: 17px; font-weight: 800; margin: 22px 0 12px; }
.p-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-mode { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 2px solid var(--gris-light); border-radius: 16px; padding: 14px; cursor: pointer; position: relative; }
.p-mode input { position: absolute; opacity: 0; pointer-events: none; }
.p-mode strong { font-size: 15px; }
.p-mode small { font-size: 12px; color: var(--gris); }
.p-mode.on { border-color: var(--bleu); background: #eefaf9; }
.p-box { background: #fff; border-radius: 16px; padding: 16px; margin-top: 12px; font-size: 14px; }
.p-box p { margin-top: 6px; }
.p-box textarea { width: 100%; margin-top: 8px; padding: 12px; border: 2px solid var(--gris-light); border-radius: 12px; font-family: inherit; font-size: 15px; resize: vertical; }
.p-box textarea:focus { outline: none; border-color: var(--bleu); }
.p-hint { font-size: 12px; color: var(--gris); }
.p-error { color: var(--orange); font-weight: 700; font-size: 14px; margin: 12px 4px 0; min-height: 0; }
.p-order { margin-top: 16px; }

/* Page produit */
.pp { max-width: 1000px; margin: 0 auto; padding: 20px 20px 48px; }
.pp-back { display: inline-block; font-size: 14px; font-weight: 600; color: var(--bleu-dark); text-decoration: none; margin-bottom: 14px; }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.pp-main { position: relative; background: #fff; border-radius: 20px; overflow: hidden; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.pp-main img { width: 100%; height: 100%; object-fit: contain; }
.pp-main .badge { position: absolute; top: 14px; left: 14px; }
.pp-noimg { color: var(--gris); font-size: 14px; }
.pp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.pp-thumb { flex: 0 0 64px; height: 64px; border: 2px solid transparent; border-radius: 12px; background: #fff; padding: 0; overflow: hidden; cursor: pointer; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-thumb.on { border-color: var(--bleu); }
.pp-cat { font-size: 12px; font-weight: 700; color: var(--bleu-dark); text-transform: uppercase; letter-spacing: .5px; }
.pp-info h1 { font-size: 26px; font-weight: 900; line-height: 1.25; margin: 4px 0 10px; }
.pp-price { font-size: 30px; font-weight: 900; color: var(--bleu-dark); }
.pp-price span { font-size: 15px; font-weight: 700; }
.pp-old { font-size: 15px; font-weight: 600; color: var(--gris); margin-left: 6px; }
.pp-stock { display: inline-block; margin: 10px 0 14px; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.pp-stock.ok { background: #e6f7ef; color: #167a4a; }
.pp-stock.low { background: #fff3dc; color: #a86a00; }
.pp-stock.out { background: #fde8e8; color: #b42318; }
.pp-desc { font-size: 15px; color: #444; margin-bottom: 20px; }
.pp-qty { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pp-qty button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gris-light); background: #fff; font-size: 20px; font-weight: 700; cursor: pointer; }
.pp-qty span { min-width: 24px; text-align: center; font-weight: 800; font-size: 18px; }
.pp-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-buy { background: var(--bleu); color: #fff; width: 100%; }
.btn-buy:hover { background: var(--bleu-dark); }
.btn-wa-outline { background: #fff; color: #128c4a; border: 2px solid #25d366; text-align: center; }
.pp-msg { font-size: 14px; font-weight: 600; margin-top: 12px; min-height: 20px; }
.pp-msg.ok { color: #167a4a; } .pp-msg.warn { color: var(--orange); }
.pp-msg a { color: inherit; text-decoration: underline; }
.pp-soon { font-size: 14px; color: var(--orange); font-weight: 600; margin-bottom: 12px; }
.pp-similar { margin-top: 44px; }
.pp-similar h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.pp-sim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pp-sim { background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.pp-sim-img { aspect-ratio: 1 / 1; background: var(--gris-light); }
.pp-sim-img img { width: 100%; height: 100%; object-fit: cover; }
.pp-sim-name { font-size: 13px; font-weight: 700; padding: 10px 12px 2px; line-height: 1.3; }
.pp-sim-price { font-size: 13px; font-weight: 800; color: var(--bleu-dark); padding: 0 12px 12px; }
@media (max-width: 768px) {
  .pp-grid { grid-template-columns: 1fr; gap: 18px; }
  .pp-info h1 { font-size: 22px; }
  .pp-sim-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== ÉTAPE 4 : accueil léger, filtres, cartes, partage ===== */
[hidden] { display: none !important; }

/* Cartes : tout le bloc est cliquable grâce au lien du nom */
.product-card { cursor: default; }
.pc-link { color: inherit; text-decoration: none; }
.pc-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.product-footer .add-to-cart, .product-footer .rupture-label { position: relative; z-index: 2; }
.product-card.is-rupture .product-image { opacity: .55; filter: grayscale(.8); }
.pc-old { display: block; font-size: 12px; font-weight: 600; color: var(--gris); text-decoration: line-through; line-height: 1.2; }
.pc-stock { font-size: 12px; font-weight: 700; color: var(--orange); margin-top: 4px; }
.product-price { line-height: 1.2; }
.add-to-cart { background: var(--bleu); color: #fff; }
.add-to-cart:hover:not(:disabled) { background: var(--bleu-dark); }

/* Accueil */
.home-sec { margin-top: 44px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.sec-link { font-size: 13px; font-weight: 700; color: var(--bleu-dark); text-decoration: none; white-space: nowrap; }
.sec-link:hover { text-decoration: underline; }
.home-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.home-error { margin-top: 30px; text-align: center; color: var(--orange); font-weight: 600; }
.home-error a { color: var(--bleu-dark); text-decoration: underline; }
.sk { background: linear-gradient(90deg, #ebe8e0 25%, #f6f4ee 50%, #ebe8e0 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 20px; }
.sk-card { aspect-ratio: 3 / 4; }
@keyframes sk { to { background-position: -200% 0; } }

/* Pastilles (catégories) */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 9px 16px; border-radius: 30px; border: 2px solid var(--gris-light); background: #fff; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--noir); text-decoration: none; cursor: pointer; transition: .2s; white-space: nowrap; }
.chip:hover { border-color: var(--bleu); }
.chip.active { background: var(--bleu); border-color: var(--bleu); color: #fff; }

/* Catalogue */
.cat-head { margin-bottom: 18px; }
.cat-head h1 { font-size: 28px; font-weight: 900; letter-spacing: -.5px; }
.cat-head p { font-size: 14px; color: #666; }
.filters-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 14px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 30px; border: 2px solid var(--gris-light); background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; user-select: none; transition: .2s; }
.toggle input { accent-color: var(--bleu); width: 16px; height: 16px; }
.toggle:has(input:checked) { border-color: var(--bleu); background: #eefaf9; }
.reset-link { background: none; border: none; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--orange); cursor: pointer; padding: 6px; text-decoration: underline; }
.count { font-size: 13px; color: var(--gris); font-weight: 600; margin-bottom: 14px; }

/* Partage + message en bas */
.btn-share { background: var(--gris-light); color: var(--noir); width: 100%; text-align: center; }
.btn-share:hover { background: #e4e1da; }
.toast { white-space: normal; max-width: calc(100vw - 32px); }
.toast.show { pointer-events: auto; }
.toast a { color: var(--jaune); font-weight: 800; white-space: nowrap; }
.p-line.off { opacity: .65; }

@media (max-width: 480px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sec-head h2 { font-size: 18px; }
  .cat-head h1 { font-size: 24px; }
}

/* ===== AVIS CLIENTS (images qui défilent) ===== */
.avis-track { display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.avis-track::-webkit-scrollbar { display: none; }
.avis-item { flex: 0 0 min(260px, 72vw); scroll-snap-align: start; border: 0; padding: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,.06); cursor: zoom-in; }
.avis-item img { display: block; width: 100%; height: auto; }
.avis-nav { display: flex; gap: 8px; }
.avis-nav button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gris-light); background: #fff; font-size: 20px; line-height: 1; cursor: pointer; transition: .2s; }
.avis-nav button:hover { border-color: var(--bleu); color: var(--bleu); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 3000; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
@media (max-width: 600px) { .avis-nav { display: none; } }

/* ===== ÉTAPE 9 : catégories en cartes, pied de page, quantité sur les cartes ===== */
a.cat-card { text-decoration: none; color: inherit; }
button.cat-card { font-family: inherit; }
.cat-section { margin-bottom: 30px; }
.cat-section.home-sec { margin-bottom: 0; }
.cat-grid .cat-card { min-height: 118px; justify-content: center; }
.cat-name { font-size: 12.5px; }
.all-cats-grid .cat-card { flex: 1 1 130px; min-width: 120px; max-width: 220px; }
#count { scroll-margin-top: 84px; }

/* Quantité sur les cartes : « + » puis « − 2 + » */
.product-footer .qty-ctl { position: relative; z-index: 2; flex-shrink: 0; }
.qty-mini { display: inline-flex; align-items: center; background: var(--bleu); color: #fff; border-radius: 12px; overflow: hidden; height: 40px; box-shadow: 0 4px 12px rgba(18,166,161,.28); }
.qty-mini button { width: 36px; height: 40px; border: none; background: transparent; color: #fff; font-family: inherit; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; transition: background .15s; }
.qty-mini button:hover:not(:disabled) { background: rgba(0,0,0,.14); }
.qty-mini button:disabled { opacity: .4; cursor: not-allowed; }
.qty-mini span { min-width: 24px; text-align: center; font-weight: 800; font-size: 14px; }

/* Nouveau pied de page */
.site-footer { background: #161616; color: #cfcfcf; margin-top: 70px; border-top: 4px solid var(--bleu); font-size: 14px; }
.f-wrap { max-width: 1200px; margin: 0 auto; padding: 46px 20px 28px; display: grid; grid-template-columns: 1fr; gap: 30px; }
.f-logo { font-size: 26px; font-weight: 900; letter-spacing: -.5px; color: #fff; margin-bottom: 10px; }
.f-logo b { color: var(--bleu); font-weight: 900; }
.f-tag { line-height: 1.6; color: #a8a8a8; max-width: 340px; margin-bottom: 18px; }
.f-wa { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; font-weight: 700; font-size: 14px; padding: 12px 20px; border-radius: 30px; text-decoration: none; transition: .2s; }
.f-wa:hover { background: #1fb956; transform: translateY(-1px); }
.f-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.f-social { padding: 7px 14px; border: 1px solid #3a3a3a; border-radius: 20px; font-size: 12.5px; font-weight: 600; color: #ddd; text-decoration: none; transition: .2s; }
.f-social:hover { border-color: var(--bleu); color: #fff; }
.f-col h4 { color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 14px; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.f-col a { color: #cfcfcf; text-decoration: none; transition: color .15s; }
.f-col a:hover { color: #fff; text-decoration: underline; }
.f-info li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.f-info li span { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--bleu); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.f-contact li { line-height: 1.45; }
.f-bottom { max-width: 1200px; margin: 0 auto; padding: 18px 20px 26px; border-top: 1px solid #2a2a2a; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; font-size: 12.5px; color: #8a8a8a; }
.f-bottom a { color: #bbb; text-decoration: none; }
.f-bottom a:hover { color: #fff; }
@media (min-width: 640px) { .f-wrap { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
@media (min-width: 960px) { .f-wrap { grid-template-columns: 1.5fr .8fr 1.4fr 1.2fr; gap: 40px; } .f-brand { grid-column: auto; } }
@media (max-width: 480px) { .site-footer { padding-bottom: 70px; } }
@media (max-width: 480px) { .f-bottom { padding-right: 86px; } }
